#scoreboard-root,
.scoreboard-root {
  background: var(--bg3);
}

.scoreboard-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  background-color: var(--bg3);
  background-image: url('/assets/images/background.png');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--color-text, #E6EDF3);
}

.scoreboard-page-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-scrim, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.scoreboard-layout {
  position: relative;
  z-index: 20;
  display: flex;
  gap: 1rem;
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
  color: var(--color-text, #E6EDF3);
}

.scoreboard-sidebar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: auto;
  margin-left: 0;
}

.scoreboard-sidebar-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 1rem !important;
  background: var(--header-surface, rgba(0, 29, 53, 0.651));
  border: 1px solid var(--header-border, rgba(255, 255, 255, 0.08));
  color: var(--color-text, #E6EDF3);
}

.scoreboard-sidebar-collapsed,
.scoreboard-sidebar-expanded {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.scoreboard-sidebar-collapsed-top,
.scoreboard-sidebar-collapsed-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.scoreboard-sidebar-collapsed-top {
  padding-top: 0.5rem;
}

.scoreboard-sidebar-collapsed-bottom {
  padding-bottom: 0.5rem;
}

.scoreboard-logo {
  width: var(--scoreboard-logo-size);
  height: auto;
  display: block;
}

.scoreboard-sidebar-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  color: var(--secondary);
}

.scoreboard-brand-row {
  display: flex;
  align-items: center;
}

.scoreboard-brand-logo {
  flex-shrink: 0;
  cursor: pointer;
}

.scoreboard-brand-title {
  margin-left: 0.75rem;
}

.scoreboard-file-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--header-border, rgba(255, 255, 255, 0.2));
  border-radius: 0.5rem;
  background: var(--header-bg, rgba(0, 29, 53, 0.7));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.scoreboard-file-form.is-dragover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 123, 0, 0.18);
  background: var(--header-surface, rgba(0, 29, 53, 0.85));
}

.scoreboard-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem !important;
  border: 0 !important;
  border-radius: 0.5rem;
  background: transparent !important;
  box-shadow: none !important;
}

.scoreboard-file-button:hover {
  background: rgba(255, 123, 0, 0.12) !important;
}

.scoreboard-file-input-wrap {
  position: relative;
  flex: 1 1 auto;
}

.scoreboard-file-path {
  width: 100%;
  padding: 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--color-secondary);
  cursor: pointer;
  outline: none;
}

.scoreboard-file-upload {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.scoreboard-theme-panel {
  margin: 0;
}

.scoreboard-theme-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.scoreboard-theme-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0;
}

.scoreboard-theme-options .theme-opt {
  width: 100%;
  min-height: 2.35rem;
  justify-content: flex-start;
}

.scoreboard-theme-options .theme-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.scoreboard-objectives-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.scoreboard-section-label {
  margin-bottom: 0.25rem;
}

.scoreboard-search-input {
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  background: var(--header-bg, rgba(0, 29, 53, 0.7));
  border: 1px solid var(--header-border, rgba(255, 255, 255, 0.1));
  color: var(--color-text, #E6EDF3);
}

.scoreboard-objectives-frame {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.25rem;
  overflow: hidden;
  border: 1px solid var(--header-border, rgba(255, 255, 255, 0.1));
  border-radius: 0.5rem;
  background: var(--header-bg, rgba(0, 28, 53, 0.6));
}

.scoreboard-objectives-list {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
}

.scoreboard-sidebar-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  text-align: center;
  border-top: 1px solid rgba(107, 114, 128, 0.5);
}

.scoreboard-sidebar-footer .scoreboard-theme-panel {
  margin-bottom: 0.85rem;
  text-align: left;
}

.scoreboard-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  color: var(--color-text);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.scoreboard-main-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 1rem !important;
  background: var(--header-surface, rgba(0, 29, 53, 0.651));
  border: 1px solid var(--header-border, rgba(255, 255, 255, 0.08));
}

.scoreboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--header-border, rgba(255, 255, 255, 0.1));
  flex-shrink: 0;
  color: var(--color-text, #E6EDF3);
}

.scoreboard-icon {
  display: inline-block;
  color: currentColor;
}

.scoreboard-icon--lg {
  width: 1.5rem;
  height: 1.5rem;
}

.scoreboard-icon--md {
  width: 1.5rem;
  height: 1.5rem;
}

.scoreboard-icon--sm {
  width: 1rem;
  height: 1rem;
}

.scoreboard-export-button {
  font-weight: 700;
}

