/* Scorecard UI - design system ported from the Client-Portal style guide.
   Quiet authority: warm-white ground, white cards, navy primary, orange surgical.
   No background textures, no emoji, tokens only. */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal;
  src: url("/static/fonts/poppins-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal;
  src: url("/static/fonts/poppins-500.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal;
  src: url("/static/fonts/poppins-600.woff2") format("woff2"); font-display: swap; }

:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1A2E;
  --navy-light: #243656;

  --warm-white: #FAFAF8;
  --ivory: #F7F8FA;
  --pearl: #EDF2F7;
  --cloud: #E2E8F0;
  --mist: #CBD5E0;
  --silver: #6B7580;
  --slate: #5C6975;
  --ink-light: #3D4852;
  --ink: #222222;

  --accent: #EF6B24;
  --accent-hover: #D95E1F;
  --accent-subtle: rgba(239,107,36,0.08);
  --accent-muted: rgba(239,107,36,0.15);
  --accent-line: rgba(239,107,36,0.25);

  --green: #38A169;
  --green-deep: #276749;
  --green-subtle: rgba(56,161,105,0.18);
  --amber: #D69E2E;
  --amber-deep: #8a6516;
  --amber-subtle: rgba(214,158,46,0.22);
  --red: #E53E3E;
  --red-deep: #9B2C2C;
  --red-subtle: rgba(229,62,62,0.16);
  --stale: #94A3B2;
  --stale-subtle: rgba(148,163,178,0.26);

  --shadow-subtle: 0 1px 2px rgba(15,26,46,0.04);
  --shadow-card: 0 2px 8px rgba(15,26,46,0.06), 0 1px 2px rgba(15,26,46,0.04);
  --shadow-elevated: 0 8px 24px rgba(15,26,46,0.10), 0 2px 4px rgba(15,26,46,0.04);
  --shadow-floating: 0 16px 48px rgba(15,26,46,0.14), 0 4px 8px rgba(15,26,46,0.06);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Poppins", sans-serif;
  font-size: 14px; line-height: 1.55;
  background: var(--warm-white); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ---------- app chrome: left icon rail ---------- */
.sidenav {
  position: fixed; left: 0; top: 0; bottom: 0; width: 60px; z-index: 40;
  background: var(--navy); display: flex; flex-direction: column;
  align-items: center; padding: 12px 0 14px; gap: 4px;
}
.sidenav .logo { display: block; margin-bottom: 14px; }
.sidenav .logo img { width: 36px; height: 36px; display: block; border-radius: var(--radius-md); }
.sidenav nav { display: flex; flex-direction: column; gap: 4px; }
.sidenav a, .sidenav button {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); border-radius: var(--radius-md);
  background: none; border: none; cursor: pointer; text-decoration: none;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.sidenav a svg, .sidenav button svg { width: 19px; height: 19px; }
.sidenav a:hover, .sidenav button:hover { color: #fff; background: rgba(255,255,255,0.08); }
.sidenav a.active { color: #fff; background: rgba(255,255,255,0.07); box-shadow: inset 2px 0 0 var(--accent); }
.sidenav .grow { flex: 1; }
.sidenav form { margin: 0; }

.page { max-width: 1680px; margin: 0 auto; padding: 24px 24px 24px 84px; }

/* floating mode-switch button */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-floating); text-decoration: none;
  transition: background 160ms var(--ease), opacity 160ms var(--ease);
}
.fab svg { width: 20px; height: 20px; }
.fab:hover { background: var(--navy-light); }
body.tv .fab { opacity: 0.3; cursor: pointer; }
body.tv .fab:hover { opacity: 1; }
.page-head { margin: 8px 0 20px; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
h1 { font-size: 24px; font-weight: 600; color: var(--navy); margin: 2px 0 4px; letter-spacing: -0.015em; }
.page-sub { color: var(--slate); font-size: 14px; margin: 0; }

/* ---------- summary strip ---------- */
.summary { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: stretch; }
.stat {
  background: #fff; border: 1px solid var(--cloud); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle); padding: 12px 18px; min-width: 118px;
}
.stat .n { font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.1; letter-spacing: -0.015em; }
.stat .l { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat .l i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.stat.green .n { color: var(--green-deep); }
.stat.yellow .n { color: var(--amber-deep); }
.stat.red .n { color: var(--red-deep); }
.stat.stale .n { color: var(--silver); }
.stat.attention {
  flex: 1; min-width: 260px; display: flex; flex-direction: column; justify-content: center;
}
.stat.attention .t { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver); font-weight: 500; margin-bottom: 3px; }
.stat.attention .names { font-size: 13px; color: var(--ink-light); }
.stat.attention .names b { font-weight: 500; color: var(--red-deep); }
.stat.attention .names span.gray { color: var(--silver); }

/* ---------- scorecard grid ---------- */
.card {
  background: #fff; border: 1px solid var(--cloud); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden; margin-bottom: 20px;
}
.section-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px 11px; border-bottom: 1px solid var(--pearl);
}
.section-head .icon { color: var(--navy); display: flex; }
.section-head .icon svg { width: 17px; height: 17px; }
.section-head h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--navy); letter-spacing: 0.01em; }
.grid-wrap { overflow-x: auto; }
table.grid { border-collapse: collapse; width: 100%; }

