/* ==========================================================================
   Vaultium — application stylesheet
   ========================================================================== */
:root{
  --bg:#0e1116; --panel:#171b23; --panel2:#1e2430; --panel3:#232a38;
  --border:#2a3242; --border2:#39445c;
  --text:#e7ecf3; --muted:#9aa7bd; --faint:#6b7890;
  --brand:#4f8cff; --brand2:#7aa5ff;
  --accent:#ffd166; --danger:#ff5d73; --ok:#4cd97b; --warn:#ffb454;
  --radius:12px; --radius-sm:8px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --sidebar-w:250px;
  font-size:15px;
}
*{box-sizing:border-box}
/* sports draw card tables: never clip the score/date columns off the card edge */
.draw-grid{grid-template-columns:repeat(auto-fill,minmax(520px,1fr))}
.draw-table{width:100%;max-width:100%}
.draw-table td.ta-left{max-width:none;white-space:nowrap;overflow:visible;text-overflow:clip}
.draw-table td.nowrap{max-width:none;white-space:nowrap;overflow:visible;text-overflow:clip}
.draw-table tr td:last-child{text-align:right;padding-right:.8rem}
@media (max-width:640px){ .draw-grid{grid-template-columns:1fr} }
html,body{margin:0;padding:0;height:100%}
body{background:var(--bg);color:var(--text);font-family:"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5}
a{color:var(--brand2);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{margin:0 0 .5em;font-weight:600;letter-spacing:-.01em}
h1{font-size:1.3rem}
h2{font-size:1.1rem}
h3{font-size:1rem}
code{background:#10141b;padding:.1em .35em;border-radius:4px;color:#9fd0ff;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.9em}
p{color:var(--muted)}
label{display:block;font-size:.85rem;color:var(--muted);margin:0 0 .3em}
input,select,textarea{width:100%;padding:.55rem .7rem;background:#0e1219;border:1px solid var(--border);
  border-radius:var(--radius-sm);color:var(--text);font:inherit}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(79,140,255,.15)}
input[type=checkbox]{width:auto}
textarea{resize:vertical;min-height:70px}
input[type=date],input[type=time],input[type=number]{font:inherit}

/* ---------- layout ---------- */
.layout{display:grid;grid-template-columns:var(--sidebar-w) 1fr;min-height:100vh}
.sidebar{background:var(--panel);border-right:1px solid var(--border);display:flex;flex-direction:column;
  position:sticky;top:0;height:100vh;overflow-y:auto}
.brand{display:flex;align-items:center;gap:.6rem;padding:1rem 1.1rem;border-bottom:1px solid var(--border)}
.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;
  background:linear-gradient(135deg,var(--brand),#6b5bff);color:#fff;font-weight:800;font-size:1.1rem;box-shadow:var(--shadow)}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-text strong{font-size:1.05rem}
.brand-text small{color:var(--faint)}
.menu{flex:1;padding:.6rem .5rem}
.menu-item{display:flex;align-items:center;gap:.7rem;padding:.55rem .7rem;border-radius:var(--radius-sm);
  color:var(--text);margin-bottom:.1rem;font-size:.92rem}
.menu-item .mi{width:20px;text-align:center;color:var(--faint)}
.menu-item:hover{background:var(--panel3);text-decoration:none}
.menu-item.active{background:linear-gradient(90deg,rgba(79,140,255,.18),transparent);color:#fff}
.menu-item.active .mi{color:var(--brand2)}
.sidebar-foot{padding:.6rem .5rem;border-top:1px solid var(--border)}
.main{display:flex;flex-direction:column;min-width:0}
.topbar{display:flex;align-items:center;gap:.8rem;padding:.8rem 1.2rem;background:var(--panel);
  border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20}
.page-title{font-size:1.1rem;margin:0}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:.8rem}
.app-clock,.user-chip{background:var(--panel3);border:1px solid var(--border);padding:.25rem .7rem;border-radius:20px;font-size:.8rem;color:var(--muted);white-space:nowrap}
.app-clock{color:var(--text)}
.icon-btn{background:none;border:none;color:var(--muted);font-size:1.2rem;cursor:pointer;padding:.2rem .5rem;border-radius:6px}
.icon-btn:hover{background:var(--panel3);color:#fff}
.content{padding:1.2rem 1.4rem;flex:1}
.footer{padding:.7rem 1.2rem;border-top:1px solid var(--border);color:var(--faint);font-size:.8rem;
  display:flex;justify-content:space-between}
.footer-link a{color:var(--faint)}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .9rem;border-radius:var(--radius-sm);
  border:1px solid var(--border2);background:var(--panel3);color:var(--text);cursor:pointer;font:inherit;font-size:.88rem;
  transition:.15s}
.btn:hover{background:#2a3345}
.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn-primary:hover{background:#3f7bef}
.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}
.btn-danger:hover{background:#e84e63}
.btn-ok{background:var(--ok);border-color:var(--ok);color:#06220e}
.btn-ghost{background:transparent}
.btn-block{width:100%;justify-content:center}
.icon-btn.small{font-size:1rem;padding:.15rem .4rem}
.caret{font-size:.7rem;opacity:.7}

/* ---------- cards & grid ---------- */
.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;margin-bottom:1rem;min-width:0;width:100%;max-width:100%;display:flex;flex-direction:column}
.card>*{min-width:0;max-width:100%}
.card h3{margin-top:0;border-bottom:1px solid var(--border);padding-bottom:.5rem;overflow:hidden;text-overflow:ellipsis}
.card table,.card .table-wrap{width:100%;max-width:100%}
.grid{display:grid;gap:1rem;width:100%}
.grid.cols-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.grid.cols-3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.grid.cols-4{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.grid>*{min-width:0}
.kpi{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;
  display:flex;flex-direction:column;gap:.2rem}
.kpi .kval{font-size:1.8rem;font-weight:700;letter-spacing:-.02em}
.kpi .klab{color:var(--muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.05em}
.stat-row{display:flex;gap:1rem;flex-wrap:wrap}

/* ---------- tables ---------- */
.table-wrap{width:100%;max-width:100%;overflow:auto;max-height:calc(100vh - 240px);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--panel)}
table{width:100%;border-collapse:separate;border-spacing:0;font-size:.86rem}
thead th{position:sticky;top:0;z-index:5;background:var(--panel3);color:var(--muted);text-align:left;
  padding:.6rem .7rem;border-bottom:1px solid var(--border2);font-weight:600;white-space:nowrap;
  user-select:none;cursor:default}
thead th:first-child,thead th.ta-left{text-align:left}
tbody td{padding:.5rem .7rem;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;max-width:280px;vertical-align:middle}
tbody td.ta-left,thead th.ta-left{text-align:left}
tbody td.wrap{white-space:normal;text-align:left}
tbody tr:hover{background:rgba(79,140,255,.06)}
tbody tr.selected{background:rgba(79,140,255,.12)}
.col-resizer{position:absolute;right:-3px;top:0;width:8px;height:100%;cursor:col-resize;z-index:6}
thead th{position:sticky;top:0}
.ta-right{text-align:right}
.ta-center{text-align:center}
.tbl{position:relative;overflow:auto;max-height:calc(100vh - 260px)}
th.sortable{cursor:pointer}
th.sortable:hover{color:#fff}
th.sortable .sort-ind{display:inline-block;margin-left:.3rem;font-size:.65rem;color:var(--accent)}
th.sorted-asc,th.sorted-desc{color:#fff}
th.sorted-asc .sort-ind,th.sorted-desc .sort-ind{color:var(--accent)}

/* ---------- toolbar ---------- */
.toolbar{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-bottom:1rem}
.toolbar .spacer{flex:1}
.toolbar .seg{display:inline-flex;border:1px solid var(--border2);border-radius:var(--radius-sm);overflow:hidden}
.toolbar .seg button{background:var(--panel2);border:none;color:var(--muted);padding:.45rem .8rem;cursor:pointer;font:inherit;font-size:.85rem}
.toolbar .seg button.active{background:var(--brand);color:#fff}
.search{margin-left:auto}

/* ---------- forms (grid) ---------- */
.fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}
.fgrid .full{grid-column:1/-1}
.fgroup{margin-bottom:.4rem}


/* expandable editor sections */
details{border:1px solid var(--border);border-radius:var(--radius-sm);background:rgba(255,255,255,.015);padding:.7rem;margin:.8rem 0}
details summary{cursor:pointer;color:var(--text);list-style:none}
details summary::-webkit-details-marker{display:none}
details summary:before{content:"▸";display:inline-block;margin-right:.45rem;color:var(--brand2);transition:.15s}
details[open] summary:before{transform:rotate(90deg)}

/* ---------- modal ---------- */
/* CRITICAL: the `hidden` attribute must always hide an element, even on class
   elements like .modal-overlay that set display:flex. Without this rule every
   modal (and the confirm dialog) renders visible on every page. */
[hidden]{display:none !important}
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.65);backdrop-filter:blur(2px);
  display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}
.modal{background:var(--panel);border:1px solid var(--border2);border-radius:var(--radius);box-shadow:var(--shadow);
  width:100%;max-width:560px;max-height:90vh;overflow:auto;padding:1.3rem;position:relative}
.modal.lg{max-width:1000px}
.modal.xl{max-width:1300px}
.modal .mhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.modal .mhead h3{margin:0}
.modal-close{background:none;border:none;color:var(--muted);font-size:1.3rem;cursor:pointer}
.modal-close:hover{color:#fff}
.modal-actions{display:flex;gap:.6rem;justify-content:flex-end;margin-top:1.2rem}
.modal-actions .left{margin-right:auto}

/* confirm dialog */
.modal.confirm{max-width:420px;text-align:center}
.modal.confirm .modal-actions{justify-content:center}

/* ---------- flash ---------- */
.flash{padding:.7rem 1rem;border-radius:var(--radius-sm);margin:0 0 1rem;font-size:.9rem}
.flash-ok{background:rgba(76,217,123,.12);border:1px solid rgba(76,217,123,.4);color:var(--ok)}
.flash-error{background:rgba(255,93,115,.12);border:1px solid rgba(255,93,115,.4);color:var(--danger)}

/* ---------- badges ---------- */
.badge{display:inline-block;padding:.15rem .5rem;border-radius:20px;font-size:.75rem;font-weight:600}
.badge.active{background:rgba(76,217,123,.15);color:var(--ok)}
.badge.live{background:rgba(255,93,115,.2);color:var(--danger);animation:pulse 1.2s infinite}
.badge.planned{background:rgba(255,180,84,.15);color:var(--warn)}
.badge.scheduled{background:rgba(255,180,84,.15);color:var(--warn)}
.badge.finished{background:rgba(154,167,189,.15);color:var(--muted)}
.badge.done{background:rgba(76,217,123,.15);color:var(--ok)}
.badge.draft{background:rgba(154,167,189,.2);color:var(--muted)}
.badge.sold{background:rgba(79,140,255,.2);color:var(--brand2)}
.badge.ended{background:rgba(255,93,115,.15);color:var(--danger)}
.badge.error{background:rgba(255,93,115,.2);color:var(--danger)}
.badge.inprogress{background:rgba(255,180,84,.15);color:var(--warn)}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}

/* ---------- login ---------- */
.login-body{display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 30%,#1c2333,var(--bg))}
.login-card{width:min(94vw,380px);background:var(--panel);border:1px solid var(--border2);border-radius:var(--radius);
  padding:2rem;box-shadow:var(--shadow)}
.login-card .brand{justify-content:center;border:none;padding:0 0 .5rem}
.login-sub{text-align:center;color:var(--faint);margin:.2rem 0 1.2rem}
.login-card form label{margin-bottom:1rem}
.login-foot{text-align:center;color:var(--faint);font-size:.78rem;margin-top:1rem}

/* collapsed sidebar */
@media (max-width:1000px){ .layout{grid-template-columns:64px 1fr} .menu-item .ml,.brand-text,.sidebar-foot .ml{display:none} .menu-item{justify-content:center} }

/* toast */
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(120%);z-index:999;
  background:var(--panel3);border:1px solid var(--border2);color:var(--text);padding:.7rem 1.1rem;
  border-radius:10px;box-shadow:var(--shadow);transition:.25s;max-width:90vw;text-align:center}
.toast.show{transform:translateX(-50%) translateY(0)}
.toast.error{border-color:var(--danger);color:var(--danger)}
.toast.ok{border-color:var(--ok);color:var(--ok)}

/* text selection highlighting (requested: highlighted text must be viewable) */
::selection{background:var(--brand);color:#fff;text-shadow:none}
::-moz-selection{background:var(--brand);color:#fff}

/* pagination */
.pagination{display:flex;align-items:center;gap:.6rem;justify-content:flex-end;margin-top:.8rem;flex-wrap:wrap}
.pagination .pg-info{color:var(--muted);font-size:.8rem}
.pagination .btn{padding:.35rem .75rem;font-size:.85rem}

/* drag handles for reorder */
.drag-handle{cursor:grab;color:var(--faint);display:inline-block;padding:0 .2rem}
.drag-handle:active{cursor:grabbing}
#colRows .col-up,#colRows .col-down{font-size:.75rem;line-height:1;padding:.05rem .4rem;margin-left:.15rem}
#colRows .col-up:hover,#colRows .col-down:hover{color:#fff}
#colRows tr.dragging{opacity:.6}

/* column resizer — make the grab handle clearly visible */
.col-resizer{background:transparent}
.col-resizer::after{content:'';display:block;width:3px;height:70%;margin:auto;background:var(--border2);border-radius:2px;transition:background .15s}
th:hover .col-resizer::after,.col-resizer:hover::after{background:var(--brand)}
.col-resizer:hover{background:rgba(79,140,255,.12)}

/* NRL live card */
.nrl-card{display:flex;flex-direction:column}
.card-live{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0}
.live-team{display:flex;flex-direction:column;align-items:center;gap:.3rem}
.live-team .score{font-size:2rem;font-weight:800;background:var(--panel3);padding:.2rem .7rem;border-radius:8px;min-width:70px;text-align:center}
.live-vs{display:flex;flex-direction:column;align-items:center;gap:.3rem;color:var(--muted)}

/* ---------- misc ---------- */
.muted{color:var(--muted)}
.faint{color:var(--faint)}
.right{text-align:right}
.mt{margin-top:1rem}
.mb{margin-bottom:1rem}
.small{font-size:.82rem}
.flex{display:flex;align-items:center;gap:.6rem}
.grow{flex:1}
.thumb{width:44px;height:44px;object-fit:cover;border-radius:6px;border:1px solid var(--border);display:inline-block}
/* collections image stack in the grid (Obverse / Reverse / other) */
.imgstack{display:flex;align-items:flex-start;gap:.4rem;flex-wrap:wrap;width:100%}
.imgstack .thumb{flex:0 0 auto;width:44px;height:44px;object-fit:cover}
.side-thumb{display:inline-flex;flex-direction:column;align-items:center;gap:.12rem;width:46px;flex:0 0 auto}
.side-thumb .thumb{width:44px;height:44px;object-fit:cover;object-position:center}
.side-lbl{font-size:.6rem;color:var(--faint);line-height:1;text-align:center;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.imgstack .faint.small{flex:0 0 auto;font-size:.68rem;color:var(--faint);align-self:center}
.thumb-lg{width:100%;max-height:220px;object-fit:contain;border-radius:8px;background:repeating-conic-gradient(#1a2030 0 25%,#12161f 0 50%) 0 0/20px 20px;border:1px solid var(--border)}
.divider{height:1px;background:var(--border);margin:1rem 0}
.tooltip{position:relative}
.tabs{display:flex;gap:.3rem;border-bottom:1px solid var(--border);margin-bottom:1rem;flex-wrap:wrap}
.tabs button{background:none;border:none;color:var(--muted);padding:.5rem .9rem;font:inherit;cursor:pointer;border-bottom:2px solid transparent}
.tabs button.active{color:#fff;border-bottom-color:var(--brand)}
.empty{text-align:center;color:var(--faint);padding:2rem;border:1px dashed var(--border2);border-radius:var(--radius-sm)}
.help{font-size:.78rem;color:var(--faint);margin-top:.3rem}
.loading{color:var(--muted);text-align:center;padding:1.5rem;font-size:.85rem}
canvas{max-width:100%}
.chart-box{position:relative;height:260px}
.badge-list{display:flex;flex-wrap:wrap;gap:.3rem}

/* Tipping Studio: show club images beside every match and pick button */
.tip-game{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;min-width:260px}
.tip-team-badge{display:inline-flex;align-items:center;gap:.25rem;white-space:nowrap;font-weight:600}
.tip-team-badge .team-logo{width:28px;height:28px;margin-right:.25rem}
.tip-v{color:var(--faint);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.tip-options{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin-bottom:.45rem}
.tip-choice{display:inline-flex;align-items:center;border:1px solid var(--border2);background:var(--panel2);color:var(--text);border-radius:999px;padding:.35rem .65rem;cursor:pointer;font:inherit;font-size:.82rem;transition:.15s}
.tip-choice:hover{background:var(--panel3);border-color:var(--brand2)}
.tip-choice.selected{background:rgba(79,140,255,.22);border-color:var(--brand);box-shadow:0 0 0 2px rgba(79,140,255,.16)}
.tip-pick-badge{display:inline-flex!important;align-items:center;vertical-align:middle;padding:.22rem .55rem!important}
.tip-pick-badge .tip-team-badge .team-logo{width:22px;height:22px}

/* sports studio logos & player avatars */
.seg{display:inline-flex;gap:.15rem}
.seg button{background:var(--panel);border:1px solid var(--border);color:var(--muted);padding:.35rem .7rem;font:inherit;cursor:pointer;border-radius:var(--radius-sm)}
.seg button.active{background:var(--brand);color:#fff;border-color:var(--brand)}
/* weather forecast cards: equal-width, side-by-side cards across the page */
.wx-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1rem;align-items:stretch;width:100%}
.wx-grid>.card,.wx-card{width:auto;max-width:none;min-width:0;margin:0;height:100%;display:flex;flex-direction:column;justify-content:space-between}
.wx-card .wx-meta{min-height:2.2em}
@media (max-width:900px){.wx-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:520px){.wx-grid{grid-template-columns:1fr!important}}
/* calendar studio: real month grid */
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;background:var(--border);border-radius:var(--radius-sm);overflow:hidden}
.cal-dow{background:var(--panel);color:var(--muted);text-align:center;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;padding:.4rem 0;font-weight:600}
.cal-day{background:var(--panel);min-height:78px;padding:.35rem .4rem;position:relative;display:flex;flex-direction:column;gap:.2rem;overflow:hidden}
.cal-day.cal-empty{background:transparent;border:none}
.cal-day.cal-today{box-shadow:inset 0 0 0 2px var(--brand)}
.cal-day.cal-weekend{background:#171c26}
.cal-num{font-size:.78rem;color:var(--muted);font-weight:600;align-self:flex-end}
.cal-day.cal-today .cal-num{color:#fff}
.cal-hol{font-size:.66rem;color:#f0a8b0;background:rgba(229,133,47,.12);border:1px solid rgba(229,133,47,.35);border-radius:4px;padding:.1rem .3rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-pill{font-size:.7rem;line-height:1.15;text-align:left;background:color-mix(in srgb,var(--pill,#4c6ef5) 22%,var(--panel));color:var(--pill,#4c6ef5);border:1px solid color-mix(in srgb,var(--pill,#4c6ef5) 40%,transparent);border-radius:4px;padding:.14rem .32rem;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-pill:hover{filter:brightness(1.15)}
.cal-more{font-size:.66rem;color:var(--faint)}

/* print */
@media print{
  .sidebar,.topbar,.footer,.toolbar,.no-print,.modal-actions{display:none!important}
  .layout{display:block}
  .content{padding:0}
  body{background:#fff;color:#000}
  table{font-size:10px}
  .card{border:none}
  *{box-shadow:none!important}
}

/* Diagnostics — error rows & expandable context */
.diag-row.is-error td { background: rgba(255,93,115,.12); }
.diag-row.is-warn  td { background: rgba(255,209,102,.10); }
.diag-detail .diag-ctx {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem; color: #cdd6e5; white-space: pre-wrap;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px; padding: .5rem; max-height: 220px; overflow: auto;
}
.chart-svg { width: 100%; height: auto; display: block; background: rgba(0,0,0,.12); border-radius: 6px; }
.kpiset .kval { font-size: 1.4rem; }

/* ---------------- VChart / rain dashboard ---------------- */
.chart-box{position:relative;min-height:220px;display:flex;flex-direction:column;justify-content:center}
.chart-box.donut-box{align-items:center;justify-content:flex-start;padding-top:.4rem}
.chart-box svg{max-width:100%}
.chart-box.donut-box svg{max-width:260px}
.chart-scroll{overflow-x:auto;padding:.3rem 0}
.chart-legend{display:flex;flex-wrap:wrap;gap:.6rem 1rem;margin-top:.55rem;font-size:.78rem;color:var(--muted,#9aa7bd)}
.chart-legend span{display:inline-flex;align-items:center;gap:.35rem}
.chart-legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
.round-sep td{background:var(--bg2,rgba(255,255,255,.04));border-top:2px solid var(--line,#25304a)!important}
.badge.bye{background:#3b3f8f;color:#cfd3ff}
.draw-table td{vertical-align:middle}
.badge.live{background:#c8102e;color:#fff}
.badge.scheduled{background:#2c3654;color:#aebbd8}
.badge.finished{background:#20523a;color:#9be0bd}
.badge.bye{background:#3b3f8f;color:#cfd3ff}
.player-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:.45rem;background:#222b41}
.team-logo{width:26px;height:26px;vertical-align:middle;margin-right:.35rem;object-fit:contain}
.draw-table .team-logo{width:22px;height:22px;margin-right:.3rem}
/* Tipping Studio: place the second team's icon after its name in matchups/pick row. */
.tip-team-badge-after{flex-direction:row-reverse}
.tip-team-badge-after .team-logo{margin-right:0;margin-left:.25rem}

/* Weather Studio: seven separate forecast cards, side-by-side and evenly spaced. */
.wx-grid.wx-grid-seven{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:1rem!important;align-items:stretch;width:100%;min-width:0!important}
.wx-grid.wx-grid-seven>.wx-day-card{margin:0!important;padding:0!important;overflow:hidden;border-radius:14px;min-width:0;min-height:265px;height:100%;display:flex;flex-direction:column;justify-content:flex-start}
.wx-day-head{min-height:76px;padding:.7rem .65rem;color:#fff;display:flex;align-items:flex-start;justify-content:space-between;gap:.35rem;background:linear-gradient(135deg,#3a5a86,#5b83b0)}
.wx-day-name{font-weight:800;font-size:.98rem;line-height:1.05;letter-spacing:.01em}.wx-date{font-size:.72rem;opacity:.88;margin-top:.18rem}.wx-icon{font-size:1.55rem;line-height:1;flex:0 0 auto}.wx-today{display:inline-block;background:rgba(255,255,255,.22);border-radius:99px;padding:.06rem .42rem;font-size:.58rem;vertical-align:middle;margin-left:.15rem}.wx-temp{display:flex;align-items:baseline;gap:.3rem;padding:.7rem .65rem .25rem}.wx-high{font-size:1.85rem;font-weight:900;line-height:1}.wx-low{font-size:.95rem;color:var(--muted)}.wx-meta{padding:.35rem .65rem .2rem;min-height:48px}.wx-rain-line{font-size:.68rem;color:var(--muted);display:flex;justify-content:space-between;gap:.35rem;white-space:nowrap}.wx-rain-bar{height:6px;border-radius:99px;background:#1d2740;margin-top:.28rem;overflow:hidden}.wx-rain-bar i{display:block;height:100%;border-radius:99px}.wx-facts{display:grid;grid-template-columns:1fr;gap:.28rem;padding:.55rem .65rem .75rem;margin-top:auto}.wx-facts span{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.68rem;background:#1d2740;border-radius:99px;padding:.16rem .46rem}.wx-empty-day{opacity:.8}.wx-empty-msg{color:var(--faint);font-size:.76rem;text-align:center;margin:auto;padding:1rem .5rem}
@media (max-width:900px){.wx-grid.wx-grid-seven{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:.55rem!important}.wx-grid.wx-grid-seven>.wx-day-card{min-height:240px}.wx-day-head{padding:.55rem .45rem}.wx-day-name{font-size:.78rem}.wx-date{font-size:.62rem}.wx-icon{font-size:1.15rem}.wx-high{font-size:1.35rem}.wx-low{font-size:.78rem}.wx-temp,.wx-meta,.wx-facts{padding-left:.45rem;padding-right:.45rem}.wx-facts span,.wx-rain-line{font-size:.58rem}.wx-today{font-size:.48rem;padding:.03rem .25rem}}

/* Fishing Studio: readable, evenly-spaced Best Spot Today top-12 columns. */
.fish-best-card{overflow:hidden}
.fish-best-grid{display:grid;grid-template-columns:repeat(var(--fish-count,12),minmax(0,1fr));gap:.75rem;align-items:end;width:100%;padding:.8rem .15rem .2rem}
.fish-best-col{height:330px;min-width:0;display:grid;grid-template-rows:auto auto 1fr auto auto;gap:.38rem;align-items:end;text-align:center}
.fish-best-rank{justify-self:center;background:rgba(255,255,255,.06);border:1px solid var(--border);border-radius:999px;padding:.12rem .45rem;color:var(--muted);font-size:.72rem;font-weight:700}
.fish-best-score{justify-self:center;white-space:nowrap}
.fish-best-bar-wrap{height:150px;width:100%;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--border2)}
.fish-best-bar{width:68%;min-width:18px;max-width:52px;min-height:10px;border-radius:10px 10px 3px 3px;background:linear-gradient(180deg,var(--brand2),var(--brand));box-shadow:0 8px 18px rgba(0,0,0,.25)}
.fish-best-bar.fish-best-ok{background:linear-gradient(180deg,#8ee06e,var(--ok))}
.fish-best-bar.fish-best-planned,.fish-best-bar.fish-best-scheduled{background:linear-gradient(180deg,#ffd166,var(--warn))}
.fish-best-bar.fish-best-error{background:linear-gradient(180deg,#ff8ba0,var(--danger))}
.fish-best-label{align-self:start;min-height:3.9rem;color:var(--text);font-size:.78rem;font-weight:650;line-height:1.15;overflow-wrap:anywhere;word-break:normal;hyphens:auto;text-wrap:balance;display:flex;align-items:flex-start;justify-content:center}
.fish-best-region{align-self:start;color:var(--faint);font-size:.68rem;line-height:1.1;min-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:1250px){.fish-best-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.fish-best-col{height:310px}.fish-best-label{min-height:3.2rem}}
@media (max-width:760px){.fish-best-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.fish-best-col{height:300px}}
@media (max-width:480px){.fish-best-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Fishing Studio: colourised forecast cards by score band. */
.card.fish-hero,.card.fish-today-card{position:relative;overflow:hidden;border-width:1px;box-shadow:0 14px 34px rgba(0,0,0,.22)}
.card.fish-hero::before,.card.fish-today-card::before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:var(--fish-accent,var(--brand));opacity:.95}
.card.fish-hero h3,.card.fish-today-card h3{position:relative;color:#fff}
.card.fish-hero .kpi{background:rgba(0,0,0,.16);border-color:rgba(255,255,255,.14)}
.card.fish-score-ok{--fish-accent:#4cd97b;background:linear-gradient(135deg,rgba(76,217,123,.22),rgba(23,27,35,.96) 42%,rgba(15,87,56,.34));border-color:rgba(76,217,123,.48)}
.card.fish-score-planned{--fish-accent:#ffd166;background:linear-gradient(135deg,rgba(255,209,102,.22),rgba(23,27,35,.96) 42%,rgba(118,82,17,.34));border-color:rgba(255,209,102,.48)}
.card.fish-score-error{--fish-accent:#ff8f6b;background:linear-gradient(135deg,rgba(255,143,107,.22),rgba(23,27,35,.96) 42%,rgba(120,54,30,.34));border-color:rgba(255,143,107,.48)}
.card.fish-score-scheduled{--fish-accent:#ff5d73;background:linear-gradient(135deg,rgba(255,93,115,.22),rgba(23,27,35,.96) 42%,rgba(104,28,43,.34));border-color:rgba(255,93,115,.48)}
.fish-best-col{border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:.45rem .25rem;background:rgba(255,255,255,.035)}
.fish-best-col.fish-score-ok{background:linear-gradient(180deg,rgba(76,217,123,.18),rgba(255,255,255,.035));border-color:rgba(76,217,123,.32)}
.fish-best-col.fish-score-planned{background:linear-gradient(180deg,rgba(255,209,102,.18),rgba(255,255,255,.035));border-color:rgba(255,209,102,.32)}
.fish-best-col.fish-score-error{background:linear-gradient(180deg,rgba(255,143,107,.18),rgba(255,255,255,.035));border-color:rgba(255,143,107,.32)}
.fish-best-col.fish-score-scheduled{background:linear-gradient(180deg,rgba(255,93,115,.18),rgba(255,255,255,.035));border-color:rgba(255,93,115,.32)}

/* Fishing Studio comprehensive model panels. */
.fish-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.65rem}
.fish-metric-grid>div{background:rgba(0,0,0,.16);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:.65rem .75rem;min-width:0}
.fish-metric-grid strong{display:block;color:#fff;font-size:.78rem;margin-bottom:.18rem;text-transform:uppercase;letter-spacing:.04em}
.fish-metric-grid span{display:block;color:var(--muted);font-size:.86rem;line-height:1.25}
.fish-factor-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.5rem}
.fish-factor-list span{display:flex;align-items:center;gap:.45rem;background:rgba(79,140,255,.09);border:1px solid rgba(79,140,255,.2);border-radius:999px;padding:.42rem .65rem;color:#cfe0ff;font-size:.82rem;line-height:1.2}
.fish-factor-list span::before{content:"✓";display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:rgba(76,217,123,.18);color:var(--ok);font-weight:800;flex:0 0 auto}
.fish-risk{display:inline-block;padding:.14rem .5rem;border-radius:999px;font-size:.72rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap;border:1px solid transparent}
.fish-risk-good{background:rgba(76,217,123,.16);color:var(--ok);border-color:rgba(76,217,123,.35)}
.fish-risk-caution{background:rgba(255,209,102,.16);color:var(--warn);border-color:rgba(255,209,102,.35)}
.fish-risk-avoid{background:rgba(255,93,115,.18);color:var(--danger);border-color:rgba(255,93,115,.4)}
.fish-guide-wrap{max-height:none}
.fish-guide-table th,.fish-guide-table td{vertical-align:top;text-align:center}
.fish-guide-table th.ta-left,.fish-guide-table td.ta-left{text-align:left}
.fish-guide-table td{line-height:1.25}

/* Overview sports cards: team icons after team names. */
.team-logo.team-logo-after{margin-right:0;margin-left:.35rem}

/* Overview: populated recent activity/status widgets. */
.overview-activity-shell{overflow:hidden}
.overview-widget-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));align-items:stretch}
.overview-widget{position:relative;overflow:hidden;min-height:230px;margin-bottom:0;border-color:rgba(255,255,255,.12);background:linear-gradient(135deg,rgba(79,140,255,.12),rgba(23,27,35,.96) 50%,rgba(79,140,255,.08));box-shadow:0 12px 28px rgba(0,0,0,.18)}
.overview-widget::before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:var(--ow-accent,var(--brand));opacity:.95}
.overview-widget-blue{--ow-accent:#4f8cff;background:linear-gradient(135deg,rgba(79,140,255,.18),rgba(23,27,35,.96) 50%,rgba(42,86,160,.18))}
.overview-widget-green{--ow-accent:#4cd97b;background:linear-gradient(135deg,rgba(76,217,123,.18),rgba(23,27,35,.96) 50%,rgba(27,102,65,.2))}
.overview-widget-aqua{--ow-accent:#5ad2e4;background:linear-gradient(135deg,rgba(90,210,228,.18),rgba(23,27,35,.96) 50%,rgba(24,100,120,.2))}
.overview-widget-purple{--ow-accent:#b784ff;background:linear-gradient(135deg,rgba(183,132,255,.18),rgba(23,27,35,.96) 50%,rgba(99,61,145,.2))}
.overview-widget-yellow{--ow-accent:#ffd166;background:linear-gradient(135deg,rgba(255,209,102,.18),rgba(23,27,35,.96) 50%,rgba(128,88,25,.2))}
.overview-widget-red{--ow-accent:#ff5d73;background:linear-gradient(135deg,rgba(255,93,115,.18),rgba(23,27,35,.96) 50%,rgba(122,42,55,.22))}
.overview-widget h3{position:relative;color:#fff;margin-bottom:.35rem}
.overview-widget-main{font-size:1.45rem;font-weight:850;letter-spacing:-.02em;line-height:1.08;color:#fff;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:1.2em}
.overview-widget-label{color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;margin-top:.2rem}
.overview-widget-lines{margin:.75rem 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.42rem;flex:1}
.overview-widget-lines li{background:rgba(0,0,0,.14);border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:.42rem .5rem;color:#cfd7e6;font-size:.8rem;line-height:1.25;overflow-wrap:anywhere}
.overview-widget-link{align-self:flex-start;margin-top:.75rem}

/* Holiday Studio: Driving Holiday route planner and motel/fuel research. */
.drive-hero{border-color:rgba(90,210,228,.35);background:linear-gradient(135deg,rgba(90,210,228,.14),rgba(23,27,35,.96) 50%,rgba(76,217,123,.08))}
.drive-callout{border-color:rgba(255,209,102,.32);background:linear-gradient(135deg,rgba(255,209,102,.12),rgba(23,27,35,.96) 55%,rgba(79,140,255,.08))}
.drive-summary-grid{margin-top:1rem}
.drive-cheap-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.7rem;margin-top:.6rem}
.drive-cheap-card{border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(0,0,0,.16);padding:.7rem;min-height:96px;display:flex;flex-direction:column;gap:.2rem}
.drive-cheap-card.has-price{border-color:rgba(76,217,123,.35);background:linear-gradient(135deg,rgba(76,217,123,.14),rgba(0,0,0,.12))}
.drive-cheap-card span{font-size:.72rem;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.drive-cheap-card strong{font-size:1.25rem;color:#fff;line-height:1.1}
.drive-cheap-card small{color:#cfd7e6;line-height:1.25;overflow-wrap:anywhere}
tr.selected-row{background:rgba(76,217,123,.12)}
tr.selected-row td:first-child{box-shadow:inset 4px 0 0 rgba(76,217,123,.85)}
.drive-route-summary{border:1px solid rgba(90,210,228,.28);border-radius:12px;background:rgba(90,210,228,.08);padding:.75rem .85rem;color:#dbeafe;line-height:1.35}
.drive-route-summary strong{color:#fff}

/* Settings: Duo-compatible two-factor authentication. */
.security-card{border-color:rgba(90,210,228,.26);background:linear-gradient(135deg,rgba(90,210,228,.1),rgba(23,27,35,.96) 48%,rgba(76,217,123,.07))}
.security-qr{display:inline-flex;background:#fff;border-radius:14px;padding:.8rem;box-shadow:0 12px 24px rgba(0,0,0,.25)}
.security-qr img{display:block;width:230px;height:230px;image-rendering:pixelated}
.security-secret{display:block;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:.7rem;letter-spacing:.08em;overflow-wrap:anywhere;color:#fff}
.security-recovery{border:1px solid rgba(255,209,102,.42);background:rgba(255,209,102,.1);border-radius:12px;padding:.8rem;margin:.8rem 0;color:#fff}
.security-recovery pre{white-space:pre-wrap;background:rgba(0,0,0,.28);border-radius:10px;padding:.75rem;margin:.6rem 0 0;font-size:1rem;letter-spacing:.06em;color:#fff}
.security-action{border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:.8rem;background:rgba(0,0,0,.12)}

/* Holiday Studio tabbed layout: Summary / Driving Holiday / Cruise Holiday. */
.holiday-tabs{display:flex;flex-wrap:wrap;gap:.55rem;margin:0 0 1rem;border-bottom:1px solid var(--border);padding-bottom:.75rem}
.holiday-tab{display:inline-flex;align-items:center;gap:.35rem;border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:.55rem .9rem;background:rgba(255,255,255,.04);color:var(--text);text-decoration:none;font-weight:700}
.holiday-tab:hover{background:rgba(255,255,255,.08)}
.holiday-tab.active{border-color:rgba(90,210,228,.55);background:linear-gradient(135deg,rgba(90,210,228,.22),rgba(79,140,255,.12));color:#fff;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.holiday-summary-kpis{margin-bottom:1rem}
.holiday-summary-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));align-items:stretch}
.holiday-summary-card{position:relative;overflow:hidden;border-color:rgba(255,255,255,.12);background:linear-gradient(135deg,rgba(79,140,255,.1),rgba(23,27,35,.96))}
.holiday-summary-card::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:#4f8cff}
.holiday-summary-card.drive::before{background:#4cd97b}.holiday-summary-card.cruise::before{background:#5ad2e4}
.holiday-mini-stats{display:flex;flex-wrap:wrap;gap:.35rem;margin:.65rem 0}
.holiday-mini-stats span{border:1px solid rgba(255,255,255,.1);background:rgba(0,0,0,.15);border-radius:999px;padding:.22rem .5rem;font-size:.76rem;color:#cfd7e6}

/* Help Centre */
.help-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:1rem;align-items:stretch;margin-bottom:1rem}
.help-hero>div{background:linear-gradient(135deg,rgba(79,140,255,.16),rgba(90,210,228,.08));border:1px solid var(--border);border-radius:var(--radius);padding:1rem}
.help-hero h2{font-size:1.55rem;margin:.4rem 0 .25rem}.help-search-panel label{margin:0}.help-search-panel input{margin-top:.35rem}
.help-toc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.45rem}.help-toc-grid a{display:block;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);border-radius:10px;padding:.55rem .65rem;color:var(--text);font-weight:600}.help-toc-grid a:hover{background:rgba(79,140,255,.12);text-decoration:none}
.help-section{scroll-margin-top:90px;margin-top:1rem}.help-section>h2{font-size:1.2rem;margin:0 0 .7rem;padding-bottom:.35rem;border-bottom:1px solid var(--border);color:#fff}.help-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1rem;align-items:start}
details.help-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:.75rem 1rem;box-shadow:0 8px 18px rgba(0,0,0,.14)}details.help-card[open]{border-color:rgba(79,140,255,.35)}details.help-card summary{cursor:pointer;font-weight:750;color:#fff;padding:.15rem 0 .45rem;list-style:none}details.help-card summary::-webkit-details-marker{display:none}details.help-card summary:before{content:'+';display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;margin-right:.45rem;border-radius:50%;background:var(--panel3);color:var(--brand2);font-weight:800}details.help-card[open] summary:before{content:'–';background:rgba(79,140,255,.18)}details.help-card ol,details.help-card ul{margin:.45rem 0 .55rem 1.35rem;padding:0;color:var(--muted)}details.help-card li{margin:.28rem 0}.help-note{border-left:3px solid var(--brand);background:rgba(79,140,255,.08);padding:.55rem .7rem;border-radius:8px;color:#cfd7e6;margin:.65rem 0 0}.help-card code{white-space:normal}
@media (max-width:760px){.help-hero{grid-template-columns:1fr}.help-card-grid{grid-template-columns:1fr}}
@media print{.sidebar,.topbar,.footer,.help-search-panel,.help-toc{display:none!important}.layout{display:block}.content{padding:0}.help-hero>div,details.help-card{box-shadow:none;border-color:#999;background:#fff;color:#111}body{background:#fff;color:#111}p,details.help-card ol,details.help-card ul{color:#222}details.help-card{break-inside:avoid;page-break-inside:avoid}details.help-card:not([open]){display:block}details.help-card:not([open])>*{display:block}.help-section{page-break-inside:auto}}

/* Sports Studio — V8 Supercars / motorsport views */
.supercars-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,360px);gap:1rem;align-items:center;background:linear-gradient(135deg,rgba(220,20,35,.18),rgba(255,209,102,.08),rgba(23,27,35,.96))}
.supercars-hero h2{font-size:1.45rem;margin:.35rem 0}.supercars-leader{border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:1rem;background:rgba(0,0,0,.18);display:flex;flex-direction:column;gap:.55rem}
.supercars-thumb{width:100%;height:150px;object-fit:cover;border-radius:10px;background:#0b0f16}.supercars-img-placeholder{display:inline-flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:12px;background:linear-gradient(135deg,#242b38,#6b1f28);color:#fff;font-weight:800}
.supercars-driver-mini{width:44px;height:44px;object-fit:cover;border-radius:50%;background:#10151e;border:1px solid rgba(255,255,255,.16)}.supercars-driver-chip{display:inline-flex;align-items:center;gap:.55rem;min-width:220px}.supercars-driver-chip small{display:block;color:var(--muted);font-size:.75rem}.supercars-car-no{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#10141b;border:1px solid var(--border2);padding:.12rem .42rem;font-size:.78rem;color:#fff;font-weight:800;white-space:nowrap}
.supercars-event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1rem}.supercars-event-card{display:grid;grid-template-columns:130px minmax(0,1fr);gap:1rem;border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:.8rem;background:rgba(255,255,255,.03)}.supercars-event-card .supercars-thumb{height:100%;min-height:145px}.supercars-event-card h3{border:0;padding:0;margin:0 0 .25rem}
.supercars-mini-stats,.supercars-mini-results{display:flex;flex-wrap:wrap;gap:.35rem;margin:.55rem 0}.supercars-mini-stats span,.supercars-mini-results span{border:1px solid rgba(255,255,255,.1);background:rgba(0,0,0,.18);border-radius:999px;padding:.2rem .5rem;font-size:.75rem;color:#d7dfec}.supercars-result-detail td{background:rgba(79,140,255,.05)}
.supercars-team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}.supercars-team-card{border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:1rem;background:linear-gradient(145deg,rgba(255,255,255,.04),rgba(0,0,0,.1));display:flex;flex-direction:column;gap:.45rem}.supercars-team-logo{width:150px;height:78px;object-fit:contain;align-self:flex-start}.supercars-team-card h3{border:0;padding:0;margin:.2rem 0 0}.supercars-driver-list{margin:.4rem 0 .2rem;padding-left:1.2rem;color:var(--muted)}.supercars-driver-list li{margin:.2rem 0}
.supercars-news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}.supercars-news-card{display:flex;flex-direction:column;gap:.5rem;border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:.65rem;background:rgba(255,255,255,.035);color:var(--text)}.supercars-news-card:hover{text-decoration:none;background:rgba(79,140,255,.1)}.supercars-news-card span{color:var(--muted);font-size:.78rem}
@media(max-width:760px){.supercars-hero{grid-template-columns:1fr}.supercars-event-card{grid-template-columns:1fr}.supercars-event-card .supercars-thumb{height:170px}}

/* Command Centre / cross-module intelligence */
.top-search{display:flex;align-items:center;min-width:170px}.top-search input{width:clamp(150px,18vw,280px);padding:.46rem .65rem;border:1px solid var(--border);border-radius:999px;background:rgba(255,255,255,.06);color:var(--text);outline:none}.top-search input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(79,140,255,.18)}.quick-note-btn{font-weight:800}.quick-note-modal{width:min(94vw,620px)}.quick-note-modal textarea{resize:vertical}.inline{display:inline-flex;gap:.35rem;align-items:center;margin:0}.small.btn,.btn.small{font-size:.78rem;padding:.32rem .55rem}
.cc-tabs{display:flex;gap:.35rem;flex-wrap:wrap;margin:0 0 1rem;border-bottom:1px solid var(--border)}.cc-tabs a{display:inline-flex;align-items:center;padding:.55rem .85rem;color:var(--muted);border-bottom:2px solid transparent;text-decoration:none}.cc-tabs a:hover{color:#fff}.cc-tabs a.active{color:#fff;border-color:var(--brand);background:rgba(79,140,255,.08);border-radius:10px 10px 0 0}
.cc-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:1rem;overflow:hidden;position:relative;background:radial-gradient(circle at 12% 10%,rgba(79,140,255,.35),transparent 32%),linear-gradient(135deg,rgba(37,208,162,.12),rgba(23,27,35,.98) 48%,rgba(124,92,255,.12));border-color:rgba(122,183,255,.32)}.cc-hero h2{font-size:1.65rem;margin:.25rem 0}.cc-eyebrow{text-transform:uppercase;letter-spacing:.13em;color:#9bc4ff;font-size:.78rem;margin:0}.cc-hero-actions{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:.85rem}.cc-hero-side{border:1px solid rgba(255,255,255,.13);border-radius:16px;background:rgba(0,0,0,.18);padding:1rem;display:flex;flex-direction:column;gap:.7rem}.cc-hero-side strong{color:#fff}.cc-hero-side span{display:block;color:var(--muted);font-size:.9rem}.cc-kpis .kpi{margin-bottom:0}
.cc-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:.18rem .55rem;border:1px solid rgba(255,255,255,.14);font-size:.73rem;font-weight:800;letter-spacing:.04em}.cc-badge-success{background:rgba(76,217,123,.16);color:#8df1ac;border-color:rgba(76,217,123,.38)}.cc-badge-warning{background:rgba(255,209,102,.15);color:#ffe09a;border-color:rgba(255,209,102,.38)}.cc-badge-danger{background:rgba(255,93,115,.15);color:#ff9aa8;border-color:rgba(255,93,115,.38)}.cc-badge-info,.cc-badge-blue{background:rgba(122,183,255,.14);color:#a9d0ff;border-color:rgba(122,183,255,.34)}
.cc-alert{display:flex;justify-content:space-between;gap:1rem;align-items:center;border:1px solid rgba(255,255,255,.12);border-left-width:5px;border-radius:14px;padding:.8rem;margin:.55rem 0;background:rgba(255,255,255,.035)}.cc-alert p{margin:.25rem 0;color:var(--muted)}.cc-alert small{color:var(--faint)}.cc-alert-success{border-left-color:#4cd97b}.cc-alert-warning{border-left-color:#ffd166}.cc-alert-danger{border-left-color:#ff5d73}.cc-alert-info{border-left-color:#7ab7ff}
.cc-rec-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.8rem}.cc-rec{display:flex;flex-direction:column;gap:.35rem;border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:.85rem;color:var(--text);text-decoration:none;background:rgba(255,255,255,.035);min-height:110px}.cc-rec span{color:var(--muted)}.cc-rec:hover{transform:translateY(-1px);text-decoration:none}.cc-rec-success{border-color:rgba(76,217,123,.35);background:linear-gradient(145deg,rgba(76,217,123,.12),rgba(255,255,255,.03))}.cc-rec-warning{border-color:rgba(255,209,102,.35);background:linear-gradient(145deg,rgba(255,209,102,.12),rgba(255,255,255,.03))}.cc-rec-danger{border-color:rgba(255,93,115,.35);background:linear-gradient(145deg,rgba(255,93,115,.12),rgba(255,255,255,.03))}.cc-rec-info{border-color:rgba(122,183,255,.35);background:linear-gradient(145deg,rgba(122,183,255,.12),rgba(255,255,255,.03))}
.cc-search-page{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:.6rem}.cc-search-page input{padding:.7rem .85rem;border-radius:12px;border:1px solid var(--border);background:rgba(255,255,255,.06);color:var(--text)}.cc-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.75rem}.cc-result{display:flex;flex-direction:column;gap:.2rem;padding:.8rem;border:1px solid rgba(255,255,255,.11);border-radius:14px;background:rgba(255,255,255,.035);text-decoration:none;color:var(--text)}.cc-result span{font-size:.76rem;color:#9bc4ff;text-transform:uppercase;letter-spacing:.06em}.cc-result small{color:var(--muted)}
.cc-map-svg{width:100%;height:auto;border-radius:18px;border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)}.cc-list{display:flex;flex-direction:column;gap:.55rem}.cc-list a{display:flex;flex-direction:column;gap:.15rem;padding:.55rem .7rem;border:1px solid rgba(255,255,255,.1);border-radius:12px;text-decoration:none;color:var(--text);background:rgba(255,255,255,.03)}.cc-list span{color:var(--muted);font-size:.82rem}.cc-list a:hover{background:rgba(79,140,255,.1);text-decoration:none}
.cc-notes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.85rem}.cc-note{border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.035);padding:.85rem}.cc-note-head{display:flex;justify-content:space-between;gap:.5rem;align-items:start}.cc-note p{color:var(--muted);margin:.55rem 0}.cc-note small{color:var(--faint)}.cc-attachments{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.55rem}.cc-attachments a{border:1px solid rgba(122,183,255,.28);border-radius:999px;padding:.18rem .55rem;background:rgba(122,183,255,.1);font-size:.78rem;text-decoration:none}.cc-backup-actions{display:flex;gap:.55rem;flex-wrap:wrap;align-items:center}
@media(max-width:850px){.cc-hero{grid-template-columns:1fr}.top-search{display:none}.cc-search-page{grid-template-columns:1fr}.cc-alert{align-items:flex-start;flex-direction:column}.cc-hero-actions{flex-direction:column}.cc-hero-actions .btn{width:100%;justify-content:center}}
.badge.ok{background:rgba(76,217,123,.15);color:var(--ok)}
.badge.warn{background:rgba(255,180,84,.15);color:var(--warn)}
.badge.info{background:rgba(79,140,255,.16);color:var(--brand2)}
.supercars-event-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.65rem;margin-bottom:.2rem}.supercars-event-head h3{margin:0;flex:1}.supercars-event-head .badge{white-space:nowrap}