.scoreboard-total-score {
  flex: 1 1 auto;
  padding: 0 1rem;
  overflow: hidden;
  color: var(--secondary);
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreboard-chart-container {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.scoreboard-chart-canvas {
  width: 100% !important;
  height: 100% !important;
}

.scoreboard-chart-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scoreboard-chart-placeholder[hidden] {
  display: none !important;
}

.scoreboard-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
}

.scoreboard-placeholder-copy {
  text-align: center;
}

.scoreboard-placeholder-title {
  margin: 0 0 0.25rem;
  color: var(--secondary);
  font-size: 1.5rem;
  font-weight: 600;
}

.scoreboard-placeholder-title--compact {
  font-size: 1.25rem;
}

.scoreboard-placeholder-text {
  margin: 0;
  color: #d1d5db;
  font-size: 0.875rem;
}

.scoreboard-placeholder-actions {
  margin-top: 0.75rem;
}

.scoreboard-placeholder-icon {
  width: 5rem;
  height: 5rem;
  color: var(--secondary);
}

.scoreboard-placeholder-icon--compact {
  width: 4rem;
  height: 4rem;
}

.scoreboard-status-item {
  color: #9ca3af;
  font-style: italic;
}

.scoreboard-status-item--error {
  color: #f87171;
}

.scoreboard-export-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: var(--color-text, #E6EDF3);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}

.scoreboard-export-dialog[hidden] {
  display: none !important;
}

.scoreboard-export-dialog.is-open {
  display: flex !important;
  position: fixed;
  inset: 0;
  pointer-events: auto;
}

.scoreboard-export-card {
  width: min(92vw, 1200px);
  max-height: 86vh;
  overflow: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 240ms cubic-bezier(.2,.9,.25,1), transform 240ms cubic-bezier(.2,.9,.25,1);
}

.scoreboard-export-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scoreboard-export-dialog.is-open .scoreboard-export-card {
  opacity: 1;
  transform: translateY(0);
}

.scoreboard-export-title {
  margin: 0;
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 700;
}

.scoreboard-export-panel {
  padding: 0.75rem;
  border: 1px solid var(--header-border, rgba(255, 255, 255, 0.1));
  border-radius: 0.5rem;
  background: var(--header-bg, rgba(0, 28, 53, 0.5));
}

.scoreboard-export-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.scoreboard-export-panel-note {
  color: #9ca3af;
  font-size: 0.75rem;
}

.scoreboard-export-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.scoreboard-export-dimensions {
  margin-top: 0.75rem;
}

.scoreboard-export-dimensions-row,
.scoreboard-export-options-row,
.scoreboard-site-dialog-actions {
  display: flex;
  align-items: center;
}

.scoreboard-export-dimensions-row,
.scoreboard-export-options-row,
.scoreboard-site-dialog-actions {
  gap: 0.75rem;
}

.scoreboard-export-field {
  display: block;
}

.scoreboard-export-field--inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scoreboard-export-number {
  display: inline-block;
  width: 7rem;
}

.scoreboard-export-select {
  display: inline-block;
  width: 10rem;
}

.scoreboard-export-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
}

.scoreboard-export-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.scoreboard-export-option--stacked {
  margin-bottom: 0.5rem;
}

.scoreboard-export-mode[hidden] {
  display: none !important;
}

.scoreboard-export-actions {
  justify-content: flex-end;
}

.scoreboard-site-dialog {
  width: min(100%, 32rem);
  padding: 1.5rem;
  border: 1px solid rgba(255, 123, 0, 0.5);
  border-radius: 1rem;
  color: var(--color-text);
  background: var(--bg1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.scoreboard-site-dialog::backdrop {
  background: rgba(2, 6, 23, 0.7);
}

.scoreboard-site-dialog-title {
  margin: 0 0 0.75rem;
  color: var(--secondary);
  font-size: 1.125rem;
  font-weight: 700;
}

.scoreboard-site-dialog-text {
  margin: 0 0 0.5rem;
}

.scoreboard-site-dialog-link {
  margin: 0 0 1.25rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--bg3);
  word-break: break-all;
}

.scoreboard-site-dialog-actions {
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .scoreboard-layout {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .scoreboard-sidebar {
    margin-left: 0;
  }

  .scoreboard-export-preset-grid {
    grid-template-columns: 1fr;
  }

  .scoreboard-export-dimensions-row,
  .scoreboard-export-options-row {
    flex-direction: column;
    align-items: stretch;
  }

  .scoreboard-theme-options {
    grid-template-columns: 1fr;
  }
}

#export-dialog .export-type-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.1rem;
}
#export-dialog .export-type-row .export-type-label {
  font-weight: 800;
  color: var(--secondary, #ffd791);
  font-size: 1.08rem;
  margin-right: 1.1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
#export-dialog .export-type-row .export-type-group {
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
}
#export-dialog .export-type-row .export-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 0 0 1px rgba(0,180,216,0.04) inset, 0 0 8px rgba(0,0,0,0.10);
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
#export-dialog .export-type-row .export-type-pill.selected,
#export-dialog .export-type-row .export-type-pill input[type="radio"]:checked + span {
  background: linear-gradient(180deg, rgba(59,130,246,0.22), rgba(59,130,246,0.12));
  border: 1px solid rgba(59,130,246,0.35);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.08) inset, 0 0 16px rgba(59,130,246,0.20);
  color: #e6f0ff;
}
#export-dialog .export-type-row .export-type-pill input[type="radio"] {
  display: none;
}
#file-path {
  color: var(--secondary, #ffd791) !important;
}
#file-path::-moz-placeholder {
  color: #bfae7a !important;
  opacity: 1;
}
#file-path::placeholder {
  color: #bfae7a !important;
  opacity: 1;
}
/* Moved from public assets: hide collapsed sidebar content and invisible canvas
  Default: collapsed content hidden. Visibility toggles based on #sidebar.sidebar-hidden. */
