/* MrAutomate.ai app - sky and navy theme, matching mrautomate.ai. Light by default, dark when the device asks for it. */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f3f8fc;
  --surface: #ffffff;
  --surface-2: #ecf5fd;
  --line: #dce8f1;
  --ink: #001b30;
  --ink-soft: #3e5260;
  --ink-faint: #627785;
  --accent: #0077b6;
  --accent-ink: #ffffff;
  --accent-soft: #e1f2fc;
  --sky: #009ddc;
  --primary: #001f2c;
  --primary-ink: #ffffff;
  --good: #0b7d55;
  --good-soft: #e5f7ef;
  --bad: #c7243f;
  --bad-soft: #fdecef;
  --warn: #8f5d12;
  --warn-soft: #fff6e0;
  --side: #001b30;
  --side-ink: #ffffff;
  --side-soft: #9fb4c2;
  --side-hover: rgba(255, 255, 255, .08);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(0, 27, 48, .04);
  --font: "Inter Tight", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans SC", "Noto Sans Tamil", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1116;
    --surface: #15212a;
    --surface-2: #1c2b36;
    --line: #26363f;
    --ink: #f2f7fb;
    --ink-soft: #b8c7d1;
    --ink-faint: #8fa3af;
    --accent: #24afed;
    --accent-ink: #001b30;
    --accent-soft: #0f2d40;
    --primary: #24afed;
    --primary-ink: #001b30;
    --good: #3ecf8e;
    --good-soft: #14302a;
    --bad: #ff7187;
    --bad-soft: #3a1a24;
    --warn: #f0b849;
    --warn-soft: #33290f;
    --side: #060b0f;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