th.band {
  background: #fff; color: var(--navy);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  padding: 8px 8px 2px; border-bottom: none;
}
th.band.current-month { color: var(--accent); }
th.wk {
  font-size: 10px; font-weight: 500; color: var(--mist);
  padding: 2px 4px 6px; border-bottom: 1px solid var(--pearl);
  min-width: 50px; white-space: nowrap;
}
th.wk .d { display: block; font-size: 9.5px; color: var(--mist); font-weight: 400; }
th.wk.hot { color: var(--slate); }
th.wk.hot .d { color: var(--mist); }
th.wk.current { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
th.metric-col, td.metric-cell {
  text-align: left; padding: 9px 16px; min-width: 250px; max-width: 320px;
  position: sticky; left: 0; background: #fff; z-index: 2;
  border-right: 1px solid var(--pearl);
}
th.metric-col { font-size: 10.5px; color: var(--silver); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--pearl); }
td.metric-cell .mrow { display: flex; align-items: center; gap: 8px; }
td.metric-cell .dot { width: 9px; height: 9px; border-radius: 999px; flex: none; background: var(--cloud); }
td.metric-cell .dot.green { background: var(--green); }
td.metric-cell .dot.yellow { background: var(--amber); }
td.metric-cell .dot.red { background: var(--red); }
td.metric-cell .dot.stale { background: var(--stale); }
td.metric-cell .mname { font-weight: 500; color: var(--ink); font-size: 14.5px; line-height: 1.3; }
td.metric-cell .mdri { font-size: 11px; color: var(--silver); margin-left: 17px; }
td.metric-cell .mrow.key .mname { font-weight: 600; color: var(--navy); }
td.metric-cell .keymark { color: var(--accent); font-size: 12px; line-height: 1; }
body.tv td.metric-cell .keymark { font-size: 14px; }
.badge-131 {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--red-deep); background: var(--red-subtle); border-radius: 999px;
  text-decoration: none; white-space: nowrap;
}
.badge-131.filed { color: var(--green-deep); background: var(--green-subtle); }

tbody tr { border-bottom: 1px solid var(--pearl); }
tbody tr:last-child { border-bottom: none; }

td.cell { text-align: center; padding: 7px 3px; min-width: 50px; height: 42px; }
td.cell.editable { cursor: pointer; }
td.cell.editable:hover { background: var(--accent-subtle); }

