:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --panel: #161619;
  --panel-2: #1c1c20;
  --line: #2a2a30;
  --ink: #f4f4f5;
  --ink-2: #a1a1aa;
  --ink-3: #71717a;
  --accent: #e5261f;
  --accent-2: #ff5a3c;
  --gold: #d8b25e;
  --ok: #2fbf71;
  --radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #17171b 0%, var(--bg) 55%);
  color: var(--ink);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---- inline SVG icons (replace emoji; size via font-size, color via currentColor) ---- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex: none; }

/* ---- top bar ---- */
.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
  flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: 0.5px; }
.brand-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 2.5px; color: var(--accent-2); margin-top: 3px; }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: 8px; }
.topnav a {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 7px 13px; border-radius: 8px; transition: 0.15s;
}
.topnav a:hover { color: var(--ink); background: var(--panel-2); }
.topnav a.on { color: var(--ink); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--accent); }
.event-switch { display: flex; align-items: center; }
.event-switch select {
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600;
  font-family: inherit; max-width: 260px; cursor: pointer;
}
.event-switch select:hover { border-color: var(--accent-2); }

.who { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.who-label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1px; }
.who-out { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.who-out:hover { color: var(--accent-2); }

/* ---- layout ---- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 34px 26px 60px; flex: 1; }

/* ---- hero ---- */
.hero { padding: 20px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.hero-banner { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 26px; }
.hero-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pill {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold); border: 1px solid rgba(216,178,94,0.4); padding: 4px 11px; border-radius: 999px;
}
.hero-date, .hero-venue { font-size: 13px; color: var(--ink-2); }
.hero-title { font-size: clamp(38px, 7vw, 68px); font-weight: 900; letter-spacing: -1.5px; margin: 0; line-height: 0.95;
  background: linear-gradient(180deg, #fff 0%, #b9b9c0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tag { color: var(--ink-2); font-size: 16px; margin: 12px 0 0; }

/* ---- tiles ---- */
.tiles { display: flex; flex-direction: column; gap: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; transition: 0.18s; position: relative; overflow: hidden;
}
.tile::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 0; transition: 0.18s; }
.tile:hover { transform: translateY(-3px); border-color: #3a3a42; }
.tile:hover::before { opacity: 1; }
.tile-icon { font-size: 26px; }
.tile-title { font-size: 19px; font-weight: 800; }
.tile-blurb { font-size: 13px; color: var(--ink-2); line-height: 1.4; flex: 1; }
.tile-count { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); margin-top: 4px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.tile-featured {
  flex-direction: row; align-items: center; gap: 22px; padding: 24px 28px;
  background: linear-gradient(120deg, rgba(229,38,31,0.14) 0%, var(--panel) 55%);
  border-color: rgba(255,90,60,0.4);
}
.tile-featured::before { height: 100%; width: 3px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.tile-featured .tile-icon { font-size: 34px; flex: none; }
.tile-featured .tile-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.tile-featured .tile-title { font-size: 23px; }
.tile-featured .tile-blurb { flex: none; }
.tile-live {
  flex: none; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  padding: 7px 16px; border-radius: 999px;
}
@media (max-width: 620px) {
  .tile-featured { flex-direction: column; align-items: flex-start; }
  .tile-live { align-self: flex-start; }
}

/* ---- section header ---- */
.sec-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.sec-icon { font-size: 40px; }
.sec-title { font-size: 34px; font-weight: 900; letter-spacing: -0.5px; margin: 0; }
.sec-blurb { color: var(--ink-2); margin: 4px 0 0; font-size: 15px; }
.sec-h { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-3); margin: 0 0 16px; }

/* ---- cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.card-note { font-size: 13px; color: var(--gold); margin: 0; }
.card-desc { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.card-desc.muted { color: var(--ink-3); }
.card-rich { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.card-rich p { margin: 0 0 8px; }
.src { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; padding: 3px 8px; border-radius: 6px; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); }
.src-airtable { color: #f6c343; }
.src-mission-control { color: #6ea8fe; }
.src-mtl-app { color: var(--accent-2); }

.btn {
  align-self: flex-start; font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); transition: 0.15s; cursor: pointer;
}
.btn:hover { border-color: #45454e; background: #24242a; }
.btn-tool { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border: none; color: #fff; }
.btn-tool:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; }

/* A card can carry its own colour (card.accent) so a team's page is instantly
   findable in a long section — e.g. the ring card girls in their team pink. */
.card-accented { border-color: var(--card-accent); border-left: 3px solid var(--card-accent); }
.card-accented .card-head h3 { color: var(--card-accent); }
.card-accented .btn-tool { background: var(--card-accent); color: #10100f; font-weight: 800; }
.tag-todo { align-self: flex-start; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); border: 1px dashed var(--line); padding: 5px 10px; border-radius: 7px; }
.card-links { grid-column: 1 / -1; }
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.linklist-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); font-size: 14px; font-weight: 600; transition: 0.15s; }
a.linklist-item:hover { border-color: #45454e; background: #24242a; }
.linklist-item.is-empty { color: var(--ink-3); font-weight: 500; }
.ll-arrow { color: var(--accent-2); font-weight: 800; flex: none; }
.ll-arrow .icon { width: 13px; height: 13px; }
.ll-todo { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); }
@media (max-width: 720px) { .linklist { grid-template-columns: 1fr; } }
@media (min-width: 721px) and (max-width: 900px) { .linklist { grid-template-columns: repeat(2, 1fr); } }

.embed { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg); }
.embed iframe { width: 100%; height: 100%; border: 0; }

.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 32px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 420px; }
.tbl th { text-align: left; padding: 10px 13px; background: var(--panel-2); color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.6px; font-size: 11px; white-space: nowrap; }
.tbl td { padding: 10px 13px; border-top: 1px solid var(--line); }
.tbl tbody tr:hover td { background: var(--panel-2); }

/* ---- updates ---- */
.updates { margin-top: 44px; }
.update { border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 10px 10px 0; padding: 14px 18px; margin-bottom: 12px; }
.update-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.update-scope { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); }
.update p { margin: 6px 0; font-size: 14px; color: var(--ink-2); }
.update time { font-size: 11px; color: var(--ink-3); }

/* ---- empty / denied ---- */
.empty { grid-column: 1 / -1; text-align: center; color: var(--ink-3); padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); }
.mc-sync { font-size: 12px; color: var(--ink-3); margin: -12px 0 22px; display: inline-flex; align-items: center; gap: 7px; }
.mc-sync::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47,191,113,0.18); }
.denied { text-align: center; padding: 60px 20px; }
.denied h1 { font-size: 28px; }
.denied p { color: var(--ink-2); max-width: 460px; margin: 12px auto 24px; }