.sidebar-collapsed-content { display: none; }
#invisible-canvas { display: none; }

/* When sidebar is collapsed (has .sidebar-hidden), show the collapsed content and hide expanded content */
#sidebar.sidebar-hidden .sidebar-collapsed-content { display: flex; }
#sidebar.sidebar-hidden .sidebar-expanded-content { display: none; }
/* Sidebar width and content transitions */
.sidebar {
  transition: width 0.35s cubic-bezier(.4,1.2,.4,1), min-width 0.35s cubic-bezier(.4,1.2,.4,1), max-width 0.35s cubic-bezier(.4,1.2,.4,1);
}
.sidebar-collapsed-content,
.sidebar-expanded-content {
  transition: opacity 0.35s cubic-bezier(.4,1.2,.4,1), visibility 0.35s cubic-bezier(.4,1.2,.4,1);
}
.sidebar-collapsed-content[style*="display:none"],
.sidebar-expanded-content[style*="display:none"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.sidebar-collapsed-content,
.sidebar-expanded-content {
  opacity: 1;
  visibility: visible;
}

/* Animate chart container resizing */
#chart-container {
  transition: width 0.35s cubic-bezier(.4,1.2,.4,1), height 0.35s cubic-bezier(.4,1.2,.4,1), max-width 0.35s cubic-bezier(.4,1.2,.4,1), max-height 0.35s cubic-bezier(.4,1.2,.4,1);
}
/* Prevent chart from scaling vertically and clipping when sidebar is collapsed */
#chart-container {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  display: flex;
  flex-direction: column;
}
#score-canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: block;
  box-sizing: border-box;
}
.sidebar-collapsed-content {
  height: 100%;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.sidebar-collapsed-content img {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure logo uses the same size everywhere; prefer a stable pixel-based size so collapsed view matches expanded */
:root { --scoreboard-logo-size: 2.5rem; }
.sidebar-collapsed-content img.icon-fluid {
  width: var(--scoreboard-logo-size) !important;
  height: auto !important;
}

/* Global font defaults: thin body text for Scoreboard Reader */
body, #sidebar, .card, main, .editor-layout, .sidebar-expanded-content, .sidebar-collapsed-content {
  font-weight: 300;
  color: var(--color-text, #E6EDF3);
}
.sidebar-collapsed-content .vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.12em;
  font-size: 1.35rem;
  font-weight: 800; /* extrabold for header-like vertical label */
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* Collapsed sidebar tweaks: reduce margins so icon stays same size while text grows */
#sidebar.sidebar-hidden .sidebar-collapsed-content {
  /* reduced and equal vertical padding so collapsed content is tighter */
  padding-top: 0.18rem;
  padding-bottom: 0.18rem;
  justify-content: space-between; /* pushes image to top and text to bottom */
  align-items: center;
}
#sidebar.sidebar-hidden .sidebar-collapsed-content img.icon-fluid {
  /* keep icon size identical to header */
  width: var(--scoreboard-logo-size) !important;
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
}
#sidebar.sidebar-hidden .sidebar-collapsed-content .vertical-text {
  /* larger vertical title, anchored to bottom by parent space-between */
  font-size: 1.6rem;
  letter-spacing: 0.10em;
  margin: 0 0 0.55rem 0; /* keep small bottom margin */
  color: var(--primary);
  text-shadow: 0 1px 3px rgba(0,0,0,0.22);
  transition: font-size .18s ease, color .18s ease, margin .18s ease, transform .18s ease;
  transform-origin: center;
}

/* Vertical label and header style: medium weight, slightly larger and readable */
/* Match global header styling: extra-bold, primary color, no heavy shadow */
.sidebar-expanded-content h1 {
  font-weight: 800; /* font-extrabold */
  font-size: 1.875rem; /* approx Tailwind text-3xl */
  color: var(--primary);
  letter-spacing: 0.01em;
  text-shadow: none;
  transition: color .12s ease, font-size .12s ease;
}

/* Explicit extrabold elements for Scoreboard Reader */
#scoreboard-author, #total-score, .chart-title {
  font-weight: 800;
  color: var(--primary);
}