/* value chips: past weeks tinted, recent weeks saturated */
.vchip {
  display: inline-block; min-width: 38px; padding: 3px 8px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
}
.vchip.green  { background: var(--green-subtle); color: var(--green-deep); }
.vchip.yellow { background: var(--amber-subtle); color: var(--amber-deep); }
.vchip.red    { background: var(--red-subtle);   color: var(--red-deep); }
.vchip.stale  { background: var(--stale-subtle); color: var(--silver); font-weight: 500; }
.vchip.no-target { background: var(--ivory); color: var(--slate); font-weight: 500; }
.vchip.pending { color: var(--mist); font-weight: 400; }
td.cell.hot .vchip.green  { background: var(--green); color: #fff; }
td.cell.hot .vchip.yellow { background: var(--amber); color: #fff; }
td.cell.hot .vchip.red    { background: var(--red);   color: #fff; }
td.cell.hot .vchip.stale  { background: var(--mist);  color: #fff; }
td.cell.hot .vchip { font-size: 14px; padding: 4px 10px; }
td.cell.current-week .vchip.pending {
  border: 1px dashed var(--accent-line); color: var(--mist);
  padding: 2px 10px; background: #fff;
}

td.subtotal, th.subtotal {
  background: var(--ivory); font-size: 11.5px; font-weight: 600; color: var(--slate);
  text-align: center; min-width: 54px; padding: 4px 6px;
  border-left: 1px solid var(--pearl); border-right: 1px solid var(--cloud);
}
th.subtotal { font-size: 9.5px; letter-spacing: 0.06em; color: var(--silver); border-bottom: 1px solid var(--pearl); }
td.pin, th.pin { text-align: center; min-width: 72px; font-size: 12.5px; background: #fff; }
th.pin { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--silver); font-weight: 500; border-bottom: 1px solid var(--pearl); }
td.pin.target { color: var(--slate); border-left: 1px solid var(--pearl); }
td.pin.actual { font-weight: 600; color: var(--navy); font-size: 13px; }

.spark { display: inline-flex; gap: 3px; align-items: flex-end; height: 26px; }
.spark i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; background: var(--pearl); }
.spark i.bar { width: 8px; border-radius: 2px 2px 0 0; }
body.tv .spark { height: 30px; }
body.tv .spark i.bar { width: 10px; }
.spark i.green { background: var(--green); }
.spark i.yellow { background: var(--amber); }
.spark i.red { background: var(--red); }
.spark i.stale { background: var(--mist); }

/* inline cell editor */
.cell-form { display: flex; gap: 4px; align-items: center; justify-content: center; }
.cell-form input[type=number], .cell-form select {
  width: 64px; padding: 4px 6px; font: inherit; font-size: 12.5px;
  border: 1px solid var(--accent); border-radius: var(--radius-sm); outline: none;
  text-align: center; background: #fff;
}
.cell-form button {
  border: none; background: var(--navy); color: #fff; border-radius: var(--radius-sm);
  font-size: 11px; padding: 4px 8px; cursor: pointer; font-family: inherit;
}

/* ---------- forms / admin ---------- */
.panel { background: #fff; border: 1px solid var(--cloud); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px 22px; margin-bottom: 20px; }
.panel h2 { font-size: 17px; color: var(--navy); margin: 0 0 12px; font-weight: 600; }
.panel h3 { font-size: 14px; color: var(--navy); margin: 18px 0 8px; font-weight: 600; }
label { display: block; font-size: 12.5px; color: var(--ink-light); margin: 10px 0 4px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; max-width: 420px; padding: 8px 10px; font: inherit; font-size: 13.5px;
  border: 1px solid var(--cloud); border-radius: var(--radius-md); background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-line); border-color: var(--accent); }
textarea { min-height: 70px; max-width: 560px; }
.btn {
  display: inline-block; border: none; cursor: pointer; font-family: inherit;
  background: var(--navy); color: #fff; font-size: 13px; font-weight: 500;
  padding: 9px 18px; border-radius: var(--radius-md); text-decoration: none;
  transition: background 160ms var(--ease);
}
.btn:hover { background: var(--navy-light); }
.btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--cloud); }
.btn.secondary:hover { border-color: var(--mist); background: var(--ivory); }
.btn.danger { background: #fff; color: var(--red); border: 1px solid var(--cloud); }
.btn.danger:hover { border-color: var(--red); background: var(--red-subtle); }
.btn.sm { padding: 5px 12px; font-size: 12px; }

table.list { border-collapse: collapse; width: 100%; }
table.list th {
  text-align: left; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--silver); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--cloud);
}
table.list td { padding: 9px 10px; border-bottom: 1px solid var(--pearl); font-size: 13px; vertical-align: middle; }
table.list tr:last-child td { border-bottom: none; }