/* ---- login ---- */
.login-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px; }
.login-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 40px 34px; text-align: center; }
.login-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 3px; color: var(--accent-2); font-weight: 700; }
.login-title { font-size: 40px; font-weight: 900; letter-spacing: -1px; margin: 10px 0 6px; }
.login-sub { color: var(--ink-2); font-size: 14px; margin: 0 0 24px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form input { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15px; text-align: center; }
.login-form input:focus { outline: none; border-color: var(--accent); }
.login-form button { padding: 14px; border-radius: 10px; border: none; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; letter-spacing: 0.5px; }
.login-form button:hover { filter: brightness(1.08); }
.login-error { background: rgba(229,38,31,0.12); border: 1px solid rgba(229,38,31,0.4); color: #ffb4ae; font-size: 13px; padding: 10px; border-radius: 9px; margin-bottom: 16px; }
.login-foot { font-size: 12px; color: var(--ink-3); margin: 20px 0 0; }

/* ---- admin ---- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 26px; }
.grid-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.grid-form label.full { grid-column: 1 / -1; }
.grid-form input, .grid-form select, .grid-form textarea {
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14px; font-family: inherit;
}
.grid-form input:focus, .grid-form select:focus, .grid-form textarea:focus { outline: none; border-color: var(--accent); }
.grid-form button { grid-column: 1 / -1; justify-self: start; padding: 11px 22px; border-radius: 9px; border: none; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; cursor: pointer; }
.saved { background: rgba(47,191,113,0.12); border: 1px solid rgba(47,191,113,0.4); color: #9be8bf; padding: 10px 14px; border-radius: 9px; font-size: 13px; margin-bottom: 8px; }
.uploaded { font-size: 13px; color: var(--ok); margin-top: 12px; word-break: break-all; }
.card-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.card-row-type { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); background: var(--panel-2); padding: 3px 8px; border-radius: 6px; min-width: 70px; text-align: center; }
.card-row-title { flex: 1; font-size: 14px; }
.card-row-actions { display: flex; gap: 6px; }
.inline { display: inline; }
.card-row-actions button { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); border-radius: 7px; padding: 5px 9px; font-size: 12px; cursor: pointer; }
.card-row-actions button:disabled { opacity: 0.3; cursor: not-allowed; }
.card-row-actions button.del { color: #ffb4ae; }
.add-card { margin-top: 16px; }
.add-card summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent-2); padding: 8px 0; }
.add-card .grid-form { margin-top: 14px; }
.muted { color: var(--ink-3); }

/* ---- fight card (web) ---- */
.fc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.fc-actions { display: flex; gap: 10px; }
.fc-error { background: rgba(229,38,31,0.12); border: 1px solid rgba(229,38,31,0.4); color: #ffb4ae; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.bouts { display: flex; flex-direction: column; gap: 14px; }
.bout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "red mid blue" "detail detail detail";
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.bout.has-title {
  grid-template-areas: "title title title" "red mid blue" "detail detail detail";
  border-color: rgba(216,178,94,0.45);
}
.bout.is-feature {
  grid-template-areas: "feature feature feature" "red mid blue" "detail detail detail";
  border-color: rgba(216,178,94,0.45);
}
.bout.is-feature.has-title {
  grid-template-areas: "feature feature feature" "title title title" "red mid blue" "detail detail detail";
}
.bout-feature {
  grid-area: feature; text-align: center; font-weight: 800; letter-spacing: 2px; font-size: 12px;
  line-height: 1.4; text-transform: uppercase; color: var(--gold); padding: 10px 14px;
  background: repeating-linear-gradient(45deg, var(--panel-2), var(--panel-2) 12px, var(--panel) 12px, var(--panel) 24px);
  border-bottom: 1px dashed #45454e;
}
.bout-title {
  grid-area: title; text-align: center; font-weight: 800; letter-spacing: 1px; font-size: 13px;
  text-transform: uppercase; color: #1a1509;
  background: linear-gradient(90deg, #c8992f, var(--gold), #c8992f);
  padding: 8px 14px;
}
.corner { padding: 18px 20px; position: relative; }
.corner.red { grid-area: red; border-left: 4px solid var(--accent); background: linear-gradient(90deg, rgba(229,38,31,0.10), transparent 70%); }
.corner.blue { grid-area: blue; border-right: 4px solid #2f7fe0; text-align: right; background: linear-gradient(270deg, rgba(47,127,224,0.12), transparent 70%); }
.corner-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; margin-bottom: 8px; }
.corner.red .corner-tag { color: var(--accent-2); }
.corner.blue .corner-tag { color: #6ea8fe; }
.f-name { font-size: 19px; font-weight: 800; line-height: 1.15; }
.f-rec { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.f-nick { font-size: 13px; color: var(--gold); font-style: italic; margin-top: 2px; }
.f-gym { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.mid { grid-area: mid; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 22px; min-width: 96px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--bg-2); }
.fight-no { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-3); font-weight: 700; }
.vs { font-size: 26px; font-weight: 900; letter-spacing: 1px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 4px 0; }
.fight-time { font-size: 13px; font-weight: 700; color: var(--ink); }
.detail { grid-area: detail; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--bg-2); }
.d-item { font-size: 12px; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.d-item.d-weight { color: var(--ink); font-weight: 800; border-color: #45454e; }
.d-item.d-pads { color: var(--gold); }
.d-item.d-sponsor { color: #1a1509; background: linear-gradient(90deg, #c8992f, var(--gold)); border: none; font-weight: 800; }
.d-item.muted { color: var(--ink-3); border-style: dashed; }
.intermission {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--panel-2), var(--panel-2) 12px, var(--panel) 12px, var(--panel) 24px);
  border: 1px dashed #45454e;
}
.int-frame {
  display: flex; flex-direction: column; gap: 12px;
  padding: 12px; border-radius: var(--radius); border: 1px dashed #45454e;
  background: repeating-linear-gradient(45deg, var(--panel-2), var(--panel-2) 12px, var(--panel) 12px, var(--panel) 24px);
}
.int-frame .intermission { border: none; background: none; padding: 4px 8px 0; }
.intermission .int-title { font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--ink); }
.intermission .int-mins { font-weight: 800; color: var(--accent-2); font-size: 14px; }
.intermission .int-note { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 620px) {
  .bout { grid-template-columns: 1fr auto 1fr; }
  .corner { padding: 14px 12px; }
  .f-name { font-size: 15px; }
  .mid { min-width: 72px; padding: 10px; }
  .vs { font-size: 20px; }
}

/* ---- timing calculator ---- */
.calc-durations { margin-bottom: 18px; }
.dur-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dur-row label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.dur-row input { padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 700; }
.dur-row input:focus, .calc-count:focus, .calc-time-in:focus { outline: none; border-color: var(--accent); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.calc-block { padding: 0; overflow: hidden; }
.calc-bar { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; padding: 12px 18px; }
.calc-line { display: grid; grid-template-columns: 1fr 88px 84px; align-items: center; gap: 12px; padding: 9px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.calc-line:last-child { border-bottom: none; }
.calc-head-line { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); padding-top: 12px; padding-bottom: 6px; }
.calc-head-line span { text-align: right; }
.calc-head-line span:first-child { text-align: left; }
.calc-lbl { color: var(--ink-2); }
.calc-sub { color: var(--gold); font-weight: 700; }
.calc-sub span:nth-child(2) { text-align: right; }
.calc-line [data-out] { text-align: right; font-weight: 700; color: var(--ink); }
.calc-count, .calc-time-in { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 700; text-align: right; width: 100%; }
.calc-time-in { text-align: center; }
.calc-totals { display: flex; gap: 14px; flex-wrap: wrap; }
.ct-item { flex: 1; min-width: 130px; text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.ct-k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-3); }
.ct-v { display: block; font-size: 30px; font-weight: 900; margin-top: 6px; }
.ct-fin { border-color: var(--accent); background: linear-gradient(180deg, rgba(229,38,31,0.14), var(--bg-2)); }
.ct-fin .ct-v { color: var(--accent-2); }
@media (max-width: 700px) { .calc-grid { grid-template-columns: 1fr; } .dur-row { grid-template-columns: 1fr 1fr; } }

/* ---- event bible ---- */
.bib-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.bib-nav a { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); }
.bib-nav a:hover { color: var(--ink); border-color: #45454e; }
.bib-sec { margin-bottom: 40px; scroll-margin-top: 80px; }
.bib-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--accent); padding-bottom: 6px; margin-bottom: 16px; }
.bib-title { font-size: 26px; font-weight: 900; color: var(--accent-2); letter-spacing: -0.3px; }
.bib-count { font-size: 15px; font-weight: 800; color: var(--accent-2); white-space: nowrap; }

/* period card: solid coloured header bar + body */
.bib-block { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.bib-block-head { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font-size: 18px; font-weight: 800; letter-spacing: 0.5px; padding: 13px 20px; }
.bib-block-body { background: var(--bg-2); padding: 6px 18px 14px; }
/* collapsible period blocks: header doubles as the toggle */
.bib-block-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; border: none; cursor: pointer; font-family: inherit; }
.bib-chev { display: grid; place-items: center; flex: none; transition: transform 0.15s; transform: rotate(90deg); }
.bib-chev .icon { width: 20px; height: 20px; }
.bib-block.is-collapsed .bib-chev { transform: rotate(0deg); }
.bib-block.is-collapsed .bib-block-body { display: none; }
.bib-area-head { color: var(--accent-2); font-weight: 800; font-size: 15px; padding-left: 11px; border-left: 3px solid var(--accent); margin: 18px 0 6px; }

.bib-list { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.bib-item label { display: flex; align-items: baseline; gap: 11px; padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 14px; line-height: 1.45; }
.bib-item label:hover { background: var(--panel); }
.bib-item .txt .t { font-weight: 800; color: var(--ink); }
.bib-item.is-done .txt { text-decoration: line-through; color: var(--ink-3); }
.bib-check { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; flex: none; position: relative; top: 2px; }

/* reference tables */
.bib-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.bib-tbl th { text-align: left; padding: 10px 12px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; text-transform: none; font-size: 12px; font-weight: 700; }
.bib-tbl td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.bib-tbl tbody tr:nth-child(even) td, .bib-tbl tr:nth-child(even) td { background: var(--panel); }
.wb-img { display: block; width: 100%; max-width: 560px; border: 1px solid var(--line); border-radius: 12px; }
/* Door List rows that have an email entered stand out. */
.bib-tbl tr.bib-row-break td { border-top: 2px solid var(--accent-2); }
.bib-tbl tr.bib-row-email td, .bib-tbl tbody tr.bib-row-email td { background: rgba(47, 191, 113, 0.16); color: var(--ink); }
.bib-tbl tr.bib-row-email td:first-child { box-shadow: inset 3px 0 0 var(--ok); font-weight: 700; }

/* ---- decisions ---- */
.dec-list { display: flex; flex-direction: column; gap: 14px; }
.dec { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 18px; }
.dec.is-final { border-left-color: var(--ok); opacity: 0.85; }
.dec.is-closed { border-left-color: var(--ink-3); background: var(--bg-2); opacity: 0.55; padding: 12px 18px; transition: opacity 0.15s; }
.dec.is-closed:hover { opacity: 0.85; }
.dec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dec-status { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 3px 9px; border-radius: 999px; margin-right: 10px; }
.dec-status.st-open { color: var(--gold); border: 1px solid rgba(216,178,94,0.5); }
.dec-status.st-finalised { color: var(--ok); border: 1px solid rgba(47,191,113,0.5); }
.dec-status.st-closed { color: var(--ink-3); border: 1px solid var(--line); }
.dec-title { font-size: 17px; font-weight: 800; }
.dec-actions { display: flex; gap: 8px; flex: none; }
.dec-actions button { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.dec-actions .del { color: #ffb4ae; }
.dec-body { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 10px 0 6px; }
.dec-img { max-width: 100%; max-height: 420px; border-radius: 10px; border: 1px solid var(--line); margin: 8px 0; display: block; }
.dec-file { margin: 8px 0; }
.dec-by { font-size: 12px; color: var(--ink-3); }
.dec-comments { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; border-left: 2px solid var(--line); padding-left: 12px; }
.dec-comment { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.dec-cauthor { font-weight: 700; color: var(--accent-2); }
.dec-comment time { display: block; font-size: 10px; color: var(--ink-3); }
.dec-cform { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.dec-cname { width: 120px; flex: none; }
.dec-cform input { padding: 8px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 13px; }
.dec-cform input[name="text"] { flex: 1; min-width: 160px; }
.dec-cform input:focus { outline: none; border-color: var(--accent); }
.dec-cform button { padding: 8px 16px; border-radius: 8px; border: none; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 13px; cursor: pointer; }

/* ---- fighter travel ---- */
.trv-list { display: flex; flex-direction: column; gap: 12px; }
.trv-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.trv-name { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.trv-group { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-left: 6px; }
.trv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trv-lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-2); }
.trv-val { font-size: 15px; font-weight: 700; margin-top: 4px; }
.trv-sub { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.trv-sub b { color: var(--ink); font-weight: 700; }
@media (max-width: 620px) { .trv-grid { grid-template-columns: 1fr; } }

/* ---- home update delete ---- */
.update-right { display: inline-flex; align-items: center; gap: 10px; }
.upd-x { background: transparent; border: 1px solid var(--line); color: var(--ink-3); width: 24px; height: 24px; border-radius: 6px; font-size: 15px; cursor: pointer; line-height: 1; }
.upd-x:hover { color: #ffb4ae; border-color: rgba(229,38,31,0.4); }

/* ---- floor plan ---- */
.fp-list { display: flex; flex-direction: column; gap: 26px; }
.fp-sec { }
.fp-img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.fp-placeholder { padding: 60px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 12px; font-size: 14px; }

/* ---- update management (admin) ---- */
.upd-manage { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.upd-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); }
.upd-txt { font-size: 13px; color: var(--ink-2); }
.upd-txt strong { color: var(--ink); }

/* ---- group heading (in-section divider) ---- */
.group-heading { grid-column: 1 / -1; margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--line); font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink); }

/* ---- menu layout (sub-page sections) ---- */
.menu-list { display: flex; flex-direction: column; gap: 12px; }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%); transition: 0.16s; }
.menu-item:hover { transform: translateX(3px); border-color: #3a3a42; }
.menu-text { display: flex; flex-direction: column; gap: 4px; }
.menu-title { font-size: 18px; font-weight: 800; }
.menu-desc { font-size: 13px; color: var(--ink-2); }
.menu-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.menu-pill { font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 999px; color: var(--c); border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.menu-arrow { font-size: 22px; color: var(--accent-2); font-weight: 800; flex: none; }

/* ---- runsheet ---- */
.rs-sections { display: flex; flex-direction: column; gap: 18px; }
.rs-sec { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rs-sec-head { display: flex; align-items: baseline; gap: 12px; padding: 12px 18px; }
.rs-fight .rs-sec-head { background: linear-gradient(90deg, rgba(229,38,31,0.22), rgba(229,38,31,0.06)); border-left: 4px solid var(--accent); }
.rs-phase .rs-sec-head { background: var(--panel-2); border-left: 4px solid var(--ink-3); }
.rs-sec-title { font-size: 16px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.rs-sec-note { font-size: 13px; color: var(--ink-2); flex: 1; }
.rs-sec-meta { margin-left: auto; display: flex; gap: 10px; align-items: baseline; white-space: nowrap; }
.rs-sec-time { font-size: 14px; font-weight: 800; color: var(--accent-2); }
.rs-sec-dur { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.rs-rows { display: flex; flex-direction: column; }
.rs-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; padding: 11px 18px; border-top: 1px solid var(--line); }
.rs-row:first-child { border-top: none; }
.rs-desc { font-size: 14px; line-height: 1.45; white-space: pre-line; }
.rs-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rs-person { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.rs-person.is-red { color: #ff8a80; border-color: rgba(229,38,31,0.4); }
.rs-person.is-blue { color: #6ea8fe; border-color: rgba(47,127,224,0.4); }
.rs-dur { font-size: 12px; font-weight: 700; color: var(--ink-3); }
@media (max-width: 620px) { .rs-row { grid-template-columns: 1fr; } .rs-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; } .rs-sec-head { flex-wrap: wrap; } }

/* ---- checklist ---- */
.ck-row { display: grid; grid-template-columns: 1.6fr 1.4fr 0.7fr 0.7fr; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); }
.ck-row:first-child { border-top: none; }
.ck-item { font-size: 14px; font-weight: 600; }
.ck-notes { font-size: 13px; color: var(--ink-2); word-break: break-word; }
.ck-notes .btn { padding: 6px 12px; font-size: 12px; }
.ck-assignee, .ck-status { text-align: right; }
.st { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid var(--line); }
.st-ready { color: var(--ok); border-color: rgba(47,191,113,0.5); }
.st-in-progress { color: var(--gold); border-color: rgba(216,178,94,0.5); }
.st-not-required { color: var(--ink-3); }
.st-todo { color: var(--accent-2); border-color: rgba(229,38,31,0.4); }
.st-none { color: var(--ink-3); border-style: dashed; }
/* Mission Control travel statuses (To book / Pending / Confirmed / Cancelled) */
.st-confirmed { color: var(--ok); border-color: rgba(47,191,113,0.5); }
.st-pending, .st-to-book { color: var(--gold); border-color: rgba(216,178,94,0.5); }
.st-cancelled { color: var(--accent-2); border-color: rgba(229,38,31,0.4); }
.ck-head { color: var(--ink-3); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; padding-top: 9px; padding-bottom: 9px; }
.ck-head div:nth-child(3), .ck-head div:nth-child(4) { text-align: right; }
/* Yokkao-owned items stand out (their production responsibility) */
.ck-row.ck-yokkao { background: rgba(230,168,50,0.09); box-shadow: inset 3px 0 0 var(--gold); }
.rs-person.is-yokkao { background: rgba(230,168,50,0.16); border-color: rgba(230,168,50,0.55); color: var(--gold); font-weight: 700; }
@media (max-width: 640px) { .ck-row { grid-template-columns: 1fr 1fr; } .ck-assignee, .ck-status { text-align: left; } }

/* ---- commentary ---- */
.cm-row { display: grid; grid-template-columns: 210px 1fr minmax(180px, auto); gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.cm-row:first-child { border-top: none; }
.cm-no { font-weight: 800; color: var(--accent-2); font-size: 15px; line-height: 1.25; }
.cm-details { font-size: 14px; line-height: 1.4; }
.cm-people { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cm-pill { font-size: 15px; font-weight: 700; padding: 6px 15px; border-radius: 999px; color: var(--c); border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); white-space: nowrap; }
@media (max-width: 700px) { .cm-row { grid-template-columns: 1fr; gap: 8px; } .cm-people { justify-content: flex-start; } }

/* ---- MC card extra lines ---- */
.mc-x { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.mc-x b { color: var(--ink); font-weight: 700; }
.mc-official { font-size: 14px; font-weight: 800; color: var(--gold); margin: 3px 0; }

/* ---- weigh-in sheet ---- */
.wi-list { display: flex; flex-direction: column; gap: 12px; }
.wi-bout { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wi-head { padding: 10px 16px; background: var(--panel-2); font-weight: 800; }
.wi-agreed { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-left: 8px; }
.wi-row { display: grid; grid-template-columns: 60px 1fr 210px; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.wi-corner { font-size: 10px; text-transform: uppercase; font-weight: 800; letter-spacing: 1px; }
.wi-red .wi-corner { color: var(--accent-2); }
.wi-blue .wi-corner { color: #6ea8fe; }
.wi-name { font-size: 15px; font-weight: 700; }
.wi-input input { width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15px; }
.wi-input input:focus { outline: none; border-color: var(--accent); }
.wi-actions { margin-top: 16px; position: sticky; bottom: 16px; }
.wi-actions button { padding: 12px 28px; border-radius: 9px; border: none; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.35); }
@media (max-width: 640px) { .wi-row { grid-template-columns: 50px 1fr; } .wi-input { grid-column: 1 / -1; } }

/* ---- content calendar ---- */
.cal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cal-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.cal-form label.full { grid-column: 1 / -1; }
.cal-form input, .cal-form textarea { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14px; font-family: inherit; }
.cal-form input:focus, .cal-form textarea:focus { outline: none; border-color: var(--accent); }
.cal-form button { grid-column: 1 / -1; justify-self: start; padding: 11px 22px; border-radius: 9px; border: none; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; cursor: pointer; }
.cal-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.cal-entry { display: grid; grid-template-columns: 205px 1fr auto; gap: 24px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--ink-3); border-radius: 12px; padding: 16px 20px; }
.cal-entry.st-scheduled { border-left-color: var(--gold); }
.cal-entry.st-posted { border-left-color: var(--ok); }
.cal-times { display: flex; flex-direction: column; gap: 5px; }
.cal-t { display: flex; align-items: baseline; gap: 9px; font-size: 14px; white-space: nowrap; }
.cal-t b { color: var(--ink); font-weight: 700; }
.cal-z { font-size: 9px; font-weight: 800; letter-spacing: 1px; color: var(--ink-3); width: 30px; flex: none; }
.cal-bkk { color: var(--ink-2); font-size: 13px; }
.cal-bkk .cal-z { color: var(--gold); }
.cal-body { min-width: 0; }
.cal-desc { font-size: 16px; font-weight: 700; line-height: 1.4; }
.cal-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.cal-tag { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); }
.cal-who { font-size: 12px; color: var(--accent-2); font-weight: 700; }
.cal-controls { display: flex; align-items: center; gap: 10px; flex: none; }
.cal-status { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.cal-status:focus { outline: none; border-color: var(--accent); }
.cal-status.st-scheduled { color: var(--gold); border-color: rgba(216,178,94,0.5); }
.cal-status.st-posted { color: var(--ok); border-color: rgba(47,191,113,0.5); }
.cal-del button { background: transparent; border: 1px solid var(--line); color: var(--ink-3); width: 32px; height: 32px; border-radius: 8px; font-size: 18px; cursor: pointer; }
.cal-del button:hover { color: #ffb4ae; border-color: rgba(229,38,31,0.4); }
@media (max-width: 640px) { .cal-form { grid-template-columns: 1fr; } .cal-entry { grid-template-columns: 1fr; gap: 12px; } .cal-times { flex-direction: row; gap: 20px; } .cal-controls { justify-self: start; } }

/* ---- promo SOPs ---- */
.sop { display: flex; flex-direction: column; gap: 22px; }
.sop-phase { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.sop-band { padding: 14px 20px; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; }
.sop-pre { background: linear-gradient(90deg, #2f7fe0, #1f5fb0); }
.sop-event { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.sop-post { background: linear-gradient(90deg, #2fbf71, #1e8a52); }
.sop-item { padding: 16px 20px; border-top: 1px solid var(--line); }
.sop-item h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.sop-item p { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0; }

.sop-body { position: relative; }
.sop-view.sop-editing {
  outline: 2px solid var(--accent-2); outline-offset: 6px; border-radius: 8px;
  cursor: text; padding: 2px 0;
}
.sop-edit-btn {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  background: transparent; border: 1px dashed var(--line); border-radius: 7px;
  padding: 6px 10px; cursor: pointer; transition: 0.15s;
}
.sop-edit-btn:hover { color: var(--ink); border-color: #45454e; background: var(--panel-2); }
.sop-edit-btn .icon { width: 13px; height: 13px; }

.sop-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px;
  padding: 6px; margin-bottom: 10px;
}
.sop-tb-btn {
  display: flex; align-items: center; gap: 4px;
  background: transparent; border: none; border-radius: 6px;
  color: var(--ink-2); font-size: 12px; font-weight: 700;
  padding: 6px 8px; cursor: pointer; transition: 0.15s;
}
.sop-tb-btn:hover { color: var(--ink); background: var(--panel); }
.sop-tb-btn .icon { width: 15px; height: 15px; }
.sop-tb-sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 4px; }
.sop-tb-spacer { flex: 1; }
.sop-tb-save { color: var(--ok); }
.sop-tb-save:hover { background: rgba(47,191,113,0.12); }
.sop-tb-cancel:hover { color: #ffb4ae; background: rgba(229,38,31,0.12); }

.card-rich h2, .card-rich h3, .card-rich h4 { color: var(--ink); font-weight: 800; margin: 14px 0 6px; }
.card-rich h2:first-child, .card-rich h3:first-child, .card-rich h4:first-child { margin-top: 0; }
.card-rich h3 { font-size: 17px; }
.card-rich h4 { font-size: 14.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent-2); }
.card-rich ul, .card-rich ol { margin: 0 0 8px; padding-left: 20px; }
.card-rich li { margin-bottom: 3px; }
.card-rich a { color: var(--accent-2); text-decoration: underline; }
.card-rich strong { color: var(--ink); }

/* ---- fight team itinerary ---- */
.itin { display: flex; flex-direction: column; gap: 22px; }
.itin-day { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.itin-band { padding: 14px 20px; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; }
.itin-thu { background: linear-gradient(90deg, #2f7fe0, #1f5fb0); }
.itin-fri { background: linear-gradient(90deg, var(--gold), #b3903f); color: #1a1200; }
.itin-sat { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.itin-sun { background: linear-gradient(90deg, #2fbf71, #1e8a52); }
.itin-note { padding: 14px 20px 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.itin-rows { display: flex; flex-direction: column; }
.itin-row { display: flex; gap: 18px; padding: 14px 20px; border-top: 1px solid var(--line); }
.itin-time { flex: none; width: 90px; font-size: 13px; font-weight: 800; color: var(--accent-2); }
.itin-detail { font-size: 14px; line-height: 1.5; }
.itin-subnote { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 560px) { .itin-row { flex-direction: column; gap: 4px; } .itin-time { width: auto; } }

/* ---- sponsors ---- */
.sp-list { display: flex; flex-direction: column; gap: 14px; }
.sp-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.sp-company { font-size: 20px; font-weight: 800; margin: 0; }
.sp-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.sp-cat { background: var(--panel-2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; font-size: 11px; }
.sp-deal { color: var(--ok); font-weight: 700; }
.sp-stage { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.sp-stage.stage-signed { color: var(--ok); border-color: rgba(47,191,113,0.5); }
.sp-stage.stage-declined { color: #ff8a80; }
.sp-stage.stage-negotiating, .sp-stage.stage-in_talks { color: var(--gold); }
.sp-notes { font-size: 13px; color: var(--ink-2); margin: 12px 0 0; line-height: 1.5; }
.sp-deliv-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-3); }
.sp-count { color: var(--accent-2); font-weight: 800; }
.sp-deliv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.sp-hint { font-size: 10px; color: var(--ink-3); text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 8px; }
.sp-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); font-size: 13px; cursor: pointer; transition: 0.12s; user-select: none; -webkit-user-select: none; }
.sp-item:hover { border-color: #45454e; }
.sp-mark { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--ink-3); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; flex: none; }
.sp-item.is-done { border-color: rgba(47,191,113,0.5); background: rgba(47,191,113,0.08); }
.sp-item.is-done .sp-mark { background: var(--ok); border-color: var(--ok); color: #0a0a0b; }
.sp-item.is-done .sp-mark::after { content: '✓'; }
.sp-item.is-done .sp-label { color: var(--ok); }
.sp-item.is-na { opacity: 0.55; border-style: dashed; border-color: #4a4a52; background: transparent; }
.sp-item.is-na .sp-mark { border-color: var(--ink-3); color: var(--ink-3); }
.sp-item.is-na .sp-mark::after { content: '–'; }
.sp-item.is-na .sp-label { color: var(--ink-3); text-decoration: line-through; }
.sp-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: 0.2s; }
.sp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sp-toast.ok { border-color: rgba(47,191,113,0.5); }
.sp-toast.err { border-color: rgba(229,38,31,0.5); color: #ffb4ae; }

/* ---- editable in-hub checklist ---- */
.eck { display: flex; flex-direction: column; gap: 12px; }
.eck-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.eck-tbl { width: 100%; border-collapse: collapse; min-width: 720px; }
.eck-tbl th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.eck-tbl td { padding: 5px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.eck-tbl tbody tr:first-child td { border-top: none; }
.eck-c-item { width: 30%; }
.eck-c-resp { width: 16%; }
.eck-c-status { width: 150px; white-space: nowrap; }
.eck-c-notes { width: 34%; }
.eck-c-del { width: 44px; text-align: right; }
.eck-in { width: 100%; background: transparent; border: 1px solid transparent; border-radius: 7px; color: var(--ink); font: inherit; font-size: 14px; padding: 8px 9px; }
.eck-item { font-weight: 600; }
.eck-in::placeholder { color: var(--ink-3); }
.eck-in:hover { border-color: var(--line); }
.eck-in:focus { outline: none; border-color: var(--accent-2); background: var(--bg-2); }
.eck-status { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 5px 24px 5px 12px; cursor: pointer; background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center; }
.eck-status:focus { outline: none; border-color: var(--accent-2); }
.eck-status option { background: var(--panel); color: var(--ink); }
.eck-status.st-to-do { color: var(--ink-2); }
.eck-status.st-urgent { color: #ffb4ae; border-color: rgba(229,38,31,0.55); background-color: rgba(229,38,31,0.12); }
.eck-status.st-in-progress { color: var(--gold); border-color: rgba(216,178,94,0.5); }
.eck-status.st-pending-approval { color: #c79bff; border-color: rgba(199,155,255,0.5); }
.eck-status.st-to-discuss { color: #6ea8fe; border-color: rgba(110,168,254,0.5); }
.eck-status.st-sent { color: #4fd0e0; border-color: rgba(79,208,224,0.5); }
.eck-status.st-complete { color: var(--ok); border-color: rgba(47,191,113,0.5); }
.eck-del { background: transparent; border: 1px solid transparent; color: var(--ink-3); border-radius: 8px; padding: 6px; cursor: pointer; display: inline-flex; line-height: 0; }
.eck-del:hover { color: #ffb4ae; border-color: rgba(229,38,31,0.4); }
.eck-add { align-self: flex-start; }

/* ---- footer ---- */
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.foot-status { color: var(--gold); }

@media (max-width: 620px) {
  .grid-form { grid-template-columns: 1fr; }
  .who { width: 100%; margin-left: 0; justify-content: space-between; }
}

/* ---- public fighter/trainer event page ---- */
.pe { max-width: 760px; margin: 0 auto; padding: 22px 18px 60px; }
.pe .icon { width: 18px; height: 18px; vertical-align: -3px; }
.pe-top { text-align: center; padding: 18px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.pe-kicker { font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-2); }
.pe-name { font-size: clamp(34px, 9vw, 60px); font-weight: 900; letter-spacing: -1px; margin: 6px 0 12px; line-height: 0.95; }
.pe-meta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pe-meta .icon { color: var(--accent-2); }
.pe-intro { max-width: 520px; margin: 16px auto 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

.pe-cta { display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: linear-gradient(100deg, #b8913f, var(--gold)); color: #1a1508;
  border-radius: 12px; padding: 11px 16px; margin-bottom: 24px; box-shadow: 0 6px 18px rgba(216,178,94,0.18); }
.pe-cta:hover { filter: brightness(1.05); }
.pe-cta-txt { display: flex; flex-direction: column; gap: 3px; }
.pe-cta-txt strong { font-size: 15px; font-weight: 800; }
.pe-cta-txt span { font-size: 13px; opacity: 0.92; line-height: 1.35; }
.pe-cta-arrow { margin-left: auto; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,0.16); }
.pe-cta-arrow .icon { width: 17px; height: 17px; }

.pe-sec { margin-bottom: 30px; }
.pe-h { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-2); margin: 0 0 14px; padding-bottom: 9px; border-bottom: 2px solid var(--line); }
.pe-h .icon { color: var(--accent-2); }

.pe-feed { display: flex; flex-direction: column; gap: 10px; }
.pe-note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 13px 16px; }
.pe-note-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 4px; }
.pe-note-head strong { font-size: 15px; font-weight: 800; }
.pe-note-ts { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.pe-note-body { font-size: 14px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; }

.pe-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.pe-time { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; text-align: center; }
.pe-time-lbl { font-size: 17px; font-weight: 800; color: var(--gold); letter-spacing: -0.2px; }
.pe-time-val { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-top: 5px; }
.pe-time-val.is-tbc { color: var(--ink-3); font-weight: 600; }
.pe-time-note { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.pe-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.pe-card-h { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 10px; }
.pe-kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pe-kv:first-of-type { border-top: none; }
.pe-kv span { color: var(--ink-2); font-weight: 600; }
.pe-kv b { text-align: right; font-weight: 700; }
.pe-kv b.is-tbc { color: var(--ink-3); font-weight: 600; }
.pe-kv a { color: var(--accent-2); }
.pe-list { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.pe-list li { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pe-venue-name { font-size: 20px; font-weight: 800; }
.pe-venue-addr { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.pe-maplink { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0; font-size: 14px; font-weight: 700; color: var(--accent-2); text-decoration: none; }
.pe-maplink:hover { text-decoration: underline; }

.pe-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pe-link-card { text-decoration: none; display: flex; flex-direction: column; justify-content: center; transition: border-color 0.15s; }
.pe-link-card:hover { border-color: var(--accent); }
.pe-link-sub { font-size: 14px; color: var(--ink-2); }
.pe-link-sub .icon { width: 15px; height: 15px; color: var(--accent-2); vertical-align: -2px; }

.pe-foot { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.pe-foot-sub { color: var(--ink-3); margin-top: 3px; }

@media (max-width: 560px) {
  .pe-two { grid-template-columns: 1fr; }
  .pe-cta-txt strong { font-size: 14px; }
}

.pe-view-btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 14px; padding: 9px 18px; border-radius: 999px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-size: 14px; font-weight: 700; }
.pe-view-btn .icon { width: 16px; height: 16px; color: #fff; }
.pe-fc-btn { margin-top: 0; }
.pe-link-card:hover .pe-view-btn { filter: brightness(1.08); }

.pe-when-line + .pe-when-line { margin-top: 3px; font-weight: 600; color: var(--ink-2); }

.pe-alert { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding: 15px 18px;
  background: rgba(229,38,31,0.10); border: 1px solid rgba(255,90,60,0.45); border-left: 4px solid var(--accent-2); border-radius: 12px; }
.pe-alert-icon { flex: none; display: grid; place-items: center; }
.pe-alert-icon .icon { width: 20px; height: 20px; color: var(--accent-2); }
.pe-alert-txt { display: flex; flex-direction: column; gap: 3px; }
.pe-alert-txt strong { font-size: 15px; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: 0.6px; }
.pe-alert-txt span { font-size: 14px; line-height: 1.4; color: var(--ink-2); }

.pe-card-stack { margin-top: 12px; }
.pe-body { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

.pe-body-note { margin-top: 8px; color: var(--ink-3); }
.pe-form { display: flex; flex-direction: column; gap: 14px; }
.pe-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pe-form input { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  color: var(--ink); font-size: 15px; font-weight: 600; font-family: inherit; }
.pe-form input:focus { outline: none; border-color: var(--accent-2); }
.pe-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pe-submit { margin-top: 4px; padding: 14px 18px; border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-size: 15px; font-weight: 800; font-family: inherit; }
.pe-submit:hover { filter: brightness(1.08); }
.pe-back { text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.pe-form-err { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px;
  background: rgba(229,38,31,0.12); border: 1px solid rgba(255,90,60,0.45); color: var(--ink); font-size: 14px; font-weight: 600; }
.pe-form-err .icon { width: 18px; height: 18px; color: var(--accent-2); flex: none; }

.pe-hl { color: var(--accent-2); font-weight: 800; font-style: normal; }

.pe-fc-note { color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 1.6; letter-spacing: 0.3px; }

.pe-when-line.is-italic { font-style: italic; }

/* ---- outstanding onboarding: button on /event + pop-up + list -------------- */
.pe-pending-btn { display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  color: var(--ink); border-radius: 14px; padding: 15px 20px; margin-bottom: 18px; }
.pe-pending-btn:hover { background: var(--panel-2); border-left-color: var(--accent-2); }
.pe-pending-tag { flex: none; font-size: 11px; font-weight: 900; letter-spacing: 2px;
  padding: 6px 11px; border-radius: 6px; background: var(--accent); color: #fff; }
.pe-pending-txt { font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.35; }
.pe-pending-btn .pe-cta-arrow { width: 34px; height: 34px; background: var(--panel-2); }
.pe-pending-btn .pe-cta-arrow .icon { width: 18px; height: 18px; }

.pd-modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.72);
  display: flex; align-items: center; justify-content: center; padding: 18px; }
.pd-modal[hidden] { display: none; }
body.pd-open { overflow: hidden; }
.pd-modal-box { width: 100%; max-width: 760px; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--bg-2, #121215); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pd-modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pd-modal-head h2 { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.pd-close { margin-left: auto; background: none; border: none; color: var(--ink-2); font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.pd-close:hover { color: var(--ink); }
.pd-modal-body { padding: 18px 20px 22px; overflow-y: auto; }
.pd-loading { color: var(--ink-2); font-size: 14px; padding: 10px 0; }

.pd-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pd-stat { font-size: 12px; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.pd-stat strong { color: var(--ink); font-size: 14px; margin-right: 3px; }
.pd-stat-bad strong { color: var(--accent-2); }
.pd-stat-good strong { color: #5fd3a3; }
.pd-allclear { color: #5fd3a3; font-weight: 700; padding: 14px 0; }

.pd-rows { display: flex; flex-direction: column; gap: 8px; }
.pd-row { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.pd-who { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; }
.pd-fight { flex: none; min-width: 26px; text-align: center; font-size: 11px; font-weight: 900;
  padding: 3px 7px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); }
.pd-fight.is-red { color: #ff8a80; border-color: rgba(229,38,31,0.45); }
.pd-fight.is-blue { color: #6ea8fe; border-color: rgba(47,127,224,0.45); }
.pd-name { font-size: 15px; font-weight: 700; }
.pd-gym { font-size: 12px; color: var(--ink-3); }
.pd-missing { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.pd-tag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(229,38,31,0.13); border: 1px solid rgba(229,38,31,0.4); color: #ff9d95; }
.pd-tag em { font-style: normal; font-weight: 500; opacity: 0.8; }

.pd-done-head { margin: 20px 0 9px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); }
.pd-done-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-done-pill { font-size: 12px; padding: 4px 11px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); }
.pd-foot { margin-top: 18px; font-size: 12px; color: var(--ink-3); }
.pd-error { color: #ff9d95; font-size: 14px; padding: 10px 0; }
.pd-error a { color: var(--accent-2); text-decoration: underline; }
.pd-back { margin-top: 18px; }

@media (max-width: 620px) {
  .pd-modal { padding: 0; }
  .pd-modal-box { max-height: 100vh; height: 100%; border-radius: 0; border: none; }
  .pe-pending-btn { padding: 13px 15px; gap: 11px; }
  .pe-pending-txt { font-size: 13px; }
}

/* Door list: the table code ("S1", "W21") is what an usher scans for while
   walking a guest across a dark room, so it is picked out of the rest of the cell. */
.tbl-no { display: inline-block; background: #6b7280; color: #fff; font-weight: 900;
  font-size: 12.5px; letter-spacing: 0.6px; padding: 1px 8px; border-radius: 6px; margin-right: 5px; }
/* The chip wears the wristband colour that table is issued, so the sheet and the
   bands in your hand match without anyone reading the rest of the line. */
.tbl-gold { background: var(--gold); color: #10100f; }
.tbl-blue { background: #6ea8fe; color: #10100f; }
.tbl-black { background: #101013; color: #fff; border: 1px solid #4a4a52; }
.tbl-purple { background: #a78bfa; color: #10100f; }
.tbl-red { background: #ef5350; color: #fff; }
.tbl-green { background: #5fd3a3; color: #10100f; }
.tbl-white { background: #f2f2f4; color: #10100f; }
.tbl-pink { background: #f38bc4; color: #10100f; }
.tbl-orange { background: #f2a65a; color: #10100f; }

/* Athlete parking map on the public fighter page. */
.pe-mapcard { margin-top: 12px; }
.pe-map { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line); margin-top: 8px; background: #fff; }
.pe-map-note { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }


/* ---- top bar menus ---- */
.topnav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; margin-left: 8px; }
.topnav-link { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 7px 13px; border-radius: 8px; }
.topnav-link:hover, .topnav-link.on { color: var(--ink); background: var(--panel-2); }
details.menu { position: relative; }
details.menu > summary {
  list-style: none; cursor: pointer; user-select: none;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 7px 11px 7px 13px; border-radius: 8px; display: flex; align-items: center; gap: 5px;
}
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary:hover { color: var(--ink); background: var(--panel-2); }
details.menu.on > summary { color: var(--ink); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--accent); }
.menu-caret { font-size: 9px; opacity: 0.6; }
details.menu[open] > summary { color: var(--ink); background: var(--panel-2); }
.menu-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 210px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}
.menu-pop a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.menu-pop a:hover { background: var(--panel-2); color: var(--ink); }

@media (max-width: 720px) {
  /* On a phone the popover becomes an inline list — a floating panel near the
     bottom of a narrow screen is unreachable. */
  details.menu { width: 100%; }
  .menu-pop { position: static; min-width: 0; box-shadow: none; margin: 4px 0 8px; }
  .topnav { gap: 0; }
}

.send-box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.send-what { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.send-preview { margin: 0 0 10px; font-size: 12px; color: var(--ink-3); background: var(--bg-2); border-radius: 8px; padding: 9px 11px; }
.send-label { color: var(--ink-2); font-weight: 700; }
.send-warn { margin: 0; font-size: 12px; color: var(--gold); }
.send-box button { margin-right: 10px; }

/* ---- admin: events table ---- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--ink-3); padding: 0 10px 8px 0; font-weight: 700;
}
.admin-table td { padding: 9px 10px 9px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table .pill { margin-left: 8px; }
.admin-table form.inline { display: inline-flex; gap: 6px; align-items: center; margin-right: 8px; }
.admin-table input { max-width: 170px; }


/* ---- money pages (tables, tickets, budget) ---- */
.money-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 20px; }
.mstat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; min-width: 140px; display: flex; flex-direction: column; gap: 4px;
}
.mstat-v { font-size: 22px; font-weight: 800; line-height: 1; }
.mstat-v small { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.mstat-l { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink-3); }
.mstat.is-warn .mstat-v { color: var(--gold); }
.mstat-form { flex-direction: row; align-items: flex-end; gap: 8px; }
.mstat-form label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1.2px; }
.mstat-form input { width: 90px; }

.money-scroll { overflow-x: auto; }
.money-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
.money-table th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--ink-3); padding: 0 8px 8px 0; font-weight: 700; white-space: nowrap;
}
.money-table td { padding: 5px 8px 5px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.money-table tr.is-paid td { opacity: 0.55; }
.money-table input, .money-table select {
  width: 100%; min-width: 70px; background: var(--bg-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font: inherit; font-size: 13px;
}
.money-table td.num input { max-width: 96px; text-align: right; }
.money-table input:focus, .money-table select:focus { outline: none; border-color: var(--accent-2); }
.money-table .row-actions { white-space: nowrap; display: flex; gap: 6px; }
.money-table .row-actions button { padding: 6px 10px; font-size: 12px; }
.money-table .danger { color: var(--accent); border-color: var(--line); }
.money-table .danger:hover { border-color: var(--accent); }
.money-table .tick { width: 44px; }
.tickbtn {
  width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ok); font-weight: 800; cursor: pointer; padding: 0;
}
.tickbtn.on { border-color: var(--ok); }
.hidden-form { display: none; }


/* ---- event tables (ops) ---- */
.ops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.money-table tr.is-hidden-row td { opacity: 0.4; }
.money-table textarea {
  width: 100%; min-width: 180px; background: var(--bg-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font: inherit; font-size: 13px; resize: vertical;
}
.money-table textarea:focus { outline: none; border-color: var(--accent-2); }


/* ---- new event wizard ---- */
.wiz-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 16px 0 24px; }
.wiz-steps li {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink-3);
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
}
.wiz-steps li.on { color: var(--ink); border-color: var(--accent-2); background: var(--panel-2); }
.wiz-steps li.done { color: var(--ok); border-color: var(--line); }
.wiz-steps li a { color: inherit; }

.wiz-form h2 { margin-top: 0; }
.wiz-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.wiz-choice {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  transition: border-color 0.15s;
}
.wiz-choice:hover { border-color: var(--accent-2); }
.wiz-choice:has(input:checked) { border-color: var(--accent); background: var(--panel-2); }
.wiz-choice input { margin-top: 3px; flex: none; accent-color: var(--accent); }
.wiz-choice-body { display: flex; flex-direction: column; gap: 4px; }
.wiz-choice-title { font-weight: 700; font-size: 14px; }
.wiz-choice-blurb { font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.wiz-choice-meta { font-size: 11px; color: var(--ink-3); }
.wiz-inline { flex-direction: row !important; align-items: center; gap: 8px; }
.wiz-actions { display: flex; gap: 10px; align-items: center; margin-top: 24px; }
.wiz-review th { width: 130px; vertical-align: top; padding-top: 10px; }

/* ---- setup checklist ---- */
.setup-list { list-style: none; padding: 0; margin: 18px 0; }
.setup-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.setup-mark {
  width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ok); font-weight: 800; flex: none;
}
.setup-list li.done .setup-mark { border-color: var(--ok); }
.setup-list li.done .setup-title { color: var(--ink-3); }
.setup-body { display: flex; flex-direction: column; gap: 3px; }
.setup-title { font-weight: 700; font-size: 14px; }
.setup-note { font-size: 12px; color: var(--ink-2); }

.new-event-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.new-event-cta .muted { font-size: 12px; max-width: 46ch; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.room-block { margin-bottom: 14px; }
.room-head { margin-bottom: 0; border-radius: 12px 12px 0 0; }
.room-block .room-fields, .room-block .kind-table {
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px;
  padding: 12px 14px; margin: 0; background: var(--panel);
}
.kind-table { width: 100%; min-width: 0; }
.kind-table th { padding-bottom: 6px; }
.kind-table td { border-top: 0; padding: 3px 8px 3px 0; }
.sec-sub { font-size: 12px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--ink-3); margin: 22px 0 8px; }

.pool-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 20px; }
.pool { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pool-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.pool-name { font-weight: 700; font-size: 13px; }
.pool-count { font-size: 11px; color: var(--ink-3); }
.pool-bar { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.pool-bar span { display: block; height: 100%; background: var(--accent); }

.budget-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.budget-actions form.inline { display: inline-flex; gap: 6px; align-items: center; }
.money-table tr.new-row td { border-top: 2px solid var(--line); }
.money-table tr.new-row input::placeholder { color: var(--ink-3); font-style: italic; }
.sponsors .sp-list { margin-top: 6px; }

.src-note { font-size: 11px; color: var(--ink-3); align-self: center; }

/* ---- matchmaking ----
   A working list, not a dashboard: one state line, sections with air between
   them, and people as rows you can scan rather than table cells. */
.mm-state { font-size: 14px; color: var(--ink-2); margin: 4px 0 26px; }
.mm-state strong { color: var(--ink); font-size: 16px; }
.mm-state .dot { color: var(--ink-3); margin: 0 8px; }

.mm-block { margin-bottom: 34px; }
.mm-h { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--ink-3); font-weight: 700; margin: 0 0 12px; display: block; }
.mm-count { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-3); margin-left: 8px; font-size: 12px; }
.mm-empty { color: var(--ink-3); font-size: 14px; margin: 0 0 8px; }

.mm-fold > summary { cursor: pointer; list-style: none; padding: 12px 0; border-top: 1px solid var(--line); }
.mm-fold > summary::-webkit-details-marker { display: none; }
.mm-fold > summary::after { content: ' ▾'; color: var(--ink-3); font-size: 11px; }
.mm-fold[open] > summary::after { content: ' ▴'; }

/* a bout reads like a bout */
.bout { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.bout-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bout-no {
  width: 26px; height: 26px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none;
}
.corner { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.corner-tag { font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; }
.corner.red .corner-tag { color: var(--accent); }
.corner.blue .corner-tag { color: #6ea8fe; }
.corner-name { font-weight: 700; font-size: 15px; }
.corner-gym { font-size: 12px; color: var(--ink-3); }
.bout-vs { color: var(--ink-3); font-size: 12px; font-weight: 700; flex: none; }
.bout-terms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.term { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.term.is-confirmed { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.term.is-cancelled { color: var(--accent-2); }
.bout-edit > summary { cursor: pointer; list-style: none; font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.bout-edit > summary::-webkit-details-marker { display: none; }
.bout-edit > summary:hover { color: var(--accent-2); }
.bout-edit .grid-form { margin-top: 12px; }
.bout-actions { display: flex; gap: 10px; align-items: center; }

/* people as rows */
.people { list-style: none; padding: 0; margin: 0 0 14px; }
.person {
  display: flex; align-items: center; gap: 12px; padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}
.person.is-matched { opacity: 0.5; }
.person-pick { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.person-nopick { border-radius: 6px; border: 1px dashed var(--line); }
.person-initials {
  width: 34px; height: 34px; border-radius: 999px; flex: none; background: var(--bg-2);
  color: var(--ink-3); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.person-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.person-name { font-weight: 700; font-size: 14px; }
.person-meta { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-flags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; max-width: 40%; }
.flag { font-size: 10px; padding: 2px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent); color: var(--accent-2); white-space: nowrap; }
.flag.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.person-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.person .tag { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; margin-left: 6px; }
.linkbtn { font-size: 12px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; }
.linkbtn:hover { color: var(--ink); border-color: var(--accent-2); }
.dropbtn { background: none; border: 0; color: var(--ink-3); font-size: 18px; line-height: 1; padding: 4px 6px; cursor: pointer; }
.dropbtn:hover { color: var(--accent); }

/* sending */
.send { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.send-copy { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.send-eg { display: block; font-size: 12px; color: var(--ink-3); background: var(--bg-2); border-radius: 8px; padding: 9px 11px; margin: 0 0 10px; }
.send-warn { margin: 0; font-size: 12px; color: var(--gold); }
.send button { margin-right: 10px; }
.pair > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.pair > summary:hover { color: var(--ink); }

/* ---- the map ---- */
.map .k {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-3); vertical-align: middle;
}
.map .k.live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.map .k.partial { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.map .k.planned { color: var(--ink-3); }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 20px 0 34px; }
.app-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; border-top: 3px solid var(--line); }
.app-card.app-hub { border-top-color: var(--accent); }
.app-card.app-portal { border-top-color: var(--gold); }
.app-card.app-mc { border-top-color: var(--ok); }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-head h2 { font-size: 16px; margin: 0; }
.app-role { font-size: 13px; color: var(--ink-2); margin: 6px 0 10px; }
.app-card ul { margin: 0; padding-left: 18px; }
.app-card li { font-size: 12px; color: var(--ink-3); margin: 4px 0; }
.app-url { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--accent-2); }

.flow { list-style: none; padding: 0; margin: 0 0 34px; }
.flow-step { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); position: relative; }
.flow-no {
  flex: none; width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 800; background: var(--panel-2);
  color: var(--ink-2); border: 1px solid var(--line);
}
.flow-step.is-live .flow-no { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.flow-step.is-partial .flow-no { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.flow-title { margin: 2px 0 4px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flow-where { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.flow-detail { margin: 0; font-size: 13px; color: var(--ink-2); max-width: 74ch; }
.flow-next { margin: 6px 0 0; font-size: 12px; color: var(--gold); }
.next-list { padding-left: 20px; }
.next-list li { font-size: 13px; color: var(--ink-2); margin: 6px 0; }

/* ---- admin list style (matches the MTL Admin database and nominations pages):
   pill tabs with counts, a wide search, a filter bar, then rows as cards with a
   gold initials avatar. Used by the database and the nomination lists. ---- */
.al-tabs { display: inline-flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 18px 0 14px; }
.al-tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.al-tab .n { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.al-tab:hover { color: var(--ink); }
.al-tab.on { background: var(--gold); color: #17140c; }
.al-tab.on .n { color: #4a3f1f; }

.al-search { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 4px 14px; }
.al-search input { flex: 1; background: none; border: 0; color: var(--ink); font: inherit; font-size: 15px; padding: 12px 0; }
.al-search input:focus { outline: none; }
.al-search .count { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

.al-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0 18px; }
.al-filters .lbl { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-right: 2px; }
.al-filters select, .al-filters input {
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 11px; font: inherit; font-size: 13px;
}
.al-filters input { width: 78px; }
.al-filters select:focus, .al-filters input:focus { outline: none; border-color: var(--gold); }
.al-filters .sep { color: var(--ink-3); }

.al-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.al-row {
  display: flex; align-items: center; gap: 11px; padding: 9px 13px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 0.12s;
}
.al-row:hover { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.al-row.is-matched { opacity: 0.62; }
.al-pick { width: 20px; height: 20px; flex: none; accent-color: var(--gold); }
.al-av {
  width: 32px; height: 32px; border-radius: 999px; flex: none; display: flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
  background: var(--gold); color: #17140c;
}
/* A gym is a place, not a person: square badge, and it is dimmed until the gym
   is actually registered with us. */
.al-av.sq { border-radius: 9px; }
.al-av.dim { background: color-mix(in srgb, var(--accent) 22%, var(--bg-2)); color: color-mix(in srgb, var(--accent) 75%, var(--ink-3)); }
.al-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.al-name { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.al-gym { font-size: 12.5px; color: var(--gold); }
.al-meta { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-meta .warn { color: var(--accent-2); }
/* the status pills from the admin list */
.pill-reg, .pill-unreg {
  font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 6px;
}
.pill-reg { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill-unreg { background: color-mix(in srgb, var(--accent) 18%, transparent); color: color-mix(in srgb, var(--accent-2) 90%, var(--ink)); }
.al-btn { font-size: 12px; font-weight: 700; border-radius: 8px; padding: 6px 14px; border: 1px solid var(--line); color: var(--ink-2); background: none; cursor: pointer; }
.al-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.al-btn.gold { background: var(--gold); border-color: var(--gold); color: #17140c; }
.al-btn.gold:hover { background: #e6c274; }
.al-right { display: flex; align-items: center; gap: 12px; flex: none; }
.al-weight { font-size: 14px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.al-chev { color: var(--ink-3); font-size: 16px; }
.al-tag { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--ok); margin-left: 8px; }
.al-flag { font-size: 10px; padding: 2px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent); color: var(--accent-2); white-space: nowrap; }
.al-flag.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.al-sec { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.al-sec-name { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.al-sec-count { font-size: 12px; color: var(--ink-3); }
.al-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 10px; }
.al-bar-actions { display: flex; gap: 8px; align-items: center; }
.al-sec::after { content: ''; flex: 1; height: 1px; background: var(--line); margin: 0 12px; order: 1; }
.al-sec .al-sec-count { order: 2; }
.al-sec .al-sec-name { order: 0; color: var(--gold); }
.term.warn { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.mm-fold > summary { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mm-fold > summary:hover { color: var(--ink); }
.al-bar-count { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3); }
.btn-gold { background: var(--gold); color: #17140c; border: 1px solid var(--gold); font-weight: 700; }
.btn-gold:hover { background: #e6c274; border-color: #e6c274; }
.al-chip { font-size: 12px; font-weight: 700; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.al-chip.on { background: color-mix(in srgb, var(--gold) 18%, transparent); border-color: var(--gold); color: var(--gold); }

/* ---- database ---- */
.db-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 12px; }
.db-filters input, .db-filters select {
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 13px;
}
.db-filters input { min-width: 210px; }
.db-filters input:focus, .db-filters select:focus { outline: none; border-color: var(--accent-2); }
.db-pager { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.database .chip {
  display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2); margin: 0 3px 3px 0;
}
.database .chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.database .chip.no { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); }

.vis-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.vis-state { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vis-state .pill { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; }
.vis-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vis-actions form.inline { display: inline-flex; gap: 6px; align-items: center; }

/* a row that opens something: the whole row is the target */
.al-row.is-link { position: relative; cursor: pointer; }
.al-rowlink { position: absolute; inset: 0; border-radius: 12px; }
.al-row.is-link:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.al-row.is-link .al-right { position: relative; }

/* ---- one fighter ---- */
.fp-state { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.fp-state .pill { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.fp-link { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.fp-link .lbl { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; white-space: nowrap; }
.fp-link input { flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); font: inherit; font-size: 12px; padding: 8px 10px; }
.fp-form { margin-top: 12px; }

.al-av.is-photo { object-fit: cover; background: var(--bg-2); }
/* =============================================================================
   Event ops pages: nominations, the database, a fighter, the map.
   ---------------------------------------------------------------------------
   Its own system rather than more patches on style.css. That stylesheet was
   written for the crew-facing pages, and reusing its class names is what broke
   the bout cards: `.bout` there is a three-column grid for the printed fight
   card, so matchmaking's bouts inherited a grid they were never designed for.

   Rules for anything added here:
     - every class is prefixed `o-`, so nothing can collide with style.css
     - components, not pages: a row is a row whether it holds a fighter or a gym
     - spacing comes from the scale below, not from whatever looked right
   ========================================================================== */

.ops {
  --o-gap: 8px;          /* between rows */
  --o-pad: 14px;         /* inside a row */
  --o-block: 38px;       /* between sections */
  --o-radius: 12px;
  --o-line: var(--line);
  --o-panel: var(--panel);
  --o-accent: var(--gold);
  --o-red: #e5261f;
  --o-blue: #6ea8fe;
  --o-green: #3fb950;
}

/* ---- page head ----------------------------------------------------------
   The page needs air at the top or it reads as a fragment of something else. */
.ops { padding-top: 10px; }
.ops .o-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 26px; }
.ops .o-title { font-size: 32px; font-weight: 800; margin: 0; letter-spacing: -0.6px; line-height: 1.1; }
.ops .o-sub { color: var(--ink-3); font-size: 13px; margin: 6px 0 0; letter-spacing: 0.3px; }
.ops .o-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---- buttons ------------------------------------------------------------ */
.ops .o-btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--o-line);
  background: var(--panel-2); color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.ops .o-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.ops .o-btn.is-primary { background: var(--o-accent); border-color: var(--o-accent); color: #17140c; }
.ops .o-btn.is-primary:hover { background: #e6c274; border-color: #e6c274; }
.ops .o-btn.is-quiet { background: none; }
.ops .o-btn.is-danger:hover { color: var(--o-red); border-color: var(--o-red); }
.ops .o-btn.is-small { font-size: 12px; padding: 5px 11px; }

/* ---- section header -----------------------------------------------------
   A heading, what it holds, and what you can do to it. The rule sits under the
   lot rather than running between the words. */
.ops .o-sec { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: var(--o-block) 0 12px; padding-bottom: 9px; border-bottom: 1px solid var(--o-line); }
.ops .o-sec-name { font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink); font-weight: 700; }
.ops .o-sec-rule { flex: 1; }
.ops .o-sec-count { font-size: 12px; color: var(--ink-3); }
.ops .o-sec .o-btn { align-self: center; }
.ops .o-sec.is-sub { margin-top: 22px; border-bottom: 0; padding-bottom: 0; }
.ops .o-sec.is-sub .o-sec-name { font-size: 11px; color: var(--o-accent); letter-spacing: 2px; }

/* ---- tabs, search, filters --------------------------------------------- */
.ops .o-tabs { display: inline-flex; gap: 4px; background: var(--o-panel); border: 1px solid var(--o-line); border-radius: var(--o-radius); padding: 4px; }
.ops .o-tab { padding: 8px 15px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ops .o-tab .o-n { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-left: 6px; }
.ops .o-tab.is-on { background: var(--o-accent); color: #17140c; }
.ops .o-tab.is-on .o-n { color: #4a3f1f; }

.ops .o-search { display: flex; align-items: center; gap: 10px; background: var(--o-panel); border: 1px solid var(--o-line); border-radius: var(--o-radius); padding: 2px 14px; }
.ops .o-search input { flex: 1; background: none; border: 0; color: var(--ink); font: inherit; font-size: 15px; padding: 12px 0; }
.ops .o-search input:focus { outline: none; }
.ops .o-search .o-count { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

.ops .o-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--o-panel); border: 1px solid var(--o-line); border-radius: var(--o-radius); padding: 11px 13px; margin-top: 8px; }
.ops .o-lbl { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.ops .o-sep { color: var(--ink-3); font-size: 12px; }
.ops .o-chip { font-size: 12px; font-weight: 700; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--o-line); color: var(--ink-2); }
.ops .o-chip:hover { color: var(--ink); }
.ops .o-chip.is-on { background: color-mix(in srgb, var(--o-accent) 18%, transparent); border-color: var(--o-accent); color: var(--o-accent); }

.ops input[type=text], .ops input[type=tel], .ops input[type=email], .ops input[type=number],
.ops input[type=date], .ops input:not([type]), .ops select, .ops textarea {
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--o-line);
  border-radius: 9px; padding: 9px 11px; font: inherit; font-size: 13px;
}
.ops .o-filters input { width: 80px; }
.ops input:focus, .ops select:focus, .ops textarea:focus { outline: none; border-color: var(--o-accent); }

/* ---- rows --------------------------------------------------------------- */
.ops .o-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--o-gap); }
.ops .o-row {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: var(--o-pad); background: var(--o-panel);
  border: 1px solid var(--o-line); border-radius: var(--o-radius);
}
.ops .o-row.is-dim { opacity: 0.55; }
.ops .o-row.is-link:hover { border-color: color-mix(in srgb, var(--o-accent) 55%, var(--o-line)); }
.ops .o-rowlink { position: absolute; inset: 0; border-radius: var(--o-radius); }
.ops .o-pick { width: 20px; height: 20px; flex: none; accent-color: var(--o-accent); position: relative; }
.ops .o-av {
  width: 32px; height: 32px; border-radius: 999px; flex: none; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 800; background: var(--o-accent); color: #17140c;
}
.ops .o-av.is-square { border-radius: 9px; }
.ops .o-av.is-dim { background: color-mix(in srgb, var(--o-red) 20%, var(--bg-2)); color: color-mix(in srgb, var(--o-red) 80%, var(--ink-3)); }
.ops .o-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ops .o-name { font-size: 15.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; letter-spacing: -0.1px; }
.ops .o-second { font-size: 12.5px; color: var(--o-accent); }
.ops .o-meta { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops .o-meta .o-warn { color: var(--accent-2); }
.ops .o-end { display: flex; align-items: center; gap: 8px; flex: none; position: relative; }
.ops .o-weight { font-size: 14px; font-weight: 700; color: var(--o-accent); white-space: nowrap; }
.ops .o-chev { color: var(--ink-3); font-size: 15px; }

/* ---- state marks -------------------------------------------------------- */
.ops .o-tag { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ok);
  border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); border-radius: 999px; padding: 2px 7px; }
.ops .o-flag { font-size: 10px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent); color: var(--accent-2); }
.ops .o-flag.is-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.ops .o-pill { font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.ops .o-pill.is-yes { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.ops .o-pill.is-no { background: color-mix(in srgb, var(--o-red) 18%, transparent); color: color-mix(in srgb, var(--accent-2) 90%, var(--ink)); }

/* ---- a bout -------------------------------------------------------------
   Deliberately NOT called .bout: that name belongs to the printed fight card.
   This borrows its language though — a red corner and a blue one, weighted, with
   the VS between them — because that is what a bout looks like. */
.ops .o-bout { display: block; background: var(--o-panel); border: 1px solid var(--o-line);
  border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.ops .o-bout-line { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: stretch; }
.ops .o-bout-no {
  display: flex; align-items: center; justify-content: center; width: 46px;
  background: var(--bg-2); color: var(--ink-3); font-size: 13px; font-weight: 800;
  border-right: 1px solid var(--o-line);
}
.ops .o-corner { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 14px 16px; }
.ops .o-corner.is-red { background: linear-gradient(90deg, color-mix(in srgb, var(--o-red) 16%, transparent), transparent 85%); border-left: 3px solid var(--o-red); }
.ops .o-corner.is-blue { background: linear-gradient(270deg, color-mix(in srgb, var(--o-blue) 16%, transparent), transparent 85%); border-right: 3px solid var(--o-blue); text-align: right; }
.ops .o-corner-tag { font-size: 9px; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700; }
.ops .o-corner.is-red .o-corner-tag { color: var(--o-red); }
.ops .o-corner.is-blue .o-corner-tag { color: var(--o-blue); }
.ops .o-corner-name { font-weight: 800; font-size: 17px; letter-spacing: -0.2px; }
.ops .o-corner-gym { font-size: 12px; color: var(--ink-3); }
.ops .o-vs { display: flex; align-items: center; justify-content: center; padding: 0 14px;
  color: var(--o-red); font-size: 15px; font-weight: 800; letter-spacing: 1px; }
.ops .o-terms { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 11px 15px; border-top: 1px solid var(--o-line); }
.ops .o-term { font-size: 11px; line-height: 1.4; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--o-line); color: var(--ink-2); }
.ops .o-term.is-confirmed { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.ops .o-term.is-cancelled { color: var(--accent-2); }
.ops .o-term.is-todo { color: var(--o-accent); border-color: color-mix(in srgb, var(--o-accent) 40%, transparent); }

/* ---- disclosure ---------------------------------------------------------
   A summary is a control, so it looks like one. Left as bare text it read as a
   line of body copy with a stray bullet after it. */
.ops details.o-fold { margin-top: 10px; }
.ops details.o-fold > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--o-line); border-radius: 9px; padding: 7px 13px; background: var(--panel-2);
}
.ops details.o-fold > summary::-webkit-details-marker { display: none; }
.ops details.o-fold > summary::after { content: '▾'; font-size: 9px; color: var(--ink-3); }
.ops details.o-fold[open] > summary::after { content: '▴'; }
.ops details.o-fold > summary:hover { color: var(--ink); border-color: var(--ink-3); }
.ops .o-bout details.o-fold { margin: 0 15px 13px; }

/* ---- forms -------------------------------------------------------------- */
.ops .o-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; align-items: end; }
.ops .o-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ink-3); }
.ops .o-form label.is-wide { grid-column: 1 / -1; }
.ops .o-form .o-form-actions { display: flex; gap: 8px; align-items: center; grid-column: 1 / -1; }

/* ---- notes and empties -------------------------------------------------- */
.ops .o-note { background: var(--o-panel); border: 1px solid var(--o-line); border-radius: var(--o-radius); padding: 13px 15px; font-size: 13px; color: var(--ink-2); }
.ops .o-note + .o-note { margin-top: 8px; }
.ops .o-eg { display: block; font-size: 12px; color: var(--ink-3); background: var(--bg-2); border-radius: 8px; padding: 9px 11px; margin-top: 8px; }
.ops .o-warnline { font-size: 12px; color: var(--gold); margin: 8px 0 0; }
.ops .o-empty { color: var(--ink-3); font-size: 14px; padding: 6px 0; }
/* A confirmation should be quiet: it is over, and the page underneath is the
   point. */
.ops .o-said { display: inline-flex; align-items: center; gap: 8px; color: var(--ok);
  border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); border-radius: 999px;
  padding: 6px 14px; margin: 0 0 18px; font-size: 12.5px; font-weight: 600; }
.ops .o-bad { background: color-mix(in srgb, var(--o-red) 12%, transparent); border: 1px solid color-mix(in srgb, var(--o-red) 40%, transparent); border-radius: var(--o-radius); padding: 11px 14px; margin-bottom: 14px; font-size: 13px; }

@media (max-width: 640px) {
  .ops .o-title { font-size: 24px; }
  .ops .o-end { flex-wrap: wrap; justify-content: flex-end; }
  .ops .o-corner.is-blue { text-align: left; }
}

/* Quick add sits on one line where it can: a name, a gym, then the few numbers
   that decide a match. */
.ops .o-quickadd { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); align-items: end; }
.ops .o-quickadd label.is-name { grid-column: span 2; }
.ops .o-quickadd label.is-narrow input { width: 100%; }
@media (min-width: 900px) {
  .ops .o-quickadd { grid-template-columns: 2fr 1.5fr 1fr 1fr .8fr .8fr .5fr .5fr .5fr; }
  .ops .o-quickadd label.is-name { grid-column: auto; }
  .ops .o-quickadd .o-form-actions { grid-column: 1 / -1; }
}

/* A face where we have one. Same footprint as the initials circle so a mixed
   list still lines up, and cropped square-on so a portrait does not distort. */
.ops .o-av.is-photo { object-fit: cover; background: var(--bg-2); }
.ops .o-corner { position: relative; }
.ops .o-corner-face {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 999px; object-fit: cover;
  border: 2px solid var(--o-panel);
}
.ops .o-corner.is-red .o-corner-face { right: 14px; }
.ops .o-corner.is-blue .o-corner-face { left: 14px; }
.ops .o-corner.is-red { padding-right: 70px; }
.ops .o-corner.is-blue { padding-left: 70px; }
@media (max-width: 640px) {
  .ops .o-corner-face { display: none; }
  .ops .o-corner.is-red { padding-right: 16px; }
  .ops .o-corner.is-blue { padding-left: 16px; }
}

/* ---- Now: what needs doing ---------------------------------------------- */
.ops .o-kicker { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--o-accent); font-weight: 800; margin: 0 0 4px; }
.ops .o-todo { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 6px; }
.ops .o-todo-item a { display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  background: var(--o-panel); border: 1px solid var(--o-line); border-radius: var(--o-radius); }
.ops .o-todo-item a:hover { border-color: var(--ink-3); }
.ops .o-todo-dot { width: 8px; height: 8px; border-radius: 999px; flex: none; background: var(--ink-3); }
.ops .o-todo-item.is-now .o-todo-dot { background: var(--o-red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--o-red) 18%, transparent); }
.ops .o-todo-item.is-soon .o-todo-dot { background: var(--o-accent); }
.ops .o-todo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ops .o-todo-what { font-size: 15px; font-weight: 600; color: var(--ink); }
.ops .o-todo-why { font-size: 12px; color: var(--ink-3); }
.ops .o-todo-item.is-now .o-todo-what { color: #fff; }

.ops .o-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ops .o-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 15px;
  background: var(--o-panel); border: 1px solid var(--o-line); border-radius: var(--o-radius); }
.ops .o-stat:hover { border-color: color-mix(in srgb, var(--o-accent) 50%, var(--o-line)); }
.ops .o-stat-n { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.ops .o-stat-n small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.ops .o-stat-l { font-size: 12px; color: var(--ink-2); }
.ops .o-stat-sub { font-size: 11px; color: var(--ink-3); }

/* ---- the show: grouped tiles -------------------------------------------- */
.ops .o-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.ops .o-tile { display: flex; flex-direction: column; gap: 3px; padding: 14px 15px;
  background: var(--o-panel); border: 1px solid var(--o-line); border-radius: var(--o-radius); }
.ops .o-tile:hover { border-color: color-mix(in srgb, var(--o-accent) 50%, var(--o-line)); }
.ops .o-tile-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.ops .o-tile-blurb { font-size: 12px; color: var(--ink-3); }

/* ---- matchmaking tabs --------------------------------------------------- */
.ops .o-tabs { display: flex; gap: 2px; margin: 0 0 18px; border-bottom: 1px solid var(--o-line); }
.ops .o-tab { padding: 9px 16px; font-size: 14px; font-weight: 650; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ops .o-tab:hover { color: var(--ink); }
.ops .o-tab.is-on { color: var(--ink); border-bottom-color: var(--o-accent); }
.ops .o-tab .n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px;
  font-size: 11px; font-weight: 700; text-align: center; border-radius: 999px;
  background: var(--o-line); color: var(--ink-2); }
.ops .o-tab .n.is-warn { background: color-mix(in srgb, var(--o-accent) 30%, transparent); color: var(--o-accent); }

/* ---- the card builder --------------------------------------------------- */
.ops .o-bout.is-locked { border-color: color-mix(in srgb, var(--o-accent) 35%, var(--o-line)); }
.ops .o-bout-order { display: flex; flex-direction: column; gap: 2px; }
.ops .o-nudge { width: 24px; height: 20px; padding: 0; line-height: 1; font-size: 11px;
  background: var(--o-line); border: 0; border-radius: 4px; color: var(--ink-2); cursor: pointer; }
.ops .o-nudge:hover:not(:disabled) { background: var(--ink-3); color: var(--o-bg); }
.ops .o-nudge:disabled { opacity: .3; cursor: default; }
.ops .o-swap { align-self: center; }
.ops .o-sponsor { font-size: 12px; color: var(--o-accent); font-weight: 650; }

/* ---- onboarding grid ---------------------------------------------------- */
.ops .o-grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.ops .o-grid th { text-align: center; font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; padding: 0 0 8px; }
.ops .o-grid th.is-who { text-align: left; }
.ops .o-grid td { padding: 5px 0; border-top: 1px solid var(--o-line); }
.ops .o-grid td.is-who { display: flex; align-items: center; gap: 9px; padding-right: 14px; }
.ops .o-grid tr.is-boutstart td { border-top: 1px solid var(--ink-3); }
.ops .o-gno { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  flex: none; border-radius: 5px; background: var(--o-line); color: var(--ink-2); font-size: 11px; font-weight: 700; }
.ops .o-gcorner { width: 3px; height: 26px; flex: none; border-radius: 2px; background: var(--ink-3); }
.ops .o-gcorner.is-red { background: var(--o-red); }
.ops .o-gcorner.is-blue { background: var(--o-blue); }
.ops .o-gname { font-weight: 600; color: var(--ink); }
.ops .o-ggym { font-size: 11.5px; color: var(--ink-3); }

/* One button per item. Grey nothing yet, amber asked for, green in, red not
   needed — clicking walks it through those in that order. */
.ops .o-dot { display: block; width: 30px; height: 30px; margin: 0 auto; padding: 0; cursor: pointer;
  border-radius: 7px; border: 1px solid var(--o-line); background: transparent; color: var(--ink-3);
  font-size: 13px; line-height: 1; }
.ops .o-dot:hover { border-color: var(--ink-3); }
.ops .o-dot.is-requested { background: color-mix(in srgb, var(--o-accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--o-accent) 55%, transparent); color: var(--o-accent); }
.ops .o-dot.is-done { background: color-mix(in srgb, var(--o-green) 22%, transparent);
  border-color: color-mix(in srgb, var(--o-green) 55%, transparent); color: var(--o-green); }
.ops .o-dot.is-na { background: color-mix(in srgb, var(--o-red) 18%, transparent);
  border-color: color-mix(in srgb, var(--o-red) 45%, transparent); color: var(--o-red); }
.ops .o-key { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 12px; color: var(--ink-3); }
.ops .o-key span { display: inline-flex; align-items: center; gap: 6px; }
.ops .o-key i { width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--o-line); font-style: normal; }
.ops .o-key i.r { background: color-mix(in srgb, var(--o-accent) 55%, transparent); border-color: transparent; }
.ops .o-key i.d { background: color-mix(in srgb, var(--o-green) 55%, transparent); border-color: transparent; }
.ops .o-key i.n { background: color-mix(in srgb, var(--o-red) 45%, transparent); border-color: transparent; }

/* ---- the map -----------------------------------------------------------
   A drawing, not a document: boxes for the apps, arrows for what crosses
   between them, a chain for the event and a track for the fighter. Status is
   carried by colour throughout — green working, amber half built, grey not
   built — so the shape can be read before any of the words are. */
.ops.map .m-key { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); margin-left: 14px; }
.ops.map .m-key i { width: 10px; height: 10px; border-radius: 999px; }
.ops.map .m-key i.live { background: var(--o-green); }
.ops.map .m-key i.partial { background: var(--o-accent); }
.ops.map .m-key i.planned { background: var(--ink-3); }

.ops.map .m-apps { display: grid; grid-template-columns: 1fr 100px 1.25fr 100px 1fr; align-items: center; gap: 0; margin-bottom: 34px; }
.ops.map .m-app { padding: 16px 17px; background: var(--o-panel); border: 1px solid var(--o-line);
  border-radius: var(--o-radius); display: flex; flex-direction: column; gap: 3px; position: relative; }
.ops.map .m-app.is-hub { border-color: var(--o-accent); background: color-mix(in srgb, var(--o-accent) 7%, var(--o-panel)); }
.ops.map .m-app-name { font-size: 17px; font-weight: 800; color: var(--ink); }
.ops.map .m-app-role { font-size: 12.5px; color: var(--ink-2); }
.ops.map .m-app-host { font-size: 11px; color: var(--ink-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ops.map .m-app ul { list-style: none; padding: 0; margin: 9px 0 0; display: flex; flex-direction: column; gap: 3px; }
.ops.map .m-app li { font-size: 12px; color: var(--ink-3); padding-left: 12px; position: relative; }
.ops.map .m-app li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 999px; background: var(--ink-3); }
.ops.map .m-app-tag { position: absolute; top: -9px; right: 14px; font-size: 10px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--o-accent); color: #17140c; }

.ops.map .m-flow { display: flex; flex-direction: column; gap: 14px; padding: 0 6px; }
.ops.map .m-arrow { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ops.map .m-arrow-label { font-size: 10px; color: var(--ink-3); text-align: center; line-height: 1.25; }
.ops.map .m-arrow-line { position: relative; width: 100%; height: 1px; background: var(--ink-3); opacity: .7; }
.ops.map .m-arrow.to-right .m-arrow-line::after,
.ops.map .m-arrow.to-left .m-arrow-line::after { content: ''; position: absolute; top: -3px; width: 0; height: 0;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.ops.map .m-arrow.to-right .m-arrow-line::after { right: 0; border-left: 6px solid var(--ink-3); }
.ops.map .m-arrow.to-left .m-arrow-line::after { left: 0; border-right: 6px solid var(--ink-3); }

/* The event chain: every step a box, joined by a line down the left. */
.ops.map .m-chain { list-style: none; padding: 0; margin: 0 0 34px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ops.map .m-node { position: relative; padding: 14px 15px 15px; border-radius: var(--o-radius);
  background: var(--o-panel); border: 1px solid var(--o-line); border-top: 3px solid var(--ink-3);
  display: flex; flex-direction: column; gap: 4px; }
.ops.map .m-node.is-live { border-top-color: var(--o-green); }
.ops.map .m-node.is-partial { border-top-color: var(--o-accent); }
.ops.map .m-node-hit { position: absolute; inset: 0; border-radius: var(--o-radius); }
.ops.map .m-node:hover { border-color: var(--ink-3); }
.ops.map .m-node-no { position: absolute; top: 12px; right: 13px; font-size: 20px; font-weight: 800; color: var(--o-line); }
.ops.map .m-node-name { font-size: 14.5px; font-weight: 700; color: var(--ink); padding-right: 26px; }
.ops.map .m-node-where { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }
.ops.map .m-node-detail { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.ops.map .m-node-next { font-size: 11.5px; color: var(--o-accent); margin-top: 3px; }

/* The fighter's run: a line down the side with a stop at each thing we ask. */
.ops.map .m-track { list-style: none; margin: 0 0 34px; padding: 0 0 0 4px; position: relative; }
.ops.map .m-track::before { content: ''; position: absolute; left: 9px; top: 10px; bottom: 12px; width: 2px; background: var(--o-line); }
.ops.map .m-stop { display: flex; gap: 16px; padding: 0 0 16px; position: relative; }
.ops.map .m-stop-dot { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 999px;
  background: var(--o-bg); border: 2px solid var(--ink-3); position: relative; z-index: 1; }
.ops.map .m-stop.is-live .m-stop-dot { border-color: var(--o-green); background: var(--o-green); }
.ops.map .m-stop.is-partial .m-stop-dot { border-color: var(--o-accent); background: var(--o-accent); }
.ops.map .m-stop-body { display: flex; flex-direction: column; gap: 2px; }
.ops.map .m-stop-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.ops.map .m-stop.is-planned .m-stop-name { color: var(--ink-2); }
.ops.map .m-stop-detail { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; max-width: 70ch; }
.ops.map .m-stop-blocked { font-size: 12px; color: var(--o-accent); margin-top: 2px; }

.ops.map .m-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; margin-bottom: 34px; }
.ops.map .m-cell { padding: 13px 15px; border-radius: var(--o-radius); background: var(--o-panel);
  border: 1px solid var(--o-line); border-left: 3px solid var(--ink-3); display: flex; flex-direction: column; gap: 3px; }
.ops.map .m-cell.is-live { border-left-color: var(--o-green); }
.ops.map .m-cell.is-partial { border-left-color: var(--o-accent); }
.ops.map .m-cell-what { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ops.map .m-cell-where { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }
.ops.map .m-cell-detail { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.ops.map .m-cell-next { font-size: 11.5px; color: var(--o-accent); }

.ops.map .m-next { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ops.map .m-next li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--ink-2);
  padding: 10px 14px; background: var(--o-panel); border: 1px solid var(--o-line); border-radius: var(--o-radius); }
.ops.map .m-next-no { flex: none; width: 21px; height: 21px; border-radius: 999px; background: var(--o-line);
  color: var(--ink-3); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .ops.map .m-apps { grid-template-columns: 1fr; gap: 10px; }
  .ops.map .m-flow { flex-direction: row; justify-content: center; padding: 2px 0; }
  .ops.map .m-arrow-line { width: 60px; }
}

/* ---- a plain card menu -------------------------------------------------- */
.ops .o-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ops .o-card { display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 96px; padding: 20px 18px; border-radius: var(--o-radius);
  background: var(--o-panel); border: 1px solid var(--o-line);
  font-size: 15px; font-weight: 750; letter-spacing: .3px; color: var(--ink); }
.ops .o-card:hover { border-color: var(--o-accent); background: color-mix(in srgb, var(--o-accent) 8%, var(--o-panel)); }