/* Keep header on a single line but prevent the ellipsis truncation.
   Use nowrap and allow visible overflow so the full title remains readable. */
.sidebar-expanded-content h1,
.sidebar-expanded-content h1 * {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: inline-block !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Main content buttons: lighter weight and icon spacing (scoreboard only) */
main.column .button,
main.column button {
  font-weight: 300 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
main.column .button .btn-icon,
main.column button .btn-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.45rem;
  flex-shrink: 0;
}

/* Use DashLauncher global toggle styles from ./assets/css/style.css
   Scoreboard keeps only a lightweight label modifier so the shared
   `.toggle-switch` / `.toggle-slider` patterns from `style.css` are used. */
.switch-label {
  color: var(--secondary);
  font-weight: 800 !important; /* make toggle label bold to match total score */
  font-size: 0.9rem;
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* Pill container for label + toggle */
.labels-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: var(--header-bg, rgba(0, 29, 53, 0.7));
  border: 1px solid var(--header-border, rgba(255, 255, 255, 0.08));
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
}
.labels-pill .switch-label { margin-left: 0; }

/* First-load placeholder in main area */
#main-placeholder {
  /* fill the chart card fully */
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.9);
  margin: 0;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
#main-placeholder .placeholder-icon {
  opacity: 0.95;
}

/* Hover hint: subtle overlay when hovering the upload area to indicate drop target */
#chart-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

/* Main placeholder uses a layered background: svg dashed rounded border on top,
   and an optional subtle gradient underneath so hover/drag states can brighten
   without replacing the dashed border. The SVG stroke is encoded with a
   light secondary color to avoid relying on currentColor which may be altered
   by other rules in the build output. */
#main-placeholder {
  width: 100%;
  height: 100%;
  pointer-events: auto;
  border: none;
  border-radius: 12px;
  position: relative; /* allow highlight overlay */
  box-sizing: border-box;
  /* svg uses stroke=%23FFD791 (URL-encoded #FFD791) for consistent visible color */
  /* small white dashed stroke at 50% opacity */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' preserveAspectRatio='none'><rect vector-effect='non-scaling-stroke' x='2' y='2' width='96' height='56' rx='1' ry='1' fill='none' stroke='%23FFFFFF' stroke-opacity='0.5' stroke-width='3' stroke-dasharray='6 6' stroke-linecap='butt'/></svg>"), linear-gradient(180deg, rgba(255,255,255,0.00), rgba(255,255,255,0.00));
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 100% 100%, 100% 100%;
}

/* Overlay highlight that follows the dashed SVG border. Uses same rect path
   but with an accent stroke; appears on hover/drag/selected. Pointer-events
   remain disabled so overlay doesn't block interactions. */
#main-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  /* white accent stroke matching the dashed border; match stroke-width to main svg */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' preserveAspectRatio='none'><rect vector-effect='non-scaling-stroke' x='2' y='2' width='96' height='56' rx='1' ry='1' fill='none' stroke='%23FFFFFF' stroke-opacity='0.9' stroke-width='3' stroke-dasharray='6 6' stroke-linecap='butt'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  /* shrink slightly so the overlay stroke does not render outside the dotted border */
  background-size: calc(100% - 6px) calc(100% - 6px);
  opacity: 0;
  transform: scale(1);
  transition: opacity 160ms ease, transform 200ms cubic-bezier(.2,.9,.25,1);
}

/* Show highlight only when placeholder has .highlight class (programmatic/selected) */
#main-placeholder.highlight::after {
  opacity: 1;
  transform: scale(1.01);
}

/* Hover: brighten the subtle gradient layer only; the svg (first layer) remains visible */
#chart-placeholder:hover #main-placeholder,
#main-placeholder:hover {
  transition: background 180ms ease, box-shadow 220ms ease, color 160ms ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' preserveAspectRatio='none'><rect vector-effect='non-scaling-stroke' x='2' y='2' width='96' height='56' rx='1' ry='1' fill='none' stroke='%23FFFFFF' stroke-opacity='0.5' stroke-width='3' stroke-dasharray='6 6' stroke-linecap='butt'/></svg>"), linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

/* Dragover state — subtle, do not scale or translate the placeholder; slightly stronger gradient */
#main-placeholder.dragover {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' preserveAspectRatio='none'><rect vector-effect='non-scaling-stroke' x='2' y='2' width='96' height='56' rx='1' ry='1' fill='none' stroke='%23FFFFFF' stroke-opacity='0.5' stroke-width='3' stroke-dasharray='6 6' stroke-linecap='butt'/></svg>"), linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}