#root { height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h2 { margin: 0 0 4px; font-size: 18px; font-weight: 650; }
h3 { margin: 0 0 12px; font-size: 16px; font-weight: 650; }
.hidden { display: none !important; }
.noscript { padding: 24px; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.right { text-align: right; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- layout ---- */
.chassis { display: grid; grid-template-columns: 264px minmax(0, 1fr); height: 100%; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; min-height: 0; padding: 20px 14px 16px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 6px; }
.badge-logo { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6 60%, #d946ef); }
.brand b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.brand span { display: block; font-size: 12px; color: var(--side-soft); }
.side-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--side-soft); margin: 18px 8px 8px; }
.well { padding: 0 2px; }
.well select { width: 100%; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: var(--side-ink); font-weight: 550; cursor: pointer; }
.well select option { color: #131626; background: #fff; }
.solution-plate { margin: 8px 2px 0; padding: 6px 10px; font-size: 12px; border-radius: 8px; color: #cfd1ff; background: rgba(124, 124, 255, .16); }
.menu { flex: 1 0 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.key { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--side-soft); font-weight: 500; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.key:hover { background: var(--side-hover); color: var(--side-ink); }
.key .ico { width: 22px; text-align: center; font-size: 16px; filter: grayscale(.4); opacity: .9; }
.key .led { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.key.on { background: rgba(124, 124, 255, .2); color: #fff; font-weight: 600; }
.key.on .ico { filter: none; opacity: 1; }
.key.on .led { background: #9c9cff; }
.side-foot { padding: 14px 6px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.who { font-size: 13px; margin-bottom: 12px; overflow-wrap: anywhere; }
.who b { display: block; font-size: 14px; font-weight: 600; }
.who span { color: var(--side-soft); }
.side-foot .row { display: flex; gap: 8px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 22px 32px 14px; }
.topbar h1 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.topbar .sub { margin-left: auto; font-size: 13px; color: var(--ink-soft); text-align: right; }
.sheet { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 32px 32px; }
.sheet > * { max-width: 1120px; }
.sheet.flush { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.sheet.flush > * { max-width: none; }
p.lead { margin: 0 0 18px; color: var(--ink-soft); max-width: 72ch; }

/* ---- controls ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 550; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, filter .15s; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent); filter: brightness(1.1); }
.btn.danger { color: var(--bad); border-color: transparent; background: var(--bad-soft); }
.btn.danger:hover { background: var(--bad-soft); filter: brightness(.97); }
.btn.small { min-height: 32px; padding: 4px 12px; font-size: 13px; border-radius: 8px; }
.btn.dark { flex: 1; background: rgba(255, 255, 255, .07); border-color: transparent; color: var(--side-ink); }
.btn.dark:hover { background: rgba(255, 255, 255, .14); }
.btn.burger { display: none; }

.inset { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.inset:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inset::placeholder { color: var(--ink-faint); }
textarea.inset { resize: vertical; min-height: 76px; }
.field { display: block; margin-bottom: 14px; min-width: 0; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 550; color: var(--ink-soft); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }

/* ---- cards, tables, notes ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.table-wrap { overflow-x: auto; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
table.ledger th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.ledger td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ledger tr:last-child td { border-bottom: 0; }
table.ledger td.num, table.ledger th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.ledger td .actions { margin-top: 0; flex-wrap: nowrap; }
table.ledger td .inset { min-width: 90px; }
.note { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.good { background: var(--good-soft); color: var(--good); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-soft); white-space: nowrap; }
.tag.ok { background: var(--good-soft); color: var(--good); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
pre.letter { margin: 10px 0; padding: 16px; border-radius: 10px; background: var(--surface-2); font: 14px/1.6 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; }
code.keybox { display: block; margin: 8px 0; padding: 14px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--ink-faint); font: 14px/1.4 var(--mono); overflow-wrap: anywhere; user-select: all; }

/* ---- dashboard figures ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.gauge { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px 20px; box-shadow: var(--shadow); }
.gauge::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.gauge.warn::before { background: var(--bad); }
.gauge .label { font-size: 13px; font-weight: 550; color: var(--ink-soft); }
.gauge .lcd { margin: 6px 0 4px; font-size: 27px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gauge .lcd small { font-size: 13px; font-weight: 600; color: var(--ink-faint); margin-right: 6px; letter-spacing: 0; }
.gauge.warn .lcd { color: var(--bad); }
.gauge .sub { font-size: 13px; color: var(--ink-faint); min-height: 19px; }

/* ---- chat ---- */
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 32px 16px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.bubble { max-width: min(760px, 88%); padding: 12px 16px; border-radius: 16px; overflow-wrap: anywhere; }
.msg.bot .bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg.user .bubble { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble h4 { margin: 6px 0; font-size: 15px; font-weight: 650; }
.bubble ul, .bubble ol { margin: 0 0 8px; padding-left: 22px; }
.bubble code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font: 13px var(--mono); }
.bubble .table-wrap { margin: 8px 0 10px; border: 1px solid var(--line); border-radius: 10px; }
.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--ink-faint); animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 32px 12px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: 13px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.composer { display: flex; align-items: flex-end; gap: 10px; margin: 0 32px 24px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer textarea.inset { border: 0; background: transparent; padding: 9px 0; min-height: 40px; max-height: 160px; resize: none; box-shadow: none; }
.send { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 17px; cursor: pointer; transition: filter .15s; }
.send:hover { filter: brightness(1.1); }
.send:disabled { opacity: .5; cursor: default; }

/* ---- sign in ---- */
.gate { min-height: 100%; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 500px at 15% -10%, var(--accent-soft), transparent 65%), radial-gradient(700px 500px at 100% 110%, var(--accent-soft), transparent 60%), var(--bg); }
.plate { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.plate .screw { display: none; }
.plate .brand { padding: 0 0 20px; }
.plate .brand span { color: var(--ink-soft); }
.plate h2 { margin: 0 0 18px; font-size: 22px; letter-spacing: -.01em; }
.plate .btn.primary { width: 100%; min-height: 44px; margin-top: 6px; }
.plate .foot { margin-top: 16px; font-size: 13px; text-align: center; color: var(--ink-faint); }

/* ---- toast, phone drawer ---- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; max-width: 90vw; padding: 12px 18px; border-radius: 12px; background: #1b1f33; color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.toast.bad { background: #b4233c; }
.scrim { display: none; }

@media (max-width: 860px) {
  .chassis { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; width: min(290px, 86vw); transform: translateX(-100%); transition: transform .2s ease; }
  .side.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(8, 10, 20, .5); }
  .btn.burger { display: inline-flex; }
  .topbar { padding: 14px 16px 10px; }
  .topbar h1 { font-size: 18px; }
  .topbar .sub { display: none; }
  .sheet { padding: 4px 16px 24px; }
  .msgs { padding: 10px 16px 14px; }
  .chips { padding: 0 16px 10px; }
  .composer { margin: 0 16px 16px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Read purchase invoice laid out as a printed voucher */
.vchpage { background: #fff; color: #111; border: 1px solid #cfd3dc; border-radius: 4px; padding: 20px 22px; margin-bottom: 12px; font-size: 13px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.vchco { text-align: center; font-weight: 700; font-size: 16px; }
.vchtitle { text-align: center; font-weight: 600; margin: 2px 0 14px; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; color: #444; }
.vchhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 18px; border-top: 1px solid #111; border-bottom: 1px solid #111; padding: 8px 0; margin-bottom: 8px; }
.vchline { display: flex; gap: 8px; padding: 2px 0; }
.vchline span { color: #555; min-width: 130px; }
.vchpage table { width: 100%; border-collapse: collapse; }
.vchpage th { text-align: left; border-bottom: 1px solid #111; padding: 5px 4px; font-size: 12px; }
.vchpage td { padding: 5px 4px; border-bottom: 1px dotted #ccc; vertical-align: top; }
.vchpage .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vchpage tfoot td { border-bottom: none; }
.vchpage tfoot tr.grand td { border-top: 1px solid #111; border-bottom: 3px double #111; font-weight: 700; }
.vchflag { display: block; color: #c7243f; font-size: 11px; }
.vchnarr { margin-top: 10px; }
.vchfoot { margin-top: 14px; color: #777; font-size: 11px; }
#printroot { display: none; }
@media (max-width: 860px) {
  .vchpage { padding: 14px 12px; }
  .vchhead { grid-template-columns: minmax(0, 1fr); }
  .vchline span { min-width: 110px; }
}
@media print {
  body > *:not(#printroot) { display: none !important; }
  body { background: #fff !important; }
  #printroot { display: block; }
  #printroot .vchpage { border: none; box-shadow: none; margin: 0; break-after: page; }
}

/* People: policies, attendance, leave, claims */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.policy-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.policy-head h3 { margin: 0 0 4px; }
.card h4 { margin: 18px 0 10px; font-size: 14px; font-weight: 650; }
.pre { white-space: pre-line; font-size: 13px; }
.clock { text-align: center; }
.clock-time { font-size: 52px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0; font-variant-numeric: tabular-nums; }
.actions.center { justify-content: center; }
.btn.big { min-height: 56px; min-width: 180px; font-size: 18px; border-radius: 14px; }
@media (max-width: 860px) {
  .clock-time { font-size: 44px; }
  .btn.big { width: 100%; }
}

/* Sky theme: pill buttons, borderless rounded cards, sky sign-in page */
h2, h3 { font-weight: 600; }
.topbar h1 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.badge-logo { background: var(--sky); border-radius: 50%; }
.brand b { font-weight: 600; }
.solution-plate { color: #bfe6f8; background: rgba(36, 175, 237, .16); border-radius: 999px; }
.well select { border-radius: 999px; padding: 0 14px; }
.key { border-radius: 999px; }
.key.on { background: rgba(36, 175, 237, .2); color: #fff; }
.key.on .led { background: #24afed; }
.btn, .btn.small { border-radius: 999px; font-weight: 500; }
.btn.small { padding: 4px 14px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary); filter: brightness(1.25); }
.btn.big { border-radius: 999px; }
.inset { border-radius: 12px; }
.card, .gauge { border-color: transparent; }
.gauge::before { background: var(--sky); }
.gauge .lcd, .clock-time { font-weight: 600; }
.msg.bot .bubble { border-color: transparent; background: var(--surface); }
.msg.user .bubble { background: var(--primary); color: var(--primary-ink); }
.send { border-radius: 50%; background: var(--primary); color: var(--primary-ink); }
.composer { border-radius: 999px; padding: 6px 6px 6px 20px; }
.gate { background: var(--sky); }
.plate { border: 0; border-radius: 28px; }
.plate h2 { font-weight: 500; }
.toast { background: #001b30; }

/* Dashboard charts: thin marks, 2px surface gaps, rounded data ends, one shared tooltip */
:root { --seq-0: #62bce8; --seq-1: #2f9fd9; --seq-2: #1281bd; --seq-3: #0b6399; --seq-4: #0a3d63; --c-due: #009ddc; --c-ok: #0077b6; --c-amber: #c08410; --c-bad: #c7243f; --c-track: #e6eff5; }
@media (prefers-color-scheme: dark) {
  :root { --seq-0: #2a6588; --seq-1: #2a84b8; --seq-2: #3aa5dd; --seq-3: #6cc6f1; --seq-4: #b0e0f8; --c-due: #1e9ad6; --c-ok: #1e9ad6; --c-amber: #bd8320; --c-bad: #e5486a; --c-track: #22323c; }
}
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; margin-bottom: 16px; }
.charts { align-items: start; }
.charts-title { margin: 28px 0 12px; font-size: 20px; font-weight: 500; }
.charts > .card { margin-bottom: 0; min-width: 0; }
.gauge .lcd.long { font-size: 21px; line-height: 1.55; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.chart-head h3 { margin: 0; }
.chart-head p { margin: 2px 0 0; font-size: 13px; }
.chart-head .btn { flex: none; }
.chart-note { margin: 18px 0 8px; font-size: 13px; color: var(--ink-faint); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; font-size: 13px; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.key-due { background: var(--c-due); }
.key-over, .key-late, .key-out { background: var(--c-bad); }
.key-ontime, .key-healthy { background: var(--c-ok); }
.key-low { background: var(--c-amber); }
.seq-0 { background: var(--seq-0); } .seq-1 { background: var(--seq-1); } .seq-2 { background: var(--seq-2); }
.seq-3 { background: var(--seq-3); } .seq-4 { background: var(--seq-4); }
[data-tip] { cursor: default; outline: none; }
[data-tip]:hover, [data-tip]:focus-visible { filter: brightness(1.12); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink-faint); }

.cols { display: flex; gap: 6px; height: 226px; }
.col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; }
.col-plot { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-height: 0; border-bottom: 1px solid var(--line); }
.col .cap { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.col .bar { width: 100%; max-width: 24px; min-height: 2px; border-radius: 4px 4px 0 0; }
.col .xl { flex: none; height: 36px; padding-top: 6px; font-size: 12px; color: var(--ink-faint); text-align: center; line-height: 1.25; overflow: hidden; }

.hbars, .bullets { display: flex; flex-direction: column; gap: 10px; }
.hrow { display: grid; grid-template-columns: minmax(90px, 38%) 1fr; gap: 10px; align-items: center; }
.hrow .hl { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hplot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hplot .hv { flex: none; font-size: 12px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.track { flex: 1; display: flex; gap: 2px; height: 16px; min-width: 0; }
.track .seg { height: 100%; min-width: 2px; }
.track .seg:last-child { border-radius: 0 4px 4px 0; }

.meter { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.meter-text { margin: 0 0 8px; font-size: 13px; color: var(--ink-soft); }
.meter-text b { font-size: 20px; color: var(--ink); margin-right: 4px; }
.meter-track, .btrack { position: relative; flex: 1; height: 12px; border-radius: 4px; background: var(--c-track); min-width: 0; }
.meter-fill { height: 100%; border-radius: 4px; background: var(--c-ok); }

.stack { display: flex; gap: 2px; height: 24px; }
.stack .seg { height: 100%; min-width: 2px; }
.stack .seg:first-child { border-radius: 4px 0 0 4px; }
.stack .seg:last-child { border-radius: 0 4px 4px 0; }
.stack .seg:only-child { border-radius: 4px; }
.btrack .bfill { height: 100%; border-radius: 0 4px 4px 0; background: var(--c-amber); }
.btrack .lvl { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.chart-table table { width: 100%; }
.chart-table table + table { margin-top: 14px; }

.ctip { position: fixed; z-index: 60; pointer-events: none; max-width: 260px; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: 12px; line-height: 1.4; opacity: 0; transition: opacity .12s; }
.ctip.on { opacity: 1; }
.ctip b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .charts { grid-template-columns: 1fr; }
  .col .xl { font-size: 11px; }
}