.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.chip.admin { background: var(--accent-subtle); color: var(--accent-hover); }
.chip.editor { background: rgba(49,130,206,0.1); color: #2b6cb0; }
.chip.viewer { background: var(--pearl); color: var(--slate); }
.chip.off { background: var(--pearl); color: var(--silver); }
.chip.on { background: var(--green-subtle); color: var(--green-deep); }

.flash { padding: 10px 14px; border-radius: var(--radius-md); font-size: 13px; margin-bottom: 16px; }
.flash.ok { background: var(--green-subtle); color: var(--green-deep); }
.flash.err { background: var(--red-subtle); color: var(--red-deep); }
.flash.warn { background: var(--amber-subtle); color: var(--amber-deep); }
.note { font-size: 12px; color: var(--silver); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: #333; background: var(--ivory); padding: 2px 6px; border-radius: 4px; }

/* ---------- login ---------- */
body.login-page {
  background: var(--navy-deep);
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-floating);
  padding: 36px 40px; width: 380px;
}
.login-card .brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.login-card .seam { width: 3px; height: 24px; background: var(--accent); border-radius: 1px; }
.login-card .wordmark { font-weight: 600; font-size: 18px; color: var(--navy); letter-spacing: 0.01em; }
.login-card h1 { font-size: 15px; font-weight: 500; color: var(--slate); margin: 0 0 18px; }
.login-card .btn { width: 100%; margin-top: 18px; }

/* ---------- TV display: same light system, scaled for distance ---------- */
body.tv { background: var(--warm-white); font-size: 17px; }
body.tv .page { max-width: none; padding: 18px 26px; }
.tv-head {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--cloud); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle); padding: 12px 20px; margin-bottom: 14px;
}
.tv-head .seam { width: 4px; height: 26px; background: var(--accent); border-radius: 2px; }
.tv-head .wordmark { font-size: 21px; font-weight: 600; color: var(--navy); letter-spacing: 0.01em; }
.tv-head .title { font-size: 20px; font-weight: 400; color: var(--slate); }
.tv-head .spacer { flex: 1; }
.tv-head .qweek { font-size: 20px; color: var(--accent); font-weight: 600; letter-spacing: 0.04em; }
.tv-head .clock { font-size: 14px; color: var(--silver); margin-left: 14px; }

body.tv .summary { gap: 14px; margin-bottom: 16px; }
body.tv .stat { padding: 14px 22px; min-width: 150px; }
body.tv .stat .n { font-size: 36px; }
body.tv .stat .l { font-size: 12px; }
body.tv .stat.attention .names { font-size: 15px; }
body.tv .stat.attention .t { font-size: 12px; }

body.tv .section-head { padding: 14px 20px 12px; }
body.tv .section-head h2 { font-size: 17px; }
body.tv .section-head .icon svg { width: 19px; height: 19px; }
body.tv th.band { font-size: 12.5px; }
body.tv th.wk { font-size: 12px; min-width: 62px; }
body.tv th.wk .d { font-size: 10px; }
body.tv td.metric-cell .mname { font-size: 17px; }
body.tv td.metric-cell .mdri { font-size: 12px; }
body.tv td.cell { height: 54px; min-width: 62px; }
body.tv .vchip { font-size: 15px; min-width: 46px; }
body.tv td.cell.hot .vchip { font-size: 17px; padding: 5px 12px; }
body.tv td.subtotal { font-size: 13px; }
body.tv td.pin.actual { font-size: 15px; }
body.tv td.pin.target { font-size: 13.5px; }
body.tv .badge-131 { font-size: 11.5px; }
.tv-foot { display: flex; gap: 22px; margin-top: 4px; font-size: 12.5px; color: var(--silver); align-items: center; }
.tv-foot .k { display: inline-flex; align-items: center; gap: 6px; }
.tv-foot .k i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- TV hybrid board (MRR track + act band + heroes + now strip) ---------- */
.mrrbox { background: var(--navy); border-radius: var(--radius-lg); color: #fff;
  padding: 16px 22px 26px; margin-bottom: 14px; }