/* Manual load button styling inside placeholder */
#manual-load-button { margin-top: 0.5rem; }
#manual-load-button .btn-icon { margin-right: 0.6rem; }
.sidebar-collapsed-content .vertical-text {
  /* vertical label should use same weight/style but scaled for vertical layout */
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--primary);
  letter-spacing: 0.02em;
  text-shadow: none;
  transition: color .12s ease, font-size .12s ease, margin .12s ease;
}

/* Sidebar-wide typography: use DASHLauncher Panton family and consistent weights
   Headings: extra-bold; body text and controls: medium weight for legibility. */
#sidebar, #sidebar .card {
  font-weight: 300;
  color: var(--color-text, #E6EDF3);
}
#sidebar .card, #sidebar .card * , #objectives-list li, #objectives-list li * {
  font-weight: 300;
  letter-spacing: 0.02em;
}
#sidebar h1, .sidebar-expanded-content h1 { font-weight: 800; color: var(--primary); }

/* Slightly stronger glow when collapsed (makes vertical text pop) */
#sidebar.sidebar-hidden .sidebar-collapsed-content .vertical-text {
  text-shadow: 0 2px 6px rgba(0,0,0,0.55);
}

/* Reduce internal card padding when collapsed so icon area matches expanded header */
#sidebar.sidebar-hidden .card {
  /* halve the previous collapsed card vertical padding to free space */
  padding: 0.18rem 0.5rem !important;
}
#objectives-list li {
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary, #ffd791);
  background: rgba(0, 29, 53, 0.651);
  margin-bottom: 0.25rem;
  /* Reduced height: halve line-height/padding/min-height to make items more compact */
  line-height: 1.1;
  padding: 0.28rem 0.5rem;
  border-radius: var(--card-radius, 12px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  transition: background 0.15s, border 0.15s;
  word-break: break-all;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  min-height: 1.3rem;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#objectives-list li.selected, #objectives-list li:hover {
  background: rgba(0,29,53,0.85);
  border-color: var(--accent, #00b4d8);
  color: #fffbe0;
  z-index: 2;
}
#objectives-list li {
  font-size: 1rem;
  font-weight: 500;
  color: #ffe9b0;
  background: rgba(255,255,255,0.04);
  margin-bottom: 0.25rem;
  /* Compact variant for alternate theme: match reduced sizing */
  line-height: 1.1;
  padding: 0.28rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255,255,255,0.10);
  transition: background 0.15s, border 0.15s;
  word-break: break-all;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  min-height: 1.3rem;
  box-sizing: border-box;
}
#objectives-list li.selected, #objectives-list li:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--secondary, #ffd791);
  color: #fffbe0;
}
/* All player scores external list */
.external-all-scores-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-left: auto;
  margin-right: 0;
  padding-top: 0.25em;
  padding-bottom: 0.25em;
  align-items: center;
  justify-content: flex-end;
  min-height: 2.2em;
}
/* External score label for hidden labels mode */
.external-score-label {
  display: inline-block;
  margin-left: auto;
  margin-right: 0;
  padding: 0.25em 0.75em;
  background: var(--secondary, #ffd791);
  color: #222;
  font-weight: 300;
  font-size: 1.1em;
  border-radius: 1em;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  transition: opacity 0.2s, transform 0.2s;
  position: relative;
  right: 0;
  top: 0;
  z-index: 2;
}

/* Animate external score labels when labels are toggled on/off */
.external-score-label { transition: opacity 260ms cubic-bezier(.2,.9,.25,1), transform 260ms cubic-bezier(.2,.9,.25,1); }
#chart-container.labels-hidden .external-score-label { opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none; }
#chart-container.labels-visible .external-score-label { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* Sidebar toggle button animation */
.sidebar-toggle-animated {
  transition: background 0.2s, box-shadow 0.2s, transform 0.25s cubic-bezier(.4,2,.6,1);
}
.sidebar-toggle-animated.sidebar-hidden {
  background: var(--bg3, #001d35) !important;
  box-shadow: none !important;
  transform: translateX(8px) scale(0.95);
}
.sidebar-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
@import url('/assets/css/style.css');
/* Font faces and font-family utilities are provided by global style.css; remove local font loading to avoid duplication */
/* Ensure the overlay does not block interactions with the scoreboard card */
#page-overlay { pointer-events: none; z-index: -1; }
/* Subtle bounce animation for sidebar show/hide symmetry */
.sidebar.sidebar-bounce {
  animation: sidebar-bounce 420ms cubic-bezier(.2,.9,.25,1);
}
@keyframes sidebar-bounce {
  0% { transform: translateX(0); }
  30% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}
/* Utility classes for Scoreboard Reader if needed */
.text-fluid { font-size: clamp(0.9rem, 1.2vw, 1rem); }
.icon-fluid { width: var(--scoreboard-logo-size); height: auto !important; }

/* Objectives list entrance animation */
.objective-item {
  opacity: 0;
  transform: translateX(-8px) scale(0.995);
  animation-name: objective-in;
  animation-duration: 180ms;
  animation-timing-function: cubic-bezier(.2,.9,.25,1);
  animation-fill-mode: forwards;
  animation-play-state: paused;
}
.objective-item.run {
  animation-play-state: running;
}
.objective-item:hover {
  transform: translateX(0) scale(1.0);
}
@keyframes objective-in {
  from { opacity: 0; transform: translateX(-8px) scale(0.995); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Card and placeholder animations for file-load -> select -> graph transitions */
.select-prompt-animate {
  animation: select-pulse 1100ms cubic-bezier(.2,.9,.25,1) forwards;
}
@keyframes select-pulse {
  0% { transform: translateY(0) scale(1); box-shadow: none; }
  20% { transform: translateY(-6px) scale(1.01); box-shadow: 0 14px 40px rgba(0,180,216,0.06); }
  60% { transform: translateY(0) scale(1); box-shadow: 0 6px 18px rgba(0,0,0,0.04); }
  100% { transform: translateY(0) scale(1); box-shadow: none; }
}

/* Brief spotlight on the first objective list item when file loads */
.objective-highlight { animation: objective-highlight 720ms cubic-bezier(.2,.9,.25,1) forwards; }
@keyframes objective-highlight {
  0% { transform: scale(1); background-color: rgba(255,255,255,0.02); }
  30% { transform: scale(1.03); background-color: rgba(255,255,255,0.06); }
  100% { transform: scale(1); background-color: transparent; }
}

/* Transition when a sidebar item is selected and the graph should appear */
.transition-to-graph #main-placeholder { opacity: 0; transform: translateY(6px) scale(0.995); transition: opacity 280ms ease, transform 280ms ease; pointer-events: none; }
.transition-to-graph #score-canvas { opacity: 0; transform: scale(0.985); transition: opacity 420ms ease 160ms, transform 420ms ease 160ms; }
.transition-to-graph .card { will-change: transform, box-shadow; }
.card.card-transitioning { transform: translateY(-4px); }

/* Ensure canvas fades in cleanly when chart is created */
#score-canvas { transition: opacity 420ms ease, transform 420ms ease; opacity: 1; }

/* Animated background styles (moved from scoreboard.html) */
.dl-animated-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
}
.dl-animated-bg .gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(25deg, #ffffff 1%, #00e1ff 3%, #122ecf 30%, #000b1b 65%);
}
.dl-animated-bg .hex {
  position: absolute;
  inset: 0;
  --hex-width: 120px;
  --hex-height: calc(var(--hex-width) * 1.732);
  --hexagon-svg: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 86.6 150"><polygon fill="none" stroke="rgba(0, 212, 255, 0.15)" stroke-width="2" points="43.3,25 86.6,50 86.6,100 43.3,125 0,100 0,50" /></svg>');
  background-image: var(--hexagon-svg), var(--hexagon-svg);
  background-size: var(--hex-width) var(--hex-height);
  background-position: 0 0, calc(var(--hex-width) / 2) calc(var(--hex-height) / 2);
  opacity: 0.2;
}
.dl-animated-bg .stars { position: absolute; inset: 0; }
.dl-animated-bg #dl-stars-back { z-index: 2; }
.dl-animated-bg #dl-stars-mid  { z-index: 3; }
.dl-animated-bg #dl-stars-fore { z-index: 4; }
.dl-animated-bg .star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  animation: dl-twinkle 4s infinite alternate, dl-drift var(--driftDuration, 150s) linear infinite;
  filter: drop-shadow(0 0 var(--star-glow-1, 2px) var(--star-color, rgba(255,255,255,0.6)))
          drop-shadow(0 0 var(--star-glow-2, 4px) var(--star-color, rgba(255,255,255,0.3)));
  will-change: transform, opacity, filter;
}
@keyframes dl-twinkle { 0% { opacity: 0.3; } 100% { opacity: 1; } }
@keyframes dl-drift { from { transform: translate(0,0); } to { transform: translate(var(--sx, 80px), var(--sy, -37px)); } }
.dl-animated-bg .streaks { position: absolute; inset: 0; z-index: 5; }
.dl-animated-bg .streak {
  position: absolute;
  width: 10px;
  height: 270px;
  background: linear-gradient(to bottom, var(--streak-color, rgba(255, 255, 255, 0.8)) 0%, rgba(255, 255, 255, 0) 70%);
  rotate: -120deg;
  filter: drop-shadow(0 0 var(--glow-1, 6px) var(--streak-color, rgba(255,255,255,0.6)))
          drop-shadow(0 0 var(--glow-2, 12px) var(--streak-color, rgba(255,255,255,0.3)));
  will-change: transform, opacity, filter;
}
@keyframes dl-shoot { 0% { opacity: 0; transform: translate(0,0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--tx, 120vw), var(--ty, -106vw)); } }

/* Toggle icon styles and animation (moved from scoreboard.html) */
/* Toggle button base - small square icon-only button */
#toggle-sidebar-button {
  --toggle-size: 36px;
  position: relative;
  width: var(--toggle-size);
  height: var(--toggle-size);
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--secondary, #ffd791);
  transition: color .18s ease, transform .18s ease, opacity .18s ease;
  cursor: pointer;
}
#toggle-sidebar-button:focus { outline: none; box-shadow: none; }
#toggle-sidebar-button svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform .2s ease, opacity .18s ease, fill .18s ease; }
/* Base shapes stroke color */
#toggle-sidebar-button svg rect { stroke: currentColor; stroke-width: 1.6; fill: none; }
#toggle-sidebar-button svg line { stroke: currentColor; }
#toggle-sidebar-button svg path { stroke: currentColor; }
/* Stack icons and crossfade; show-icon is arrow-right, hide-icon is arrow-left */
#sidebar-hide-icon { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
#sidebar-show-icon { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.9); }
/* Collapsed state: fill box with primary and show the show-icon (arrow pointing right) */
#toggle-sidebar-button.sidebar-hidden {
  background: transparent;
  color: var(--secondary, #ffd791);
  box-shadow: none;
  transform: none;
}
#toggle-sidebar-button.sidebar-hidden #sidebar-hide-icon { opacity: 0; transform: translate(-50%, -50%) rotate(-20deg) scale(0.9); }
#toggle-sidebar-button.sidebar-hidden #sidebar-show-icon { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
/* When filled, ensure the box rect fills and strokes/arrows are visible */
#toggle-sidebar-button.sidebar-hidden svg rect { fill: none; stroke: currentColor; }
#toggle-sidebar-button.sidebar-hidden svg path, #toggle-sidebar-button.sidebar-hidden svg line { stroke: currentColor; }

