/* Head table: sidebar, dashboard and every head-table page */

.admin { display: grid; grid-template-columns: 232px 1fr; height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; overflow: hidden; }
.side-brand { display: flex; gap: 10px; align-items: center; padding: 16px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-brand .logo { font-size: 26px; }
.side-brand b { color: #fff; display: block; font-size: 14px; }
.side-brand small { color: #8ea0b8; font-size: 11px; display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the tournament switcher (top of the menu, every page) */
.side-tourn { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'l sw' 'n n'; gap: 2px 8px; align-items: center; margin: 10px 10px 2px; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.side-tourn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.side-tourn:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.side-tourn .st-l { grid-area: l; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #8ea0b8; font-weight: 700; }
.side-tourn b { grid-area: n; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.side-tourn .st-sw { grid-area: sw; font-size: 11px; font-weight: 700; color: #bfdbfe; background: rgba(59,130,246,.25); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.side-tourn.static { cursor: default; }
.side-tourn.static .st-sw { color: #d1d5db; background: rgba(255,255,255,.1); }
.side nav { display: flex; flex-direction: column; padding: 8px; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.side nav a { display: flex; align-items: center; gap: 10px; border-radius: 7px; color: var(--side-ink); text-decoration: none; font-weight: 500; }
.side nav a:hover { background: rgba(255,255,255,.06); }
.side nav a.active { background: var(--brand); color: #fff; }
.side nav .ic { width: 18px; text-align: center; opacity: .85; }
.side-links { flex-direction: column; border-top: 1px solid rgba(255,255,255,.08); margin-top: auto; flex: none; }
.side-foot { padding: 10px 18px 14px; font-size: 11px; display: flex; gap: 8px; align-items: center; color: #8ea0b8; }
.conn { width: 9px; height: 9px; border-radius: 50%; background: #999; display: inline-block; }
.conn.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.conn.off { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.25); }
.main { overflow: auto; }
.page { padding: 22px 28px 60px; }
.page.wide { max-width: none; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; min-height: 40px; } /* (same height with or without buttons: tabs don't jump) */
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 9px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--brand); border-color: var(--brand); }
.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none !important; }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip.undrawn { color: #98a2b3; }
.tiles { display: grid; gap: 12px; margin-bottom: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: flex; flex-direction: column-reverse; gap: 2px; } /* same look as .stat: the label above the number */
.tile b { font-size: 24px; display: block; font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: 12px; font-weight: 600; }
.tile.warn { border-color: #f5c27a; background: #fffaf0; }
.checklist { margin: 0; padding-left: 0; list-style: none; counter-reset: c; }
.checklist li { counter-increment: c; padding: 6px 0 6px 32px; position: relative; border-bottom: 1px solid var(--line2); }
.checklist li::before { content: counter(c); position: absolute; left: 0; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: #eef1f5; color: var(--muted); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.checklist li.ok::before { content: '✓'; background: var(--ok); color: #fff; }
.progress-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 20px; }
.prog { display: grid; grid-template-columns: 60px 1fr 70px; gap: 10px; align-items: center; color: var(--ink); text-decoration: none !important; padding: 3px 0; }
.prog-bar { height: 8px; background: #eef1f5; border-radius: 99px; overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: var(--ok); }
tr.flag-penalty td:first-child, tr.flag-result td:first-child, li.flag-penalty { border-left: 3px solid var(--danger); }
tr.flag-call td:first-child, li.flag-call { border-left: 3px solid var(--warn); }
.seed-table tr.seeded td { background: #f7faff; }
.seed-table tr.seed-cut td { border-bottom: 2px solid var(--brand); }
.seed-table td.drag { cursor: grab; color: #b0b8c4; width: 20px; }
.seed-table tr.dragging { opacity: .4; }
.seed-num { width: 56px; padding: 3px 5px; }
.bm-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.bm-section { border-top: 1px solid var(--line2); padding-top: 12px; margin-top: 12px; }
.bm-section:first-of-type { border: 0; margin: 0; padding: 0; }
.result-form { display: flex; flex-direction: column; gap: 12px; }
.rf-winner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rf-w { display: flex; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.rf-w span { display: flex; flex-direction: column; }
.rf-w small { color: var(--muted); }
.rf-w.c-red { border-left: 8px solid var(--red); }
.rf-w.c-green { border-left: 8px solid var(--green); }
.rf-w:has(input:checked) { background: #f0f6ff; border-color: var(--brand); }
.rf-w input { width: 18px; height: 18px; }
.ev-list { display: flex; flex-wrap: wrap; gap: 4px; }
.ev { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 12px; background: #eef1f5; border: 0; font: inherit; font-size: 12px; cursor: default; }
.ev.c-red { background: #fde2e2; color: #8c1a1a; }
.ev.c-green { background: #d9f3e6; color: #0f5f3b; }
.mc-layout { display: grid; grid-template-columns: 1fr 330px; gap: 16px; align-items: start; }
.mc-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mc-mat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 220px; }
.mc-mat.drop { outline: 3px dashed var(--brand); }
.mc-mat-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.mc-mat-head b { font-size: 16px; flex: 1; }
.mc-slot-label { font-size: 10px; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 6px 0 3px; letter-spacing: .05em; }
.mc-empty { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; color: #a0a9b6; text-align: center; font-size: 12px; }
.mc-card { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; background: #fff; cursor: grab; position: relative; }
.mc-card:hover { border-color: #93b4ff; }
.mc-card.st-onmat { border-left: 4px solid var(--brand); }
.mc-card.is-live { border-left: 4px solid var(--live); background: #fff7f8; }
.mc-top { font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-right: 44px; }
.mc-live { margin-left: auto; font-weight: 700; color: var(--live); }
.mc-w { font-size: 13px; display: flex; gap: 5px; align-items: center; }
.mc-ctl { position: absolute; top: 4px; right: 4px; display: flex; gap: 2px; }
.mc-queue { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 0; max-height: calc(100vh - 120px); display: flex; flex-direction: column; }
.mc-q-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.mc-q-head input { width: 120px; }
.mc-q-list { overflow: auto; flex: 1; }
.side-name b { font-size: 22px; display: block; }
.side-name span { color: #d6dde8; font-size: 13px; }
.side-score { font-size: 96px; font-weight: 800; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; height: auto; }
  .side { position: sticky; top: 0; z-index: 60; overflow: visible; }
  .side > :not(.side-brand) { display: none; }
  .side-brand { padding: 8px 12px; gap: 10px; border-bottom: 0; }
  .side-brand .side-title { flex: 1; min-width: 0; }
  .side-brand .side-title > small:not(.side-cur) { display: none; }
  .side-cur { display: block !important; color: #fff !important; font-size: 15px !important; font-weight: 700; max-width: none !important; }
  .side-brand .side-title b { font-size: 11px; color: #8ea0b8; font-weight: 600; }
  .side-mini, .side-menu-btn { display: inline-flex !important; }
  .side.open { position: fixed; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 24px; }
  .side.open > .side-tools { display: flex; }
  .side.open > .side-tourn { display: grid; margin: 4px 12px 8px; }
  .side.open > nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px 12px 8px; }
  .side.open .nav-group { grid-column: 1 / -1; margin: 10px 2px 2px; }
  .side.open nav a { background: rgba(255,255,255,.05); padding: 11px 10px; font-size: 14px; line-height: 1.2; }
  .side.open nav a.active { background: var(--brand); }
  .side.open > .side-links { display: flex; }
  .side.open > .side-foot { display: flex; }
  .side.open > .side-ver { display: block; }
  .side.open .side-menu-btn { background: #fff; color: var(--side); }
  .side.open nav > a:first-child { grid-column: 1 / -1; }
  .side.open .side-find kbd { display: none; }
}
@media (max-width: 900px) {
  .side-name b { font-size: 16px; }
  .side-name span { font-size: 11px; }
  .side-score { font-size: 56px; }
}
.nav-group { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #8193ad; font-weight: 700; }
.side nav { gap: 0; }
.side nav a .badge { margin-left: auto; }
.chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; height: calc(100vh - 150px); min-height: 420px; }
.chat-list { display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.chat-item { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; }
.chat-item b { display: flex; align-items: center; gap: 6px; }
.chat-item.active { border-color: var(--brand); background: #f3f7ff; }
.chat-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line2); display: flex; justify-content: space-between; align-items: center; }
.chat-thread { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: #f7f9fc; }
.small-thread { max-height: 260px; border-radius: 8px; margin-bottom: 10px; }
.bubble { max-width: 75%; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.bubble.mine { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); }
.bubble.urgent { border: 2px solid var(--danger); }
.bubble.mine.urgent { background: var(--danger); border-color: var(--danger); }
.bubble-text { white-space: pre-wrap; word-break: break-word; }
.bubble-meta { font-size: 11px; opacity: .7; margin-top: 3px; }
.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 16px; border-top: 1px solid var(--line2); }
.chat-input { display: flex; gap: 8px; padding: 10px 16px; align-items: center; }
.chat-input input[name=text] { flex: 1; }
.mc-loc { grid-column: 1 / -1; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; align-items: start; }
.qr-grid .qr-card > svg.qr, .qr-grid .qr-card > .mat-code, .qr-grid .qr-card > .btn { justify-self: center; }
.qr-grid .qr-card > .small.muted { text-align: center; }
.qr-card { flex-direction: column; align-items: center; }
.qr-card-head { display: flex; flex-direction: column; align-items: center; }
.qr { display: block; }
.mat-code { font-family: ui-monospace, Consolas, monospace; font-size: 26px; font-weight: 800; letter-spacing: .15em; }
.dev-connect { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.dev-connect > svg { flex: none; width: 78px; height: 78px; }
.dev-connect > div { min-width: 0; }
.big-url { font-family: ui-monospace, Consolas, monospace; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.dev-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dev-mats { display: flex; flex-wrap: wrap; gap: 6px; }
.dev-mat { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: #eef1f5; font-weight: 600; }
.dev-mat.ok { background: #dcf5e6; color: var(--ok); }
.dev-mat.missing { background: #fde2e2; color: var(--danger); }
.mat-pace { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 14px; }
.mat-table input { width: 100%; }
.page { max-width: 1760px; }
.page.dash { max-width: none; }
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox-item { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; padding: 8px 8px 8px 10px; border-bottom: 1px solid var(--line2); }
.inbox-item > div:first-child { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.inbox-item.flag-penalty, .inbox-item.flag-result { border-left: 3px solid var(--danger); }
.inbox-item.flag-call { border-left: 3px solid var(--warn); background: #fffaf0; }
.inbox-item.flag-verify { border-left: 3px solid var(--brand); }
.inbox-act { display: flex; gap: 4px; flex: none; margin-left: auto; }
.tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.form-grid > * { min-width: 0; }
.field > select, .field > input:not([type=checkbox]):not([type=radio]) { max-width: 100%; }

.stop-btn { flex: none; margin-left: auto; background: transparent; border: 1px solid #3b4d6b; color: #c9d4e3; border-radius: 6px; padding: 2px 8px; font: inherit; font-size: 11px; cursor: pointer; }
.stop-btn:hover { background: #7f1d1d; border-color: #b91c1c; color: #fff; }
.mc-mat { position: relative; }
.mc-mat.drop::after { content: 'Drop → ' attr(data-name); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(29,78,216,.88); color: #fff; font-size: 22px; font-weight: 800; border-radius: var(--radius); pointer-events: none; }
.mc-mat.just-assigned { animation: matflash 1.2s ease-out 2; border-color: var(--ok); }
.mc-card.just-assigned { animation: matflash 1.2s ease-out 3; border: 2px solid var(--ok); background: #effdf4; }
@keyframes matflash { 0% { box-shadow: 0 0 0 0 rgba(22,128,60,.7); } 100% { box-shadow: 0 0 0 14px rgba(22,128,60,0); } }
.stat-strip { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat b { font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat b small { font-size: 14px; color: var(--muted); font-weight: 600; }
.stat.warn { background: #fffaf0; border-color: #f5c27a; }
.stat.ok { background: #f0fbf4; border-color: #9fdcb5; }
.stat .prog-bar { margin-top: 6px; }
.dash-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(380px, 1fr); gap: 16px; align-items: start; }
.dash-col-main, .dash-col-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-card { margin: 0; }
@media (max-width: 1320px) { .dash-layout { grid-template-columns: 1fr; } .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.count-badge { background: var(--danger); color: #fff; border-radius: 99px; font-size: 12px; padding: 1px 8px; vertical-align: middle; }
.all-clear { color: var(--ok); font-weight: 700; margin: 6px 0; }
.lm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.lm { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fbfcfe; }
.lm.live { border-color: var(--live); box-shadow: 0 0 0 1px var(--live) inset; background: #fff; }
.lm.wait { border-color: #f5c27a; }
.lm-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.lm-head b { font-size: 15px; }
.lm-head small { color: var(--muted); }
.lm-state { margin-left: auto; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 1px 7px; border-radius: 99px; background: #eef1f5; color: #475467; }
.lm-state.live { background: var(--live); color: #fff; }
.lm-state.up { background: #e0ebff; color: var(--brand); }
.lm-state.wait { background: #fff1d6; color: var(--warn); }
.lm-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 2px; cursor: pointer; }
.lm-clock { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.lm-clock.running { color: var(--ok); }
.lm-w { display: flex; align-items: center; gap: 7px; padding: 1px 0; }
.lm-bar { width: 4px; height: 18px; border-radius: 2px; }
.lm-bar.c-red { background: var(--red); } .lm-bar.c-green { background: var(--green); }
.lm-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 13px; }
.lm-name small { color: var(--muted); font-weight: 500; }
.lm-sc { font-size: 18px; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.lm-empty { color: #a0a9b6; font-size: 12px; padding: 8px 0; }
.lm-next { font-size: 11px; color: var(--muted); border-top: 1px dashed var(--line); margin-top: 5px; padding-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 62px 44px 1fr auto 56px; gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line2); font-size: 13px; cursor: pointer; }
.feed li:hover { background: #f7f9fc; }
.feed-time, .feed-mat { color: var(--muted); font-size: 12px; }
.feed-wt { font-weight: 800; }
.feed-body small { color: var(--muted); }
.feed-res { font-weight: 700; white-space: nowrap; }
.rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef1f5; font-size: 11px; font-weight: 800; }
.rank.r1 { background: #facc15; } .rank.r2 { background: #cbd5e1; } .rank.r3 { background: #f59e0b; }
.rank-cell { width: 34px; }
.pc-card { margin: 0; display: flex; flex-direction: column; }
.pc-card h2 { margin: 0; }
.pc-card p { margin: 0; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pc-sign { grid-column: 1 / -1; }
.sign-editor { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.2fr); gap: 20px; align-items: start; }
.sign-fields { display: flex; flex-direction: column; gap: 10px; }
.sign-preview-box { position: sticky; top: 10px; }
.sign-preview-wrap { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: 4px; }
.sign-preview-wrap.land { width: 100%; aspect-ratio: 10.3 / 7.8; }
.sign-preview-wrap.port { width: 70%; aspect-ratio: 7.8 / 10.3; }
.sign-preview-wrap .sign.preview { position: absolute; top: 0; left: 0; transform-origin: top left; }
.sign-preview-wrap.land .sign.preview { transform: scale(var(--pv, .5)); }
.sign-preview-wrap.port .sign.preview { transform: scale(var(--pv, .4)); }
@media (max-width: 1000px) { .sign-editor { grid-template-columns: 1fr; } }
.sign { box-sizing: border-box; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.sign.land { width: 10.3in; height: 7.7in; }
.sign.port { width: 7.8in; height: 10.2in; }
.sign-frame { height: 100%; box-sizing: border-box; border-radius: 18px; padding: .45in; display: flex; flex-direction: column; gap: 14px; }
.sign.style-bold .sign-frame { background: #0f1b2d; color: #fff; border: 10px solid #facc15; }
.sign.style-light .sign-frame { background: #fff; color: #000; border: 8px solid #000; }
.sign.style-alert .sign-frame { background: #facc15; color: #111; border: 10px solid #111; }
.sign-event { font-size: 20px; font-weight: 700; opacity: .8; text-align: center; letter-spacing: .04em; }
.sign-main { flex: 1; display: flex; gap: 30px; align-items: center; justify-content: center; min-height: 0; }
.sign.port .sign-main { flex-direction: column; }
.sign-text { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 16px; min-width: 0; }
.sign-title { font-weight: 900; line-height: 1.02; letter-spacing: -.01em; word-break: break-word; }
.sign.style-bold .sign-title { color: #facc15; }
.sign-sub { font-size: 34px; font-weight: 700; }
.sign-body { font-size: 28px; line-height: 1.35; }
.sign-lines { display: flex; flex-direction: column; gap: 34px; margin-top: 10px; }
.sign-lines div { border-bottom: 2px solid currentColor; opacity: .7; height: 1px; }
.sign-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; text-align: center; }
.sign-qr svg { background: #fff; padding: 8px; border-radius: 10px; }
.sign-foot { text-align: center; font-size: 22px; font-weight: 600; opacity: .85; }
.ml { display: flex; align-items: center; justify-content: center; gap: .4in; text-align: center; }
.ml.port { flex-direction: column-reverse; height: 10in; }
.ml.land { flex-direction: row; height: 7.6in; text-align: left; }
.ml.land .ml-text { display: flex; flex-direction: column; gap: 10px; max-width: 4.6in; }
.ml.land .qp-mat { font-size: 84px; line-height: 1; }
.ml.port .ml-text { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.qr-card { cursor: zoom-in; transition: box-shadow .15s; }
.qr-card:hover { box-shadow: 0 0 0 3px #bfd3ff; }
.qr-modal { width: min(560px, 96vw); }
.qr-big { width: min(480px, 80vw, 62vh); aspect-ratio: 1; margin: 0 auto 10px; }
.qr-big svg { display: block; width: 100%; height: 100%; }
.mat-code.big { text-align: center; font-size: 40px; }
.center { text-align: center; }
.mat-table tr.new-row td { background: #f0fdf4; }
.pill.bad { background: #fde2e1; color: var(--bad, #b42318); }
.inbox-item.flag-request { border-left: 3px solid #b42318; background: #fff6f5; }
.inbox-item.flag-request.req-note { border-left-color: var(--accent, #2563eb); background: #f5f8ff; }
tr.flag-request td:first-child { border-left: 3px solid #b42318; }
.req-text { font-style: italic; color: #344054; margin-top: 2px; }
.team-code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .08em; background: #f2f4f7; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; cursor: pointer; font-size: 13px; }
.team-code:hover { background: #e8eefc; border-color: #b8c8f5; }
.hq-join { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hq-join .qr-card { cursor: zoom-in; padding: 6px; }
.mc-mat-head { flex-wrap: wrap; }
.mc-mat-tools { display: inline-flex; gap: 4px; align-items: center; }
.mc-mat.paused { background: #fffaf0; border-color: #f5d9a8; }
.mc-mat.closing { background: #f4f4f5; opacity: .85; }
.mc-brk { background: #fff1d6; color: #7a4b00; border-radius: 8px; padding: 6px 8px; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.mc-brk.closed { background: #eceef2; color: #475467; }
.mc-rest { background: #fff1d6; color: #7a4b00; border-radius: 6px; padding: 3px 6px; font-size: 12px; margin-top: 4px; }
.mc-closed { grid-column: 1 / -1; font-size: 13px; color: #475467; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-link { background: none; border: 0; color: var(--accent, #2563eb); cursor: pointer; font: inherit; font-size: 11px; padding: 0 0 0 4px; text-decoration: underline; }
.mc-assign { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 8px 14px; margin-bottom: 12px; }
.review h3 { margin: 14px 0 6px; font-size: 14px; }
.rv-main { display: flex; gap: 14px; align-items: center; background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.rv-arrow { font-size: 22px; color: #98a2b3; }
.rv-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; }
.rv-move { color: #344054; }
.rv-warn { margin: 12px 0 4px; background: #fffaeb; border: 1px solid #fedf89; color: #7a2e0e; border-radius: 10px; padding: 10px 12px; }
.rv-up { color: var(--ok, #067647); font-weight: 700; }
.rv-down { color: #b42318; font-weight: 700; }
.pace-chart { width: 100%; height: auto; }
.pace-chart .pc-bar { fill: var(--accent, #2563eb); opacity: .85; }
.pace-chart .pc-v { font-size: 10px; text-anchor: middle; fill: #344054; }
.pace-chart .pc-x { font-size: 10px; fill: #667085; }
tr.pace-slow td { background: #fff6f5; }
.pace-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.sp-list { display: grid; gap: 10px; }
.sp-item { display: grid; grid-template-columns: 200px 1fr; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.sp-item.off { opacity: .55; }
.sp-img { height: 110px; display: grid; place-items: center; background: #f2f4f7; border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; }
.sp-img.empty { border: 2px dashed #b8c3d4; background: #f8fafc; }
.sp-img.empty:hover { border-color: var(--brand); background: #f0f5ff; }
.sp-img-add { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); text-align: center; }
.sp-img-add svg.ic { width: 22px; height: 22px; color: var(--brand); }
.sp-img-add b { color: var(--brand); font-size: 13px; }
.sp-img-add small { font-size: 11px; }
.sp-img-change { position: absolute; inset: auto 0 0 0; background: rgba(15,27,45,.72); color: #fff; font-size: 12px; font-weight: 700; text-align: center; padding: 4px; opacity: 0; transition: opacity .15s; }
.sp-img:hover .sp-img-change, .sp-img:focus-within .sp-img-change { opacity: 1; }
.sp-img img { max-width: 100%; max-height: 110px; object-fit: contain; }
.sp-fields { display: grid; gap: 6px; }
.backup-bar { position: fixed; top: 0; left: 232px; right: 0; z-index: 60; background: #7a2e0e; color: #fff; padding: 8px 16px; font-size: 14px; }
.backup-bar a { color: #fde68a; }
.bk-status { display: grid; gap: 6px; }
.bk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #98a2b3; margin-right: 6px; }
.bk-dot.on { background: #12b76a; } .bk-dot.bad { background: #d92d20; }
.backup-bar.online { background: #1d4ed8; }
.backup-bar.replaced { background: #b91c1c; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.backup-bar.replaced .btn { color: inherit; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }
.backup-bar.replaced .link { color: #fde68a; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
body.admin-body .backup-bar.replaced ~ .main { padding-top: 72px; }
@media (max-width: 900px) { .backup-bar.replaced { position: static; } body.admin-body .backup-bar.replaced ~ .main { padding-top: 0; } }
/* this computer can't save (lib/store.js → app.js saveBar): over every head-table page until a save works again */
.save-fail-bar { position: fixed; left: 248px; right: 16px; bottom: 16px; z-index: 90; /* under windows and toasts */ display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: #b42318; color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.save-fail-bar > div:first-child { flex: 1 1 320px; }
.save-fail-bar .sfb-act { display: flex; gap: 8px; flex-wrap: wrap; }
.save-fail-bar .btn { background: #fff; color: #b42318; border-color: #fff; }
@media (max-width: 900px) { .save-fail-bar { left: 10px; right: 10px; bottom: 10px; } }
body.admin-body.rehearsing .save-fail-bar { bottom: 64px; }
body.cant-save #toasts { bottom: 120px; }
@media (max-width: 900px) { body.cant-save #toasts { bottom: 190px; } }
.ol-rows { display: grid; gap: 0; }
.ol-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line2, #eef0f3); }
.ol-row:last-child { border-bottom: 0; }
.ol-row > div { display: flex; flex-direction: column; gap: 2px; }
.ol-row small { color: #667085; }
.ol-address { text-align: center; display: grid; gap: 8px; justify-items: center; }
.ol-url { font-weight: 700; word-break: break-all; }
.ol-warn { background: #fffaeb; border: 1px solid #fedf89; color: #7a2e0e; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.ol-intro p { max-width: 760px; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; z-index: 1; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: #d0d5dd; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent, #2563eb); }
.switch input:checked + span::before { transform: translateX(20px); }
.wstat { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.st-empty { background: #f3f4f6; color: #98a2b3; border-color: #e5e7eb; }
.st-seed { background: #fff1d6; color: #9a4a06; border-color: #f7d49b; }
.st-ready { background: #e0ebff; color: #1d4ed8; border-color: #bcd0fb; }
.st-drawn { background: #efe6ff; color: #6b3fc9; border-color: #d8c6fa; }
.st-live { background: #ffe0e6; color: #be123c; border-color: #fbb8c6; }
.st-complete { background: #dcf5e6; color: #16803c; border-color: #aee3c3; }
.wchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.wchip { font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; }
.wchip b { margin-left: 3px; }
.wchip.on { box-shadow: 0 0 0 2px var(--ink) inset; }
.wchips .right { text-align: right; }
.inline-sel { font: inherit; font-size: 13px; padding: 3px 4px; border: 1px solid transparent; border-radius: 6px; background: transparent; max-width: 210px; cursor: pointer; }
.inline-sel:hover, .inline-sel:focus { border-color: var(--line); background: #fff; }
.inline-num { width: 58px; font: inherit; font-size: 13px; padding: 3px 4px; border: 1px solid transparent; border-radius: 6px; background: transparent; text-align: right; }
.inline-num:hover, .inline-num:focus { border-color: var(--line); background: #fff; }
.inline-btn { font: inherit; font-size: 13px; background: transparent; border: 1px dashed transparent; border-radius: 6px; padding: 3px 6px; cursor: pointer; text-align: left; color: inherit; }
.inline-btn:hover { border-color: var(--line); background: #fff; }
.warn-text { color: var(--warn); }
a.plain-link { color: inherit; text-decoration: none; }
a.plain-link:hover { text-decoration: underline; }
.wtable td { vertical-align: middle; }
.sp-preview { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: end; }
.sp-preview figure { margin: 0; display: grid; gap: 8px; justify-items: center; }
.sp-preview figcaption { font-size: 12.5px; color: var(--muted); text-align: center; }
.sp-tv { width: 100%; max-width: 520px; background: #1f2937; border-radius: 10px; padding: 8px; box-shadow: 0 6px 18px rgba(15,27,45,.2); }
.sp-tv-in { position: relative; container-type: inline-size; aspect-ratio: 16 / 9; background: #070d18; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; overflow: hidden; padding: 3cqw 5cqw 6cqw; box-sizing: border-box; }
.sp-tv-in img, .sp-tv-in svg { flex: none; display: block; width: auto; height: auto; max-width: 56%; max-height: 42%; max-width: 56cqw; max-height: 24cqw; object-fit: contain; background: #fff; border-radius: 1.5cqw; padding: 1.5cqw; box-sizing: border-box; }
.sp-tv-in svg { width: 40%; width: 40cqw; } /* the example logo has no size of its own (Safari would draw it at nothing) */
.sp-ph-card svg { width: 100%; height: auto; }
.sp-tv-text { text-align: center; color: #fff; display: flex; flex-direction: column; gap: .8cqw; }
.sp-tv-text b { font-size: 4.6cqw; line-height: 1.15; }
.sp-tv-text span { font-size: 2.5cqw; color: #cbd6e4; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-tv-in small { position: absolute; bottom: 2.2cqw; left: 0; right: 0; text-align: center; color: #64748b; font-size: 1.8cqw; letter-spacing: .15em; text-transform: uppercase; }
.sp-phone { width: 210px; background: #111827; border-radius: 26px; padding: 10px 8px; box-shadow: 0 6px 18px rgba(15,27,45,.2); }
.sp-phone-bar { width: 60px; height: 6px; border-radius: 3px; background: #374151; margin: 0 auto 8px; }
.sp-phone-body { background: #0b1220; border-radius: 16px; padding: 10px 8px; min-height: 210px; display: flex; flex-direction: column; gap: 6px; }
.sp-ph-line { height: 22px; border-radius: 6px; background: #1a2638; }
.sp-ph-line.short { width: 70%; }
.sp-ph-h { color: #fff; font-weight: 800; font-size: 11px; margin-top: 6px; }
.sp-ph-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sp-ph-more { color: #9fb0c7; font-size: 10px; text-align: center; }
.sp-ph-card { min-width: 0; overflow-wrap: anywhere; background: #121c2e; border: 1px solid #22324a; border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 3px; align-items: center; text-align: center; color: #fff; font-size: 10px; }
.sp-ph-card img, .sp-ph-card svg { max-width: 100%; max-height: 34px; background: #fff; border-radius: 4px; padding: 2px; }
.sp-ph-card span { font-size: 9px; color: #9fb0c7; }
@media (max-width: 820px) { .sp-preview { grid-template-columns: 1fr; } }
.ready-bar { padding: 12px 16px; margin-bottom: 16px; }
.ready-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ready-head .ready-next { margin-left: auto; }
.ready-head .pill.ok { margin-left: auto; }
.ready-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ready-steps a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #f2f4f7; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; border: 1px solid transparent; }
.ready-steps a:hover { border-color: var(--line); background: #fff; }
.ready-steps i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: #dde3ea; color: var(--muted); }
.ready-steps small { color: var(--muted); font-weight: 500; }
.ready-steps li.ok a { background: #e9f7ef; color: #14532d; }
.ready-steps li.ok i { background: var(--ok); color: #fff; }
.ready-steps li.next a { background: #e0ebff; border-color: #bcd0fb; color: #1e3a8a; }
.ready-steps li.next i { background: var(--brand); color: #fff; }
.ready-extra { margin-top: 8px; }
.lm-next { white-space: normal; }
.lm-up { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1px 0; }
.lm-up small { color: var(--muted); }
.lm-up-k { display: inline-block; margin-right: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); min-width: 62px; }
.pill.pref { background: #efe6ff; color: #6b3fc9; }
.mc-pref { margin-top: 4px; font-size: 12px; }
.mc-pref select { font: inherit; font-size: 12px; padding: 1px 2px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; max-width: 170px; }
.mc-pref select:hover, .mc-pref select:focus { border-color: var(--line); background: #fff; }
.mc-pref.on select { color: #6b3fc9; font-weight: 700; }
.mc-pref.on { background: #f6f0ff; border-radius: 6px; padding: 1px 4px; }
.side-find { display: flex; align-items: center; gap: 8px; width: calc(100% - 20px); margin: 4px 10px 8px; padding: 7px 10px; border-radius: 8px; border: 1px solid #25364f; background: #15243a; color: var(--side-ink); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.side-find:hover { background: #1b2d48; color: #fff; }
.side-find kbd { margin-left: auto; font: 11px ui-monospace, monospace; background: #0f1b2d; border: 1px solid #2c3f5c; border-radius: 4px; padding: 1px 5px; color: #8fa3bf; }
.qf-modal { width: min(680px, 94vw); align-self: flex-start; margin-top: 10vh; }
.qf-input { width: 100%; font-size: 18px; padding: 10px 12px; border: 2px solid var(--brand); border-radius: 10px; }
.qf-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 55vh; overflow-y: auto; }
.qf-hit { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.qf-hit.on, .qf-hit:hover { background: #eef3ff; }
.qf-kind { flex: 0 0 64px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.qf-main { flex: 1; min-width: 0; }
.qf-sub { font-size: 12.5px; margin-top: 2px; }
.qf-none { padding: 10px; }
.qf-help { margin-top: 8px; text-align: right; }
.mc-pref:not(.on) { opacity: .5; }
.mc-card:hover .mc-pref, .mc-pref:focus-within { opacity: 1; }
.side nav a svg.ic { width: 17px; height: 17px; opacity: .85; }
.side nav a.active svg.ic { opacity: 1; }
.side-links a svg.ic.ext { width: 11px; height: 11px; opacity: .6; }
.side-links a.side-home { font-size: 12.5px; margin-bottom: 2px; }
.side-brand a.logo { display: flex; line-height: 0; }
.side-find svg.ic { width: 15px; height: 15px; }
.side-ver { padding: 0 18px 10px; font-size: 10px; color: #8193ad; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.crit-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; counter-reset: cr; }
.crit-list li { counter-increment: cr; display: grid; grid-template-columns: 230px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px 8px 38px; border: 1px solid var(--line); border-radius: 10px; position: relative; background: #fff; }
.crit-list li::before { content: counter(cr); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.crit-list li.off { opacity: .55; }
.crit-list li.off::before { background: #98a2b3; }
.crit-help { font-size: 12.5px; color: var(--muted); }
.crit-move { white-space: nowrap; }
@media (max-width: 800px) { .crit-list li { grid-template-columns: 1fr auto; } .crit-help { grid-column: 1 / -1; } }
.seed-crit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; padding: 10px 14px; }
.crit-chip { display: inline-block; background: #eef3ff; color: #1e3a8a; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600; margin: 2px 0; }
.why { font-size: 12px; color: #334155; }
.why.hand { color: var(--warn); font-weight: 600; }
.why-h2h, .why-common { color: #6b3fc9; font-weight: 600; }
small.block, .block { display: block; }
.check small.block { font-weight: 400; margin-top: 2px; }
.rs-help p { margin: 0; }
.rs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.rs-list li { display: flex; gap: 8px; align-items: baseline; }
.rs-list svg.ic { flex: 0 0 auto; color: var(--ok); }
.rs-list li:last-child svg.ic { color: var(--danger); }
.rs-kind { display: flex; gap: 10px; align-items: flex-start; background: #f8fafc; border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.rs-todo { margin-top: 3px; color: #7c2d12; }
.pc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 18px; }
.pc-col { display: grid; gap: 14px; align-content: start; }
@media (max-width: 1250px) { .pc-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pc-col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; } .pc-col:last-child .pc-sec { grid-column: 1 / -1; } }
@media (max-width: 800px) { .pc-cols, .pc-col:last-child { grid-template-columns: 1fr; } }
.pc-sec { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 2px 2px -4px; }
.pc-sec svg.ic { width: 15px; height: 15px; color: var(--brand); }
.pc-card { padding: 14px 16px; gap: 10px; }
.pc-card h2 { font-size: 16px; }
.pc-rows { display: grid; }
.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line2); }
.pc-row:first-child { border-top: 0; padding-top: 0; }
.pc-row b { font-size: 13.5px; }
.pc-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.pc-row .btn { flex: 0 0 auto; }
.pc-row .inline-sel { font-size: 12px; padding: 1px 2px; max-width: 150px; border-color: var(--line); background: #fff; }
svg.ic.flip { transform: rotate(180deg); }
.pc-card .field.sm { min-width: 130px; }
.page-head p.muted { margin: 4px 0 0; }
th.sortable.num .sort-ind { margin: 0 4px 0 0; }
.table th.num, .table td.num { text-align: right; }
input.weigh-input { width: 110px; max-width: 100%; }
.seed-table td { vertical-align: middle; }
.seed-table td:nth-child(4) { white-space: nowrap; }
.deck-k { color: #facc15; margin-right: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.deck-item + .deck-item { padding-left: 14px; border-left: 1px solid #2c3f5c; }
.side-links { display: flex; }
.side-links-h { grid-column: 1 / -1; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6f84a3; margin-bottom: -2px; }
.side-links a { display: flex; align-items: center; border: 1px solid #2c3f5c; border-radius: 8px; background: #15243a; color: #dbe6f5 !important; text-decoration: none !important; white-space: nowrap; overflow: hidden; }
.side-links a:hover { background: #1f3354; border-color: #3d5a86; color: #fff !important; }
.side-links a svg.ic.ext { margin-left: auto; }
.side-links a.side-home { grid-column: 1 / -1; order: 99; justify-content: center; background: #1d4ed8; border-color: #2f6bff; color: #fff !important; font-weight: 700; }
.side-links a.side-home:hover { background: #2458e8; }
.page-tabs { margin-top: -6px; } a.tab { text-decoration: none; display: inline-block; }
.reset-card { border-color: #f5c2c0; }
.purge-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin: 10px 0 12px; }
.purge-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; background: #fff; }
.purge-item:has(input:checked) { border-color: #f5a3a0; background: #fff6f5; }
.purge-item.forced { opacity: .8; }
.purge-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.purge-item input { margin-top: 3px; }
.big-confirm { font-size: 20px; letter-spacing: .2em; text-transform: uppercase; padding: 8px 12px; width: 100%; border: 2px solid var(--line); border-radius: 10px; margin-top: 6px; }
.reg-status { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.reg-st { font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.reg-st.open { background: #14532d; color: #bbf7d0; }
.reg-st.closed { background: #3a1d24; color: #fca5a5; }
.reg-notes { background: #0f1a2e; border: 1px solid #22324a; border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-size: 13.5px; color: #dbe6f5; }
.reg-count { margin-bottom: 6px; color: #cbd6e4; }
.reg-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #22324a; }
.reg-row.dim { opacity: .55; }
.reg-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.reg-nm em { font-style: normal; font-size: 12px; color: #8ea0b8; }
.reg-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.reg-badge { font-weight: 800; font-size: 13px; padding: 5px 14px; border-radius: 999px; }
.reg-badge.open { background: #dcf5e6; color: #14532d; }
.reg-badge.closed { background: #eef1f5; color: #344054; } .dash-div { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 0 2px; }
.side-links { gap: 6px; padding: 8px 10px; }
.side-links a { padding: 6px 5px; gap: 5px; font-size: 11.5px; justify-content: center; min-width: 0; letter-spacing: -.005em; }
.side-links a svg.ic { width: 13px; height: 13px; flex: none; }
.side-links a span, .side-links a { text-overflow: ellipsis; }
.dash-quick { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 1320px) { .dash-quick { justify-content: flex-start; } }
.reg-soon { color: #fbbf24; font-weight: 700; }
.reg-away { display: flex; gap: 8px; align-items: flex-start; background: #172554; border: 1px solid #1e40af; color: #dbeafe; border-radius: 10px; padding: 9px 11px; margin-top: 10px; font-size: 13.5px; line-height: 1.4; }
.reg-away svg.ic { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.reg-added { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; border-radius: 8px; padding: 7px 10px; font-weight: 600; }
.card.callout.ok { background: #f0fdf4; border-color: #b7ebc6; }
.reg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.reg-stats .stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.reg-stats .stat b { font-size: 24px; line-height: 1.15; }
.reg-stats .stat b small { font-size: 13px; color: var(--muted); font-weight: 600; }
.reg-stats .stat b.stat-text { font-size: 15px; padding-top: 5px; }
.reg-form h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line2); }
.reg-form h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.reg-close { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-top: 14px; }
.reg-close .field { flex: 0 1 360px; }
.reg-quick { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 24px; }
.reg-rec { align-self: center; }
.reg-addteam { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line2); padding-top: 0 !important; padding-bottom: 12px !important; }
.reg-addteam input { flex: 0 1 340px; }
@media (max-width: 900px) { .reg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card.callout > div:first-child { flex: 1 1 420px; }
.reg-form select[name=regMaxPerWeight] { max-width: 220px; }
.reg-addteam.pad { padding: 0 18px 12px !important; }
.mad-pill { background: #f3edff; color: #5b2bb5; }
.mad-branch { color: var(--muted); margin-right: 2px; }
tr.madison-row td { background: #faf8ff; }
.mg-settings { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mg-help { flex: 1 1 420px; font-size: 13.5px; color: #344054; line-height: 1.45; }
.mg-opts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mg-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; position: sticky; top: 0; z-index: 5; background: var(--bg, #f4f6fa); padding: 8px 0; }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mg-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.mg-card.warn { border-color: #f5c27a; background: #fffcf5; }
.mg-head { display: flex; align-items: center; gap: 8px; }
.mg-head b { flex: 1; font-size: 14px; }
.mg-n { font-size: 12px; font-weight: 700; color: var(--muted); background: #f2f4f7; border-radius: 999px; padding: 1px 8px; }
.mg-pills { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0; min-height: 4px; }
.mg-card ol { list-style: none; margin: 0; padding: 0; }
.mg-card li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line2); }
.mg-card li:first-child { border-top: 0; }
.mg-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.mg-name b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-name em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.mg-name .mg-lv { align-self: flex-start; margin: 2px 0 1px; } /* (0.49: the level tag sat stretched across the card) */
.mg-lbs { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13.5px; }
.mg-lbs.declared { color: #b54708; }
.mg-lbs sup { font-size: 9px; margin-left: 1px; }
.mg-move { display: flex; gap: 2px; }
.seg-row { display: flex; gap: 10px; flex-wrap: wrap; }
.seg-row > label { flex: 1 1 240px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; align-items: flex-start; }
.seg-row > label:has(input:checked) { border-color: var(--brand); background: #f5f8ff; }
.seg-row small { display: block; margin-top: 2px; }
.style-guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: -4px; }
.style-card { text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; color: var(--ink); }
.style-card b { font-size: 13.5px; }
.style-card span { font-size: 12.5px; color: #475467; line-height: 1.4; }
.style-card:hover { border-color: #9db5f5; }
.style-card.on { border-color: var(--brand); background: #f5f8ff; box-shadow: 0 0 0 1px var(--brand) inset; }
.style-card.aside { background: #faf8ff; border-style: dashed; }
.btn.btn-start { background: #15803d; border-color: #166534; color: #fff; font-weight: 700; }
.btn.btn-start:hover { background: #166534; }
.start-warn { background: #fffaf0; border: 1px solid #f5d9a8; border-radius: 8px; padding: 8px 10px; margin: 8px 0 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 3px; }
.ok-text { color: #067647; font-weight: 600; }
button.linkish { background: none; border: 0; color: var(--brand); cursor: pointer; text-decoration: underline; padding: 0; font: inherit; }
button.linkish.small { font-size: 12px; }
.form-grid .field > input[type=number] { max-width: 200px; }
.form-grid .field > select[data-num] { max-width: 320px; }
.side nav a { padding: 5px 10px; }
.nav-group { padding: 7px 10px 2px; }
.side-links { padding-top: 8px; padding-bottom: 8px; }
.purge-item input, label.check > input[type=checkbox], label.check > input[type=radio] { flex: none; }
.mc-more { margin-left: auto; }
.pc-col { grid-template-columns: minmax(0, 1fr); }
.pc-col > *, .pc-col select, .pc-col input:not([type=checkbox]):not([type=radio]) { min-width: 0; max-width: 100%; }
.radio-row > input { flex: none; }
.radio-row .pill { display: inline-block; width: auto; margin-left: 6px; vertical-align: 1px; }
.ol-row select { min-width: 260px; }
.side-tools { display: flex; gap: 6px; margin: 4px 10px 8px; }
.side-tools .side-find { margin: 0; width: auto; flex: 1; min-width: 0; }
.side-help { flex: none; width: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid #25364f; background: #15243a; color: #9cc0ff !important; font-weight: 800; text-decoration: none !important; }
.side-help:hover, .side-help.active { background: #1d4ed8; color: #fff !important; border-color: #2f6bff; }
.gd-intro { display: flex; flex-direction: column; gap: 6px; background: #f5f8ff; border-color: #cfdcff; }
.gd-phase { margin: 22px 0 8px; }
.gd-phase h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; font-size: 18px; }
.gd-n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 14px; }
.gd-phase > p { margin: 0 0 8px 38px; }
.gd-steps { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.gd-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-top: 1px solid var(--line2); }
.gd-step:first-child { border-top: 0; }
.gd-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c7d0dd; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; margin-top: 1px; }
.gd-step.done .gd-mark { background: #16a34a; border-color: #16a34a; }
.gd-step.opt .gd-mark { border-style: dashed; }
.gd-body { flex: 1; min-width: 0; }
.gd-body p { margin: 2px 0 0; font-size: 13.5px; color: #475467; line-height: 1.45; }
.gd-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gd-step.done .gd-title b { color: #067647; }
.gd-status { font-size: 12px; color: var(--muted); font-weight: 600; }
.gd-staff { max-width: 820px; }
.gd-open { background: #f5f8ff; border: 1px solid #cfdcff; border-radius: 8px; padding: 9px 12px; }
.gd-list { padding-left: 20px; line-height: 1.5; }
.gd-list li { margin-bottom: 8px; }
.gd-step.next { background: #f5f8ff; box-shadow: inset 3px 0 0 var(--brand); }
.gd-next { background: var(--brand); color: #fff; }
.reg-form .reg-close + .switch-row { margin-top: 16px; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.mode-card { text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.mode-card b { font-size: 15px; }
.mode-card span { font-size: 13px; color: #475467; line-height: 1.45; }
.mode-card:hover { border-color: #9db5f5; }
.mode-card.on { border-color: var(--brand); background: #f5f8ff; box-shadow: 0 0 0 1px var(--brand) inset; }
@media (max-width: 800px) { .mode-cards { grid-template-columns: 1fr; } }
.entry-q { max-width: 280px; margin-left: auto; }
@media (max-width: 1100px) { .entry-q { flex: 1 1 100%; max-width: none; margin-left: 0; order: 10; } }
.entries-table td { vertical-align: top; }
.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 260px)) 1fr; gap: 14px 18px; align-items: start; }
.fee-notes { grid-column: -2 / -1; min-width: 260px; }
.fee-pay { margin-top: 14px; max-width: 760px; }
.fee-pay input { width: 100%; }
.fee-pay code { background: rgba(148, 163, 184, .18); border-radius: 4px; padding: 0 4px; }
.fee-ref { margin-left: 6px; font-weight: 600; }
.money-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 180px; }
.money-in i { font-style: normal; padding: 0 4px 0 10px; color: var(--muted); font-weight: 700; }
.money-in input { border: 0 !important; box-shadow: none !important; width: 100%; background: transparent; }
.tabs .tab .badge { margin-left: 4px; }
.reg-fee { background: #172554; border: 1px solid #1e40af; color: #dbeafe; border-radius: 10px; padding: 8px 11px; margin-top: 8px; font-size: 14px; }
.reg-fee.paid { background: #0f2a1b; border-color: #15803d; color: #dcfce7; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-right: 6px; }
.seg button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 12px; border: 0; background: #fff; color: var(--ink); cursor: pointer; }
.seg button.on { background: var(--brand, #2563eb); color: #fff; }
.fam-ok { color: #15803d; font-weight: 800; }
.side-color { display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: .14em; padding: 2px 10px; border-radius: 99px; margin-bottom: 4px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); }
.side-name span.side-color { color: #fff; font-size: 12px; }
.rf-q { font-weight: 800; font-size: 17px; }
.rf-q small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.rf-w { padding: 12px 14px; }
.rf-w span em { font-style: normal; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.rf-w.c-red span em { color: var(--red); } .rf-w.c-green span em { color: var(--green); }
.rf-w b { font-size: 17px; }
.rf-w.c-red:has(input:checked) { background: #ffe9e9; border-color: var(--red); box-shadow: 0 0 0 2px var(--red) inset; }
.rf-w.c-green:has(input:checked) { background: #e3f8ee; border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
.count-badge.soft { background: #e4e7ec; color: #344054; }
.inbox-group + .inbox-group { margin-top: 10px; }
.ig-head { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; align-items: center; margin: 2px 0 4px; }
.ig-head span { background: #eef1f5; color: #475467; border-radius: 99px; padding: 0 7px; font-size: 11px; letter-spacing: 0; }
.ig-now .ig-head { color: var(--danger, #b42318); }
.ig-now .ig-head span { background: var(--danger, #b42318); color: #fff; }
.ig-later .inbox-item { opacity: .85; }
.demo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.demo-cards.three { grid-template-columns: repeat(3, 1fr); }
.demo-cards.five { grid-template-columns: repeat(5, 1fr); }
.demo-cards.six { grid-template-columns: repeat(3, 1fr); }
.demo-card { position: relative; display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: pointer; background: #fff; }
.demo-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.demo-card b { font-size: 14px; }
.demo-card small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.demo-card:has(input:checked) { border-color: var(--brand, #2563eb); background: #f0f5ff; box-shadow: 0 0 0 1px var(--brand, #2563eb) inset; }
.demo-card:has(input:focus-visible) { outline: 3px solid #93c5fd; }
.demo-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.demo-row .field:first-child { flex: 1; min-width: 220px; }
.demo-row input[type=range] { width: 100%; }
.demo-checks { display: grid; gap: 4px; }
.demo-est { margin: -4px 0 0; }
@media (max-width: 760px) { .demo-cards, .demo-cards.three, .demo-cards.five, .demo-cards.six { grid-template-columns: 1fr 1fr; } }
.qr-page { max-width: 560px; margin: 0 auto; padding: 0 12px 30px; }
.qr-top { display: flex; align-items: center; gap: 8px; padding: 12px 2px; font-weight: 700; color: #344054; }
.qr-top span { flex: 1; }
.qr-home { color: #344054; }
.qr-bout { background: #111827; color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; margin-bottom: 10px; }
.qr-bout b { font-size: 20px; }
.qr-bout span { color: #cbd5e1; font-size: 14px; }
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 12px; }
.qr-card h2 { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 20px; }
.qr-code-in { font: inherit; font-size: 24px; letter-spacing: .15em; text-transform: uppercase; text-align: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; }
.qr-err { color: var(--danger, #b42318); margin: 0; min-height: 1em; }
.qr-winners { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qr-w { position: relative; display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; }
.qr-w input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qr-w em { font-style: normal; font-weight: 900; letter-spacing: .14em; font-size: 13px; }
.qr-w.c-red em { color: var(--red); } .qr-w.c-green em { color: var(--green); }
.qr-w b { font-size: 16px; }
.qr-w small { color: var(--muted); }
.qr-w.c-red:has(input:checked) { background: #ffe9e9; border-color: var(--red); box-shadow: 0 0 0 2px var(--red) inset; }
.qr-w.c-green:has(input:checked) { background: #e3f8ee; border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
.qr-form .how-grid { grid-template-columns: 1fr 1fr; }
.qr-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qr-scores input, .qr-scores select { font: inherit; font-size: 18px; padding: 8px; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; }
.qr-card { min-width: 0; }
.qr-card .ec-card { min-width: 0; overflow-wrap: anywhere; }
.qr-actions { display: flex; flex-direction: column-reverse; gap: 8px; }
.qr-actions .btn { width: 100%; white-space: normal; justify-content: center; }
.qr-sent h2 { color: #15803d; }
.dv-list { display: grid; gap: 4px; margin-top: 8px; width: 100%; text-align: left; }
.dv-mini { display: flex; align-items: center; gap: 8px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 12.5px; }
.dv-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dv-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-who small { color: var(--muted); font-size: 11.5px; }
.dv-dot { width: 8px; height: 8px; border-radius: 99px; background: #cbd5e1; flex: 0 0 auto; }
.dv-dot.on { background: #16a34a; }
.dv-none { font-size: 12px; color: var(--muted); }
.dv-sec { border-top: 1px solid var(--line2, #eef1f5); padding-top: 8px; margin-top: 4px; }
.dv-h { font-size: 12px; font-weight: 700; color: var(--muted); }
.dv-totals { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 0; }
.dv-total { margin-right: 6px; }
.dv-all > summary { cursor: pointer; color: var(--brand, #2563eb); }
.hilite { animation: hilite 1.6s ease-out 2; outline: 2px solid var(--accent, #2563eb); outline-offset: 2px; }
@keyframes hilite { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,.6); } 100% { box-shadow: 0 0 0 12px rgba(37,99,235,0); } }
.chat-group { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 8px 2px 0; display: flex; gap: 6px; align-items: center; }
.chat-group:first-child { margin-top: 0; }
.chat-find { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; }
[data-team-items] { display: flex; flex-direction: column; gap: 6px; }
.side-mini, .side-menu-btn { display: none; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; border-radius: 10px; padding: 8px 10px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; position: relative; }
.side-mini svg.ic, .side-menu-btn svg.ic { width: 18px; height: 18px; }
.side-menu-btn .badge { position: absolute; top: -6px; right: -6px; }
.side-brand small.side-cur { display: none; }
.ck-sum { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; margin: 10px 0 14px; font-size: 16px; }
.ck-sum svg.ic { width: 22px; height: 22px; } .ck-sum span { color: var(--muted); font-size: 14px; }
.ck-sum.ok { background: #ecfdf3; color: #067647; } .ck-sum.warn { background: #fffaeb; color: #b54708; } .ck-sum.bad { background: #fef3f2; color: #b42318; }
.ck-card h2 { margin-bottom: 6px; }
.ck-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--line); }
.ck-card h2 + .ck-row, .ck-card p + .ck-row { border-top: 0; }
.ck-ic { width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; background: #eef2f6; color: #667085; }
.ck-ic svg.ic { width: 15px; height: 15px; }
.ck-row.ok .ck-ic { background: #dcfae6; color: #067647; } .ck-row.warn .ck-ic { background: #fef0c7; color: #b54708; } .ck-row.bad .ck-ic { background: #fee4e2; color: #b42318; }
.ck-txt { display: flex; flex-direction: column; min-width: 0; } .ck-txt span { color: var(--muted); font-size: 13px; }
.ck-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .ck-row { grid-template-columns: 30px minmax(0, 1fr); } .ck-act { grid-column: 2; justify-content: flex-start; } }
.ck-print { font-family: sans-serif; } .ck-print-row { display: flex; gap: 30px; align-items: center; margin: 20px 0; } .ck-print-row small { display: block; text-align: center; }
.ck-bars { display: flex; gap: 6px; } .ck-bars span { width: 60px; height: 60px; display: block; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ck-print-sheet { border-collapse: collapse; width: 100%; } .ck-print-sheet th, .ck-print-sheet td { border: 1.5px solid #000; padding: 10px; text-align: left; }
.dv-summary { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 12px 16px; }
.dv-summary .dv-totals { flex: 1 1 auto; padding: 0; }
.dv-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 2px 0 8px; }
.dv-mode-l { font-weight: 700; font-size: 13px; color: var(--muted); margin-right: 2px; }
.dv-mode .dv-seg { position: relative; }
.dv-mode .dv-seg input { position: absolute; opacity: 0; pointer-events: none; }
.dv-mode .dv-seg span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: #fff; }
.dv-mode .dv-seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.dv-mode .dv-seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.dv-mode .dv-seg em { font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; background: #dcfae6; color: #067647; border-radius: 99px; padding: 1px 6px; }
.dv-mode .dv-seg input:checked + span em { background: rgba(255,255,255,.25); color: #fff; }
.dv-mode .field.inline { display: flex; align-items: center; gap: 6px; margin: 0; } .dv-mode .field.inline input { width: 110px; }
.dv-mode-help { flex-basis: 100%; }
.qr-tv { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.qr-tv span { display: inline-flex; align-items: center; gap: 4px; } .qr-tv svg.ic { width: 13px; height: 13px; }
.code-list .card-head .row { gap: 8px; }
.cl-find { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; min-width: 280px; }
.pad-x { padding: 0 20px; margin-top: -6px; }
.cl-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.cl-cols.one { grid-template-columns: minmax(0, 1fr); }
.cl-col + .cl-col { border-left: 1px solid var(--line); }
.cl-col .table { margin: 0; }
.cl-coaches.scroll { max-height: 520px; overflow: auto; }
.cl-dot { display: inline-block; width: 14px; }
.cl-dot .dv-dot { display: inline-block; vertical-align: middle; }
.cl-group th { position: sticky; top: 0; background: #f7f8fa; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 16px; z-index: 1; }
.cl-row td:first-child { padding-left: 14px; }
.cl-row td.actions { white-space: nowrap; text-align: right; }
.cl-row .mat-code.sm { font-size: 14px; white-space: nowrap; }
.dv-more summary { cursor: pointer; color: var(--brand); margin: 4px 0; }
.dv-more[open] { display: grid; gap: 10px; }
.dv-pair { align-items: start; }
.dv-pair > .card { margin: 0; }
@media (max-width: 700px) { .cl-find { min-width: 0; width: 100%; } .code-list .card-head { flex-wrap: wrap; } .code-list .card-head .row { width: 100%; } }
.code-sheet h1 { font-size: 20px; } .code-sheet table { border-collapse: collapse; width: 100%; } .code-sheet td { border-bottom: 1px solid #999; padding: 5px 8px; font-size: 13px; }
.code-sheet .pc-g { text-align: left; padding: 12px 8px 4px; font-size: 12px; text-transform: uppercase; } .code-sheet .pc-code { font-family: monospace; font-size: 16px; font-weight: 700; letter-spacing: .1em; }
.chat-item { border-left-width: 4px; }
.chat-item.k-mat { border-left-color: #2563eb; } .chat-item.k-team { border-left-color: #16a34a; } .chat-item.k-all { border-left-color: #d97706; }
.chat-item .ck-tag { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; padding: 1px 5px; margin-right: 2px; }
.chat-item.k-mat .ck-tag { background: #dbeafe; color: #1d4ed8; } .chat-item.k-team .ck-tag { background: #dcfce7; color: #15803d; } .chat-item.k-all .ck-tag { background: #fef3c7; color: #b45309; }
.chat-item.has-unread { background: #fffbeb; }
.chat-item.has-unread b { font-weight: 800; }
.chat-group.unread { color: #b42318; }
.pill.msg-mat { background: #dbeafe; color: #1d4ed8; } .pill.msg-team { background: #dcfce7; color: #15803d; }
@media (max-width: 700px) {
  .qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .qr-grid .qr-card { min-width: 0; width: auto; padding: 10px 8px; }
  .qr-grid .qr-card svg.qr { width: 100%; height: auto; max-width: 130px; }
  .qr-grid .qr-card .mat-code { font-size: 20px; letter-spacing: .12em; }
  .qr-grid .qr-card .dv-mini small { display: none; }
  .cl-cols { grid-template-columns: minmax(0, 1fr); }
  /* each row: the name on its own line, then the code with QR and New code on a second line */
  .cl-col .table, .cl-col .table tbody { display: block; width: 100%; }
  .cl-col .cl-group, .cl-col .cl-group th { display: block; width: 100%; }
  .cl-col .cl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
  .cl-col .cl-row[hidden] { display: none; }
  .cl-col .cl-row td { display: block; padding: 0; border: 0; }
  .cl-col .cl-row td:first-child { grid-column: 1 / -1; padding-left: 0; font-size: 15px; }
  .cl-col .cl-row td.actions { justify-self: end; position: static !important; box-shadow: none !important; background: none !important; }
  .cl-col .cl-row .mat-code.sm { padding-left: 0; }
  .cl-dot { width: auto; }
  .cl-dot:empty { display: none; }
  .cl-dot .dv-dot { margin-right: 6px; }
  .cl-col + .cl-col { border-left: 0; border-top: 1px solid var(--line); }
  .cl-coaches.scroll { max-height: none; overflow: visible; }
}

/* team logos on Teams & Coaches */
.tl-cell { width: 44px; text-align: center; }
.tl-none { color: var(--line); }
.tl-toggle { margin: 0 0 12px; }
.tl-edit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-prev { min-width: 64px; min-height: 64px; display: inline-grid; place-items: center; border: 1px dashed var(--line); border-radius: 8px; }
.tl-list { max-height: 50vh; overflow: auto; margin-top: 10px; }
.tl-list select { max-width: 240px; }
.tl-with { display: inline-flex; align-items: center; }

/* tournament library: the name on the dashboard is the drop-down */
.tname { font: inherit; color: inherit; background: none; border: 0; padding: 2px 8px 2px 0; margin: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; text-align: left; }
.tname:hover { background: var(--line2); }
.tname-caret { font-size: .6em; color: var(--muted); }
.tname-sw { font-size: 12.5px; font-weight: 700; color: var(--brand); background: #eef4ff; border: 1px solid #cfdcff; border-radius: 999px; padding: 3px 10px; white-space: nowrap; letter-spacing: 0; }
.tname:hover .tname-sw { background: var(--brand); color: #fff; border-color: var(--brand); }
.tmenu { position: absolute; z-index: 200; width: min(460px, calc(100vw - 16px)); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 27, 45, .22); padding: 6px; }
.tmenu-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.tmenu-list { max-height: 50vh; overflow: auto; }
.tmenu-item { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; }
.tmenu-item:hover { background: #f3f6fb; }
.tmenu-item.on { background: #eef4ff; }
.tmenu-check svg.ic { width: 16px; height: 16px; color: var(--brand); }
.tmenu-main { display: flex; flex-direction: column; min-width: 0; } .tmenu-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tmenu-main small { color: var(--muted); font-size: 12px; }
.tmenu-pills { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tmenu-acts { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; display: grid; }
.tmenu-act { display: flex; align-items: center; gap: 8px; background: none; border: 0; border-radius: 8px; padding: 9px 10px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: none; }
.tmenu-act:hover { background: #f3f6fb; text-decoration: none; }
.tmenu-act svg.ic { width: 16px; height: 16px; color: var(--muted); }
.pill.tl-demo { background: #ede9fe; color: #6d28d9; }
tr.tl-open td { background: #f5f9ff; }
.tl-wrap { overflow-x: auto; }
@media (min-width: 900px) {
  .tl-table { table-layout: fixed; }
  .tl-c-date { width: 130px; } .tl-c-status { width: 210px; } .tl-c-when { width: 140px; } .tl-c-act { width: 380px; }
}
.tl-table td.actions { white-space: nowrap; text-align: right; }
.pill.tl-hub { background: #e0f2fe; color: #0369a1; }
.tmenu-hub { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 2px; }
.tmenu-note { font-size: 12px; color: var(--muted); padding: 4px 10px 8px; }
.tl-handoff { margin-top: 10px; padding: 10px 12px; border: 1px solid #bae6fd; background: #f0f9ff; border-radius: 10px; align-items: flex-start; }
.tl-where { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px 10px; margin: 0; }
.tl-where legend { font-size: 13px; font-weight: 700; padding: 0 4px; }
.tl-hubnote { margin-top: 16px; display: flex; gap: 6px; align-items: center; }
.tl-hubnote svg.ic { width: 16px; height: 16px; flex: none; }
.tl-table td.actions .btn + .btn { margin-left: 4px; }
.tl-where .radio-row + .radio-row { margin-top: 6px; }
.tl-hdel .linkish { color: #b91c1c; }
.tl-copy { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl-copy svg.ic { width: 14px; height: 14px; }
.tl-copyerr { color: #b45309; }
/* swap winner confirmation */
.sw-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin: 6px 0 12px; }
.sw-col { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.sw-after { border-color: #86efac; background: #f0fdf4; }
.sw-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sw-arrow { align-self: center; font-size: 22px; color: var(--muted); }
.sw-who { display: inline-flex; align-items: center; gap: 6px; }
.sw-dot { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; flex: none; }
.sw-red { background: #dc2626; } .sw-green { background: #16a34a; } .sw-blue { background: #2563eb; }
.sw-list { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14px; }
.sw-warn { color: #b91c1c; }
@media (max-width: 560px) { .sw-grid { grid-template-columns: 1fr; } .sw-arrow { transform: rotate(90deg); justify-self: center; } }
.sw-col > .pill { align-self: flex-start; }
/* vendors: the whole name opens the stand */
.vd-title[data-act=toggle] { cursor: pointer; border-radius: 8px; }
.vd-title[data-act=toggle]:hover b { color: var(--brand); }
.vd-chev { color: var(--muted); font-size: 12px; }
.vd-details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; background: #fbfcfe; }
.vd-details-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.vd-details dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.vd-details dt { color: var(--muted); }
.vd-details dd { margin: 0; }
.tab-n { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--line2); color: var(--muted); font-size: 11px; margin-left: 4px; }

/* sidebar: the tournament box sits next to the logo on a computer; "Open a screen" folds away */
@media (min-width: 901px) {
  .side-brand { padding: 10px 10px 8px 12px; gap: 8px; }
  .side-brand .side-title { display: none; }
  .side-brand .side-tourn.st-desk { flex: 1; min-width: 0; margin: 0; }
  .side-tourn.st-phone { display: none; }
  .side-tools { margin-top: 6px; }
}
@media (max-width: 900px) { .side-brand .side-tourn.st-desk { display: none; } .side.open { overflow-y: auto; } .side.open nav { overflow: visible; } }
.side-screens summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8ea0b8; padding: 2px 2px; border-radius: 6px; }
.side-screens summary::-webkit-details-marker { display: none; }
.side-screens summary::after { content: '▸'; margin-left: auto; font-size: 11px; }
.side-screens[open] summary::after { content: '▾'; }
.side-screens summary:hover { color: #dbe6f5; }
.side-screens summary svg.ic { width: 13px; height: 13px; }
.side-screens-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 6px; }
.side-links a.side-home { order: 0; }
.side-foot .side-ver { padding: 0; font-size: 10px; color: #8193ad; }
.side-foot { flex: none; padding: 8px 14px 10px; }
/* rehearsal bar across the head table */
.rh-bar { position: fixed; bottom: 0; left: 232px; right: 0; z-index: 55; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: repeating-linear-gradient(-45deg, #7f1d1d, #7f1d1d 14px, #991b1b 14px, #991b1b 28px); color: #fff; padding: 8px 16px; font-size: 14px; box-shadow: 0 -4px 14px rgba(0,0,0,.18); }
body.rehearsing .main { padding-bottom: 56px; }
@media (max-width: 900px) { .rh-bar { left: 0; font-size: 13px; gap: 8px; padding: 8px 10px; } }
.rh-bar b svg.ic { width: 15px; height: 15px; vertical-align: -2px; }
.rh-bar .rh-n { background: rgba(0,0,0,.25); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 13px; }
.rh-bar select { font: inherit; font-size: 13px; padding: 3px 6px; border-radius: 6px; border: 0; }
.rh-btn { font: inherit; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 7px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.rh-btn:hover { background: rgba(255,255,255,.22); }
.rh-btn.end { background: #fff; color: #991b1b; border-color: #fff; margin-left: auto; }
.rh-copy { margin: 8px 0 12px; }
.rh-form { display: grid; gap: 12px; margin-top: 8px; }
.rh-form .stack { display: grid; gap: 6px; }
.pill.tl-rh { background: #fee2e2; color: #991b1b; }

/* livestream overlay dialog */
.ov-form .radio-row.sm { padding: 6px 9px; flex: 1; min-width: 150px; }
.ov-form .radio-row.is-off { opacity: .55; cursor: not-allowed; }
.ov-url input { font-size: 13px; padding: 8px 10px; }
.ov-how ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.qr-tv + .qr-tv { margin-top: 4px; }

/* Director's recap (Results & Awards → Director's recap) */
.rc-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rc-bar > div:first-child { flex: 1; }
.rc-bar .field.inline { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; }
.rc-bar .field.inline > span { white-space: nowrap; margin: 0; }
.rc-bar .field.inline select { flex: 0 0 auto; width: 300px; max-width: 40vw; }
.rc-bar .field.inline { flex: 0 0 auto; width: auto; }
.rc-bar > .btn { flex: none; }
.rc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rc-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: #fbfcfe; }
.rc-tile > span:first-child { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.rc-tile b { font-size: 28px; line-height: 1.1; }
.rc-tile small { color: var(--muted); }
.rc-d { font-size: 12px; font-weight: 700; white-space: nowrap; }
.rc-d.up { color: var(--ok); } .rc-d.down { color: var(--warn); } .rc-d.same { color: var(--muted); font-weight: 600; }
.rc-kv td:first-child { color: var(--muted); }
.rc-kv td:last-child { text-align: right; }
.rc-kv small { font-weight: 400; }
.rc-mats { margin-top: 10px; }
.rc-slow td { background: #fff7e6; }
.rc-late { color: var(--warn); } .rc-ok { color: var(--ok); }
.rc-types { display: grid; gap: 6px; margin-bottom: 10px; }
.rc-type { display: grid; grid-template-columns: 130px 1fr 40px auto; align-items: center; gap: 8px; }
.rc-type i { display: block; height: 10px; border-radius: 5px; background: var(--brand); min-width: 2px; }
.rc-type b { text-align: right; }
.rc-type small { white-space: nowrap; }
.rc-h3 { font-size: 14px; margin: 12px 0 4px; }
.rc-top { margin: 0; padding-left: 20px; }
.rc-total { font-size: 16px; margin: 10px 0 0; }
.rc-money .field.sm { flex: 1; min-width: 140px; }
@media (max-width: 700px) { .rc-type { grid-template-columns: 100px 1fr 32px; } .rc-type small { display: none; } }
.tl-bring { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px 10px; margin: 0; display: grid; gap: 6px; }
.tl-bring legend { font-size: 13px; font-weight: 700; padding: 0 4px; }
/* overlay link: preview + QR (dialog and the #/overlay picker) */
.ov-get { display: grid; grid-template-columns: 1fr 170px; gap: 14px; align-items: start; }
.ov-left { display: grid; gap: 8px; min-width: 0; }
.ov-prev { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #3b4250; border: 1px solid var(--line); }
.ov-prev iframe { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.ov-qr { display: grid; gap: 6px; justify-items: center; text-align: center; }
.ov-qr svg { width: 150px; height: 150px; background: #fff; }
@media (max-width: 700px) { .ov-get { grid-template-columns: 1fr; } }

/* Setup → Sessions */
.sess-card .card-head .switch-row { align-items: center; gap: 8px; }
.sess-table { min-width: 860px; }
.sess-table input, .sess-table select { width: 100%; min-width: 0; }
.sess-table td { vertical-align: middle; }
.sess-table-wrap, .sess-card .table-scroll { overflow-x: auto; }
.sess-presets { align-items: center; gap: 6px; }
.sess-sum { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; }
/* the dashboard's session strip */
.sess-strip { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; margin-bottom: 14px; }
.sess-chip { flex: 1; min-width: 180px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 9px 12px; display: grid; gap: 2px; }
.sess-chip b { font-size: 14px; }
.sess-chip span { color: var(--muted); font-size: 12.5px; }
.sess-chip.now { border-color: var(--ok); box-shadow: inset 4px 0 0 var(--ok); }
.sess-chip.next { border-color: var(--warn); box-shadow: inset 4px 0 0 var(--warn); }
.sess-chip.done { opacity: .6; }
.sess-chip .btn { justify-self: start; margin-top: 4px; }
.tl-bring-row { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.tl-what summary { cursor: pointer; color: var(--brand); }
.tl-what { margin-top: 2px; }
.tl-where-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tl-where-row .radio-row + .radio-row { margin-top: 0; }
@media (max-width: 600px) { .tl-where-row { grid-template-columns: 1fr; } }

/* Weights & Seeding: matches per wrestler */
.fs-cell { font-size: 12.5px; white-space: nowrap; }
.fs-cell b { font-size: 13.5px; }
.fs-cell.over { color: var(--warn); font-weight: 600; }
.fs-table td, .fs-table th { vertical-align: middle; }
.fs-td { padding: 3px 4px !important; }
.fs-pick { width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 7px; padding: 5px 7px; cursor: pointer; font: inherit; display: grid; gap: 1px; }
.fs-pick:hover { border-color: var(--brand); background: #f3f7ff; }
.fs-td.cur .fs-pick { border-color: var(--line); background: #f8fafc; }
.fs-pick i { font-style: normal; font-size: 11px; color: var(--muted); }
.fs-pick .fs-star { color: var(--ok); font-weight: 700; }
.fs-td.best .fs-pick { box-shadow: inset 3px 0 0 var(--ok); }
.fs-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
/* medical timeout */
.mc-brk.mc-med { background: #fde8e8; color: #9b1c1c; }
.btn.btn-danger-ghost { color: var(--danger); border-color: #f3c3c5; background: #fff; }
.btn.btn-danger-ghost:hover { background: #fdecec; }
.mc-mat.medical { box-shadow: inset 0 0 0 2px var(--danger); }
/* pool order: the ones who advance to the crossover */
.sortable[data-adv="1"] li:nth-child(-n+1), .sortable[data-adv="2"] li:nth-child(-n+2), .sortable[data-adv="3"] li:nth-child(-n+3), .sortable[data-adv="4"] li:nth-child(-n+4) { background: #e8f5ec; border-radius: 6px; font-weight: 600; }
.vd-card .vd-head { cursor: pointer; border-radius: 8px; }
.vd-card .vd-head:hover { background: #f8fafc; }
.ov-form .ov-logos { margin-top: 6px; }
/* Data & Backups → Off-laptop backup */
.off-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0; }
.off-dest { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 6px; align-content: start; }
.off-dest form select { max-width: 180px; }
@media (max-width: 820px) { .off-grid { grid-template-columns: 1fr; } }

/* ---- head table on a tablet: Needs attention first when the dashboard is one column, bigger touch targets */
@media (max-width: 1320px) {
  .dash-layout { display: flex; flex-direction: column; align-items: stretch; }
  .dash-col-main, .dash-col-side { display: contents; }
  .dash-inbox { order: -1; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
@media (pointer: coarse) {
  .admin-body .btn-xs { min-height: 36px; padding: 6px 11px; font-size: 13.5px; }
  .admin-body .btn-sm { min-height: 40px; padding: 8px 13px; }
  .admin-body .btn { min-height: 42px; }
  .admin-body .icon-btn { min-width: 40px; min-height: 40px; }
  .admin-body input:not([type=checkbox]):not([type=radio]), .admin-body select, .admin-body textarea { font-size: 16px; min-height: 40px; }
  .admin-body input[type=checkbox], .admin-body input[type=radio] { width: 20px; height: 20px; }
  .admin-body .check, .admin-body .radio-row { min-height: 40px; align-items: center; }
  .admin-body .inbox-act { gap: 8px; flex-wrap: wrap; }
  .admin-body .inbox-item { padding-top: 10px; padding-bottom: 10px; }
  .admin-body .tab { min-height: 44px; padding-left: 14px; padding-right: 14px; }
  .admin-body .side nav a { min-height: 40px; }
  .admin-body .mc-ctl { display: none; } /* a tap on the bout does it (Move up one, Take off mat) */
  .admin-body .mc-card { padding: 9px 10px; }
  .admin-body .table td, .admin-body .table th { padding-top: 10px; padding-bottom: 10px; }
  .admin-body .lm-up, .admin-body .lm-meta { padding-top: 5px; padding-bottom: 5px; }
  .admin-body .modal-foot .btn { min-height: 44px; }
  .admin-body .chat-quick button, .admin-body .chat-quick .btn { min-height: 40px; padding: 8px 12px; }
}
/* the Mat Control tap sheet (tablets) */
.move-sheet .ms-who { margin: 0 0 12px; font-size: 16px; }
.move-sheet .ms-pos { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.move-sheet .ms-pos label { flex: 1; min-width: 110px; }
.move-sheet .ms-pos input { position: absolute; opacity: 0; }
.move-sheet .ms-pos span { display: block; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer; }
.move-sheet .ms-pos input:checked + span { border-color: var(--brand); background: #eef4ff; color: var(--brand); }
.move-sheet .ms-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.move-sheet .ms-mat { display: grid; gap: 2px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font: inherit; cursor: pointer; min-height: 64px; }
.move-sheet .ms-mat b { font-size: 17px; }
.move-sheet .ms-mat span { color: var(--muted); font-size: 13px; }
.move-sheet .ms-mat.cur { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.move-sheet .ms-mat:disabled { opacity: .5; cursor: not-allowed; }
.move-sheet .ms-mat:not(:disabled):active { background: #eef4ff; }

/* words for a mouse or for touch */
.only-touch { display: none; }
@media (pointer: coarse) { .only-touch { display: inline; } .only-mouse { display: none; } }

.sess-weigh { display: flex; gap: 4px; align-items: center; }
.sess-weigh input { width: 7.2em; }
.out-row { margin: 6px 0; }
.out-hint { color: #93370d; }
.ns-list { display: grid; gap: 4px; margin-bottom: 12px; max-height: 40vh; overflow: auto; }
.ns-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.skin-input.over { border-color: #d92d20; color: #b42318; }

/* ---- 0.32 design pass: shared bits for every head-table page */
/* sidebar footer: connection on one line; the stop button is just its icon (its name is in the tooltip) */
#conn-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; font-size: 11px; }
.side-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.side-foot .side-ver { flex-basis: 100%; }
/* the menu scrolls on short screens: a fade at the bottom says there's more */
.side nav { mask-image: linear-gradient(#000 calc(100% - 18px), transparent); }
/* setup forms: a comfortable reading width, and Save always in reach at the bottom of long forms */
.page .form-grid { max-width: 980px; }
.save-bar { position: sticky; bottom: 0; z-index: 5; padding: 12px 0 6px; margin-top: 4px; background: linear-gradient(rgba(255,255,255,0), #fff 35%); }
/* status next to a page title: one look (ok / warn / neutral) */
.page-status { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #eef1f5; color: #344054; vertical-align: middle; }
.page-status.ok { background: #dcf5e6; color: #14532d; } .page-status.warn { background: #fff1d6; color: #a14a08; }
/* the dashboard's live mats: team names readable */
.lm-meta small, .lm-w small { font-size: 11px; }
.lm-empty { color: var(--muted); }
/* the bout window: the winner cards are the control (no square focus box inside them) */
.rf-w input[type=radio] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 1; cursor: pointer; }
.rf-w:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.rf-w { position: relative; }
/* weights table: "Any mat" on one line */
.wt-mats, td.nowrap-cell { white-space: nowrap; }
/* Mat Control: mats in an even grid (4 mats → 2 × 2) */
.mc-mats.n4, .mc-mats.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mc-mats.n3, .mc-mats.n6, .mc-mats.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .mc-mats.n3, .mc-mats.n5, .mc-mats.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mc-mats[class*=' n'] { grid-template-columns: 1fr; } }
/* toolbars that wrap on tablets: the search box gets its own full row */
@media (max-width: 1000px) { .filters input[type=search] { flex: 1 1 100%; } }
.audit-log { table-layout: fixed; } .audit-log td { overflow-wrap: anywhere; }
.h-crumb { color: var(--muted); font-weight: 600; }
/* mat control: the ▲ / ✕ buttons get their own column, so they never sit on the bout's score or names */
.mc-card:has(> .mc-ctl) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
.mc-card:has(> .mc-ctl) > * { grid-column: 1; }
.mc-card:has(> .mc-ctl) > .mc-top { padding-right: 0; }
.mc-card > .mc-ctl { position: static; grid-column: 2; grid-row: 1 / span 4; align-self: start; }
.mc-mat-head b { white-space: nowrap; }
.qr-tv-btns { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.qr-tv > span:first-child { white-space: nowrap; }
/* Results → Team standings: a team opens to show how its points were scored (the public page's breakdown, light) */
.st-chev { color: var(--muted); font-size: 11px; width: 10px; display: inline-block; }
tr.st-team.open td { background: #f5f8ff; }
tr.st-break > td { background: #f8fafc; padding: 10px 18px 14px 46px !important; }
.adm-tbreak { max-width: 720px; }
.adm-tbreak .tb-kinds span { background: #fff; border-color: var(--line); }
.adm-tbreak .tb-kinds small { color: var(--muted); } .adm-tbreak .tb-kinds b { color: var(--ink); }
.adm-tbreak .tb-kinds .neg b { color: #b42318; }
.adm-tbreak .tb-head { color: var(--muted); }
.adm-tbreak .tb-row { border-top-color: var(--line); cursor: default; }
.adm-tbreak .tb-wt { color: #a15c00; }
.adm-tbreak .tb-nm b { color: var(--ink); } .adm-tbreak .tb-nm small { color: var(--muted); }
.adm-tbreak .tb-p { color: #344054; } .adm-tbreak .tb-tot { color: var(--ink); }
.adm-tbreak .tb-ded { color: #b42318; font-size: 13px; margin-top: 6px; }
.adm-tbreak .pv-muted { color: var(--muted); }
.adm-tbreak .tb-head, .adm-tbreak .tb-row { grid-template-columns: 52px minmax(0, 1fr) repeat(4, 58px); }
.dv-pub { justify-items: end; } @media (max-width: 700px) { .dv-pub { justify-items: start; } }
/* Results → Leaders */
.ld-where { margin-bottom: 14px; }
.ld-where-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ld-where-h h2 { margin: 0; }
.ld-switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 12px 0 6px; }
.ld-switches small { display: block; color: var(--muted); font-size: 12.5px; }
.ld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.ld-card { padding: 14px 16px; margin: 0; }
.ld-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ld-head h3 { margin: 0; font-size: 15px; }
.ld-note { margin: 4px 0 0; }
.ld-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ld-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.ld-list li:first-child { border-top: 0; }
.ld-list li.clickable { cursor: pointer; border-radius: 6px; }
.ld-list li.clickable:hover { background: #f5f8ff; }
.ld-pl { font-weight: 800; color: var(--muted); text-align: right; }
.ld-list li:first-child .ld-pl { color: #a15c00; }
.ld-who { min-width: 0; overflow-wrap: anywhere; }
.ld-who small { display: block; color: var(--muted); font-size: 12px; }
.ld-v { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ld-list li.ld-more { display: block; }
/* Leaders: a list kept to the head table (its "Show outside the head table" box unticked) */
.ld-show { margin: 6px 0 2px; font-size: 13px; color: var(--muted); }
.ld-show input { width: 15px; height: 15px; }
.ld-card.ld-off { background: #f8f9fb; border-style: dashed; }
.ld-card.ld-off .ld-list { opacity: .6; }
.ld-only { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fff4e0; color: #8a4b00; font-size: 11px; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
.ld-aw-off { display: inline-flex; cursor: help; }
.ld-aw-off .btn[disabled] { pointer-events: none; }
/* Setup → Event: the tournament's logo and the event info flyer */
.ev-prev { min-width: 88px; min-height: 64px; max-width: 220px; padding: 4px; }
.ev-prev img { display: block; max-height: 64px; max-width: 200px; width: auto; height: auto; object-fit: contain; }
.ev-file { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font-weight: 600; color: var(--ink, #111); text-decoration: none; }
.ev-file .ic { width: 20px; height: 20px; color: #b42318; }
/* Stop the server: a full-width red button at the foot of the sidebar, easy to find at the end of the day */
.side-foot .stop-srv { order: 10; flex: 1 0 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 9px 12px; border-radius: 8px; border: 1px solid #b42318; background: #b42318; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.side-foot .stop-srv:hover { background: #912018; border-color: #912018; }
.side-foot .stop-srv:focus-visible { outline: 3px solid #fda29b; outline-offset: 2px; }
.side-foot .stop-srv svg.ic { width: 17px; height: 17px; }
.side-foot .side-ver { order: 9; }
/* weight settings: the drawn note with its Reset bracket button beside it */
.wt-drawn { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: #fffaf0; border: 1px solid #f5d9a8; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.wt-drawn > div { flex: 1; }
.wt-drawn .btn { flex: none; }
/* seeding criteria and tiebreakers: drag a row (or its grip) to reorder */
.crit-list[data-sort] li { cursor: grab; user-select: none; -webkit-user-select: none; }
.crit-list[data-sort] li label, .crit-list[data-sort] li button { cursor: pointer; }
.crit-grip { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 4px; color: #98a2b3; border-radius: 6px; touch-action: none; cursor: grab; vertical-align: middle; }
.crit-grip:hover { color: var(--ink); background: #f2f4f7; }
.crit-list.sorting li { transition: none; }
.crit-list li.dragging { cursor: grabbing; box-shadow: 0 8px 22px rgba(16,24,40,.18); border-color: var(--brand); z-index: 2; opacity: .95; }
.crit-list.sorting, .crit-list.sorting * { cursor: grabbing !important; }

/* ---- 0.36 sidebar: the tournament box without its label (highlighted on All tournaments), and one slim bottom row —
   connection, "Open a screen" and ⋯ (Main menu, alert sound, version, Stop server…) — so every page fits on a laptop */
.side-tourn { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'n' 'sw'; gap: 4px; }
.side-tourn .st-sw { justify-self: start; }
.side-tourn.active { background: rgba(37, 99, 235, .35); border-color: #3b82f6; }
.side-foot { position: relative; flex: none; flex-wrap: nowrap; gap: 6px; margin-top: auto; padding: 7px 10px 7px 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }
.side-foot .sf-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b7c3d4; }
.side-foot .sf-more { position: static; }
.side-foot .sf-btn { width: 34px; height: 30px; display: inline-grid; place-items: center; padding: 0; border: 1px solid #2c3f5c; border-radius: 8px; background: #15243a; color: #dbe6f5; font: 700 17px/1 system-ui, sans-serif; cursor: pointer; }
.side-foot .sf-btn:hover, .side-foot .sf-btn[aria-expanded="true"] { background: #1f3354; border-color: #3d5a86; color: #fff; }
.side-foot .sf-btn:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.side-foot .sf-btn svg.ic { width: 16px; height: 16px; }
.side-foot .sf-pop { left: 8px; right: 8px; min-width: 0; bottom: calc(100% + 6px); }
.side-foot .sf-pop .more-item { color: var(--ink); }
.side-foot .sf-pop .more-item.danger { color: #b42318; }
.side-foot .sf-pop .more-item > svg.ic:last-child:not(:first-child) { margin-left: auto; width: 12px; height: 12px; opacity: .5; }
.side-foot .sf-pop .sf-h { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink, #101828); margin: 0 -6px 4px; padding: 6px 10px 8px 18px; border-bottom: 1px solid #e4e7ec; }
.sf-h .sf-x { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #667085; cursor: pointer; font-size: 18px; line-height: 1; }
.sf-h .sf-x:hover { background: #f2f4f7; color: #101828; }
.side-foot .sf-pop .side-ver { flex-basis: auto; order: 0; padding: 6px 12px; font-size: 12px; color: var(--muted); }
.side-foot .sf-sw { margin-left: auto; transform: scale(.8); pointer-events: none; }
.side nav { padding: 6px 8px; }
.side nav a { padding: 4px 10px; }
.side nav .nav-group { padding-top: 7px; }
@media (max-width: 900px) {
  /* the phone menu scrolls as a whole, so every page and the bottom row can be reached */
  .side.open > nav { flex: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .side.open > .side-foot { margin: 10px 12px 0; padding: 6px 8px 6px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.04); }
  .side.open nav a { padding: 11px 10px; }
}
@media (max-width: 900px) {
  /* on a phone the page itself scrolls: the main area isn't a scroll box (so Setup's Save bar can stick to the
     bottom of the screen); anything too wide is clipped rather than scrolling the page sideways */
  .admin-body .main { overflow: visible; overflow-x: clip; }
}

/* ---- 0.39 app shell (S2, S6, H2, H7): main menu groups, the one screens list, Needs attention, Live Results */
/* main menu: the head table's screens grouped by who uses them */
.landing.grouped { max-width: 1240px; }
.landing .land-group + .land-group { margin-top: 4px; }
.landing .land-gh { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #a9b8cc; margin: 18px 0 8px; }
.landing.grouped .landing-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 8px; }
.landing .land-card b { overflow-wrap: anywhere; }
/* "Open a screen" and the dashboard's "Screens ▾": group headings over the same list */
.more-pop .sc-h { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6f7a8d; padding: 12px 12px 2px; }
.more-pop .sc-h:first-child { padding-top: 6px; }
.side-foot .sc-pop .sf-h + .sc-h { padding-top: 6px; }
.more-pop .sc-item > svg.ic:last-child:not(:first-child) { margin-left: auto; width: 12px; height: 12px; opacity: .5; }
.dash-quick .sc-pop { min-width: 248px; max-height: min(70vh, 560px); overflow-y: auto; }
.side-foot .sc-pop { max-height: calc(100vh - 80px); overflow-y: auto; }
/* Needs attention: To do · Log */
.na-tabs .na-n { background: var(--danger, #b42318); color: #fff; font-weight: 700; }
.na-list { max-width: 980px; }
.na-page .na-h { margin-top: 20px; }
.na-page .head-actions .more-pop { min-width: 220px; }
.na-page .head-actions .more-item .sf-sw { margin-left: auto; transform: scale(.8); pointer-events: none; }
/* Live Results (the settings page): the card has no title of its own */
.lr-page .wps .ol-rows { margin-top: -4px; }
.lr-foot { margin-top: 10px; }
@media (max-width: 760px) {
  .landing .land-gh { margin-top: 14px; }
  .lr-page .page-head .head-actions { width: 100%; }
}
@media (max-width: 900px) {
  /* 0.39: the phone menu has five groups now and runs past the screen — its bottom row (Open a screen, ⋯) stays in
     view at the bottom, so its menus open without the list scrolling under them */
  .side.open > .side-foot { position: sticky; bottom: 0; z-index: 5; background: #17243a; box-shadow: 0 16px 0 14px var(--side); }
}
.reg-pay { align-items: center; gap: 4px 10px; margin-top: 8px; }
.reg-pay .pv-btn { text-decoration: none; }

/* 0.44 — where a weight / pool / division wrestles: gyms and mats (views/matplanui.js) */
.wp .wp-help { margin: 0 0 6px; }
.wp-gyms { display: grid; gap: 8px; }
.wp-gym { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.wp-gym:has(> .wp-gym-pick input:checked) { border-color: var(--brand); background: #f5f8ff; }
.wp-gym-pick { font-size: 14px; }
.wp-gym-mats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; padding-left: 24px; }
.wp-mat:has(input:disabled) { opacity: .65; cursor: default; }
.wp-mode { margin-top: 8px; }
.wp-mode[hidden] { display: none; }
[data-wp-sum] { margin-top: 6px; display: block; }
/* 0.44 — "Main gym only" under the Bout Board in Open a screen */
.more-pop .sc-sub { padding-left: 40px; font-size: 13px; }
.more-pop .sc-sub > svg.ic:last-child { margin-left: auto; width: 12px; height: 12px; opacity: .5; }
/* 0.45 — linked teams */
.tm-link { font-weight: 600; }
.tm-link svg.ic { width: 12px; height: 12px; vertical-align: -1px; }
.tm-links { display: flex; flex-wrap: wrap; gap: 6px 16px; max-height: 180px; overflow: auto; }
/* 0.45 — experience levels on the Madison page */
.mg-lv { display: inline-block; min-width: 1.5em; margin-left: 6px; padding: 0 4px; border-radius: 4px; font-size: 11px; font-weight: 800; text-align: center; line-height: 1.5; vertical-align: 1px; }
.mg-lv.lv-beg { background: #dcfce7; color: #166534; }
.mg-lv.lv-int { background: #fef3c7; color: #92400e; }
.mg-lv.lv-adv { background: #fee2e2; color: #991b1b; }

/* 0.49 — Youth Madison: one page for a Madison event (views/youth.js) */
.ym .ym-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ym-step { width: 100%; min-height: 52px; text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.ym-step small { font-size: 12px; font-weight: 700; color: var(--muted); }
.ym-step.done small { color: var(--ok); }
.ym-step.on { border: 2px solid var(--brand); padding: 7px 11px; background: #f5f8ff; }
.ym-step.on small { color: var(--brand); }
.ym-sec { margin-bottom: 12px; }
.ym-sec.on { border: 2px solid var(--brand); }
.ym-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ym-sec-head h2 { margin: 0; font-size: 17px; }
.ym-sec-head p { margin: 2px 0 0; }
.ym-sec.on .ym-sec-head { margin-bottom: 12px; }
.ym-tpl { display: flex; flex-wrap: wrap; gap: 18px; }
.ym-tpl-form { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ym-tpl-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ym-tpl-form legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.ym-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.ym-choice { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; }
.ym-choice.on { border: 2px solid var(--brand); padding: 9px 11px; background: #f5f8ff; }
.ym-choice span { display: flex; flex-direction: column; gap: 2px; }
.ym-choice small { color: var(--muted); }
.ym-choice small input { width: 52px; padding: 2px 4px; }
.ym-ages { gap: 14px; }
.ym-preview { flex: 1 1 280px; min-width: 0; background: #f7f9fb; border: 1px solid var(--line2); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ym-preview h3 { margin: 0; font-size: 15px; }
.ym-preview > ul:first-of-type { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ym-preview > ul:first-of-type li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; justify-content: space-between; gap: 10px; }
.ym-preview > ul:first-of-type li span { color: var(--muted); text-align: right; }
.ym-also { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.ym-preview .row { justify-content: flex-end; margin-top: auto; }
.ym-table td { vertical-align: middle; }
.ym-table select, .ym-table input { font: inherit; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.ym-table .ym-name { width: 120px; font-weight: 600; }
.ym-num { width: 56px; }
.ym-rules { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.ym-who { display: flex; flex-direction: column; gap: 12px; }
.ym-inline { align-items: center; gap: 12px; }
.ym-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.ym-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ym-card .sw-row { padding: 0; }
.ym-tally { background: #f7f9fb; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.ym-place { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.ym-place li { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 8px; padding: 8px 10px; }
.ym-weigh { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 12px; }
.ym-bar { flex: 1 1 200px; height: 8px; border-radius: 999px; background: var(--line2); overflow: hidden; }
.ym-bar span { display: block; height: 100%; background: var(--brand); }
.ym-pools { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 12px 0; }
.ym-pool { font: inherit; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.ym-pool small { color: var(--muted); }
.ym-pool span { font-size: 13px; font-weight: 600; }
.ym-pool.on { border: 2px solid var(--brand); padding: 9px 11px; background: #f5f8ff; }
.ym-arrange > .card { box-shadow: none; }
.ym-go { position: sticky; bottom: 10px; z-index: 2; margin-top: 14px; background: var(--side); color: #fff; border-radius: 12px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.ym-go > span:first-child { flex: 1 1 auto; }
.ym-go .warn-text { color: #fcd9a8; }
.ym-go .check { color: var(--side-ink); }
@media (max-width: 900px) { .ym .ym-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 0.50 — moving wrestlers between Madison groups: drag and drop, Move to…, hand moves */
.mg-card li[data-drag] { cursor: grab; }
.mg-grip { color: var(--muted); font-size: 15px; line-height: 1; padding: 6px 2px; touch-action: none; cursor: grab; user-select: none; }
.mg-moved { align-self: flex-start; margin: 2px 0 1px; padding: 0 5px; border-radius: 4px; font-size: 10.5px; font-weight: 700; background: #e0e7ff; color: #3730a3; }
.mg-card[data-drop] { transition: box-shadow 0.12s, border-color 0.12s; }
.mg-card.mg-drop-on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.25); background: #f5f8ff; }
.mg-new { display: none; align-items: center; justify-content: center; min-height: 90px; border: 2px dashed var(--line); color: var(--muted); font-weight: 600; }
.mg-dragging .mg-new { display: flex; }
.mg-dragging, .mg-dragging * { user-select: none; cursor: grabbing !important; }
.mg-ghost { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; display: flex; align-items: center; gap: 8px; list-style: none; background: #fff; border: 1px solid var(--brand); border-radius: 8px; padding: 6px 10px; box-shadow: 0 10px 30px rgba(15, 27, 45, 0.25); opacity: 0.95; }
.mg-ghost .mg-move { display: none; }
.mg-to { font-size: 15px; }
.mg-tip { margin: 0 0 8px; }

/* 0.51 — design pass: Report now in amber, calm live mats, blue progress, plain declared weights, levels in blue,
   number boxes that show their numbers, names on one line in Mat Control, the empty log reads normally */
.lm.live { border-color: var(--line); box-shadow: inset 4px 0 0 var(--live); background: #fff; }
.lm-state.up { background: var(--st-call-bg); color: var(--st-call); }
.st-progress { background: var(--st-queue-bg); color: var(--st-queue); border-color: #bcd0fb; }
.wbar { background: #e3e8ef; }
.wbar i { background: var(--st-queue); }
.mg-lbs.declared { color: var(--ink); }
.mg-lbs sup { color: var(--muted); }
.mg-lv.lv-beg { background: #eef3ff; color: #1e3a8a; }
.mg-lv.lv-int { background: #c7d7fe; color: #1e3a8a; }
.mg-lv.lv-adv { background: #1e3a8a; color: #fff; }
.ym-inline .field.inline.xs, .ym-inline .field.inline.sm, .reg-years .field.inline.xs, .reg-elig .field.inline.xs, .reg-elig .field.inline.sm { width: auto; }
.ym-inline .field.inline > span, .reg-years .field.inline > span, .reg-elig .field.inline > span { white-space: nowrap; }
.ym-inline input, .reg-years input, .reg-elig input { width: 64px; }
.ym-inline select, .reg-elig select { width: auto; min-width: 110px; }
.mc-w { min-width: 0; }
.mc-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ym-step.done small { color: var(--ok); }
.ym-sec.on:has(.ym-go) { padding-bottom: 76px; }

/* 0.51 — shared pieces: settings pages one width; every on/off switch on the right; one "picked" look; queue cards
   white with a blue edge (blue was for the whole card) */
.page:not(.wide):not(.dash) > .card:not(.flush):not(:has(table)), .page:not(.wide):not(.dash) > form.card { max-width: 1040px; }
label.check.switch-row { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 16px; }
label.check.switch-row > span { min-width: 0; flex: 1; }
label.check.switch-row > span b { display: block; }
label.check.switch-row > span small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.wchip.on { box-shadow: none; outline: 2px solid var(--brand); outline-offset: -2px; }
.mc-card.st-ready { background: #fff; color: var(--ink); border-left: 4px solid var(--st-queue); }
.placer-wait { border-style: dashed; background: transparent; box-shadow: none; }
.ld-list li { grid-template-columns: 30px minmax(0, 1fr) auto; }
.back-link { display: inline-block; font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
/* the one "picked" look (a choice, not an action): Awards Screen modes, chips */
.btn.seg-on { background: #eef3ff; border-color: var(--brand); color: var(--brand); font-weight: 700; }
/* Rules: one-digit match points in one row of small boxes */
.inline-fields:has(input[name^="move_"]) { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.inline-fields:has(input[name^="move_"]) .field.sm { width: auto; }
.inline-fields input[name^="move_"] { width: 72px; }
