/* BankIQ Customer Cockpit — visual system */
:root {
  color-scheme: light;
  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --surface-3: #e9eef8;
  --border: #e3e8f1;
  --text: #101828;
  --text-2: #475467;
  --muted: #667085;
  --brand: #1e3a7b;
  --brand-ink: #14213d;
  --brand-2: #29abe2;
  --accent: #f07c2b;
  --link: #1d5bc4;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --good: #12a150; --warning: #f5a524; --serious: #ec835a; --critical: #d92d20; --neutral: #98a2b3;
  --good-bg: #e8f7ee; --warn-bg: #fff4e5; --bad-bg: #fdecea; --info-bg: #eaf1fd;
  --seq-1: #cde2fb; --seq-2: #9ec5f4; --seq-3: #6da7ec; --seq-4: #3987e5; --seq-5: #1c5cab; --seq-6: #0d366b;
  --grid: #edf0f6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -16px rgba(16, 24, 40, .18);
  --shadow-lg: 0 18px 48px -12px rgba(16, 24, 40, .28);
  --header: linear-gradient(100deg, #0e1a36 0%, #16295a 55%, #1e3a7b 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1218; --surface: #171b23; --surface-2: #1d222c; --surface-3: #252b37; --border: #2a303c;
    --text: #eef1f6; --text-2: #c2c8d3; --muted: #8f98a8; --brand: #8fb4ff; --brand-ink: #dfe8ff; --link: #8ab4ff;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --good-bg: #12301f; --warn-bg: #33270f; --bad-bg: #3a1714; --info-bg: #16243d;
    --grid: #232935; --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 18px 48px -12px rgba(0, 0, 0, .6);
    --seq-1: #184f95; --seq-2: #1c5cab; --seq-3: #256abf; --seq-4: #3987e5; --seq-5: #6da7ec; --seq-6: #b7d3f6;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1218; --surface: #171b23; --surface-2: #1d222c; --surface-3: #252b37; --border: #2a303c;
  --text: #eef1f6; --text-2: #c2c8d3; --muted: #8f98a8; --brand: #8fb4ff; --brand-ink: #dfe8ff; --link: #8ab4ff;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --good-bg: #12301f; --warn-bg: #33270f; --bad-bg: #3a1714; --info-bg: #16243d;
  --grid: #232935; --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 18px 48px -12px rgba(0, 0, 0, .6);
  --seq-1: #184f95; --seq-2: #1c5cab; --seq-3: #256abf; --seq-4: #3987e5; --seq-5: #6da7ec; --seq-6: #b7d3f6;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 260px; z-index: -1;
  background: radial-gradient(1200px 260px at 20% -40px, rgba(41, 171, 226, .10), transparent 70%); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, select, input, textarea { font: inherit; color: inherit; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.hidden { display: none !important; }

/* ---------- header */
header.top { position: sticky; top: 0; z-index: 20; background: var(--header); box-shadow: 0 6px 20px -12px rgba(8, 15, 35, .6); }
.top-inner { display: flex; align-items: center; gap: 18px; padding: 10px 24px; max-width: 1560px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand img { height: 22px; }
.brand img.on-light { background: #fff; padding: 3px 6px; border-radius: 6px; }
.brand span { font-weight: 600; color: rgba(255, 255, 255, .85); border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 12px; letter-spacing: .2px; }
nav.tabs { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
nav.tabs a { padding: 7px 12px; border-radius: 999px; color: rgba(255, 255, 255, .78); font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
nav.tabs a:hover { text-decoration: none; background: rgba(255, 255, 255, .10); color: #fff; }
nav.tabs a.active { background: #fff; color: #14213d; font-weight: 600; }
.badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; margin-left: 4px; font-weight: 600; }
header .btn { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .22); color: #fff; }
header .btn:hover { background: rgba(255, 255, 255, .18); }
header .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.userbox { color: rgba(255, 255, 255, .7); font-size: 12px; white-space: nowrap; }

/* ---------- layout */
main { max-width: 1560px; margin: 0 auto; padding: 22px 24px 80px; }
.page-head, #view > .row:first-child { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 4px; }
h1 { font-size: 24px; line-height: 1.2; margin: 2px 0 4px; letter-spacing: -.3px; color: var(--brand-ink); }
h2 { font-size: 15px; margin: 0 0 10px; letter-spacing: -.1px; }
.sub { color: var(--muted); font-size: 12.5px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.banner { border: 1px solid var(--border); background: var(--warn-bg); border-left: 4px solid var(--warning); padding: 10px 14px; border-radius: 10px; margin-bottom: 10px; font-size: 13px; color: var(--text-2); }
.banner.demo { border-left-color: var(--critical); background: var(--bad-bg); font-weight: 600; color: var(--text); }
.banner.info { border-left-color: var(--s1); background: var(--info-bg); }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.card .meta { color: var(--muted); font-size: 12px; margin-top: -6px; margin-bottom: 10px; }
.card.accent-bad, .kpi-card.accent-bad { border-left: 4px solid var(--critical); }
.kpi-card { transition: transform .12s, box-shadow .12s; }
.kpi-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.kpi-num { font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.kpi-label { font-size: 13px; color: var(--text-2); margin: 2px 0 4px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.kpi { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.kpi b { font-size: 19px; display: block; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.kpi span { font-size: 11.5px; color: var(--muted); }
.score { font-size: 34px; font-weight: 700; line-height: 1; color: var(--brand-ink); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }

/* hero band (customer-facing summary) */
.hero { margin-top: 14px; border-radius: 18px; padding: 22px 24px; color: #fff; background: var(--header); box-shadow: var(--shadow-lg); }
.hero-title { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.hero-title span { font-weight: 400; font-size: 14px; color: rgba(255, 255, 255, .75); }
.hero-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.hero-kpis div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 12px 14px; }
.hero-kpis b { display: block; font-size: 28px; line-height: 1.1; }
.hero-kpis span { font-size: 12.5px; color: rgba(255, 255, 255, .8); }

/* segmented control */
.seg { display: inline-flex; background: var(--surface-3); border-radius: 999px; padding: 3px; gap: 2px; }
.seg-btn { border: 0; background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--text-2); font-weight: 500; font-size: 13px; }
.seg-btn.on { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow); font-weight: 600; }

/* filters & chips */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 14px 0 16px; box-shadow: var(--shadow); }
.filters label { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); gap: 4px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.filters select, .filters input { min-width: 130px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); padding: 4px 11px; border-radius: 999px; cursor: pointer; background: var(--surface); font-size: 12.5px; user-select: none; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-2); }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
:root[data-theme="dark"] .chip.on { color: #0f1218; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--info-bg); color: var(--brand-ink); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good); }

.band { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.band i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.band.Strong i { background: var(--good); } .band.Healthy i { background: #7cb342; } .band.Watch i { background: var(--warning); }
.band.At.Risk i, .band.AtRisk i { background: var(--serious); } .band.Critical i { background: var(--critical); } .band.NA i { background: var(--neutral); }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); margin-right: 3px; font-weight: 500; }
.tag.warn { border-color: transparent; background: var(--warn-bg); color: #9a5b00; }
.tag.bad { border-color: transparent; background: var(--bad-bg); color: var(--critical); }
.tag.off { opacity: .6; }
:root[data-theme="dark"] .tag.warn { color: #f5c26b; }
.sev { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.sev::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--neutral); }
.sev.Critical::before { background: var(--critical); } .sev.High::before { background: var(--serious); } .sev.Medium::before { background: var(--warning); }
.delta.up { color: var(--good); } .delta.down { color: var(--critical); }
.neg { color: var(--critical); }
.pos { color: var(--good); }

.chart-box { position: relative; height: 260px; }
.chart-box.tall { height: 320px; }
.chart-tools { display: flex; gap: 6px; margin-left: auto; }
.btn { border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { filter: brightness(1.08); background: var(--brand); }
:root[data-theme="dark"] .btn.primary { color: #0f1218; }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.empty { color: var(--muted); padding: 20px; text-align: center; }

/* tables */
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); padding: 8px; position: sticky; top: 0; background: var(--surface-2); }
table.t th:first-child { border-top-left-radius: 8px; } table.t th:last-child { border-top-right-radius: 8px; }
table.t td { border-bottom: 1px solid var(--grid); padding: 8px; vertical-align: top; }
table.t tr:hover td { background: var(--surface-2); }
table.t tr.struck td { opacity: .45; text-decoration: line-through; }
table.t tr.struck td:first-child { text-decoration: none; opacity: 1; }
table.t td.nowrap { white-space: nowrap; }
table.t td a[href*="/browse/"] { white-space: nowrap; }
table.t th.num { text-align: right; }
.scroll { max-height: 440px; overflow: auto; border-radius: 8px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.heat td.cell { text-align: center; font-weight: 600; min-width: 62px; border: 2px solid var(--surface); border-radius: 6px; }
.heat td.na { color: var(--muted); font-weight: 400; background: var(--surface-2); }

.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 12px; flex-wrap: wrap; }
.subtabs button { border: 0; background: none; padding: 8px 12px; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; font-weight: 500; }
.subtabs button.on { color: var(--brand-ink); border-bottom-color: var(--accent); font-weight: 600; }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(1000px, 100vw); background: var(--bg); border-left: 1px solid var(--border); z-index: 40; overflow: auto; padding: 20px 24px; box-shadow: var(--shadow-lg); }
.scrim { position: fixed; inset: 0; background: rgba(8, 15, 35, .35); backdrop-filter: blur(2px); z-index: 39; }
.menu { position: relative; display: inline-block; }
.menu .pop { position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 30; min-width: 260px; padding: 6px; }
.menu .pop a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); }
.menu .pop a:hover { background: var(--surface-2); text-decoration: none; }

.review-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); margin-bottom: 10px; box-shadow: var(--shadow); }
.review-card .excerpt { color: var(--text-2); font-size: 12.5px; margin: 6px 0; border-left: 3px solid var(--surface-3); padding-left: 10px; }
.review-card .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.review-card select, .review-card input, .form input, .form select, .form textarea, #partnersIn { padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.form { display: grid; grid-template-columns: 190px 1fr; gap: 8px 12px; align-items: center; }
.form textarea { min-height: 60px; width: 100%; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--brand-ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 70; font-size: 13px; box-shadow: var(--shadow-lg); }
.legend-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.fresh { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.fresh .src { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.fresh .src.ok::before { content: "●"; color: var(--good); margin-right: 4px; }
.fresh .src.imp::before { content: "●"; color: var(--warning); margin-right: 4px; }
.fresh .src.off::before { content: "○"; color: var(--muted); margin-right: 4px; }
.fresh .src.err::before { content: "▲"; color: var(--critical); margin-right: 4px; }

details.senti { border-top: 1px solid var(--border); padding: 10px 0; }
details.senti:first-child { border-top: 0; }
details.senti > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; flex-wrap: wrap; }
details.senti > summary::-webkit-details-marker { display: none; }

.upd-pill { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; border: 0; border-radius: 999px;
  padding: 9px 18px; background: var(--brand); color: #fff; font: inherit; font-size: 13px; cursor: pointer; box-shadow: var(--shadow-lg); }

/* ---------- assistant */
.ask-fab { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 999px; color: #fff; font-weight: 600; background: var(--header); box-shadow: 0 10px 30px -8px rgba(30, 58, 123, .6); }
.ask-fab:hover { filter: brightness(1.1); }
.ask-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(240, 124, 43, .25); }
.ask-panel { position: fixed; right: 24px; bottom: 24px; z-index: 55; width: min(440px, calc(100vw - 32px)); height: min(640px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.ask-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--header); color: #fff; }
.ask-head .sub { color: rgba(255, 255, 255, .7); }
.ask-head .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
.ask-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.ask-empty p { color: var(--text-2); margin: 0 0 10px; }
.ask-sug { display: block; width: 100%; text-align: left; margin-bottom: 6px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.ask-sug:hover { border-color: var(--brand); }
.msg { max-width: 92%; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.msg p { margin: 0 0 6px; } .msg p:last-child { margin-bottom: 0; }
.msg ul { margin: 4px 0 6px; padding-left: 18px; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
:root[data-theme="dark"] .msg.me { color: #0f1218; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg .srcs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.msg .srcs a { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--info-bg); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.typing i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.ask-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface); }
.ask-form textarea { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: var(--surface); }

@media (max-width: 760px) {
  .top-inner { flex-wrap: wrap; padding: 8px 16px; gap: 8px; }
  nav.tabs { order: 3; width: 100%; flex: none; flex-wrap: wrap; }
  .navmenu .pop { min-width: 240px; }
  main { padding: 14px 16px 90px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .userbox { display: none; }
  .ask-fab { right: 16px; bottom: 16px; }
  .ask-panel { right: 8px; bottom: 8px; }
}
@media print {
  header.top, .ask-fab, .ask-panel, .filters, .btn { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}
.pill.good { white-space: normal; }
.bar2 { position: relative; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .15); margin-top: 6px; overflow: hidden; }
.bar2 i { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .25); }
.bar2 b { position: absolute; inset: 2px auto 2px 0; border-radius: 999px; background: var(--accent); }
.pill.warn { background: var(--warn-bg); color: #9a5b00; } .pill.bad { background: var(--bad-bg); color: var(--critical); }
ul.insights { margin: 0; padding-left: 18px; } ul.insights li { margin: 3px 0; }
tr.lag td { background: var(--bad-bg); }
pre.goal { white-space: pre-wrap; font: inherit; color: var(--text-2); margin: 10px 0 0; }
.insight-card h2 { margin-bottom: 6px; }
.insight-summary { font-size: 14px; line-height: 1.6; margin: 0 0 12px; color: var(--text); }
.drivers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 12px; }
.driver { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.meter { height: 6px; border-radius: 999px; background: var(--surface-3); margin: 6px 0 4px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--critical), var(--warning) 50%, var(--good)); }
.h3 { font-size: 14px; margin: 10px 0 6px; }
ol.actions { margin: 0; padding-left: 20px; } ol.actions li { margin: 0 0 10px; }
ol.actions .srcs, .insight-card .srcs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.insight-card .srcs a { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--info-bg); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uplift { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--good-bg); color: var(--good); font-weight: 600; font-size: 12px; white-space: nowrap; }
@media (max-width: 1520px) {
  nav.tabs a, .navbtn { padding: 6px 9px; font-size: 13.5px; }
}
@media (max-width: 1365px) {
  .brand span { display: none; }
  .top-inner { gap: 12px; }
}
.thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); vertical-align: middle; margin-right: 6px; }
.performer { background: var(--good-bg); border-radius: 12px; padding: 12px 14px; }
.performer ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); font-size: 13px; }
.rank { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: var(--good); color: #fff; font-weight: 700; font-size: 12px; }


/* header: Sprint drop-down and profile menu */
.navbtn { display: inline-flex; align-items: center; gap: 3px; line-height: inherit; padding: 7px 12px; border-radius: 999px; color: rgba(255, 255, 255, .78); font-weight: 500; white-space: nowrap; background: none; border: 0; font: inherit; cursor: pointer; transition: background .15s, color .15s; }
.navbtn:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.navbtn.active { background: #fff; color: #14213d; font-weight: 600; }
.navbtn .caret { font-size: 10px; opacity: .8; margin-left: 2px; }
.navmenu .pop { left: 0; right: auto; min-width: 300px; }
.navmenu .pop a { padding: 9px 12px; font-weight: 600; }
.navmenu .pop a small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 1px; }
.navmenu .pop a.active { background: var(--info-bg); color: var(--text); }
.avatar { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.avatar:hover, .avatar:focus-visible { background: rgba(255, 255, 255, .24); }
.avatar .dot { position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #14213d; }
.profile-pop { min-width: 250px; }
.profile-pop .pf-head { display: block; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.profile-pop .pf-head b { display: block; font-size: 13px; color: var(--text); word-break: break-all; }
.profile-pop .pf-head span { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.profile-pop a.active { background: var(--info-bg); }
.pf-item { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 8px; background: none; border: 0; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.pf-item:hover { background: var(--surface-2); }
.switch { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--border); transition: background .15s; flex: none; }
.switch i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .15s; }
.switch.on { background: var(--accent); } .switch.on i { left: 16px; }
#pfSignout { color: var(--critical); }
@media (min-width: 761px) { nav.tabs { flex-wrap: nowrap; } }