/* Ensure the non-collapsed state shows the box outline but transparent fill */
#toggle-sidebar-button svg rect { fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Animate arrow rotation: rotate paths during crossfade for a turning effect */
/* Ensure transforms rotate around the path center and use fill-box for consistent results */
#toggle-sidebar-button svg path, #toggle-sidebar-button svg line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .22s cubic-bezier(.2,.9,.2,1), opacity .18s ease;
}
/* Initial states: hide-icon visible, show-icon hidden and rotated away */
#sidebar-hide-icon { opacity: 1; }
#sidebar-hide-icon path { transform: rotate(0deg) scale(1); }
#sidebar-show-icon { opacity: 0; }
#sidebar-show-icon path { transform: rotate(180deg) scale(0.9); }
/* When collapsed, crossfade icons and rotate arrows to point opposite direction */
#toggle-sidebar-button.sidebar-hidden #sidebar-hide-icon { opacity: 0; }
#toggle-sidebar-button.sidebar-hidden #sidebar-hide-icon path { transform: rotate(180deg) scale(0.9); }
#toggle-sidebar-button.sidebar-hidden #sidebar-show-icon { opacity: 1; }
#toggle-sidebar-button.sidebar-hidden #sidebar-show-icon path { transform: rotate(0deg) scale(1); }