.mrrbox .mt { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.mrrbox .lbl { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); font-weight: 500; }
.mrrbox .big { font-size: 42px; font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; }
.mrrbox .goal { margin-left: auto; text-align: right; color: rgba(255,255,255,0.6); font-size: 13px; }
.mrrbox .goal b { color: #fff; font-size: 16px; }
.track { position: relative; height: 13px; background: rgba(255,255,255,0.12);
  border-radius: 7px; margin-top: 12px; }
.track .fill { position: absolute; top: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, var(--accent), #F7934C); border-radius: 7px; }
.track .tick { position: absolute; top: -5px; bottom: -5px; width: 2px;
  background: rgba(255,255,255,0.35); }
.track .tick span { position: absolute; top: 24px; left: -30px; width: 72px;
  text-align: center; font-size: 10.5px; color: rgba(255,255,255,0.55); white-space: nowrap; }

.act-band { background: #fff; border: 1.5px solid rgba(229,62,62,0.35);
  border-radius: var(--radius-lg); padding: 12px 16px; margin-bottom: 14px; }
.act-band.clear { border-color: rgba(56,161,105,0.4); }
.act-band .abt { font-size: 11px; letter-spacing: 0.09em; font-weight: 600;
  color: var(--red-deep); text-transform: uppercase; margin-bottom: 8px; }
.act-band .abt.ok { color: var(--green-deep); margin-bottom: 2px; }
.act-band.clear .ad { font-size: 14px; color: var(--slate); }
.acards { display: flex; gap: 10px; flex-wrap: wrap; }
.acard { flex: 1; min-width: 210px; background: rgba(229,62,62,0.06);
  border-radius: var(--radius-md); padding: 9px 13px; border-left: 4px solid var(--red); }
.acard.stale-card { background: rgba(148,163,178,0.12); border-left-color: var(--stale); }
.acard.more { background: var(--ivory); border-left-color: var(--mist); display: flex;
  flex-direction: column; justify-content: center; }
.acard .an { font-weight: 600; font-size: 14px; color: var(--ink); margin-top: 3px; }
.acard .ad { font-size: 12.5px; color: var(--slate); }
.acard .ad b { color: var(--red-deep); font-weight: 600; }
.acard.stale-card .ad b { color: var(--silver); }
.acard .awho { display: flex; align-items: center; gap: 7px; font-size: 12px;
  color: var(--slate); margin-top: 5px; }
.avatar { width: 20px; height: 20px; border-radius: 999px; background: var(--navy);
  color: #fff; font-size: 9.5px; font-weight: 600; display: inline-flex;
  align-items: center; justify-content: center; flex: none; }
.btag { font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  border-radius: 999px; padding: 2px 9px; }
.btag.r { background: rgba(229,62,62,0.14); color: var(--red-deep); }
.btag.s { background: rgba(148,163,178,0.22); color: var(--silver); }

.heroes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.hero-tile { background: #fff; border: 1px solid var(--cloud); border-radius: var(--radius-lg);
  padding: 14px 18px 13px; position: relative; box-shadow: var(--shadow-card); }
.hero-tile .arrow { position: absolute; top: 13px; right: 16px; font-size: 16px; }
.hero-tile .arrow.green { color: var(--green); } .hero-tile .arrow.yellow { color: var(--amber); }
.hero-tile .arrow.red { color: var(--red); } .hero-tile .arrow.stale, .hero-tile .arrow.pending { color: var(--mist); }
.hero-tile .hn { font-size: 14px; font-weight: 600; color: var(--navy); }
.hero-tile .hn .star { color: var(--accent); font-size: 13px; }
.hero-tile .hv { font-size: 40px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.15; font-variant-numeric: tabular-nums; }
.hero-tile .hv.green { color: var(--green-deep); } .hero-tile .hv.yellow { color: var(--amber-deep); }
.hero-tile .hv.red { color: var(--red-deep); }
.hero-tile .hv.stale, .hero-tile .hv.pending, .hero-tile .hv.no-target { color: var(--silver); font-size: 30px; }
.hero-tile .ht { font-size: 12px; color: var(--silver); }
.hero-tile .meter { height: 7px; border-radius: 4px; background: var(--pearl);
  margin-top: 9px; overflow: hidden; }
.hero-tile .meter i { display: block; height: 100%; border-radius: 4px; background: var(--mist); }
.hero-tile .meter i.green { background: var(--green); } .hero-tile .meter i.yellow { background: var(--amber); }
.hero-tile .meter i.red { background: var(--red); }

.tv-cols { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
.nowcard { margin-bottom: 0; }
table.now { border-collapse: collapse; width: 100%; }
table.now th { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--silver); font-weight: 500; text-align: center; padding: 9px 8px;
  border-bottom: 1px solid var(--pearl); }
table.now th:first-child { text-align: left; padding-left: 18px; }
table.now td { padding: 8px; text-align: center; border-bottom: 1px solid var(--pearl); }
table.now tr:last-child td { border-bottom: none; }
table.now td.m { text-align: left; padding-left: 18px; }
table.now td.m { display: flex; align-items: center; gap: 9px; }
table.now td.m .nm { font-weight: 500; font-size: 14px; }
table.now td.m .who { font-size: 11px; color: var(--silver); margin-left: auto; padding-right: 8px; }
table.now .secrow td { background: var(--ivory); font-size: 10.5px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--silver); font-weight: 500; text-align: left;
  padding: 4px 18px; display: table-cell; }
.chip2 { display: inline-block; min-width: 54px; padding: 4px 10px;
  border-radius: var(--radius-md); font-weight: 600; font-size: 14px;
  font-variant-numeric: tabular-nums; }
.chip2.green { background: var(--green); color: #fff; }
.chip2.yellow { background: var(--amber); color: #fff; }
.chip2.red { background: var(--red); color: #fff; }
.chip2.stale { background: var(--mist); color: #fff; }
.chip2.no-target { background: var(--pearl); color: var(--slate); }
.chip2.pending { background: var(--pearl); color: var(--silver); }
.chip2.faint { opacity: 0.5; }
.chip2.empty { background: #fff; border: 1.5px dashed var(--mist); color: var(--mist); font-weight: 400; }
table.now .tgt { color: var(--slate); font-size: 13px; font-variant-numeric: tabular-nums; }
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; }
.bars i { width: 8px; border-radius: 2px 2px 0 0; display: inline-block; }
.bars i.green { background: var(--green); } .bars i.yellow { background: var(--amber); }
.bars i.red { background: var(--red); }
.bars i.stale, .bars i.pending, .bars i.s2 { background: var(--mist); height: 5px; }

.clientcard { padding: 12px 16px; margin-bottom: 0; }
.clientcard .cht { font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--silver); font-weight: 500; margin-bottom: 8px; }
.clientcard .crow { display: flex; align-items: center; gap: 10px; padding: 7px 0;
  border-bottom: 1px solid var(--pearl); font-size: 14px; }
.clientcard .crow:last-child { border-bottom: none; }
.clientcard .cn { font-weight: 500; }
.clientcard .cs { margin-left: auto; font-weight: 600; font-size: 12.5px; }
.clientcard .cs.green { color: var(--green-deep); } .clientcard .cs.yellow { color: var(--amber-deep); }
.clientcard .cs.red { color: var(--red-deep); } .clientcard .cs.stale { color: var(--silver); }

body.tv .mrrbox .big { font-size: 48px; }
body.tv .hero-tile .hv { font-size: 46px; }
body.tv .acard .an { font-size: 15.5px; }
body.tv table.now td.m .nm { font-size: 15px; }
body.tv .chip2 { font-size: 15px; }
@media (max-width: 1100px) { .tv-cols { grid-template-columns: 1fr; } .heroes { grid-template-columns: 1fr; } }
