/* ==========================================================================
   SASH demo (SASH International 2027)
   Builds on tokens.css, app.css and admin.css. Light, Dark and System themes
   come from the same tokens; the demo keeps its own preference.
   ========================================================================== */

/* Shell additions ---------------------------------------------------------- */
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.demo-badge .dot, .btn-live .dot, .toggle-btn.rec .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.demo-badge .dot { background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: demo-pulse 2.4s infinite; }
@keyframes demo-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.org-chip { display: flex; align-items: center; gap: 10px; margin: 0 var(--space-4) var(--space-3); padding: 10px 12px; border-radius: var(--radius-tile); background: var(--bg-sunken); font-size: var(--text-sm); line-height: 1.3; }
.org-mark { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--surface-inverse); color: var(--accent); font-family: var(--font-display); font-size: 1.05rem; }
.sidebar-note { margin: var(--space-3) var(--space-3) 0; padding: 12px; border-radius: var(--radius-tile); background: var(--accent-softer); color: var(--text-muted); font-size: var(--text-sm); line-height: 1.45; }

.role-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); }
.role-switch-label { padding: 0 8px 0 10px; font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.role-switch button { border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: var(--text-sm); font-weight: 600; padding: 7px 14px; border-radius: var(--radius-pill); cursor: pointer; }
.role-switch button[aria-pressed="true"] { background: var(--accent-gradient); color: var(--accent-on); }
.role-switch button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.demo-foot { margin-top: var(--space-12); padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--text-muted); font-size: var(--text-sm); }

/* Entry and closed pages */
.demo-plain { background: var(--bg); }
.demo-gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 32px 16px; }
.demo-gate-logo .logo { width: 220px; height: auto; }
.demo-gate-card { width: 100%; max-width: 460px; padding: var(--space-8); }