/* Compact buttons in Scoreboard main area only: halve vertical height */
main.column .button,
main.column button {
  /* Reduce vertical padding to make buttons ~50% of previous height */
  padding-top: 0.28rem !important;
  padding-bottom: 0.28rem !important;
  /* Keep horizontal padding for touch targets */
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1 !important;
}

/* Override: ensure the dotted placeholder sits above the canvas and accepts pointer events */
#chart-placeholder { z-index: 60 !important; pointer-events: auto !important; }
#chart-placeholder[hidden] { pointer-events: none !important; }
#main-placeholder { z-index: 61 !important; pointer-events: auto !important; }

/* Make manual button clickable when layered */
#manual-load-button { z-index: 62; pointer-events: auto; }

/* -------------------------------------------------------------------------
   DASHLauncher font-weight overrides for Scoreboard Reader
   - Page headers / site title: extrabold
   - Authors: extrabold
   - Objectives header: thin (Panton-Light) but visually prominent via color
   - Search box: thin
   - Objectives list items: thin
   - Export dialog: headings extrabold, body controls thin
   These selectors are intentionally specific to avoid affecting other pages.
   ------------------------------------------------------------------------- */

/* Page & Sidebar headers */
.sidebar-expanded-content h1,
.sidebar-collapsed-content .vertical-text,
.page-title,
header .app-title {
  font-weight: 800 !important; /* matches .font-extrabold (800) in style.css */
  font-size: 1.875rem; /* text-3xl */
  line-height: 2.25rem; /* text-3xl line-height */
  letter-spacing: 0.01em;
  color: var(--primary) !important;
}

