:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-2: #161616;
  --text: #ededed;
  --muted: #9a9a9a;
  --line: #222222;
  --accent: #CCFF00;
  --sidebar-w: 280px;
}

/* Cross-document view transitions: sidebar/header stay put, main panel cross-fades. */
@view-transition { navigation: auto; }
aside.sidebar     { view-transition-name: sidebar; }
.sidebar-handle   { view-transition-name: sidebar-handle; }
.mobile-header    { view-transition-name: mobile-header; }
main              { view-transition-name: main-panel; }
::view-transition-old(main-panel),
::view-transition-new(main-panel) { animation-duration: 180ms; }
::view-transition-old(sidebar),
::view-transition-new(sidebar),
::view-transition-old(sidebar-handle),
::view-transition-new(sidebar-handle),
::view-transition-old(mobile-header),
::view-transition-new(mobile-header) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; transition: grid-template-columns 220ms ease; }
body.sidebar-collapsed .layout { grid-template-columns: 0 1fr; }
body.sidebar-collapsed aside.sidebar { overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 180ms ease; }

/* Right-edge handle to collapse/expand the sidebar */
.sidebar-handle {
  position: fixed;
  top: calc(50vh - 28px);            /* vertically centered (handle is 56px tall) */
  left: calc(var(--sidebar-w) - 9px); /* sits half-on/half-off the sidebar edge (18px wide) */
  width: 18px; height: 56px;
  background: var(--panel-2); color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; z-index: 50;
  transition: left 220ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.sidebar-handle::before {
  content: '\2039'; font-size: 18px; line-height: 1;
  display: inline-block;
  transition: transform 220ms ease;
}
.sidebar-handle:hover { background: var(--panel); border-color: var(--accent); color: var(--accent); }
body.sidebar-collapsed .sidebar-handle { left: 0; }   /* fully visible against viewport edge */
body.sidebar-collapsed .sidebar-handle::before { transform: rotate(180deg); }
@media (max-width: 900px) { .sidebar-handle { display: none; } }

.mobile-header { display: none; }
.nav-backdrop { display: none; }

aside.sidebar {
  position: sticky; top: 0; align-self: start;
  height: 100vh; overflow-y: auto;
  background: #000000; border-right: 1px solid var(--line);
  padding: 24px 18px 32px;
  display: flex; flex-direction: column;
}
.brand {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 8px 22px; margin-bottom: 18px;
}
.brand-logo { display: block; width: 100%; max-width: 200px; height: auto; }

.side-nav { display: flex; flex-direction: column; gap: 6px; margin: auto 0; }

.main-tab {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--muted); text-decoration: none; text-align: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}
.main-tab:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.main-tab.active { color: var(--accent); background: #1f1f1f; border-color: #2a2a2a; box-shadow: none; }

.sidebar-cta { margin-top: auto; padding-top: 18px; }
.cta-button.main-tab {
  display: block; padding: 14px 18px; border-radius: 10px;
  background: var(--accent); color: #000; text-align: center;
  font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid var(--accent);
  animation: tickets-pulse 2.2s ease-in-out infinite;
  transition: background 120ms ease, transform 120ms ease;
}
.cta-button.main-tab:hover {
  background: #d9ff33; color: #000;
  text-decoration: none; transform: translateY(-1px);
}
.cta-button.main-tab.active { background: var(--accent); color: #000; border-color: var(--accent); }

@keyframes tickets-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(255,255,255,0.4), 0 0 28px rgba(255,255,255,0.18); }
  50%      { box-shadow: 0 0 24px rgba(255,255,255,0.7), 0 0 48px rgba(255,255,255,0.35); }
}

.subtabs { display: none; flex-direction: column; gap: 2px; padding: 6px 6px 10px 6px; }
.subtab {
  display: block; padding: 4px 12px; border-radius: 5px;
  color: var(--muted); text-decoration: none; text-align: center;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 120ms ease, background 120ms ease;
}
.subtab:hover { color: var(--accent); background: var(--panel-2); text-decoration: none; }

.hero-strip { padding: 36px 0 28px; max-width: 820px; margin: 0 auto; text-align: center; }
.hero-strip::before { content: ""; display: block; width: 56px; height: 5px;
  background: var(--accent); margin: 0 auto 18px; box-shadow: 0 0 20px var(--accent); }