.switch-card { max-width: 620px; margin: var(--space-8) auto; text-align: center; }
.switch-card .switch-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; }
.switch-card form { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.theme-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-choice { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-control); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
.theme-choice[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plain-list li { display: flex; gap: 8px; align-items: flex-start; }
.plain-list .icon { color: var(--accent-ink); flex: none; margin-top: 3px; }

.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-control); background: var(--surface-3); }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: var(--text-sm); font-weight: 600; padding: 8px 14px; border-radius: 9px; cursor: pointer; text-decoration: none; }
.seg [aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.badge-live { background: color-mix(in srgb, var(--live) 14%, transparent); color: color-mix(in srgb, var(--live) 78%, var(--text)); }
.select-sm { min-height: 34px; padding-top: 4px; padding-bottom: 4px; font-size: var(--text-sm); }

/* Portraits: real photo once uploaded, otherwise a monogram */
.portrait { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; overflow: hidden; font-family: var(--font-display); font-weight: 500; color: #F8F5EF; }
.monogram.tone-0 { background: linear-gradient(140deg, #3A3436, #1F1E20); }
.monogram.tone-1 { background: linear-gradient(140deg, #6D4B5A, #3B2A31); }
.monogram.tone-2 { background: linear-gradient(140deg, #A8888F, #6D4B5A); }
.monogram.tone-3 { background: linear-gradient(140deg, #8C7349, #4A3B22); }
.monogram { color: #F3E6CC; }
.avatar-xs { width: 30px; height: 30px; font-size: .8rem; }
.avatar-sm { width: 38px; height: 38px; font-size: .95rem; }
.avatar-md { width: 48px; height: 48px; font-size: 1.1rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.6rem; }
.portrait-fill { width: 100%; height: 100%; border-radius: 0; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: .04em; }

/* Dashboard ------------------------------------------------------------------ */
.countdown-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; border-radius: var(--radius-card);
  background: #0B0B0C; color: #F8F5EF; box-shadow: var(--shadow-2);
}
.countdown-card .label-caps { color: #D4B483; }
.countdown-card h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 6px; }
.countdown-card p { color: #BEB6AA; margin-top: 4px; }
.countdown-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.countdown-line line { stroke: #D4B483; stroke-width: .25; opacity: .5; vector-effect: non-scaling-stroke; }
.countdown { position: relative; display: flex; gap: 10px; }
.countdown div { min-width: 76px; padding: 12px 10px; text-align: center; border-radius: 14px; background: rgba(248, 245, 239, .06); border: 1px solid rgba(212, 180, 131, .28); }
.countdown span { display: block; font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: #E6CFA6; font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #BEB6AA; }

.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-5); align-items: start; }
.dash-wide { grid-column: span 3; }
.lead-num { font-family: var(--font-display); font-size: 1.5rem; }
.funnel { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 30px; gap: 10px; align-items: center; font-size: var(--text-sm); }
.funnel-bar { height: 10px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.funnel-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent-gradient); }
.funnel-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.date-chip { flex: none; width: 44px; padding: 5px 0; text-align: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); line-height: 1.1; }
.date-chip span { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.date-chip strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task-list li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px var(--space-6); border-bottom: 1px solid var(--line); font-size: var(--text-md); }
.task-list li:last-child { border-bottom: 0; }
.task-list li.is-done span:first-of-type { color: var(--text-faint); text-decoration: line-through; }
.task-meta { display: flex; gap: 6px; align-items: center; flex: none; }
.money-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.money-row strong { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; }

/* Recruitment ---------------------------------------------------------------- */
.kanban { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(236px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.kanban-col { display: flex; flex-direction: column; min-height: 360px; border-radius: var(--radius-card); background: var(--bg-sunken); border: 1px solid var(--line); scroll-snap-align: start; }
.kanban-col header { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 10px; }
.kanban-col h2 { font-size: var(--text-md); font-weight: 700; }
.kanban-n { min-width: 26px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface); font-size: var(--text-sm); font-weight: 700; text-align: center; }
.kanban-list { list-style: none; margin: 0; padding: 4px 10px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 80px; }
.cand-card { padding: 10px; border-radius: var(--radius-tile); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); cursor: grab; }
.cand-card.is-ghost { opacity: .4; }
.cand-open { display: flex; gap: 10px; align-items: center; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.cand-main { display: flex; flex-direction: column; min-width: 0; }
.cand-main strong { font-size: var(--text-md); }
.cand-main span { font-size: var(--text-sm); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.chip-sm { font-size: 11px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text-muted); }
.fit { font-size: 11px; font-weight: 700; color: var(--accent-ink); }
.sortable-table th button { border: 0; background: none; padding: 0; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; }
.sortable-table th button::after { content: "↕"; margin-left: 6px; opacity: .35; }
.sortable-table th button[data-dir="asc"]::after { content: "↑"; opacity: 1; }
.sortable-table th button[data-dir="desc"]::after { content: "↓"; opacity: 1; }

.drawer { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(480px, 100vw); max-width: 100vw; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow-3); }
.drawer::backdrop { background: var(--scrim); }
.drawer-body { padding: var(--space-6); }
.cand-panel-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 20px; }
.cand-panel-head h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.panel-h { font-size: var(--text-md); font-weight: 700; margin: 24px 0 10px; }
.app-preview { padding: 14px; border-radius: var(--radius-tile); background: var(--bg-sunken); font-size: var(--text-md); }
.app-preview p + p { margin-top: 10px; }
.doc-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.doc-list li { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-sm); padding: 3px 9px; border-radius: var(--radius-pill); background: var(--surface); }
.doc-list .icon { color: var(--success); }
.note-form { display: grid; gap: 8px; margin-top: 12px; justify-items: start; }
.note-form textarea { width: 100%; }

/* Contestants ---------------------------------------------------------------- */
.contestant-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-5); }
.contestant-card { display: block; overflow: hidden; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: inherit; text-decoration: none; transition: transform var(--motion-fast) var(--ease), box-shadow var(--motion-fast); }
.contestant-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.cc-photo { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-3); }
.cc-photo .portrait { position: absolute; inset: 0; }
.cc-num { position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(11, 11, 12, .72); color: #F8F5EF; font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; }
.cc-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; }
.cc-body strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.cc-body .muted { font-size: var(--text-sm); }
.cc-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 8px; color: var(--text-muted); }

.profile-hero { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); overflow: hidden; }
.profile-photo { position: relative; aspect-ratio: 4 / 5; background: var(--surface-3); }
.profile-photo .portrait { position: absolute; inset: 0; }
.profile-info { padding: var(--space-8); }
.profile-info .page-title { margin: 6px 0 10px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; margin: 22px 0 0; }
.fact-grid dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.fact-grid dd { margin: 2px 0 0; font-weight: 500; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 11px var(--space-6); border-bottom: 1px solid var(--line); font-size: var(--text-md); }
.checklist li:last-child { border-bottom: 0; }
.checklist li:not(.is-done) { color: var(--text-muted); }
.check-dot { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.is-done > .check-dot { border-color: transparent; background: var(--success-soft); color: var(--success); }

/* Judge scoring --------------------------------------------------------------- */
.judge-progress { display: flex; align-items: baseline; gap: 8px; padding: 12px 18px; border-radius: var(--radius-tile); background: var(--surface); border: 1px solid var(--line); }
.judge-progress strong { font-family: var(--font-display); font-size: 2rem; font-weight: 500; }
.judge-progress span { color: var(--text-muted); font-size: var(--text-sm); }
.round-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: var(--space-5); }
.round-step { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-tile); border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; }
.round-step:hover { border-color: var(--line-strong); }
.round-step[aria-current="page"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.round-step-name { font-weight: 700; font-size: var(--text-md); }
.round-step-sub { font-size: var(--text-xs); color: var(--text-muted); }
.round-step.is-live .round-step-sub { color: var(--live); font-weight: 600; }
.carousel { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: var(--space-4); scroll-snap-type: x proximity; }
.carousel-item { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; padding: 8px 0 6px; border-radius: var(--radius-tile); border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; scroll-snap-align: center; }
.carousel-item[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.ci-num { font-size: var(--text-xs); font-weight: 700; }
.ci-state { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; }
.carousel-item.is-done .ci-state { background: var(--success); color: #fff; }
.carousel-item.is-done .ci-state .icon { width: 11px; height: 11px; }
.carousel-item.is-draft .ci-state { background: var(--warning); }
.carousel-item.is-draft .ci-state::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.scorecard { overflow: hidden; }
.scorecard-head { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: var(--space-6); border-bottom: 1px solid var(--line); }
.scorecard-photo { position: relative; width: 112px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface-3); }
.scorecard-photo .portrait { position: absolute; inset: 0; }
.scorecard-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; margin: 4px 0 2px; }
.scorecard-head .badge { margin-top: 8px; }
.scorecard-total { text-align: right; }
.scorecard-total strong { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.criteria { padding: 0 var(--space-6); }
.criterion { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.criterion-info { display: flex; flex-direction: column; gap: 2px; }
.criterion-control { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.score-pills { display: flex; gap: 4px; }
.score-pill { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: var(--text-md); cursor: pointer; font-variant-numeric: tabular-nums; }
.score-pill:hover:not(:disabled) { border-color: var(--accent); }
.score-pill[aria-pressed="true"] { background: var(--accent-gradient); border-color: transparent; color: var(--accent-on); }
.score-pill:disabled { cursor: default; opacity: .65; }
.score-pill[aria-pressed="true"]:disabled { opacity: 1; }
.score-fine { display: flex; align-items: center; gap: 4px; }
.score-step { width: 30px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.score-step:disabled { opacity: .5; cursor: default; }
.score-value { min-width: 54px; text-align: center; font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.scorecard-notes { padding: var(--space-5) var(--space-6) 0; margin: 0; }
.scorecard-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: var(--space-5) var(--space-6); }

/* Tabulation ------------------------------------------------------------------ */
.round-bar { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(180px, 1fr) auto; gap: 24px; align-items: center; padding: var(--space-5) var(--space-6); }
.round-progress .progress { margin-top: 8px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-left: 4px; vertical-align: middle; }
.table th.num, .table td.num { text-align: center; font-variant-numeric: tabular-nums; }
.matrix th, .matrix td { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.cell-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); vertical-align: middle; }
.cell-dot.is-done { background: var(--success-soft); color: var(--success); border-color: transparent; }
.cell-dot.is-draft { background: var(--warning-soft); border-color: var(--warning); }
.return-form { display: block; margin-top: 2px; }
.standings .rank { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); font-weight: 700; }
.standings tr.is-top .rank { background: var(--accent-gradient); color: var(--accent-on); }
.standings .score { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.standings td { vertical-align: top; }
.card-detail { margin-top: 8px; }
.card-detail summary { cursor: pointer; font-size: var(--text-sm); color: var(--accent-ink); font-weight: 600; }
.table.mini { margin-top: 8px; font-size: var(--text-sm); }
.table.mini th, .table.mini td { padding: 6px 8px; }

/* Setup ---------------------------------------------------------------------- */
.setup-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.weight-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 30px; text-align: right; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.weight-total { margin-top: 12px; text-align: right; }
.weight-total.is-bad { color: var(--danger); }
.setup-round .fieldset .check { margin-bottom: 10px; }
.tb-list { list-style: none; margin: 0; padding: 0; }
.tb-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px var(--space-6); border-bottom: 1px solid var(--line); }
.tb-list li:last-child { border-bottom: 0; }
.tb-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: var(--text-sm); }

/* Production ------------------------------------------------------------------ */
.sim-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px dashed var(--line-strong); color: var(--text-muted); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.btn-live { --btn-bg: #C21F26; --btn-fg: #fff; --btn-border: transparent; }
.btn-live .dot { background: #fff; animation: demo-blink 1.2s infinite; }
.btn-live-outline { --btn-bg: transparent; --btn-fg: var(--live); --btn-border: var(--live); font-weight: 700; }
.btn-live-outline:hover { --btn-bg: color-mix(in srgb, var(--live) 10%, transparent); }
@keyframes demo-blink { 50% { opacity: .35; } }
.prod { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-5); align-items: start; }
.prod-main { display: grid; gap: var(--space-4); min-width: 0; }
.monitors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px; }
.monitor { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0B0B0C; border: 3px solid #2A2F39; container-type: inline-size; }
.monitor-program { border-color: var(--live); }
.monitor-preview { border-color: #2F6B4F; }
.monitor-frame { position: absolute; inset: 0; }
.monitor-frame picture, .monitor-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.monitor-program.is-fading .monitor-frame:not([hidden]) { animation: demo-fade .35s ease; }
@keyframes demo-fade { 0% { opacity: 1; } 50% { opacity: .15; } 100% { opacity: 1; } }
.monitor-tag { position: absolute; z-index: 3; left: 10px; top: 10px; padding: 3px 9px; border-radius: 6px; background: #2F6B4F; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.monitor-tag.is-program { background: #C21F26; }
.tally { position: absolute; z-index: 3; right: 10px; top: 10px; padding: 3px 9px; border-radius: 6px; background: #C21F26; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; animation: demo-blink 1.6s infinite; }
.gfx { position: absolute; z-index: 2; color: #F8F5EF; font-family: var(--font-ui); }
.gfx small { display: block; font-size: max(9px, 1.9cqw); letter-spacing: .14em; text-transform: uppercase; color: #E6CFA6; }
.gfx strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: max(13px, 3.4cqw); line-height: 1.15; }
.gfx-lower { left: 5%; bottom: 8%; display: flex; align-items: stretch; gap: 0; background: rgba(11, 11, 12, .82); border-left: 4px solid #D4B483; }
.gfx-lower > span { padding: 1.4cqw 2.4cqw; }
.gfx-lower .gfx-num { display: grid; place-items: center; background: linear-gradient(135deg, #E6CFA6, #C9A46F); color: #0B0B0C; font-weight: 800; font-size: max(13px, 3cqw); }
.gfx-lower small { color: #BEB6AA; }
.gfx-sponsor { inset: 0; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(31, 30, 32, .94), rgba(11, 11, 12, .97)); }
.gfx-sponsor strong { font-size: max(18px, 5.4cqw); margin-top: 6px; }
.gfx-score { right: 5%; bottom: 8%; padding: 1.4cqw 2.4cqw; background: rgba(11, 11, 12, .82); border-top: 3px solid #D4B483; text-align: right; }
.gfx-countdown { right: 5%; top: 6%; padding: 1cqw 2cqw; background: rgba(11, 11, 12, .7); border-radius: 6px; text-align: center; }
.switcher { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: stretch; }
.cams { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cam { display: flex; flex-direction: column; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); color: inherit; font: inherit; cursor: pointer; text-align: left; }
.cam.is-preview { border-color: #2F6B4F; }
.cam.is-program { border-color: var(--live); }
.cam-img { display: block; aspect-ratio: 16 / 9; background: #0B0B0C; overflow: hidden; }
.cam-img img, .cam-img picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.cam-label { display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; overflow: hidden; }
.cam-n { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 5px; background: var(--surface-3); font-size: 10px; }
.take { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.take .btn { min-width: 92px; }
.gfx-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-control); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: var(--text-md); font-weight: 600; cursor: pointer; }
.toggle-btn[aria-pressed="true"] { background: var(--surface-inverse); color: var(--text-inverse); border-color: transparent; }
.toggle-btn.rec[aria-pressed="true"] { background: #C21F26; color: #fff; }
.toggle-btn.rec[aria-pressed="true"] .dot { animation: demo-blink 1.2s infinite; }
.running { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ros { position: relative; list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.ros li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: var(--text-sm); }
.ros li:hover { background: var(--accent-softer); }
.ros li.is-done { color: var(--text-faint); }
.ros li.is-current { background: color-mix(in srgb, var(--live) 9%, transparent); box-shadow: inset 3px 0 0 var(--live); }
.ros-time, .ros-dur { font-variant-numeric: tabular-nums; color: var(--text-muted); }
.ros-dur { text-align: right; }
.ros-main { display: flex; flex-direction: column; min-width: 0; }
.ros-main small { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-side { display: grid; gap: var(--space-4); }
.health { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.health small { display: block; font-size: var(--text-xs); color: var(--text-muted); }
.health strong { font-variant-numeric: tabular-nums; }

/* Sponsors ------------------------------------------------------------------- */
.tier { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; background: var(--surface-3); }
.tier-title, .tier-presenting { background: var(--accent-gradient); color: var(--accent-on); }
.tier-platinum { background: #E4E4E8; color: #2A2F39; }
.tier-gold { background: var(--accent-soft); color: var(--accent-ink); }
.deliverables { list-style: none; margin: 0; padding: 0; }
.deliverables li { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; align-items: center; padding: 10px var(--space-6); border-bottom: 1px solid var(--line); font-size: var(--text-md); }
.deliverables li:last-child { border-bottom: 0; }

/* Schedule ------------------------------------------------------------------- */
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: var(--space-4); font-size: var(--text-sm); color: var(--text-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.ev-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.ev-rehearsal { --ev: #3B5470; } .ev-interview { --ev: #6D4B5A; } .ev-photoshoot { --ev: #A8888F; } .ev-appearance { --ev: #2F6B4F; }
.ev-competition { --ev: #C9A46F; } .ev-training { --ev: #5F6B7A; } .ev-fitting { --ev: #8A5A12; } .ev-media { --ev: #7E6236; }
.ev-dot { background: var(--ev); }
.cal { overflow: hidden; }
.cal-head { padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 8px 10px; font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); }
.cal-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day:nth-child(7n + 7) { border-right: 0; }
.cal-day.is-pad { background: var(--bg-sunken); }
.cal-n { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); }
.cal-day.is-today .cal-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-gradient); color: var(--accent-on); }
.cal-ev { display: block; padding: 3px 6px; border-radius: 6px; font-size: 11px; line-height: 1.3; background: color-mix(in srgb, var(--ev) 16%, transparent); border-left: 3px solid var(--ev); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-item { align-items: center; }
.agenda-time { flex: none; width: 92px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Analytics ------------------------------------------------------------------ */
.line-chart { width: 100%; height: auto; display: block; }
.line-chart .grid-line { stroke: var(--line); stroke-width: 1; }
.line-chart .area { fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.line-chart .line { fill: none; stroke: var(--accent-ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.line-chart .pt { fill: var(--surface); stroke: var(--accent-ink); stroke-width: 2; }
.axis { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--text-muted); margin-top: 6px; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: var(--text-sm); }
.bar { height: 12px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent-gradient); }
.bar-stack > span { background: color-mix(in srgb, var(--accent) 35%, transparent); position: relative; }
.bar-stack > span > i { position: absolute; inset: 0 auto 0 0; background: var(--accent-ink); border-radius: inherit; }
.bar-n { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }
.key-paid { background: var(--accent-ink); }
.key-value { background: color-mix(in srgb, var(--accent) 35%, transparent); }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1280px) {
  .prod { grid-template-columns: minmax(0, 1fr); }
  .prod-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 1100px) {
  .kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-wide { grid-column: span 2; }
  .round-bar { grid-template-columns: minmax(0, 1fr); }
  .setup-grid { grid-template-columns: minmax(0, 1fr); }
  .cams { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .criterion { grid-template-columns: minmax(0, 1fr); }
  .criterion-control { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .role-switch-label { display: none; }
  .profile-hero { grid-template-columns: minmax(0, 1fr); }
  .profile-photo { aspect-ratio: 16 / 11; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monitors { grid-template-columns: minmax(0, 1fr); }
  .monitor-preview { display: none; }
  .switcher { grid-template-columns: minmax(0, 1fr); }
  .take { flex-direction: row; }
  .prod-side { grid-template-columns: minmax(0, 1fr); }
  .cal-day { min-height: 74px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-left: 0; background: var(--ev); }
  .cal-ev b { display: none; }
}
@media (max-width: 720px) {
  .kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-wide { grid-column: auto; }
  .countdown-card { padding: 22px 20px; }
  .countdown { width: 100%; }
  .countdown div { flex: 1; min-width: 0; }
  .countdown span { font-size: 1.6rem; }
  .scorecard-head { grid-template-columns: 80px minmax(0, 1fr); }
  .scorecard-photo { width: 80px; }
  .scorecard-total { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .scorecard-total strong { font-size: 2rem; }
  .score-pills { flex-wrap: wrap; }
  .score-pill { width: 34px; height: 38px; }
  .bar-row { grid-template-columns: 100px minmax(0, 1fr) auto; }
  .topbar .role-switch button { padding: 7px 10px; }
  .topbar .demo-badge { padding: 5px 10px; }
  .deliverables li { grid-template-columns: minmax(0, 1fr); }
  .cams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .topbar .demo-badge { font-size: 0; gap: 0; padding: 8px; }
  .topbar .demo-badge .dot { width: 10px; height: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-badge .dot, .btn-live .dot, .tally, .toggle-btn.rec .dot { animation: none; }
  .contestant-card { transition: none; }
}
.sortable-fallback { opacity: .95 !important; box-shadow: var(--shadow-3) !important; transform: rotate(1.5deg); }
.sortable-chosen { cursor: grabbing; }
.cand-panel .meta-list { margin-top: 16px; }

/* People's Choice ----------------------------------------------------------- */
.pc-actions { gap: 10px; align-items: center; }
.pc-jump { display: none; }
.pc-released {
  display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; margin-bottom: var(--space-5);
  padding: 18px 24px; border-radius: var(--radius-card); background: #0B0B0C; color: #F8F5EF;
}
.pc-released .label-caps { color: #D4B483; }
.pc-released strong { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.pc-released span:not(.label-caps) { color: #BEB6AA; }
.pc-released-btn { margin-left: auto; background: var(--accent-gradient); color: #0B0B0C; border-color: transparent; }
.pc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-5); margin-top: var(--space-5); align-items: start; }
.pc-rows { list-style: none; margin: 0; padding: 4px 0; }
.pc-row { display: grid; grid-template-columns: 26px 38px minmax(0, 1.2fr) minmax(0, 1fr) 84px; gap: 12px; align-items: center; padding: 10px var(--space-6); border-bottom: 1px solid var(--line); transition: background var(--motion-fast); }
.pc-row:last-child { border-bottom: 0; }
.pc-row.is-bumped { background: var(--accent-softer); }
.pc-rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: var(--text-xs); font-weight: 700; }
.pc-row:first-child .pc-rank { background: var(--accent-gradient); color: var(--accent-on); }
.pc-who { display: flex; flex-direction: column; min-width: 0; }
.pc-who strong { font-size: var(--text-md); }
.pc-mine { color: var(--accent-ink); font-weight: 600; }
.pc-bar span { transition: width .4s var(--ease); }
.pc-num { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.pc-held { list-style: none; margin: 0; padding: 0; }
.pc-held li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px var(--space-6); border-bottom: 1px solid var(--line); }
.pc-held li:last-child { border-bottom: 0; }
.pc-held-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-held-act { display: flex; align-items: center; gap: 8px; }
.pc-fan { position: sticky; top: 88px; }
.pc-fan-head { margin-bottom: 14px; }
.pc-fan-head p { margin-top: 4px; }

/* The phone is always drawn light, like a fan's own device. */
.phone { max-width: 340px; margin: 0 auto; padding: 10px; border-radius: 44px; background: #0B0B0C; box-shadow: var(--shadow-3, 0 30px 60px rgba(0,0,0,.25)); }
.phone-screen {
  --surface: #FFFFFF; --text: #0B0B0C; --text-muted: #6E6862; --line: #ECE5DA; --surface-3: #F1ECE3;
  height: 640px; border-radius: 35px; overflow: hidden; display: flex; flex-direction: column; background: #F8F5EF; color: #0B0B0C; color-scheme: light;
}
.phone-top { padding: 34px 20px 16px; background: #0B0B0C; color: #F8F5EF; display: flex; flex-direction: column; gap: 4px; }
.phone-top .label-caps { color: #D4B483; }
.phone-top strong { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; line-height: 1.1; }
.phone-sub { font-size: 12px; color: #BEB6AA; }
.phone-body { flex: 1; min-height: 0; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.phone-body .input { background: #FFFFFF; color: #0B0B0C; border-color: #E4DCCE; }
.phone-body .small.muted { color: #6E6862; }
.phone-lead { font-size: 15px; line-height: 1.5; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.code-boxes span { height: 46px; border-radius: 10px; background: #FFFFFF; border: 1px solid #E4DCCE; display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.phone-left { font-size: 13px; font-weight: 600; color: #7E6236; }
.phone-closed { padding: 10px 12px; border-radius: 12px; background: #F1ECE3; font-size: 13px; }
.phone-winner { padding: 14px; border-radius: 14px; background: #0B0B0C; color: #F8F5EF; }
.phone-winner .label-caps { color: #D4B483; }
.phone-winner strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin-top: 4px; }
.phone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.phone-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: #FFFFFF; border: 1px solid #ECE5DA; }
.phone-who { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.phone-who span { color: #6E6862; font-size: 12px; }
.phone-vote { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #D3C7B5; background: #FFFFFF; color: #0B0B0C; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.phone-vote.is-voted { background: linear-gradient(135deg, #E6CFA6, #C9A46F); border-color: transparent; }
.phone-vote:disabled { opacity: .5; cursor: not-allowed; }
.phone-vote:focus-visible { outline: 2px solid #7E6236; outline-offset: 2px; }
.phone-signout { align-self: center; color: #7E6236; font-size: 13px; }

/* Production: People's Choice graphic */
.gfx-pc { left: 50%; bottom: 8%; transform: translateX(-50%); min-width: 46%; padding: 1.6cqw 3cqw; text-align: center; background: rgba(11, 11, 12, .86); border-top: 3px solid #D4B483; }
.gfx-pc em { display: block; font-style: normal; font-size: max(9px, 1.7cqw); color: #BEB6AA; margin-top: 2px; }

@media (max-width: 1180px) {
  .pc-grid { grid-template-columns: minmax(0, 1fr); }
  .pc-fan { position: static; scroll-margin-top: 80px; }
  .pc-jump { display: inline-flex; }
}
@media (max-width: 680px) {
  .pc-row { grid-template-columns: 26px 38px minmax(0, 1fr) 72px; padding: 10px var(--space-4); }
  .pc-bar { display: none; }
  .pc-held li { padding: 14px var(--space-4); }
  .pc-released-btn { margin-left: 0; }
  .phone-screen { height: 600px; }
}
[data-theme="dark"] .phone { box-shadow: 0 0 0 1px rgba(248, 245, 239, .16), 0 30px 60px rgba(0, 0, 0, .5); }

/* Ticketing ----------------------------------------------------------------- */
.tix-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-5); margin-top: var(--space-5); align-items: start; }
.tix-events { display: grid; gap: 22px; }
.tix-event-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tix-row { grid-template-columns: 140px minmax(0, 1fr) 84px; }
.scan-count { font-size: var(--text-md); }
.scan-count strong { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; }
.scan-result { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius-tile); border: 1px solid var(--line); }
.scan-result strong { font-size: var(--text-md); }
.scan-result.is-ok { background: var(--success-soft); border-color: transparent; }
.scan-result.is-ok strong { color: var(--success); }
.scan-result.is-bad { background: var(--danger-soft); border-color: transparent; }
.scan-result.is-bad strong { color: var(--danger); }
.promo-row { display: flex; gap: 8px; }
.promo-row .input { flex: 1; min-width: 0; }

/* The fan-facing store is framed like a public web page. */
.store { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1); }
.store-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 24px; background: #0B0B0C; color: #F8F5EF; }
.store-brand { display: inline-flex; align-items: center; gap: 10px; }
.store-brand .org-mark { background: linear-gradient(135deg, #E6CFA6, #C9A46F); color: #0B0B0C; }
.store-bar-links { display: flex; gap: 18px; font-size: var(--text-sm); color: #BEB6AA; }
.store-bar-links .is-on { color: #E6CFA6; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; font-size: var(--text-sm); color: #8C867E; counter-reset: step; }
.steps li { counter-increment: step; display: inline-flex; align-items: center; gap: 6px; }
.steps li::before { content: counter(step); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1px solid #403E43; }
.steps li.done { color: #BEB6AA; }
.steps li.done::before { content: "✓"; background: #2A292C; border-color: transparent; color: #E6CFA6; }
.steps li.on { color: #F8F5EF; font-weight: 600; }
.steps li.on::before { background: linear-gradient(135deg, #E6CFA6, #C9A46F); color: #0B0B0C; border-color: transparent; }
.store-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding: 28px; align-items: start; }
.store-events { display: grid; gap: 24px; }
.store-event { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.store-event-head { display: flex; gap: 16px; padding: 20px 22px; background: var(--bg-sunken, var(--surface-2)); border-bottom: 1px solid var(--line); }
.store-event-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.15; }
.store-blurb { margin-top: 6px; color: var(--text-2, var(--text)); }
.store-types { list-style: none; margin: 0; padding: 0; }
.store-type { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.store-type:last-child { border-bottom: 0; }
.store-type-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.store-left { font-size: var(--text-xs); font-weight: 700; color: var(--accent-ink); }
.store-left:empty { display: none; }
.store-price { font-family: var(--font-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); }
.stepper-btn { width: 40px; height: 40px; border: 0; background: transparent; color: var(--text); font-size: 1.2rem; cursor: pointer; border-radius: 50%; }
.stepper-btn:hover:not(:disabled) { background: var(--surface-3); }
.stepper-btn:disabled { color: var(--text-faint); cursor: not-allowed; }
.stepper-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.stepper-n { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.store-cart { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius-card); background: var(--surface-2); border: 1px solid var(--line); }
.store-cart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.store-cart-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; }
.hold { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--text-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.hold[hidden] { display: none; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-lines:empty { display: none; }
.cart-lines li { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.cart-lines li > span:first-child { display: flex; flex-direction: column; }
.cart-sums { margin: 0; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.cart-sums[hidden] { display: none; }
.cart-sums div { display: flex; justify-content: space-between; gap: 12px; }
.cart-sums div[hidden] { display: none; }
.cart-sums dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart-total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; font-size: var(--text-md); }
.cart-total dd { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.cart-note { margin: 0; }
.store-form { display: flex; flex-direction: column; gap: 20px; max-width: 620px; }
.store-fieldset { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 22px 22px; margin: 0; display: grid; gap: 14px; }
.store-fieldset legend { padding: 0 6px; font-weight: 700; }
.pay-demo { display: grid; gap: 8px; }
.pay-demo-card { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 10px 14px; border-radius: var(--radius-control); border: 1px dashed var(--line-strong); color: var(--text-muted); font-weight: 600; }
.eticket-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.eticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-radius: var(--radius-card); overflow: hidden; background: #0B0B0C; color: #F8F5EF; }
.eticket.is-void { opacity: .5; }
.eticket-main { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; }
.eticket-main .label-caps { color: #D4B483; }
.eticket-event { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.eticket-main > span { color: #BEB6AA; }
.eticket-main .eticket-type { color: #E6CFA6; font-weight: 600; margin-top: 4px; }
.eticket-code strong { color: #F8F5EF; letter-spacing: .06em; user-select: all; }
.eticket-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 18px; background: #F8F5EF; color: #0B0B0C; border-left: 2px dashed #403E43; }
.eticket-qr span { font-size: 10px; color: #6E6862; max-width: 112px; text-align: center; }

@media (max-width: 1180px) {
  .tix-grid, .store-grid { grid-template-columns: minmax(0, 1fr); }
  .store-cart { position: static; }
}
@media (max-width: 680px) {
  .store-grid { padding: 16px; }
  .store-bar-links { display: none; }
  .store-type { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .store-type .stepper { grid-column: 1 / -1; justify-self: end; }
  .store-event-head { padding: 16px; }
  .tix-row { grid-template-columns: 110px minmax(0, 1fr) 76px; }
  .eticket { grid-template-columns: minmax(0, 1fr); }
  .eticket-qr { border-left: 0; border-top: 2px dashed #403E43; }
  .steps { flex-wrap: wrap; gap: 8px 12px; }
}

/* People's Choice: paid voting */
.pc-toggle { font-size: var(--text-sm); font-weight: 600; align-items: center; }
.pc-paid { display: grid; gap: 14px; }
.pc-paid-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc-paid-stats > div { display: flex; flex-direction: column; }
.pc-paid-stats .stat-value { font-family: var(--font-display); font-size: 1.6rem; }
.pc-packs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pc-packs li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-tile); border: 1px solid var(--line); background: var(--surface-2); }
.pc-packs span { color: var(--text-muted); font-size: var(--text-sm); }
.phone-left { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.phone-more { border: 0; background: none; padding: 4px 0; color: #0B0B0C; font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.phone-more:focus-visible, .phone-pack:focus-visible { outline: 2px solid #7E6236; outline-offset: 2px; }
.phone-packs { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: #0B0B0C; color: #F8F5EF; }
.phone-packs[hidden] { display: none; }
.phone-packs-title { font-family: var(--font-display); font-size: 1.05rem; }
.phone-pack { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid #403E43; background: #1F1E20; color: #F8F5EF; font: inherit; font-size: 13px; cursor: pointer; }
.phone-pack:hover { border-color: #D4B483; }
.phone-pack span { color: #E6CFA6; font-weight: 700; }
.phone-packs-note { font-size: 11px; color: #BEB6AA; }
@media (max-width: 680px) { .pc-packs { grid-template-columns: minmax(0, 1fr); } }

/* Merchandise and accreditation */
.size-pick { display: inline-block; margin-top: 6px; }
.size-pick .select { width: auto; }
.store-event-head .date-chip .icon { width: 22px; height: 22px; margin: 8px auto; color: var(--accent-ink); }
.merch-pickup { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; padding: 16px 18px; border-radius: var(--radius-card); border: 1px dashed var(--accent); background: var(--accent-softer); }
.merch-pickup .label-caps { color: var(--accent-ink); }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-5); margin-top: var(--space-5); align-items: start; }
.acc-form { display: grid; gap: 14px; }
.acc-type { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.acc-type::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--acc); }
.acc-crew { --acc: #2F6B4F; }
.acc-press { --acc: #2D5A8C; }
.acc-judge { --acc: #7E6236; }
.acc-chaperone { --acc: #8A4E6B; }
.acc-sponsor { --acc: #C9A46F; }
.acc-vip { --acc: #0B0B0C; }
[data-theme="dark"] .acc-vip { --acc: #F8F5EF; }
.acc-zones { display: inline-flex; gap: 3px; }
.acc-zones span { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--text-faint); border: 1px dashed var(--line-strong); }
.acc-zones span.on { color: var(--accent-on); background: var(--accent-gradient); border: 0; }
.acc-code { font-size: var(--text-sm); letter-spacing: .04em; user-select: all; white-space: nowrap; }
.acc-creds { margin-top: var(--space-5); }
.acc-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acc-log li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); }
.acc-log-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--success); }
.acc-log li.is-bad .acc-log-dot { background: var(--danger); }
.badge-card {
  position: relative; max-width: 300px; margin: 0 auto; padding: 34px 24px 18px; border-radius: 18px;
  background: #F8F5EF; color: #0B0B0C; border-top: 14px solid var(--acc); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color-scheme: light;
}
.badge-hole { position: absolute; top: 10px; left: 50%; width: 46px; height: 8px; margin-left: -23px; border-radius: 6px; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.badge-card .label-caps { color: #7E6236; }
.badge-type { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--acc); color: #FFFFFF; }
.acc-sponsor .badge-type, .badge-card.acc-sponsor .badge-type { color: #0B0B0C; }
[data-theme="dark"] .badge-card.acc-vip { --acc: #0B0B0C; }
.badge-name { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; line-height: 1.1; margin-top: 6px; }
.badge-org { color: #6E6862; font-size: 14px; }
.badge-zones { display: flex; gap: 4px; margin: 8px 0 4px; }
.badge-zones span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: #C8C0B4; border: 1px dashed #D3C7B5; }
.badge-zones span.on { color: #0B0B0C; background: linear-gradient(135deg, #E6CFA6, #C9A46F); border: 0; }
.badge-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.badge-foot { font-size: 10px; color: #6E6862; }
@media (max-width: 1180px) { .acc-grid { grid-template-columns: minmax(0, 1fr); } }

/* Website Studio ------------------------------------------------------------ */
.ws-entitle { margin-bottom: var(--space-5); }
.ws-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.ws-panel { display: grid; gap: var(--space-4); }
.ws-fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.ws-choices { display: grid; gap: 8px; }
.ws-choice, .ws-swatch, .ws-seg { position: relative; cursor: pointer; }
.ws-choice input, .ws-swatch input, .ws-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ws-choice > span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-tile); border: 1px solid var(--line); background: var(--surface); }
.ws-choice small { color: var(--text-muted); font-size: var(--text-sm); }
.ws-choice input:checked + span { border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); background: var(--accent-softer); }
.ws-choice input:focus-visible + span, .ws-swatch input:focus-visible + span, .ws-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.ws-seg > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: calc(var(--radius-control) - 2px); color: var(--text-muted); font-size: var(--text-sm); font-weight: 600; }
.ws-seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.ws-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-swatch > span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--text-sm); font-weight: 600; }
.ws-swatch i { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); }
.ws-swatch input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.ws-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.ws-sync { list-style: none; margin: 0; padding: 0; }
.ws-sync li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--space-6); border-bottom: 1px solid var(--line); }
.ws-sync li:last-child { border-bottom: 0; }
.ws-sync li > span { display: flex; flex-direction: column; }
.field-hint.is-error { color: var(--danger); }
.ws-preview { position: sticky; top: 88px; display: grid; gap: 12px; }
.ws-preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ws-preview .seg button { display: inline-flex; align-items: center; gap: 6px; }
.ws-preview .seg [aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.ws-preview .wt-browser-body { height: calc(100vh - 220px); min-height: 520px; }
.ws-preview .wt-phone-body { height: calc(100vh - 230px); min-height: 520px; max-height: 760px; }
@media (max-width: 1180px) {
  .ws-grid { grid-template-columns: minmax(0, 1fr); }
  .ws-preview { position: static; }
  .ws-preview .wt-browser-body { height: 560px; }
}
.ws-panel .card-body > .ws-fieldset + .ws-fieldset, .ws-panel .card-body > .ws-fieldset + .field { margin-top: 18px; }