/* Authors (footer) */
#sidebar .sidebar-expanded-content footer p,
#sidebar footer p {
  font-weight: 800 !important; /* extrabold */
  font-size: 0.75rem; /* text-xs */
  line-height: 1rem;
  color: var(--secondary) !important;
}

/* Objectives header: thin variant but kept readable via color */
label[for="search-box"],
.sidebar-expanded-content > div label[for="search-box"],
#sidebar .sidebar-expanded-content label[for="search-box"] {
  font-weight: 800 !important; /* ensure Objectives label matches total score */
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  color: var(--secondary) !important;
  letter-spacing: 0.01em;
}

/* Search box input: thin */
#search-box::-moz-placeholder {
  font-weight: 300 !important;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  color: var(--color-text) !important;
}
#search-box,
#search-box::placeholder {
  font-weight: 300 !important;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  color: var(--color-text) !important;
}

/* Objectives list items: thin */
#objectives-list li,
#objectives-list li * {
  font-weight: 300 !important;
  font-size: 1rem; /* text-base */
  line-height: 1.5rem;
  color: var(--color-text) !important;
}


/* --- Export Modal: aligned with shared dashboard modal styles --- */
#export-dialog {
  z-index: 1000;
}

#export-dialog .scoreboard-export-card {
  width: min(100%, 68rem);
  max-height: calc(100vh - 2rem);
  padding: 0 !important;
  overflow: hidden;
  display: block;
}

#export-dialog .export-modal-left {
  min-width: 0;
  min-height: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: auto;
}

#export-dialog .scoreboard-export-header {
  margin-bottom: 0;
}

#export-dialog .scoreboard-export-copy {
  max-width: 34rem;
}

#export-dialog .scoreboard-export-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1rem;
  min-height: 0;
  padding-right: 0.125rem;
  align-items: start;
}

#export-dialog .scoreboard-export-form > .export-type-row,
#export-dialog .scoreboard-export-form > .scoreboard-export-mode,
#export-dialog .scoreboard-export-form > .export-actions {
  grid-column: 1 / -1;
}

#export-dialog .scoreboard-export-panel {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.12);
}

#export-dialog .export-modal-section {
  margin: 0;
}

#export-dialog .export-modal-section-title {
  margin: 0 0 0.5rem;
  color: var(--secondary);
  font-size: 0.95rem;
  font-weight: 700;
}

#export-dialog .scoreboard-export-panel-header {
  margin-bottom: 0.75rem;
}

#export-dialog .scoreboard-export-panel-note {
  color: #9ca3af;
}

#export-dialog .scoreboard-export-resolution-feedback {
  margin-top: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgb(209 213 219);
  font-size: 0.84rem;
  line-height: 1.45;
}

#export-dialog .scoreboard-export-resolution-feedback.is-warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
}

#export-dialog .scoreboard-export-preset-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#export-dialog .scoreboard-export-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--header-border);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

#export-dialog .scoreboard-export-option:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

#export-dialog .scoreboard-export-option input {
  accent-color: var(--accent);
}

#export-dialog .scoreboard-export-option--stacked {
  margin-bottom: 0;
}

#export-dialog .scoreboard-export-options-row {
  flex-wrap: wrap;
}

#export-dialog .scoreboard-export-field {
  margin: 0;
}

#export-dialog .scoreboard-export-field--inline {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(209 213 219);
}

#export-dialog .scoreboard-export-number,
#export-dialog .scoreboard-export-select {
  width: 100%;
}

#export-dialog .scoreboard-export-dimensions-row,
#export-dialog .scoreboard-export-options-row,
#export-dialog .export-actions {
  gap: 0.75rem;
}

#export-dialog .scoreboard-export-lock {
  height: 2.5rem;
  min-width: 2.5rem;
  border-color: var(--header-border);
  background: rgba(0, 0, 0, 0.14);
  color: var(--secondary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#export-dialog .scoreboard-export-lock:hover {
  background: rgba(255, 255, 255, 0.05);
}

#export-dialog .scoreboard-export-lock svg {
  width: 1rem;
  height: 1rem;
  overflow: visible;
}

#export-dialog .scoreboard-export-lock.locked {
  border-color: rgba(0, 180, 216, 0.45);
  background: rgba(0, 180, 216, 0.12);
  color: #dff7ff;
}

#export-dialog .scoreboard-export-mode {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#export-dialog .export-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

#export-dialog .export-actions .button {
  min-width: 8.5rem;
}

@media (max-width: 900px) {
  #export-dialog .scoreboard-export-card {
    width: min(100%, 42rem);
    max-height: calc(100vh - 1rem);
  }

  #export-dialog .scoreboard-export-form {
    grid-template-columns: minmax(0, 1fr);
  }

  #export-dialog .scoreboard-export-preset-grid {
    grid-template-columns: 1fr;
  }
}