.hero-strip .hero-tag { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.hero-strip .hero-sub { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.hero-strip .hero-meta { font-size: 11px; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; margin: 0; }

main { max-width: 820px; margin: 0 auto; padding: 16px 56px 120px; width: 100%; }
body[data-page="admin"] main { max-width: 1120px; padding-left: 32px; padding-right: 32px; }
body[data-page="admin"] .page-tabs { max-width: 100%; }

.page { display: block; }

.section-block { margin: 0 0 64px; }
.section-block + .section-block { margin-top: 56px; }

h1 {
  font-size: 32px; font-weight: 800; letter-spacing: -0.01em;
  margin: 0 0 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px; scroll-margin-top: 24px;
}
.sec-num { color: var(--accent); font-size: 18px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
h2 { font-weight: 700; margin: 36px 0 12px; scroll-margin-top: 24px;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--accent); }

p { margin: 0 0 14px; color: #d8d8d8; }
p.callout { background: var(--panel); border-left: 3px solid var(--accent);
  padding: 14px 18px; border-radius: 0 6px 6px 0; color: var(--text); font-weight: 500; }

ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
ul li { position: relative; padding: 4px 0 4px 22px; color: #d8d8d8; }
ul li::before { content: ""; position: absolute; left: 4px; top: 14px;
  width: 6px; height: 6px; background: var(--accent); border-radius: 1px; }
ul li.callout-li { background: var(--panel); border-left: 3px solid var(--accent);
  padding: 10px 14px 10px 28px; margin: 4px 0; border-radius: 0 6px 6px 0; font-weight: 500; }
ul li.callout-li::before { left: 12px; top: 18px; }

.table-wrap { overflow-x: auto; margin: 14px 0 22px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { text-align: left; padding: 12px 14px; background: var(--panel-2);
  color: var(--accent); font-weight: 600;
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); }
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #d8d8d8; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(204, 255, 0, 0.03); }

.buy-btn {
  display: inline-block; padding: 6px 12px; border-radius: 6px;
  background: var(--accent); color: #000;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--accent); text-decoration: none; white-space: nowrap;
  transition: background 120ms ease, transform 120ms ease;
}
.buy-btn:hover { background: #d9ff33; color: #000; text-decoration: none; transform: translateY(-1px); }
.dates-table td:last-child, .dates-table th:last-child { text-align: right; }
.table-wrap:has(.dates-table) { background: transparent; border: none; border-radius: 0; }
.dates-table thead th { background: transparent; }
.dates-table tbody tr:hover { background: transparent; }

/* Per-page tab bar */
.page-tabs-wrap {
  display: flex; justify-content: center;
  margin: 0 0 32px;
  position: sticky; top: 12px; z-index: 5;
}
.page-tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 4px; padding: 4px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%; max-width: 640px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.page-tab {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 9px;
  color: var(--muted); text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid transparent; background: transparent;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}
.page-tab:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.page-tab.active { color: var(--accent); background: #1f1f1f; border-color: #2a2a2a; }

/* Tab panels (per-page, swap on .page-tab click) */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Bracket */
.bracket-wrap { margin: 0 0 0; padding: 24px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pitch-block { max-width: 680px; margin: 28px auto 48px; text-align: center; padding: 0 16px; }
.pitch-block .pitch-line { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 12px; }
.pitch-block .pitch-sub { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
@media (max-width: 720px) {
  .pitch-block .pitch-line { font-size: 20px; }
  .pitch-block .pitch-sub { font-size: 13px; }
}
.bracket {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.9fr 1fr 1fr 1.1fr;
  gap: 32px;
  align-items: stretch;
  min-height: 360px;
}
.bracket-col { display: flex; flex-direction: column; justify-content: space-around; gap: 8px; }
.bracket-col.col-c { justify-content: center; padding: 0 4px; }
.pair {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-around;
  gap: 8px; flex: 1 1 0;
}
.seat {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 6px 6px; border-radius: 6px;
  background: var(--panel-2); border: 1px solid var(--line);
  color: #d8d8d8; font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  min-height: 28px; text-align: center;
}

/* Bracket connector lines (white) */
.col-q-left .pair .seat::after,
.col-s-left .pair .seat::after {
  content: ''; position: absolute; left: 100%; top: 50%;
  width: 16px; height: 1px; background: #fff; pointer-events: none;
}
.col-q-right .pair .seat::before,
.col-s-right .pair .seat::before {
  content: ''; position: absolute; right: 100%; top: 50%;
  width: 16px; height: 1px; background: #fff; pointer-events: none;
}
.col-f-left > .seat::after {
  content: ''; position: absolute; left: 100%; top: 50%;
  width: 32px; height: 1px; background: #fff; pointer-events: none;
}
.col-f-right > .seat::before {
  content: ''; position: absolute; right: 100%; top: 50%;
  width: 32px; height: 1px; background: #fff; pointer-events: none;
}
.col-q-left .pair::after {
  content: ''; position: absolute; top: 42px; bottom: 42px; right: -16px;
  width: 1px; background: #fff; pointer-events: none;
}
.col-s-left .pair::after {
  content: ''; position: absolute; top: 88px; bottom: 88px; right: -16px;
  width: 1px; background: #fff; pointer-events: none;
}
.col-q-right .pair::after {
  content: ''; position: absolute; top: 42px; bottom: 42px; left: -16px;
  width: 1px; background: #fff; pointer-events: none;
}
.col-s-right .pair::after {
  content: ''; position: absolute; top: 88px; bottom: 88px; left: -16px;
  width: 1px; background: #fff; pointer-events: none;
}
.col-q-left .pair::before,
.col-s-left .pair::before {
  content: ''; position: absolute; top: 50%; right: -32px;
  width: 16px; height: 1px; background: #fff; pointer-events: none;
}
.col-q-right .pair::before,
.col-s-right .pair::before {
  content: ''; position: absolute; top: 50%; left: -32px;
  width: 16px; height: 1px; background: #fff; pointer-events: none;
}
.seat.tbd { background: var(--panel-2); border-style: dashed; border-color: #555; color: var(--muted); opacity: 1; }
.seat.lost { color: #888; }
a.seat, a.seat:visited { color: inherit; text-decoration: none; }
a.seat:hover { filter: brightness(1.25); cursor: pointer; }
a.seat.champion:hover { filter: brightness(1.05); }
.seat-x {
  position: absolute;
  top: -10px; left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
  overflow: visible;
  display: block;
}
.col-q .seat { background: rgba(204,255,0,0.06); border-color: rgba(204,255,0,0.22); color: #e8f5b8; }
.col-s .seat { background: rgba(204,255,0,0.14); border-color: rgba(204,255,0,0.4); border-style: solid; color: #ecf7c0; }
.col-f > .seat { background: rgba(204,255,0,0.28); border-color: rgba(204,255,0,0.65); border-style: solid; color: #f4faca; }
.seat.champion {
  background: var(--accent); color: #000; border-color: var(--accent);
  font-weight: 900; font-size: 11px; letter-spacing: 0.16em;
  padding: 14px 10px; border-radius: 10px; min-height: 44px;
  box-shadow: 0 0 18px rgba(204,255,0,0.45), 0 0 36px rgba(204,255,0,0.22);
}
.bracket-labels {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr 0.9fr 1fr 1fr 1.1fr;
  gap: 8px; margin-top: 14px;
}
.bracket-labels > span {
  text-align: center; font-size: 10px; color: var(--muted);
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
}
.bracket-label-champ { color: var(--accent) !important; }

@media (max-width: 700px) {
  .seat { font-size: 8px; padding: 4px 3px; min-height: 22px; letter-spacing: 0.05em; }
  .seat.champion { font-size: 9px; padding: 12px 8px; letter-spacing: 0.12em; }
  .bracket-labels > span { font-size: 8px; letter-spacing: 0.08em; }
  .bracket { gap: 12px; }
  .bracket-labels { gap: 12px; }
  .col-q-left .pair .seat::after,
  .col-s-left .pair .seat::after,
  .col-q-right .pair .seat::before,
  .col-s-right .pair .seat::before { width: 6px; }
  .col-f-left > .seat::after,
  .col-f-right > .seat::before { width: 12px; }
  .col-q-left .pair::after,
  .col-s-left .pair::after { right: -6px; }
  .col-q-right .pair::after,
  .col-s-right .pair::after { left: -6px; }
  .col-q-left .pair::before,
  .col-s-left .pair::before { right: -12px; width: 6px; }
  .col-q-right .pair::before,
  .col-s-right .pair::before { left: -12px; width: 6px; }
}

/* Calendar */
.calendar-block { margin: 0 0 56px; }
.calendar-block > p { color: #d8d8d8; }
.cal-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  background: transparent; color: var(--accent);
  border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: 18px; line-height: 1; font-weight: 700;
  letter-spacing: 0; cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.cal-nav:hover:not(:disabled) { background: var(--panel-2); border-color: var(--accent); }
.cal-nav:disabled { opacity: 0.25; cursor: not-allowed; }
.cal-month-label { flex: 1 1 auto; text-align: center; }
.cal-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 20px; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; }
.legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }
.swatch-show { background: transparent; border: 1px solid var(--accent); box-shadow: 0 0 6px rgba(204,255,0,0.5); }
.swatch-milestone { background: rgba(204,255,0,0.12); border-color: var(--accent); }
.swatch-thursday { background: rgba(204,255,0,0.06); border-color: rgba(204,255,0,0.3); }
.cal-view { display: none; }
.cal-view.active { display: block; }
.cal-row { display: flex; flex-direction: column; gap: 24px; }
.cal-month { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.cal-month-name { font-size: 14px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; }
.cal-year { color: var(--muted); font-weight: 600; letter-spacing: 0.08em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 11px; color: var(--muted); font-weight: 700;
  letter-spacing: 0.14em; padding: 4px 0 8px; }
.cal-cell { min-height: 72px; position: relative; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start; padding: 8px 10px;
  border: 1px solid transparent; border-radius: 6px;
  background: var(--panel-2); color: #c9c9c9; }
.cal-cell.empty { background: transparent; border-color: transparent; }
.cal-num { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.cal-label { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 4px; line-height: 1.2; text-align: left; }
.cal-dow.dow-thursday { color: var(--accent); }
.cal-cell.thursday { background: rgba(204,255,0,0.06); border-color: rgba(204,255,0,0.25); color: var(--text); }
.cal-cell.thursday .cal-num { color: #ffffff; }
.cal-cell.event-milestone { background: rgba(204,255,0,0.12); border-color: rgba(204,255,0,0.5);
  color: var(--text); }
.cal-cell.event-milestone .cal-label { color: var(--accent); }
.cal-cell.event-show { background: var(--panel-2); border: 1px solid var(--accent);
  box-shadow: 0 0 14px rgba(204,255,0,0.35), inset 0 0 0 1px var(--accent); color: var(--text); }
.cal-cell.event-show .cal-num { font-weight: 800; color: var(--text); }
.cal-cell.event-show .cal-label { color: var(--accent); font-weight: 900;
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; margin: 0; font-size: 10px; letter-spacing: 0.12em; }
.cal-thur-badge { position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + 4px));
  font-size: 14px; font-weight: 800; color: var(--accent);
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.cal-cell.event-show .cal-thur-badge { display: none; }
.cal-cell.today { border: 1px solid var(--accent); box-shadow: 0 0 14px rgba(204,255,0,0.55), 0 0 28px rgba(204,255,0,0.3);
  animation: today-pulse 2.4s ease-in-out infinite; }
.cal-cell.today .cal-num { color: var(--accent); font-weight: 800; }
@keyframes today-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(204,255,0,0.45), 0 0 24px rgba(204,255,0,0.2); }
  50%      { box-shadow: 0 0 22px rgba(204,255,0,0.75), 0 0 40px rgba(204,255,0,0.4); }
}

@media (max-width: 900px) {
  .cal-row { gap: 16px; }
  .cal-month { padding: 14px; }
  .cal-cell { min-height: 54px; padding: 6px 6px; }
  .cal-label { font-size: 9px; }
  .cal-num { font-size: 12px; }
  .cal-month-name { gap: 8px; }
  .cal-nav { width: 26px; height: 26px; font-size: 16px; }
}

.stage-figure { margin: 18px 0 24px; padding: 0; }
.stage-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #000; }
.stage-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }

::selection { background: var(--accent); color: #000; }

/* Apply form */
.apply-form { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; max-width: 720px; }
.apply-field { display: flex; flex-direction: column; gap: 6px; }
.apply-row { display: flex; gap: 16px; }
.apply-row > .apply-field { flex: 1 1 0; min-width: 0; }
@media (max-width: 640px) { .apply-row { flex-direction: column; gap: 20px; } }
.apply-field label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.apply-field input,
.apply-field textarea {
  width: 100%;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px;
  font: inherit; font-size: 15px; line-height: 1.5;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.apply-field textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.apply-field input::placeholder,
.apply-field textarea::placeholder { color: #5a5a5a; }
.apply-field input:focus,
.apply-field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--panel-2);
  box-shadow: 0 0 0 3px rgba(204,255,0,0.15);
}
.apply-submit {
  align-self: flex-start; margin-top: 4px;
  padding: 14px 28px; border-radius: 10px;
  background: var(--accent); color: #000; border: 1px solid var(--accent);
  font: inherit; font-size: 12px; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}
.apply-submit:hover { background: #d9ff33; transform: translateY(-1px); }

/* Shared admin page styles (used by comics, shows, matches, sets) */
.admin-auth-gate { max-width: 420px; margin-top: 24px; }
.admin-auth-gate p.muted { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.login-error { color: #ff6b6b; font-size: 13px; margin-top: 10px; min-height: 1.2em; }
.password-mask { -webkit-text-security: disc; text-security: disc; }

/* Search row + add button */
.admin-search-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.admin-search-row .admin-search { margin: 0; flex: 1 1 auto; max-width: 360px; }
.add-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--accent);
  font-size: 22px; font-weight: 600; line-height: 1;
  cursor: pointer; padding: 0;
  transition: background 120ms, border-color 120ms;
}
.add-btn:hover { background: var(--panel-2); border-color: var(--accent); }
.add-btn:active { transform: translateY(1px); }

/* Add modal */
.add-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 16px; overflow-y: auto;
}
.add-modal-card {
  width: 100%; max-width: 520px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 28px;
}
.add-modal-card h2 {
  margin: 0 0 18px; font-size: 18px; font-weight: 700;
  letter-spacing: 0.04em;
}
.add-modal-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.add-modal-field label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.add-modal-field input,
.add-modal-field textarea,
.add-modal-field select {
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 10px;
  font: inherit; font-variant-numeric: tabular-nums;
}
.add-modal-field input:focus,
.add-modal-field textarea:focus,
.add-modal-field select:focus { outline: none; border-color: var(--accent); }
.add-modal-field textarea { min-height: 80px; resize: vertical; }
.add-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.add-modal-actions button {
  padding: 9px 16px; border-radius: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line);
}
.add-modal-actions .btn-cancel { background: transparent; color: var(--muted); }
.add-modal-actions .btn-cancel:hover { color: var(--text); }
.add-modal-actions .btn-submit { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.add-modal-actions .btn-submit:disabled { opacity: 0.5; cursor: default; }
.add-modal-error { color: #ff6b6b; font-size: 13px; min-height: 1.2em; margin-top: 4px; }

/* Clickable status pill + inline picker */
.status-pill[data-pickable="true"] { cursor: pointer; }
.status-pill[data-pickable="true"]:hover { filter: brightness(1.15); }
.cell-pickable { cursor: pointer; }
.cell-pickable:hover { color: var(--text); text-decoration: underline; }
table.admin-table td.muted-cell,
#users-table td.muted-cell { color: var(--muted); }
table.admin-table td.code-cell,
#users-table td.code-cell {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}
table.admin-table th.col-narrow,
table.admin-table td.col-narrow {
  max-width: 140px; width: 140px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status-picker {
  position: absolute; z-index: 1100;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px; min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}
.status-picker button {
  display: block; width: 100%; padding: 6px 10px;
  background: transparent; border: none; cursor: pointer;
  text-align: left; border-radius: 4px;
  font: inherit; color: var(--text);
}
.status-picker button:hover { background: var(--panel-2); }
.status-picker button .status-pill { pointer-events: none; }
.costs-input {
  width: 120px; padding: 6px 8px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-variant-numeric: tabular-nums;
}
.costs-input:focus { outline: none; border-color: var(--accent); }
.costs-status { font-size: 12px; margin-left: 10px; }

/* Section wrapper for the show-detail bracket */
.bracket-section { margin-top: 28px; }
.bracket-title {
  margin: 0 0 14px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

.admin-search {
  width: 100%; max-width: 360px;
  margin: 4px 0 14px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px;
  font: inherit; font-size: 14px;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.admin-search::placeholder { color: var(--muted); }
.admin-search:focus {
  outline: none; border-color: var(--accent); background: var(--panel-2);
  box-shadow: 0 0 0 3px rgba(204,255,0,0.15);
}

.admin-table-wrap {
  overflow-x: auto; max-width: 100%;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel);
  margin-top: 18px;
}
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th, table.admin-table td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.admin-table th {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); background: var(--panel-2);
  position: sticky; top: 0;
}
table.admin-table tbody tr:last-child td { border-bottom: none; }
table.admin-table tbody tr:hover { background: var(--panel-2); }
table.admin-table a { color: var(--muted); text-decoration: none; }
table.admin-table a:hover { text-decoration: underline; }
table.admin-table td.muted, table.admin-table td .muted { color: var(--muted); }
table.admin-table th.num, table.admin-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.admin-table th.num-center, table.admin-table td.num-center { text-align: center; font-variant-numeric: tabular-nums; }
.admin-table th.select-col, .admin-table td.select-col,
#users-table th.select-col, #users-table td.select-col {
  width: 36px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}
.admin-table th.select-col > input, .admin-table td.select-col > input,
#users-table th.select-col > input, #users-table td.select-col > input {
  display: block;
  margin: 0 auto;
}
input.row-select, input.select-all {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  transition: border-color 120ms, background 120ms;
}
input.row-select:hover, input.select-all:hover { border-color: #444; }
input.row-select:focus-visible, input.select-all:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
input.row-select:checked, input.select-all:checked,
input.select-all:indeterminate {
  background: var(--accent);
  border-color: var(--accent);
}
input.row-select:checked::after, input.select-all:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 0px;
  width: 5px; height: 10px;
  border: solid #0a0a0a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
input.select-all:indeterminate::after {
  content: '';
  position: absolute;
  left: 3px; top: 7px;
  width: 8px; height: 2px;
  background: #0a0a0a;
}
.rating-stars { color: #ffd866; letter-spacing: 1px; white-space: nowrap; font-size: 13px; }
.rating-stars .star-empty { color: #3a3a3a; }
table.admin-table a.row-link,
table.admin-table a.row-link:visited { color: #fff; font-weight: 700; text-decoration: none; }
table.admin-table a.row-link:hover { color: var(--accent); }
table.admin-table td .match-winner, table.admin-table td .match-winner a { color: var(--accent); }
table.admin-table td .match-loser, table.admin-table td .match-loser a { color: #ff6b6b; }
table.admin-table td.amount-revenue { color: #7ec4ff; }
table.admin-table td.amount-cost    { color: #ff6b6b; }
table.admin-table td.amount-profit  { color: #7ee08a; }
table.admin-table tfoot tr.totals-row td {
  border-top: 1px solid var(--line);
  border-bottom: none;
  font-weight: 700;
  background: var(--panel-2);
}
table.admin-table td.totals-label {
  text-align: right;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

.status-pill {
  display: inline-block;
  padding: 2px 7px; border-radius: 999px;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid transparent;
  line-height: 1.4;
}
.status-applied  { background: rgba(255,210,80,0.12); color: #ffd866;       border-color: rgba(255,210,80,0.35); }
.status-accepted { background: rgba(80,170,255,0.12); color: #7ec4ff;       border-color: rgba(80,170,255,0.35); }
.status-appeared { background: rgba(80,220,120,0.12);  color: #7ee08a;       border-color: rgba(80,220,120,0.35); }
.status-panel    { background: rgba(255,120,180,0.12); color: #ff9ec6;      border-color: rgba(255,120,180,0.35); }
.status-passed   { background: var(--panel-2);         color: var(--muted); border-color: var(--line); }
.status-yes      { background: rgba(80,220,120,0.12); color: #7ee08a;       border-color: rgba(80,220,120,0.35); }
.status-no       { background: var(--panel-2);        color: var(--muted); border-color: var(--line); }
.status-win      { background: rgba(80,220,120,0.12); color: #7ee08a;       border-color: rgba(80,220,120,0.35); }
.status-lose     { background: rgba(255,107,107,0.12); color: #ff6b6b;      border-color: rgba(255,107,107,0.35); }
.status-banned   { background: rgba(255,80,80,0.12);  color: #ff8a8a;       border-color: rgba(255,80,80,0.35); }
.status-planning  { background: rgba(255,210,80,0.12); color: #ffd866;       border-color: rgba(255,210,80,0.35); }
.status-booked    { background: rgba(255,154,60,0.12); color: #ff9a3c;       border-color: rgba(255,154,60,0.35); }
.status-done      { background: rgba(80,220,120,0.12); color: #7ee08a;       border-color: rgba(80,220,120,0.35); }
.status-cancelled { background: var(--panel-2);        color: var(--muted); border-color: var(--line); }

/* Generic detail view used by admin pages (comic detail, venue detail, …) */
.detail-back {
  display: inline-block; margin: 16px 0 18px;
  color: var(--muted); text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.detail-back:hover { color: var(--accent); }
.breadcrumbs {
  display: flex; gap: 8px; align-items: center;
  margin: 16px 0 18px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  font-style: italic;
  color: var(--muted);
}
.breadcrumbs .bc-link { color: var(--muted); text-decoration: none; cursor: pointer; }
.breadcrumbs .bc-link:hover { text-decoration: underline; }
.breadcrumbs .bc-sep { color: var(--muted); opacity: 0.6; }
.breadcrumbs .bc-current { color: var(--muted); }
.detail-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 28px 24px;
}
.detail-card .detail-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.detail-card .detail-head h1 { margin: 0; font-size: 28px; }
.detail-meta { display: grid; grid-template-columns: 140px 1fr; gap: 10px 24px; }
.detail-meta dt {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding-top: 4px;
}
.detail-meta dd { margin: 0; font-size: 15px; line-height: 1.5; word-break: break-word; }
.detail-meta dd.empty, .detail-meta dd .empty { color: var(--muted); font-style: italic; }
.detail-meta a { color: var(--accent); text-decoration: none; }
.detail-meta a:hover { text-decoration: underline; }
.detail-meta ul.venue-shows { list-style: none; padding: 0; margin: 0; }
.detail-meta ul.venue-shows li { padding: 4px 0; }
@media (max-width: 600px) {
  .detail-meta { grid-template-columns: 1fr; gap: 4px 0; }
  .detail-meta dd { margin-bottom: 14px; }
}

/* Admin password modal (triggered by triple-click on logo) */
.admin-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: admin-modal-fade 140ms ease-out;
}
@keyframes admin-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.admin-modal {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px 24px;
  width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(204,255,0,0.05);
}
.admin-modal-close {
  position: absolute; top: 10px; right: 12px;
  background: transparent; border: 0; color: var(--muted);
  font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px;
  border-radius: 6px;
  transition: color 120ms ease, background 120ms ease;
}
.admin-modal-close:hover { color: var(--text); background: var(--panel-2); }
.admin-modal-form { margin-top: 0; gap: 14px; }
.admin-modal-form .apply-submit { align-self: stretch; }
.admin-modal-error { color: #ff6b6b; font-size: 13px; min-height: 1.2em; margin-top: 2px; }
body.admin-modal-open { overflow: hidden; }

aside.sidebar::-webkit-scrollbar { width: 8px; }
aside.sidebar::-webkit-scrollbar-track { background: transparent; }
aside.sidebar::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
aside.sidebar::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* Mobile header (hidden on desktop) */
.mobile-header { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }

  .mobile-header {
    display: grid; grid-template-columns: 36px 1fr 36px;
    align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 30;
    background: #000; border-bottom: 1px solid var(--line);
    padding: 10px 14px; height: 64px;
  }
  .mobile-header .hamburger { grid-column: 1; justify-self: start; }
  .mobile-header .mobile-brand { grid-column: 2; justify-self: center; }
  .hamburger {
    display: inline-flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
    width: 36px; height: 36px; padding: 0;
    background: transparent; color: var(--text);
    border: 1px solid var(--line); border-radius: 8px;
    cursor: pointer;
  }
  .hamburger:hover { background: var(--panel); }
  .hamburger i {
    display: block; width: 18px; height: 2px;
    background: currentColor; border-radius: 1px;
    transition: transform 160ms ease, opacity 160ms ease;
  }
  .hamburger[aria-expanded="true"] i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
  .hamburger[aria-expanded="true"] i:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
  .mobile-brand { display: inline-flex; align-items: center; }
  .mobile-brand img { display: block; height: 40px; width: auto; }

  /* Off-canvas sidebar drawer */
  aside.sidebar {
    position: fixed; top: 0; left: 0;
    width: 260px; max-width: 80vw; height: 100vh;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    z-index: 50;
    border-right: 1px solid var(--line);
    border-bottom: none;
    padding: 24px 18px 32px;
  }
  aside.sidebar.open { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .nav-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 40;
    opacity: 0; pointer-events: none;
    transition: opacity 200ms ease;
  }
  .nav-backdrop[hidden] { display: block; }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

  /* Drawer-internal layout */
  .brand { padding: 12px 8px 22px; margin-bottom: 18px; }
  .brand-logo { max-width: 200px; }
  .side-nav { flex-direction: column; flex-wrap: nowrap; overflow-x: visible; gap: 6px; }
  .main-tab-group { flex: 0 0 auto; }
  .main-tab { padding: 8px 12px; }
  .subtabs { display: none !important; }

  main { padding: 28px 20px 80px; }
  h1 { font-size: 26px; }

  /* Page-tab bar sits below the mobile header */
  .page-tabs-wrap { top: 72px; }
}

/* ============================================================================
   Theme toggle button (lives in sidebar; sidebar is always dark)
   ============================================================================ */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 10px 12px; margin-bottom: 10px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; gap: 8px;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}
.theme-toggle:hover { color: var(--text); background: var(--panel-2); border-color: var(--accent); }
.theme-toggle .theme-toggle-icon { font-size: 14px; line-height: 1; }

/* ============================================================================
   Light theme
   Background: #ededed  Accent/Highlight: #e6ffb9
   Text Primary: #000000  Text Secondary: #4b5563
   Sidebar follows the theme; logo PNG is wrapped in a dark "card" so its
   baked-in black background blends in light mode.
   ============================================================================ */
[data-theme="light"] {
  --bg: #ededed;
  --panel: #ffffff;
  --panel-2: #e5e5e5;
  --text: #000000;
  --muted: #4b5563;
  --line: #d1d5db;
  --accent: #e6ffb9;
}

/* Sidebar surface — slightly darker than main bg for separation */
[data-theme="light"] aside.sidebar { background: #dcdcdc; border-right-color: var(--line); }
[data-theme="light"] aside.sidebar::-webkit-scrollbar-thumb { background: #b8b8b8; }
[data-theme="light"] aside.sidebar::-webkit-scrollbar-thumb:hover { background: #989898; }

/* Active nav tile: medium-dark gray tile + neon-lime accent text */
[data-theme="light"] aside.sidebar .main-tab.active {
  color: #CCFF00; background: #4b5563; border-color: transparent;
}

/* Mobile header surface — matches sidebar (slightly darker than main) */
[data-theme="light"] .mobile-header { background: #dcdcdc; border-bottom-color: var(--line); }
[data-theme="light"] .hamburger { color: var(--text); border-color: var(--line); }
[data-theme="light"] .hamburger:hover { background: var(--panel-2); }

/* Sidebar handle hover uses readable dark olive in light mode */
[data-theme="light"] .sidebar-handle:hover { border-color: #4a7c00; color: #4a7c00; }

/* Main content: places that used `color: var(--accent)` need a darker accent
   that reads on a light background. Pale lime stays for fills/highlights. */
[data-theme="light"] main a,
[data-theme="light"] main h2,
[data-theme="light"] main .sec-num,
[data-theme="light"] main thead th,
[data-theme="light"] main .cal-nav,
[data-theme="light"] main .cal-month-name,
[data-theme="light"] main .cal-cell.event-milestone .cal-label,
[data-theme="light"] main .cal-cell.event-show .cal-label,
[data-theme="light"] main .cal-cell.today .cal-num,
[data-theme="light"] main .cal-thur-badge,
[data-theme="light"] main .bracket-label-champ,
[data-theme="light"] main .apply-field label,
[data-theme="light"] main .add-btn,
[data-theme="light"] main .detail-back:hover,
[data-theme="light"] main .detail-meta a,
[data-theme="light"] main table.admin-table a.row-link:hover {
  color: #4a7c00;
}

/* Paragraph / list / cell text — hardcoded greys in dark theme become near-black */
[data-theme="light"] main p,
[data-theme="light"] main ul li,
[data-theme="light"] main tbody td,
[data-theme="light"] main .calendar-block > p,
[data-theme="light"] main .cal-cell { color: #1f2937; }
[data-theme="light"] main .cal-cell.thursday .cal-num { color: #000; }

/* Page tabs */
[data-theme="light"] .page-tabs { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
[data-theme="light"] .page-tab.active { background: var(--accent); border-color: var(--accent); color: #000; }
[data-theme="light"] .page-tab:hover { color: var(--text); background: var(--panel-2); }

/* Callouts */
[data-theme="light"] p.callout { color: var(--text); border-left-color: #4a7c00; }
[data-theme="light"] ul li.callout-li { border-left-color: #4a7c00; }

/* Hero pill glow */
[data-theme="light"] .hero-strip::before { box-shadow: 0 0 20px rgba(180,230,100,0.6); }

/* Bracket — connectors swap from white to a mid-gray that reads on light */
[data-theme="light"] .col-q-left .pair .seat::after,
[data-theme="light"] .col-s-left .pair .seat::after,
[data-theme="light"] .col-q-right .pair .seat::before,
[data-theme="light"] .col-s-right .pair .seat::before,
[data-theme="light"] .col-f-left > .seat::after,
[data-theme="light"] .col-f-right > .seat::before,
[data-theme="light"] .col-q-left .pair::after,
[data-theme="light"] .col-s-left .pair::after,
[data-theme="light"] .col-q-right .pair::after,
[data-theme="light"] .col-s-right .pair::after,
[data-theme="light"] .col-q-left .pair::before,
[data-theme="light"] .col-s-left .pair::before,
[data-theme="light"] .col-q-right .pair::before,
[data-theme="light"] .col-s-right .pair::before {
  background: #6b7280;
}
[data-theme="light"] .col-q .seat { background: rgba(180,230,100,0.18); border-color: rgba(180,230,100,0.55); color: #1f2937; }
[data-theme="light"] .col-s .seat { background: rgba(180,230,100,0.30); border-color: rgba(180,230,100,0.70); color: #1f2937; }
[data-theme="light"] .col-f > .seat { background: rgba(180,230,100,0.45); border-color: rgba(180,230,100,0.85); color: #1f2937; }
[data-theme="light"] .seat.tbd { background: var(--panel-2); border-color: #9ca3af; color: var(--muted); }
[data-theme="light"] .seat.lost { color: var(--muted); }
[data-theme="light"] .seat.champion {
  background: var(--accent); color: #000; border-color: #4a7c00;
  box-shadow: 0 0 18px rgba(180,230,100,0.55), 0 0 36px rgba(180,230,100,0.3);
}

/* Tables */
[data-theme="light"] tbody tr:hover { background: rgba(180,230,100,0.18); }
[data-theme="light"] table.admin-table tbody tr:hover { background: var(--panel-2); }
[data-theme="light"] table.admin-table a.row-link,
[data-theme="light"] table.admin-table a.row-link:visited { color: #000; }
[data-theme="light"] table.admin-table td .match-winner,
[data-theme="light"] table.admin-table td .match-winner a { color: #166534; }
[data-theme="light"] table.admin-table td .match-loser,
[data-theme="light"] table.admin-table td .match-loser a { color: #b91c1c; }
[data-theme="light"] table.admin-table td.amount-revenue { color: #1d4ed8; }
[data-theme="light"] table.admin-table td.amount-cost    { color: #b91c1c; }
[data-theme="light"] table.admin-table td.amount-profit  { color: #166534; }
[data-theme="light"] .rating-stars .star-empty { color: #d1d5db; }

/* Calendar */
[data-theme="light"] .swatch-show     { background: transparent; border: 1px solid #4a7c00; box-shadow: 0 0 6px rgba(180,230,100,0.6); }
[data-theme="light"] .swatch-milestone { background: rgba(180,230,100,0.3); border-color: #4a7c00; }
[data-theme="light"] .swatch-thursday  { background: rgba(180,230,100,0.18); border-color: rgba(180,230,100,0.6); }
[data-theme="light"] .cal-cell.thursday { background: rgba(180,230,100,0.18); border-color: rgba(180,230,100,0.55); color: var(--text); }
[data-theme="light"] .cal-cell.event-milestone { background: rgba(180,230,100,0.3); border-color: rgba(180,230,100,0.7); color: var(--text); }
[data-theme="light"] .cal-cell.event-show {
  background: var(--panel); border: 1px solid #4a7c00;
  box-shadow: 0 0 14px rgba(180,230,100,0.5), inset 0 0 0 1px #4a7c00; color: var(--text);
}
[data-theme="light"] .cal-cell.event-show .cal-num { color: var(--text); }
[data-theme="light"] .cal-nav:hover:not(:disabled) { background: var(--panel-2); border-color: #4a7c00; }
[data-theme="light"] .cal-cell.today {
  border-color: #4a7c00;
  animation: today-pulse-light 2.4s ease-in-out infinite;
}
@keyframes today-pulse-light {
  0%, 100% { box-shadow: 0 0 14px rgba(180,230,100,0.55), 0 0 24px rgba(180,230,100,0.25); }
  50%      { box-shadow: 0 0 22px rgba(180,230,100,0.85), 0 0 40px rgba(180,230,100,0.45); }
}

/* Inputs */
[data-theme="light"] .apply-field input,
[data-theme="light"] .apply-field textarea { background: var(--panel); color: var(--text); border-color: var(--line); }
[data-theme="light"] .apply-field input::placeholder,
[data-theme="light"] .apply-field textarea::placeholder,
[data-theme="light"] .admin-search::placeholder { color: var(--muted); }
[data-theme="light"] .apply-field input:focus,
[data-theme="light"] .apply-field textarea:focus,
[data-theme="light"] .admin-search:focus,
[data-theme="light"] .costs-input:focus {
  border-color: #4a7c00; background: var(--panel);
  box-shadow: 0 0 0 3px rgba(180,230,100,0.45);
}
[data-theme="light"] .apply-submit { background: var(--accent); border-color: #4a7c00; color: #000; }
[data-theme="light"] .apply-submit:hover { background: #d4f59a; }
[data-theme="light"] .add-btn { background: var(--panel); border-color: var(--line); }
[data-theme="light"] .add-btn:hover { background: var(--panel-2); border-color: #4a7c00; }

/* Checkboxes */
[data-theme="light"] input.row-select,
[data-theme="light"] input.select-all { background: #fff; border-color: #9ca3af; }
[data-theme="light"] input.row-select:hover,
[data-theme="light"] input.select-all:hover { border-color: #6b7280; }
[data-theme="light"] input.row-select:checked,
[data-theme="light"] input.select-all:checked,
[data-theme="light"] input.select-all:indeterminate { background: var(--accent); border-color: #4a7c00; }
[data-theme="light"] input.row-select:checked::after,
[data-theme="light"] input.select-all:checked::after { border-color: #000; }
[data-theme="light"] input.select-all:indeterminate::after { background: #000; }

/* Modals */
[data-theme="light"] .admin-modal-overlay { background: rgba(0,0,0,0.4); }
[data-theme="light"] .admin-modal { box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(74,124,0,0.1); }
[data-theme="light"] .add-modal-backdrop { background: rgba(0,0,0,0.4); }
[data-theme="light"] .add-modal-actions .btn-submit { background: var(--accent); border-color: #4a7c00; color: #000; }
[data-theme="light"] .add-modal-actions .btn-cancel { color: var(--muted); }
[data-theme="light"] .add-modal-actions .btn-cancel:hover { color: var(--text); }
[data-theme="light"] .add-modal-field input,
[data-theme="light"] .add-modal-field textarea,
[data-theme="light"] .add-modal-field select { background: var(--panel); }
[data-theme="light"] .add-modal-field input:focus,
[data-theme="light"] .add-modal-field textarea:focus,
[data-theme="light"] .add-modal-field select:focus { border-color: #4a7c00; }

/* Status pills — repalette so they're readable on light bg */
[data-theme="light"] .status-applied   { background: rgba(202,138,4,0.15);   color: #92400e;       border-color: rgba(202,138,4,0.4); }
[data-theme="light"] .status-accepted  { background: rgba(30,100,200,0.12);  color: #1d4ed8;       border-color: rgba(30,100,200,0.35); }
[data-theme="light"] .status-appeared  { background: rgba(34,150,80,0.15);   color: #166534;       border-color: rgba(34,150,80,0.4); }
[data-theme="light"] .status-panel     { background: rgba(220,80,140,0.12);  color: #be185d;       border-color: rgba(220,80,140,0.35); }
[data-theme="light"] .status-passed    { background: var(--panel-2);         color: var(--muted);  border-color: var(--line); }
[data-theme="light"] .status-yes       { background: rgba(34,150,80,0.15);   color: #166534;       border-color: rgba(34,150,80,0.4); }
[data-theme="light"] .status-no        { background: var(--panel-2);         color: var(--muted);  border-color: var(--line); }
[data-theme="light"] .status-win       { background: rgba(34,150,80,0.15);   color: #166534;       border-color: rgba(34,150,80,0.4); }
[data-theme="light"] .status-lose      { background: rgba(220,38,38,0.12);   color: #b91c1c;       border-color: rgba(220,38,38,0.35); }
[data-theme="light"] .status-banned    { background: rgba(220,38,38,0.12);   color: #b91c1c;       border-color: rgba(220,38,38,0.4); }
[data-theme="light"] .status-planning  { background: rgba(202,138,4,0.15);   color: #92400e;       border-color: rgba(202,138,4,0.4); }
[data-theme="light"] .status-booked    { background: rgba(220,120,30,0.15);  color: #c2410c;       border-color: rgba(220,120,30,0.4); }
[data-theme="light"] .status-done      { background: rgba(34,150,80,0.15);   color: #166534;       border-color: rgba(34,150,80,0.4); }
[data-theme="light"] .status-cancelled { background: var(--panel-2);         color: var(--muted);  border-color: var(--line); }

/* Misc */
[data-theme="light"] .login-error,
[data-theme="light"] .admin-modal-error,
[data-theme="light"] .add-modal-error { color: #b91c1c; }
[data-theme="light"] .stage-figure img { background: #f5f5f5; }
[data-theme="light"] ::selection { background: var(--accent); color: #000; }

/* Status picker dropdown */
[data-theme="light"] .status-picker { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
