:root {
  --bg: #0a101c;
  --panel: #101828;
  --panel-2: #141e31;
  --line: #1f2b40;
  --line-2: #2a3850;
  --text: #e9eef6;
  --muted: #8d9ab0;
  --dim: #7d8aa0;
  --gold: #d9b45e;
  --gold-ink: #1b1608;
  --green: #2fcf8a;
  --green-bg: rgba(47, 207, 138, .14);
  --red: #f0606f;
  --red-bg: rgba(240, 96, 111, .14);
  --blue: #5b8cf0;
  --amber: #f0a64a;
  --gold-tint: #1d1a10;
  --nav-bg: #0d1422;
  --soft: #c8d0dd;
  --toast-bg: #eef2f8;
  --toast-ink: #0b1220;
  --scrim: rgba(3, 6, 12, .62);
  --hatch2: #3a301a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.35 var(--sans); }
body { min-height: 100vh; overscroll-behavior-y: none; overflow-x: hidden; }
main, .cards, .card { min-width: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: -1px; }
.boot { padding: 40px; color: var(--muted); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.serif { font-family: var(--serif); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 14px 20px 10px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; border-bottom: 1px solid transparent; }
.brand .kicker { font-size: 10px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.brand h1 { margin: 2px 0 0; font: 400 23px/1.1 var(--serif); }
.brand .ev { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tabs { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.tabs button { min-height: 40px; padding: 0 20px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.tabs button.on { background: var(--gold); color: var(--gold-ink); }
.top-right { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.chip-btn { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip-btn.gold { border-color: var(--gold); color: var(--gold); }
.chip-btn.solid { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.live { font-size: 12px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--dim); flex: none; }
.dot.on { background: var(--green); }
.dot.off { background: var(--red); }
.dot.drop { background: transparent; border: 1.5px solid var(--red); }
.dot.amber { background: var(--amber); }
.bottom-nav { display: none; }

main { padding: 6px 20px 120px; max-width: 1400px; margin: 0 auto; }

/* ---------- slot strip ---------- */
.slots { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.slots .arrow { width: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 20px; color: var(--muted); flex: none; }
.slots, .slot-list { min-width: 0; }
.slot-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.slot-list::-webkit-scrollbar { display: none; }
.slot { flex: none; min-width: 86px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); text-align: center; }
.slot b { display: block; font-size: 16px; }
.slot span { font-size: 11px; color: var(--muted); }
.slot.done b { color: var(--muted); }
.slot.done span { color: var(--green); }
.slot.cur { border-color: var(--gold); background: var(--gold-tint); }
.slot.cur b, .slot.cur span { color: var(--gold); }
.slot.sel { outline: 2px solid var(--blue); outline-offset: -2px; }

/* ---------- progress bar ---------- */
.bar { display: flex; align-items: center; gap: 18px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; }
.bar .count { white-space: nowrap; }
.bar .count big { font: 400 26px var(--serif); }
.bar .count .sub { font-size: 12px; color: var(--gold); }
.progress { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; min-width: 60px; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width .3s; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; min-height: 44px; }
.toggle .sw { width: 42px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c9d2e0; transition: left .2s; }
.toggle.on .sw { background: var(--green); }
.toggle.on .sw::after { left: 21px; background: #0b1a13; }
.big-btn { min-height: 48px; padding: 0 20px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.big-btn:disabled { opacity: .35; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 10px; display: flex; flex-direction: column; }
.card.done { opacity: .55; }
.card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.card-h h3 { margin: 0; font-size: 15px; }
.card-h .loc { font-size: 12px; color: var(--muted); margin-top: 1px; }
.card-h .here { font-size: 11px; color: var(--muted); white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); display: inline-grid; place-items: center; color: var(--gold); font-size: 18px; line-height: 1; }
.line { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); min-height: 52px; }
.line:last-of-type { border-bottom: 0; }
.line .who { flex: 1; min-width: 0; cursor: pointer; }
.line .nm { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.line .nm .tag { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--line-2); color: var(--muted); }
.line .nm .tag.os { background: rgba(91, 140, 240, .18); color: var(--blue); }
.line .nm .tag.ns { background: var(--red-bg); color: var(--red); }
.line .meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line .last { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.line .last b { color: var(--muted); font-weight: 600; }
.line .last.gap b { color: var(--amber); }
.line.held .nm { color: var(--muted); }
.line.cxl .nm { text-decoration: line-through; color: var(--dim); }
.tick { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.tick i { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--gold); display: grid; place-items: center; transition: all .12s; }
.tick.on i { background: var(--green); border-color: var(--green); }
.tick.on i::after { content: ''; width: 7px; height: 13px; border: solid #062014; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.tick.dis i { border-color: var(--line-2); }
.card-f { margin-top: 8px; }
.card-f button { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 600; font-size: 13px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line-2); border-radius: var(--r); }
.open-strip { margin-top: 14px; padding: 12px 14px; background: var(--panel); border: 1px dashed var(--line-2); border-radius: var(--r); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.open-strip .lbl { font-size: 12px; color: var(--muted); margin-right: 4px; }
.pill { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px dashed var(--gold); color: var(--gold); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ---------- find ---------- */
.find-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.search { flex: 1 1 280px; position: relative; }
.search input { padding-left: 38px; border-color: var(--gold); }
.search::before { content: ''; position: absolute; left: 13px; top: 14px; width: 11px; height: 11px; border: 2px solid var(--muted); border-radius: 50%; }
.search::after { content: ''; position: absolute; left: 25px; top: 27px; width: 6px; height: 2px; background: var(--muted); transform: rotate(45deg); }
.find-bar select { width: auto; min-width: 120px; }
.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; overflow-x: auto; }
.seg button { min-height: 38px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.seg button.on { background: var(--gold); color: var(--gold-ink); font-weight: 700; }
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
table.grid td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr.row { cursor: pointer; }
table.grid tr.now { background: rgba(217, 180, 94, .05); }
table.grid tr.cxl td { color: var(--dim); }
table.grid tr.cxl .nm, table.grid tr.cxl .sp { text-decoration: line-through; }
table.grid td.t { font-weight: 700; white-space: nowrap; }
table.grid .nm { font-weight: 600; }
.st { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.st.held { background: var(--green-bg); color: var(--green); }
.st.now { background: var(--gold); color: var(--gold-ink); }
.st.upcoming { background: var(--line); color: var(--muted); }
.st.noshow { background: var(--red-bg); color: var(--red); }
.st.absent { background: var(--line); color: var(--red); }
.st.cancelled { border: 1px solid var(--line-2); color: var(--muted); }
.find-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 10px 2px; }
.people-hits { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.people-hits button { padding: 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; min-height: 40px; }
.mobile-rows { display: none; }

/* ---------- sponsors ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.kpi big { font: 400 28px var(--serif); display: block; }
.kpi span { font-size: 12px; color: var(--muted); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); padding: 10px 2px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.seg-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); min-width: 120px; }
.seg-bar i { display: block; height: 100%; }
.hatch { background: repeating-linear-gradient(-45deg, var(--gold) 0 4px, var(--hatch2) 4px 8px); }
.num { font: 400 17px var(--serif); text-align: center; }
.num.g { color: var(--green); } .num.b { color: var(--blue); } .num.o { color: var(--gold); } .num.z { color: var(--dim); }
.nc { font-size: 13px; font-weight: 700; white-space: nowrap; text-align: center; }
.nc .r { color: var(--red); }
.open-slots { display: flex; gap: 6px; flex-wrap: wrap; }
.open-slots .pill { min-height: 30px; font-size: 12px; padding: 0 10px; }

/* ---------- sheets / modals ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; display: flex; justify-content: center; align-items: flex-end; }
.sheet { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px 16px 0 0; width: min(760px, 100%); max-height: 92vh; display: flex; flex-direction: column; padding-bottom: var(--safe-b); }
@media (min-width: 768px) { .scrim { align-items: center; } .sheet { border-radius: 16px; max-height: 88vh; } }
.sheet-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.sheet-h h2 { margin: 0; font: 400 21px var(--serif); }
.sheet-h .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.sheet-b { padding: 14px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 20px; color: var(--muted); flex: none; }
.btn { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 600; font-size: 14px; }
.btn.gold { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.btn.danger { color: var(--red); border-color: rgba(240, 96, 111, .4); }
.btn:disabled { opacity: .4; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.timeline .tm { width: 92px; flex: none; font-weight: 700; font-size: 13px; }
.timeline .what { flex: 1; font-size: 14px; }
.timeline .what small { display: block; color: var(--muted); font-size: 12px; }
.timeline li.gap .what { color: var(--amber); }
.timeline li.mtg .what b { color: var(--gold); }
.timeline li.here { background: rgba(217, 180, 94, .06); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 13px; margin-bottom: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cand { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 6px; cursor: pointer; min-height: 52px; }
.cand.sel { border-color: var(--gold); background: var(--gold-tint); }
.cand .who { flex: 1; min-width: 0; }
.cand .nm { font-weight: 600; font-size: 14px; }
.cand .meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.rank.r1 { background: var(--gold); color: var(--gold-ink); }
.rank.r2 { background: rgba(217, 180, 94, .2); color: var(--gold); }
.rank.r3 { background: rgba(91, 140, 240, .2); color: var(--blue); }
.rank.r4 { background: var(--green-bg); color: var(--green); }
.rank.r5 { background: var(--line); color: var(--muted); }
.rank.r9 { background: var(--red-bg); color: var(--red); }
.section-t { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.ms-list label { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); min-height: 48px; font-size: 14px; }
.ms-list input { width: 22px; height: 22px; min-height: 0; accent-color: var(--gold); flex: none; }

/* ---------- settings ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; }
.panel h2 { margin: 0 0 4px; font: 400 19px var(--serif); }
.panel p.help { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.set-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.diff { font-size: 13px; }
.diff .grp { margin: 10px 0 4px; font-weight: 700; }
.diff ul { margin: 0; padding-left: 18px; color: var(--muted); }
.diff-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.diff-badges span { padding: 6px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; }
table.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
table.mini th, table.mini td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.mini th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
table.mini input { min-height: 36px; padding: 6px 8px; width: 70px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.warn { color: var(--amber); font-size: 13px; }
.bad { color: var(--red); font-size: 13px; }

/* ---------- login ---------- */
.login { max-width: 380px; margin: 12vh auto 0; padding: 0 20px; }
.login h1 { font: 400 32px var(--serif); margin: 6px 0 24px; }
.login .kicker { font-size: 11px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.login .btn { width: 100%; margin-top: 6px; }

/* ---------- toast ---------- */
#toast-root { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + var(--safe-b)); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--toast-bg); color: var(--toast-ink); border-radius: 22px; padding: 6px 6px 6px 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); min-height: 44px; }
.toast.plain { padding: 10px 16px; }
.toast button { background: var(--toast-ink); color: var(--gold); font-weight: 700; border-radius: 16px; padding: 0 16px; min-height: 34px; }
.banner { margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; font-size: 13px; background: rgba(240, 166, 74, .12); color: var(--amber); border: 1px solid rgba(240, 166, 74, .3); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .top { grid-template-columns: 1fr auto; padding: 12px 14px 8px; }
  .top .tabs { display: none; }
  .brand h1 { font-size: 21px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--nav-bg); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
  .bottom-nav button { flex: 1; min-height: 58px; font-size: 11px; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
  .bottom-nav button.on { color: var(--gold); }
  .bottom-nav svg { width: 20px; height: 20px; }
  main { padding: 4px 14px calc(90px + var(--safe-b)); }
  #toast-root { bottom: calc(76px + var(--safe-b)); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .set-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
  .slots .arrow { display: none; }
  .bar { flex-wrap: wrap; gap: 8px 14px; padding: 10px 12px; }
  .bar .progress { order: 3; flex-basis: 100%; }
  .bar .mark-all-top { display: none; }
  .table-wrap.desktop { display: none; }
  .mobile-rows { display: block; }
  .mrow { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
  .mrow .who { flex: 1; min-width: 0; }
  .mrow .l1 { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
  .mrow .l2 { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mrow.cxl .l1 { text-decoration: line-through; color: var(--dim); }
  .sp-table { display: none; }
  .sp-cards { display: block; }
  .chip-btn .lbl-long { display: none; }
  .set-grid, .row2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 90px 1fr; }
}
@media (min-width: 701px) { .sp-cards { display: none; } }
.sp-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; }
.sp-card .h { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sp-card .nums { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: 11px; color: var(--muted); margin-top: 8px; }
.sp-card .nums b { display: block; font: 400 18px var(--serif); }
.lbl-short { display: none; }
@media (max-width: 700px) { .lbl-short { display: inline; } }

/* company and title each get their own line and wrap instead of being cut off */
.line .meta.co, .line .meta.ti, .cand .meta.co, .cand .meta.ti { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.line .meta.co, .cand .meta.co, .mrow .l3.co, .sheet-h .sub.co { color: var(--text); opacity: .85; }
.mrow .l3 { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.co-cell { color: var(--text); opacity: .85; }
.ti-cell { color: var(--muted); font-size: 12px; }

/* on-site lights: bigger, purer colours, plus a shape cue (bar = not checked in, ring = dropped out) */
.dot { width: 13px; height: 13px; position: relative; }
.dot.on { background: #00d65f; box-shadow: 0 0 0 2px rgba(0, 214, 95, .25); }
.dot.off { background: #ff2a3a; box-shadow: 0 0 0 2px rgba(255, 42, 58, .25); }
.dot.off::after { content: ''; position: absolute; left: 3px; right: 3px; top: 5.5px; height: 2px; border-radius: 1px; background: #fff; }
.dot.drop { background: transparent; border: 2.5px solid #ff2a3a; }
#sync .dot, .dot.amber { width: 9px; height: 9px; box-shadow: none; }
#sync .dot.off::after { display: none; }
.cand .meta.why { white-space: normal; overflow: visible; color: var(--gold); opacity: .9; }
.as-toggles { display: flex; flex-direction: column; gap: 2px; margin: -4px 0 8px; }
.as-toggles .toggle { white-space: normal; text-align: left; }
.cand .meta.flag { color: var(--amber); white-space: normal; }
.cand.blocked { opacity: .5; }
.cand.blocked .meta.flag { color: var(--red); }
.cand.busy { border-color: rgba(240, 166, 74, .35); }

/* ---------- gear ---------- */
.chip-btn.gear { width: 40px; padding: 0; justify-content: center; color: var(--muted); }
.chip-btn.gear svg { width: 19px; height: 19px; }
.chip-btn.gear.on { color: var(--gold); border-color: var(--gold); }

/* ---------- lookup ---------- */
.lk-pickbar { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; margin-bottom: 12px; border-radius: var(--r); border: 1px dashed var(--gold); background: var(--gold-tint); }
.lk-pickbar b { color: var(--gold); font-size: 15px; }
.lk-pickbar span { font-size: 12px; color: var(--muted); }
.lk-del { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; border-radius: var(--r); border: 1px solid var(--gold); background: var(--gold-tint); }
.lk-del .kicker { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.lk-del .nm { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.lk-del .meta { font-size: 12px; color: var(--muted); }
.lk-del .meta.co { color: var(--text); opacity: .85; }
.lookup .find-bar select { min-width: 200px; flex: 1 1 200px; }
.lk-count { font-size: 12px; color: var(--muted); margin: 0 2px 8px; }
.lk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lk-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.lk-card.dim { opacity: .55; }
.lk-h { display: flex; gap: 12px; align-items: center; }
.lk-name { flex: 1; min-width: 0; }
.lk-name h3 { margin: 0 0 4px; font-size: 16px; }
.lk-sub { display: flex; gap: 5px; flex-wrap: wrap; }
.logo { width: 48px; height: 48px; border-radius: 10px; background: #fff; flex: none; display: grid; place-items: center; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.logo b { color: #0a101c; font: 700 16px var(--sans); }
.logo.sm { width: 34px; height: 34px; border-radius: 8px; }
.logo.sm b { font-size: 12px; }
.tchip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--gold); color: var(--gold-ink); white-space: nowrap; }
.tchip.tbc { background: var(--line-2); color: var(--muted); }
.schip { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.schip.s-cio { background: rgba(91, 140, 240, .2); color: #8fb0ff; }
.schip.s-ciso { background: rgba(240, 96, 111, .2); color: #ff8f9b; }
.schip.s-cdo { background: rgba(47, 207, 138, .18); color: #5fe0a7; }
.schip.s-ai { background: rgba(170, 120, 255, .2); color: #c4a2ff; }
.schip.s-cxo { background: var(--line-2); color: var(--text); }
.lk-desc { margin: 0; font-size: 13px; color: var(--soft); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.lk-desc.open { display: block; }
.lk-card .why { font-size: 12.5px; color: var(--gold); }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.svc { font-size: 11.5px; padding: 3px 8px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--soft); }
.svc.hit { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 700; }
.svc.more { background: var(--line-2); color: var(--text); font-weight: 600; cursor: pointer; }
.lk-live { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 9px; margin-top: auto; font-size: 12.5px; color: var(--muted); }
.lk-live b { color: var(--green); font-size: 14px; }
.lk-live .lk-open { flex: 1; min-width: 140px; }
.btn.sm { min-height: 40px; padding: 0 12px; font-size: 13px; }
@media (max-width: 900px) { .lk-grid { grid-template-columns: 1fr; } }

/* ---------- light theme ---------- */
:root[data-theme="light"] {
  --bg: #f3f5f9; --panel: #ffffff; --panel-2: #f4f6fa; --line: #e1e6ee; --line-2: #cbd3df;
  --text: #0f1a2e; --muted: #4f5d75; --dim: #5c6b85;
  --gold: #a67c1e; --gold-ink: #ffffff; --gold-tint: #fbf4e2;
  --green: #0c9a5f; --green-bg: rgba(12, 154, 95, .12); --red: #d23045; --red-bg: rgba(210, 48, 69, .1);
  --blue: #2c5fd3; --amber: #b5650a; --nav-bg: #ffffff; --soft: #334158;
  --toast-bg: #0f1a2e; --toast-ink: #ffffff; --scrim: rgba(15, 26, 46, .35); --hatch2: #f1e3bf;
  color-scheme: light;
}
:root[data-theme="light"] .toast button { background: var(--gold); color: var(--gold-ink); }
:root[data-theme="light"] .toggle .sw::after { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
:root[data-theme="light"] .toggle.on .sw::after { background: #fff; }
:root[data-theme="light"] .card, :root[data-theme="light"] .lk-card, :root[data-theme="light"] .panel, :root[data-theme="light"] .kpi, :root[data-theme="light"] .table-wrap { box-shadow: 0 1px 2px rgba(15, 26, 46, .06); }
:root[data-theme="light"] .schip.s-cio { color: #2449a8; } :root[data-theme="light"] .schip.s-ciso { color: #b0263a; }
:root[data-theme="light"] .schip.s-cdo { color: #0b7a4b; } :root[data-theme="light"] .schip.s-ai { color: #6a3fc4; }
:root[data-theme="light"] .logo { box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="light"] .cand .meta.why, :root[data-theme="light"] .lk-card .why { color: #8a6514; }
/* brand */
.brand .brand-logo { height: 32px; width: auto; display: block; margin-bottom: 4px; }
.brand .logo-light { display: none; }
:root[data-theme="light"] .brand .logo-light { display: block; }
:root[data-theme="light"] .brand .logo-dark { display: none; }
.login .brand-logo { height: 34px; margin-bottom: 10px; }
@media (max-width: 900px) { .brand .brand-logo { height: 27px; } }
.theme-seg { display: inline-flex; }

/* delegate's day inside Add a meeting, Match a delegate and Lookup */
.cand { flex-wrap: wrap; }
.cand-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.dayb { font: inherit; font-size: 12px; font-weight: 600; min-height: 36px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.dayb.on { border-color: var(--gold); color: var(--gold); }
.cand .day, .lk-del .lk-day { flex-basis: 100%; min-width: 0; margin-top: 4px; padding: 4px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); cursor: default; }
.lk-del .lk-day { padding: 8px 12px; }
.around { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 1px; font-size: 12px; color: var(--muted); margin-top: 3px; }
.around span { min-width: 0; overflow-wrap: anywhere; }
.around b { color: var(--text); font-weight: 600; }
.around .gap b { color: var(--amber); }
.timeline.mini li { padding: 6px 0; gap: 10px; }
.timeline.mini li:last-child { border-bottom: 0; }
.timeline.mini .tm { width: 84px; font-size: 12px; }
.timeline.mini .what { font-size: 13px; }
.timeline.mini li.ghost { background: var(--gold-tint); border-radius: 6px; padding-left: 6px; padding-right: 6px; }
.timeline.mini li.ghost .what b { color: var(--gold); }
.timeline.mini li.clash .what, .timeline.mini li.clash .what small, .timeline.mini li.clash .tm { color: var(--red); }
.timeline.mini li.clash .what b { color: var(--red); }
.btn.on { border-color: var(--gold); color: var(--gold); }
:root[data-theme="light"] .timeline.mini li.ghost .what b { color: #8a6514; }
.lk-del { position: relative; }
.lk-delmain { flex: 1; min-width: 0; padding-right: 40px; }
.lk-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.lk-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.lk-who .nm { font-size: 17px; font-weight: 700; }
.lk-who .sw-hint { font-size: 12px; font-weight: 600; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 9px; }

/* conference sessions */
.line .nm .tag.late { background: rgba(240, 166, 74, .2); color: var(--amber); }
.s-search { margin: 0 0 12px; }
.s-search .search { flex: 1 1 100%; }
.card .s-name { font-size: 16px; line-height: 1.25; }
.s-cards .card-h .here { white-space: nowrap; }
.s-note { font-size: 13px; padding: 10px 2px 2px; }
.card.s-info { opacity: .75; }
.s-foot { display: flex; gap: 8px; }
.s-foot button { flex: 1; }
.s-foot span { flex: 1; }
.s-seg button { min-height: 36px; }

/* phones: keep the header clear of the notch / status bar and the tab bar clear of the home indicator */
.top { padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-left: calc(20px + env(safe-area-inset-left, 0px)); padding-right: calc(20px + env(safe-area-inset-right, 0px)); }
body { min-height: 100vh; min-height: 100dvh; }
.sheet { max-height: calc(100vh - 24px); max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 12px); }
@media (max-width: 900px) {
  .top { padding: calc(8px + env(safe-area-inset-top, 0px)) calc(14px + env(safe-area-inset-right, 0px)) 6px calc(14px + env(safe-area-inset-left, 0px)); box-shadow: 0 1px 0 var(--line); }
  .brand .brand-logo { height: 22px; }
  .brand h1 { font-size: 19px; }
  .brand .ev { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
  .bottom-nav button { min-height: 54px; font-size: 10.5px; }
  main { padding-left: calc(14px + env(safe-area-inset-left, 0px)); padding-right: calc(14px + env(safe-area-inset-right, 0px)); padding-bottom: calc(84px + var(--safe-b)); }
  .scrim { padding-top: env(safe-area-inset-top, 0px); }
}
.top .brand { min-width: 0; }
@media (max-width: 900px) { .brand .ev { max-width: 100%; } .top-right { gap: 6px; } }
.s-rooms { margin-bottom: 10px; }
.s-rooms button { flex: 1 0 auto; }
.card.s-fold { cursor: pointer; padding-bottom: 12px; }
.card.s-fold .card-h { border-bottom: 0; padding-bottom: 0; }
.s-headtap { cursor: pointer; }
.chev { display: inline-block; margin-left: 6px; color: var(--gold); font-size: 13px; }
.s-late { color: var(--amber); }
.s-here { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.s-wk-top { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); white-space: nowrap; min-height: 30px; }
.rtag { color: var(--gold); font-weight: 800; }
.seg button.on .rtag { color: var(--gold-ink); }
.trophy { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--gold); background: var(--gold-tint); border: 1px solid var(--gold); border-radius: 999px; padding: 1px 8px; white-space: nowrap; vertical-align: 1px; }
.sp-card.won { border-color: var(--gold); }
textarea { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%; }
.chip-btn.help { font-weight: 800; font-size: 16px; min-width: 40px; justify-content: center; }
.guide .g-sec { margin-bottom: 14px; }
.guide h3 { font: 700 15px/1.2 var(--serif); margin: 0 0 4px; color: var(--text); }
.guide .g-who { font: 700 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-left: 6px; vertical-align: 2px; }
.guide ul { margin: 4px 0 0; padding-left: 18px; }
.guide li { margin: 0 0 5px; font-size: 14px; line-height: 1.4; }
.guide li .dot { vertical-align: -2px; }
.g-rooms { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.g-room { border: 1px solid var(--line-2); border-radius: 8px; padding: 3px 8px; font-size: 13px; }
.g-room b { color: var(--gold); }
/* headshots */
.av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-2); border: 1px solid var(--line-2); }
.av.ini { display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.av.big { width: 84px; height: 84px; font-size: 26px; }
.ph-row { display: flex; gap: 14px; align-items: center; min-width: 0; }
.people-hits .av, .mrow .l1 .av { width: 26px; height: 26px; font-size: 10px; vertical-align: middle; margin-right: 6px; display: inline-flex; }
.cand .av { width: 38px; height: 38px; }

/* next-slot gaps */
.gaps { margin-bottom: 12px; background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--amber); border-radius: var(--r); }
.gaps.ok { border-left-color: var(--green); }
.gaps-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.gaps-t { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; text-align: left; min-height: 32px; }
.gaps-t .chev { margin-left: auto; color: var(--muted); }
.gaps-nav { display: flex; gap: 4px; }
.gaps-nav button[disabled] { opacity: .35; }
.gcount { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.gcount.r { background: var(--red-bg); color: var(--red); }
.gcount.a { background: rgba(240, 166, 74, .14); color: var(--amber); }
.gcount.g { background: var(--green-bg); color: var(--green); }
.gaps-b { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 12px 12px; }
@media (max-width: 800px) { .gaps-b { grid-template-columns: 1fr; } }
.gcol-t { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.gcol-t.r { color: var(--red); } .gcol-t.a { color: var(--amber); }
.gpills { display: flex; flex-wrap: wrap; gap: 6px; }
.wishn { color: var(--gold); margin-left: 4px; }
.gaway { padding: 8px 0; border-top: 1px solid var(--line); }
.gaway:first-of-type { border-top: 0; padding-top: 0; }
.gaway-m { font-size: 13px; padding: 4px 0; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.pill.sm { min-height: 36px; font-size: 12px; margin-top: 4px; }
.gnote { font-size: 11.5px; margin-top: 8px; }
/* wishlist */
.wish-btn { min-height: 36px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--gold); }
.wish-btn.hot { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.wish-cell { text-align: left; font-size: 13px; color: var(--soft); }
.wish-cell .hot, .lg-item .hot { color: var(--gold); font-weight: 700; }
.wst { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; white-space: nowrap; background: var(--line); color: var(--muted); }
.wst.met { background: var(--green-bg); color: var(--green); }
.wst.booked { background: rgba(91, 140, 240, .2); color: var(--blue); }
.wst.here { background: var(--gold); color: var(--gold-ink); }
.wst.drop { background: var(--red-bg); color: var(--red); }
.cand.wish { cursor: pointer; }
.cand.wish.met, .cand.wish.drop { opacity: .7; }
.tag.mut { background: rgba(217, 180, 94, .2); color: var(--gold); }
/* sponsor logo grid in Add a meeting */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.lg-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-2); text-align: center; font-size: 13px; min-height: 120px; }
.lg-item:hover { border-color: var(--gold); }
.lg-item .logo { width: 48px; height: 48px; }
.lg-item span { font-size: 11.5px; }
/* single floating add button */
.fab-add { position: fixed; right: 18px; bottom: calc(22px + var(--safe-b)); z-index: 25; background: var(--gold); color: var(--gold-ink); font-weight: 700; border-radius: 28px; padding: 0 18px; min-height: 50px; box-shadow: 0 6px 20px rgba(0,0,0,.35); display: flex; align-items: center; gap: 6px; }
.fab-add span { font-size: 22px; line-height: 1; }
.fab-add[hidden] { display: none; }
@media (max-width: 900px) { .fab-add { bottom: calc(70px + var(--safe-b)); } }
.tag { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--line-2); color: var(--muted); }
.li-link { color: var(--gold); font-weight: 600; text-decoration: none; }

/* left the event: confirmed check-out (purple, exit arrow) and the runner's "check if left?" flag (amber ?) */
.dot.out { background: #8A63E8; box-shadow: 0 0 0 2px rgba(138, 99, 232, .28); border-radius: 3px; }
.dot.out::after { content: '›'; position: absolute; inset: 0; color: #fff; font-size: 12px; font-weight: 700; line-height: 11px; text-align: center; }
.lflag { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 3px; border-radius: 50%; background: var(--amber); color: #1a1205; font-size: 10px; font-weight: 800; vertical-align: 1px; flex: none; }
.flagnote { margin-top: 6px; font-size: 13px; color: var(--amber); }
.outc { color: #8A63E8; }
.gcount.p { background: rgba(138, 99, 232, .16); color: #A88BF0; }
.gcol-t.p { color: #A88BF0; }
.gcol.left { grid-column: 1 / -1; }

/* team activity */
.team-wrap { overflow-x: auto; }
table.grid.team td { white-space: nowrap; }
table.grid.team th, table.grid.team td { padding-left: 6px; padding-right: 6px; }
table.grid.team td:nth-child(n+3):nth-child(-n+5) { font-variant-numeric: tabular-nums; font-weight: 600; }
table.grid.team tr:first-child td.nm { color: var(--gold, #d9b45e); }
.hist-list { list-style: none; margin: 0; padding: 0; }
.hist-list li.hist { display: grid; grid-template-columns: 52px 90px 1fr; gap: 2px 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.hist-list li.hist .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.hist-list li.hist .nm { font-weight: 600; }
.hist-list li.hist .dim { grid-column: 3; }
.team-seg button { margin-bottom: 4px; }

/* tap-again arm on icon-only ticks, refused taps in the sync chip */
.tick.armed i { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 42, 58, .35); }
#sync .bad-n { color: var(--red); font-weight: 700; }
#sync[data-act] { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
