/* Unara Practice Management. One stylesheet, no outside fonts or images, light and dark from the system setting.
   Colors and type follow the Unara design system: navy carries the weight, teal is the spark, amber marks a deadline. */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  color-scheme: light;
  --navy: #13183F; --navy-block: #13183F; --navy-2: #232B66; --navy-line: #4B5598; --on-navy: #FFFFFF; --on-navy-2: #B9C1DA; --on-navy-3: #E4E8F5;
  --teal: #0D9488; --teal-strong: #0F766E; --teal-tint: #CCEDEA; --amber: #F2A93B; --amber-bg: #FDF1DC; --amber-line: #F2D9A8; --amber-text: #8A5A00;
  --bg: #F5F6FA; --surface: #FFFFFF; --surface-2: #EEF0F6; --border: #E3E6EE; --border-2: #CFD5E3; --grid: #EDF0F5;
  --text: #13183F; --text-2: #4B5568; --muted: #5B6478; --link: #0F766E; --focus: #0D9488;
  --accent: #0F766E; --accent-text: #0F766E; --accent-bg: #CCEDEA; --ink: #13183F; --on-ink: #FFFFFF; --bar: #0D9488;
  --side: #13183F; --shadow: 0 1px 2px rgba(19, 24, 63, .05), 0 1px 1px rgba(19, 24, 63, .03); --shadow-2: 0 18px 40px -18px rgba(19, 24, 63, .45);
  --series-1: #257de0; --series-2: #f47230; --series-3: #00b894; --series-4: #f2a600;
  --series-5: #ee7fac; --series-6: #008a17; --series-7: #6a4ce2; --series-8: #ec4647;
  --good: #0D9488; --warning: #F2A93B; --serious: #F97316; --critical: #E11D48; --neutral-mark: #CBD2E1;
  --good-text: #0B5E57; --bad-text: #B42345; --warn-text: #8A5A00;
  --warn-bg: #FDF1DC; --bad-bg: #FCE7EC; --good-bg: #CCEDEA; --info-bg: #E8EAF6;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --navy-block: #232B66; --navy-2: #2F3880; --teal-strong: #2DD4BF; --teal-tint: #134E4A; --amber-bg: #3A2E0B; --amber-line: #6B5416; --amber-text: #FCD34D;
    --bg: #070A1C; --surface: #13183F; --surface-2: #1B2152; --border: #2A3060; --border-2: #3A4180; --grid: #1F2658;
    --shadow: 0 0 0 1px #232B66; --shadow-2: 0 18px 40px rgba(0, 0, 0, .55);
    --text: #FFFFFF; --text-2: #B9C1DA; --muted: #9AA4C4; --link: #2DD4BF; --focus: #2DD4BF;
    --accent: #0F766E; --accent-text: #2DD4BF; --accent-bg: #134E4A; --ink: #FFFFFF; --on-ink: #13183F; --bar: #2DD4BF;
    --series-1: #338ced; --series-2: #e76624; --series-3: #00a888; --series-4: #d28e05;
    --series-5: #e24d8b; --series-6: #0aac23; --series-7: #9887ef; --series-8: #eb6263;
    --neutral-mark: #4B5598;
    --good-text: #6EE7B7; --bad-text: #FDA4AF; --warn-text: #FCD34D;
    --warn-bg: #3A2E0B; --bad-bg: #3F1220; --good-bg: #0B2E22; --info-bg: #232B66;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
h3 { font-size: 14px; font-weight: 600; margin: 20px 0 8px; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.num, .n { font-variant-numeric: tabular-nums; }

/* menu: a rail on the left on wide screens, a bar on top on small ones */
#app.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); grid-template-rows: auto auto 1fr; min-height: 100vh; }
.banner { grid-column: 1 / -1; grid-row: 1; background: var(--warn-bg); color: var(--warn-text); padding: 5px 24px; font-size: 12.5px; text-align: center; }
.top { grid-column: 1; grid-row: 2 / span 2; background: var(--side); border-right: 1px solid var(--border); }
.top-in { position: sticky; top: 0; height: 100vh; max-height: 100vh; overflow-y: auto; padding: 20px 12px 16px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1041px) { #app.shell:has(> .banner) .top-in { height: calc(100vh - 29px); } }
.brand { font-weight: 700; font-size: 15px; letter-spacing: .02em; padding: 0 10px; display: flex; align-items: center; gap: 9px; }
.brand::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), #7C3AED); }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.nav a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.on { background: var(--accent-bg); color: var(--accent-text); font-weight: 600; }
.nav .count { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--accent); }
.who { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 12px 10px 0; border-top: 1px solid var(--border); }
.who strong { color: var(--text); font-weight: 600; }
.subnav { grid-column: 2; grid-row: 2; padding: 16px 32px 0; display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); background: var(--bg); }
.subnav .tab { border: 0; background: none; border-radius: 0; padding: 8px 12px 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--text-2); font-weight: 500; }
.subnav .tab:hover { color: var(--text); }
.subnav .tab.on { background: none; color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 600; }
main { grid-column: 2; grid-row: 3; width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px 32px 64px; }
main.narrow { max-width: 960px; padding-top: 40px; }
main:focus { outline: none; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.lead { color: var(--text-2); margin-top: 4px; font-size: 14.5px; max-width: 76ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sub { color: var(--muted); font-size: 12.5px; }
.fresh { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.band { margin-bottom: 24px; }
.band-title { font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 10px; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.band-head h2 { font-size: 20px; letter-spacing: -0.01em; }
.band > .tiles:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 0; box-shadow: var(--shadow); border-radius: 12px; min-width: 0; margin-bottom: 20px; }
.grid > .card { margin-bottom: 0; }
.card-head { padding: 18px 20px 0; }
.card-body { padding: 12px 20px 20px; }
.card-link { margin-top: 12px; }
.links { color: var(--text-2); }

/* home */
.start { list-style: none; margin: 0; padding: 0; }
.start li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.start li:last-child { border-bottom: 0; }
.start .what { flex: 1 1 260px; min-width: 0; }
.start .what strong { display: block; font-weight: 600; }
.start .what span { color: var(--text-2); }
.strip { display: flex; flex-wrap: wrap; }
.strip > div { flex: 1 1 180px; padding: 20px 24px; border-right: 1px solid var(--border); min-width: 0; }
.strip > div:last-child { border-right: 0; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 0; box-shadow: var(--shadow); border-radius: 12px; padding: 16px 18px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
button.tile { cursor: pointer; }
button.tile:hover { box-shadow: 0 0 0 1.5px var(--accent); }
.tile-label { color: var(--muted); font-size: 12px; font-weight: 500; }
.tile-value { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tile-delta, .tile-note { font-size: 12.5px; color: var(--muted); }
.tile-delta.good { color: var(--good-text); }
.tile-delta.bad { color: var(--bad-text); }
.tile-status { margin-top: 4px; }

/* pills */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.chip-icon { font-size: 10px; font-weight: 700; }
.chip.good { background: var(--good-bg); color: var(--good-text); }
.chip.warn, .chip.serious { background: var(--warn-bg); color: var(--warn-text); }
.chip.bad, .chip.critical { background: var(--bad-bg); color: var(--bad-text); }
.chip.info { background: var(--info-bg); color: var(--accent-text); }

/* buttons and fields */
.btn { background: var(--surface); border: 1px solid var(--border-2); border-radius: 8px; padding: 7px 13px; font-size: 13.5px; box-shadow: var(--shadow); cursor: pointer; text-decoration: none; color: var(--text); font-weight: 500; display: inline-block; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; font-weight: 600; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); box-shadow: none; }
.btn.link { border: 0; background: none; padding: 0; box-shadow: none; color: var(--link); text-decoration: underline; font-weight: 400; }
.btn.small { padding: 4px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .6; cursor: default; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; margin-bottom: 14px; }
main > .filters, main > div > .filters { background: var(--surface); box-shadow: var(--shadow); border-radius: 12px; padding: 10px 14px 12px; }
.field { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 550; letter-spacing: .02em; color: var(--muted); }
.field select, .field input, .field textarea { background: var(--surface); border: 1px solid var(--border-2); border-radius: 8px; padding: 6px 9px; color: var(--text); font-size: 13.5px; font-weight: 400; letter-spacing: 0; max-width: 220px; }
.field select:hover, .field input:hover { border-color: var(--muted); }
.filters .field select { max-width: 164px; }
.field.check { flex-direction: row; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--text); padding-bottom: 7px; }
.field.views select { border-style: dashed; }
.view-name { display: inline-flex; align-items: flex-end; gap: 6px; }
.filters > .btn { margin-bottom: 1px; }
.field.wide textarea { max-width: none; width: 100%; }
.totals { font-weight: 600; font-size: 13.5px; color: var(--text-2); margin-bottom: 10px; min-height: 20px; font-variant-numeric: tabular-nums; }
.edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.edit.inline { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.edit .field.wide, .edit .form-actions { grid-column: 1 / -1; }
.edit .field select, .edit .field input { max-width: none; width: 100%; }
.form-actions { display: flex; gap: 12px; align-items: center; }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; cursor: pointer; color: var(--text-2); text-decoration: none; font-size: 13.5px; }
.tab:hover { border-color: var(--border-2); color: var(--text); }
.tab.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 550; }
.tab .count { font-size: 12px; opacity: .85; margin-left: 2px; font-variant-numeric: tabular-nums; }

/* work: queue and inspector */
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.queue { flex: 2 1 320px; min-width: 0; background: var(--surface); box-shadow: var(--shadow); border-radius: 12px; overflow: hidden; }
.qrow { width: 100%; text-align: left; cursor: pointer; background: var(--surface); border: 0; border-bottom: 1px solid var(--grid); border-left: 3px solid transparent; padding: 11px 16px 11px 14px; display: flex; flex-direction: column; gap: 4px; }
.qrow:hover { background: var(--surface-2); }
.qrow.on { background: var(--accent-bg); border-left-color: var(--accent); }
.qrow .l1, .qrow .l2 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; }
.qrow .l1 { font-weight: 600; }
.qrow .l2 { color: var(--muted); font-size: 12.5px; }
.queue .more { padding: 12px 20px; }
.inspector { flex: 3 1 460px; min-width: 0; background: var(--surface); box-shadow: var(--shadow); border-radius: 12px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.inspector .body { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.inspector .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: flex-start; }
.inspector .head h2 { font-size: 19px; letter-spacing: -0.01em; }
.inspector .amount { font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; }
.steps .dot { flex: 0 0 10px; height: 10px; border-radius: 999px; background: var(--neutral-mark); margin-top: 7px; }
.steps .dot.good { background: var(--good); }
.steps .dot.bad { background: var(--critical); }
.steps strong { display: block; font-weight: 500; }
.steps span { color: var(--text-2); }
.figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px 16px; margin: 0 0 20px; }
.figures dt { font-size: 12px; color: var(--muted); }
.figures dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.payment { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.payment .amount { text-align: right; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.suggest { background: var(--accent-bg); border-radius: 12px; padding: 16px 20px; }
.suggest strong { display: block; color: var(--accent-text); margin-bottom: 4px; }
.actions { border-top: 1px solid var(--border); padding: 14px 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions .next { margin-left: auto; }

/* tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
caption { text-align: left; color: var(--text-2); padding-bottom: 6px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--grid); vertical-align: top; }
th { color: var(--muted); font-weight: 550; font-size: 12px; letter-spacing: .01em; white-space: nowrap; background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
table.rules td { vertical-align: middle; }
table.rules input[type="text"], table.rules select, table.rules input[type="date"] { background: var(--surface); border: 1px solid var(--border-2); border-radius: 8px; padding: 5px 8px; font-size: 13.5px; width: 100%; min-width: 120px; }
td input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
td { max-width: 320px; overflow-wrap: break-word; }
td.num, th.num { text-align: right; white-space: nowrap; }
.th-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; letter-spacing: inherit; color: inherit; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td, tr.clickable:focus td { background: var(--surface-2); }
.table-wrap + .btn, .table-wrap ~ .btn { margin-top: 14px; }
.heat td.cell { text-align: center; font-variant-numeric: tabular-nums; min-width: 56px; }
.heat th.col { white-space: normal; max-width: 128px; font-size: 12px; vertical-align: bottom; text-align: center; }
.heat th[scope="row"] { white-space: nowrap; color: var(--text); font-size: 14px; }
.heat td.cell { border-bottom: 2px solid var(--surface); border-right: 2px solid var(--surface); border-radius: 6px; padding: 9px 8px; }
.heat td.cell.none { color: var(--muted); }
.heat td.cell.click { cursor: pointer; }
.heat-note { margin-top: 10px; }

/* charts */
.chart-foot { margin-top: 10px; text-align: right; }
.hbars { display: flex; flex-direction: column; gap: 2px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 42%) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 5px 6px; background: none; border: 0; border-radius: 8px; text-align: left; width: 100%; }
button.hbar { cursor: pointer; }
button.hbar:hover { background: var(--surface-2); }
.hbar-label { overflow-wrap: anywhere; line-height: 1.3; }
.hbar-track { display: flex; height: 12px; }
.hbar-fill { display: block; height: 12px; border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar-stack { display: flex; gap: 2px; height: 12px; min-width: 2px; }
.hbar-seg { display: block; height: 100%; min-width: 2px; flex-basis: 0; }
.hbar-stack .hbar-seg:last-child, .parts-bar .hbar-seg:last-child { border-radius: 0 4px 4px 0; }
.parts-bar .hbar-seg:first-child { border-radius: 4px 0 0 4px; }
.parts-bar .hbar-seg:only-child { border-radius: 4px; }
.hbar-value { font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.parts-bar { display: flex; gap: 2px; height: 14px; margin: 4px 0 12px; }
.legend { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--text-2); }
.legend.numbers strong { color: var(--text); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.line-chart { width: 100%; height: auto; display: block; overflow: visible; }
.line-chart .grid { stroke: var(--grid); stroke-width: 1; }
.line-chart .axis { fill: var(--text-2); font-size: 11px; }
.line-chart .end-label { fill: var(--text); font-size: 11.5px; font-weight: 600; }
.line-chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line-chart .dot { stroke: var(--surface); stroke-width: 2; }
.line-chart .cross { stroke: var(--text-2); stroke-width: 1; }
.line-chart .band { fill: transparent; }
.line-chart .band:focus { outline: none; fill: rgba(127, 127, 127, .08); }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--on-ink); padding: 8px 11px; border-radius: 8px; font-size: 13px; max-width: 320px; }
.tip strong { display: block; margin-bottom: 2px; }
.tip-hint { opacity: .7; margin-top: 3px; }

/* side panel */
.drawer-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 40; display: flex; justify-content: flex-end; }
.drawer { background: var(--surface); width: min(560px, 100%); height: 100%; overflow-y: auto; box-shadow: var(--shadow-2); }
.drawer header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.drawer-body { padding: 18px 24px 32px; }
.drawer .inspector { border: 0; border-radius: 0; position: static; max-height: none; overflow: visible; }
.drawer .inspector .body { padding: 0 0 20px; }
.drawer .inspector .head h2 { display: none; }
.drawer .inspector .actions { padding: 14px 0 0; }
.facts { display: grid; grid-template-columns: minmax(120px, 36%) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.facts dt { color: var(--text-2); font-size: 13px; }
.facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.team { margin-top: 4px; border-top: 1px solid var(--border); }
details.all summary { cursor: pointer; color: var(--link); margin-bottom: 12px; }
details.more-filters { align-self: flex-end; padding-bottom: 9px; }
details.more-filters summary { cursor: pointer; color: var(--link); font-size: 14px; }
details.more-filters[open] { flex: 1 1 100%; order: 9; padding-bottom: 0; }
details.more-filters .filters { margin: 10px 0 0; }

/* settings, uploads, bank */
.edit.upload { grid-template-columns: minmax(0, 1fr); }
.edit .wide { grid-column: 1 / -1; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 16px; }
.checks .field.check { padding-bottom: 2px; }
.tiles.accounts { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tiles.accounts .tile .btn { align-self: flex-start; margin-top: 8px; }
.card-body > .form-actions, .card-body > .btn { margin-top: 14px; }
.card-body > .sub { margin-top: 10px; }
.card-body > .edit { margin-top: 14px; }
.card-body > .filters { margin-bottom: 10px; }

/* messages */
.empty, .loading { color: var(--text-2); padding: 16px 0; }
.queue .empty, .queue .loading, .inspector > .empty { padding: 20px 24px; }
.error { background: var(--bad-bg); color: var(--bad-text); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.notice { background: var(--warn-bg); color: var(--warn-text); border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 9px 16px; border-radius: 10px; z-index: 70; box-shadow: var(--shadow-2); font-size: 13.5px; }
.toast.bad { background: var(--critical); color: #FFFFFF; }
.signin { max-width: 460px; margin: 12vh auto; background: var(--surface); border: 0; box-shadow: var(--shadow-2); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.signin .btn.primary { align-self: flex-start; }
.dev-users { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 1040px) {
  #app.shell { display: block; }
  .top { border-right: 0; border-bottom: 1px solid var(--border); }
  .top-in { position: static; height: auto; max-height: none; overflow: visible; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav a { padding: 6px 11px; border-radius: 999px; }
  .who { flex-direction: row; align-items: center; border-top: 0; padding: 0; }
  .subnav { padding: 10px 16px 0; }
  main, main.narrow { padding: 20px 16px 48px; }
}
@media (max-width: 860px) {
  .split > .inspector { display: none; }
  .grid.two, .edit.inline { grid-template-columns: minmax(0, 1fr); }
  .strip > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .strip > div:last-child { border-bottom: 0; }
  h1 { font-size: 21px; }
  .filters .field select { max-width: 150px; }
}
@media print {
  .top, .subnav, .filters, .chart-foot, .banner, .tabs, .actions, .noprint { display: none; }
  #app.shell { display: block; }
  body { background: #fff; }
  .card, .tile { break-inside: avoid; }
}

/* ---------------------------------------------------------------- 0.8.0 */
.brand { flex-wrap: wrap; row-gap: 0; }
.brand small { flex-basis: 100%; padding-left: 31px; margin-top: -3px; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.search { padding: 0 2px; }
.search-in { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); font: inherit; font-size: 13px; color: var(--text); }
.search-in:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: var(--surface); }
.found-group { background: var(--surface); box-shadow: var(--shadow); border-radius: 12px; margin-bottom: 16px; overflow: hidden; padding-bottom: 6px; }
.found-group h2 { font-size: 13px; font-weight: 700; color: var(--text-2); padding: 12px 16px 8px; margin: 0; }
.found-group .count { font-weight: 500; color: var(--muted); }
.found-group > .btn { margin: 6px 12px; }
.qpick { display: flex; align-items: stretch; background: var(--surface); }
.qpick .pick { flex: none; width: 16px; height: 16px; margin: 16px 2px 0 12px; accent-color: var(--accent); }
.qpick .qrow { flex: 1 1 auto; min-width: 0; }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 9px 14px; margin-bottom: 10px; border-radius: 10px; background: var(--text); color: #fff; font-size: 13px; }
.bulk[hidden] { display: none; }
.bulk select, .bulk input { height: 30px; border-radius: 7px; border: 0; padding: 0 8px; font: inherit; font-size: 13px; }
.bulk .inline { display: inline-flex; align-items: center; gap: 6px; }
.bulk .btn.ghost { color: #D1D5DB; }
.keys { margin-top: 10px; }
kbd { display: inline-block; min-width: 18px; text-align: center; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; line-height: 18px; margin-right: 2px; }
.thread .note { padding: 10px 0; border-top: 1px solid var(--grid); }
.thread .note:first-child { border-top: 0; }
.thread .note .by { font-size: 12.5px; color: var(--muted); }
.thread .note .by strong { color: var(--text); }
.thread .note p { margin: 2px 0 0; white-space: pre-wrap; }
.note-add { margin-top: 8px; }
.note-add textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: inherit; }
.note-add .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.note-add select { height: 30px; border: 1px solid var(--border); border-radius: 7px; font: inherit; font-size: 13px; background: var(--surface); }
.history { margin-top: 10px; font-size: 13px; }
.history summary { cursor: pointer; color: var(--text-2); font-weight: 600; }
.history ul { list-style: none; margin: 6px 0 0; padding: 0; }
.history li { padding: 4px 0; color: var(--text-2); }
.history .when { color: var(--muted); }
.card-head h2 { font-size: 16px; margin: 0; }
.card-head .sub { margin: 2px 0 0; }
.progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; min-height: 20px; }
.progress progress { flex: 1 1 auto; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-2); accent-color: var(--accent); }
.progress progress::-webkit-progress-bar { background: var(--surface-2); }
.progress progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.progress progress::-moz-progress-bar { background: var(--accent); }
@media (max-width: 1040px) { .brand small { display: none; } .search { flex: 1 1 160px; } }

/* ---------------------------------------------------------------- 0.9.0 Ask */
.ask { display: flex; flex-direction: column; max-width: 900px; }
.ask-thread { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; min-height: 240px; max-height: 58vh; overflow-y: auto; }
.ask-start { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ask-q { align-self: flex-end; max-width: 78%; background: var(--accent); color: #fff; border-radius: 14px 14px 4px 14px; padding: 9px 14px; }
.ask-a { align-self: flex-start; max-width: 88%; background: var(--surface-2); border-radius: 14px 14px 14px 4px; padding: 10px 14px; }
.ask-a.bad { background: #FEF2F2; color: #7F1D1D; }
.ask-q p, .ask-a p { margin: 0 0 6px; white-space: pre-wrap; }
.ask-q p:last-child, .ask-a p:last-child { margin-bottom: 0; }
.ask-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.ask-form { padding: 12px 20px 16px; border-top: 1px solid var(--grid); }
.ask-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; }
.ask-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ask-form .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.ask-log { margin-top: 18px; max-width: 900px; }
.ask-log summary { cursor: pointer; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }

/* ---------------------------------------------------------------- 0.10.0 Unara look and the Focus-first screens */
h1 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 34px; letter-spacing: -.4px; }
.card, .tile, .queue, .inspector, .found-group { border: 1px solid var(--border); box-shadow: none; border-radius: 14px; }
main > .filters, main > div > .filters { border: 1px solid var(--border); box-shadow: none; border-radius: 14px; }
.btn { border-radius: 8px; box-shadow: none; }
.btn:hover { border-color: var(--teal); }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--teal); border-color: var(--teal); }
.btn.big { min-height: 44px; padding: 0 18px; font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.icon { flex: none; display: block; }
.tab.on { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.qrow.on { background: var(--teal-tint); border-left-color: var(--teal); }
.suggest { background: var(--teal-tint); color: var(--text); }
.suggest strong { color: var(--text); }
.ask-q { background: var(--navy-block); }
.ask-a.bad { background: var(--bad-bg); color: var(--bad-text); }
.bulk { background: var(--navy-block); }
.field.check input[type="radio"], .field.check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--teal); }
.checks.one { grid-template-columns: minmax(0, 1fr); margin-bottom: 4px; }
.card-body > .checks { margin-top: 4px; }

/* shell: a navy rail of icons on the left, a slim bar on top of the page */
#app.shell { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; }
.top { grid-column: 1; grid-row: 2 / span 3; background: var(--side); border-right: 0; }
.top-in { padding: 18px 0 14px; align-items: center; gap: 16px; }
.mark { display: block; border-radius: 12px; padding: 4px; }
.mark img { display: block; }
.top :focus-visible { outline-color: #FFFFFF; }
.nav { align-items: center; gap: 4px; flex: 1 1 auto; }
.nav a { width: 80px; padding: 9px 4px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  font-size: 11.5px; line-height: 1.25; font-weight: 500; color: var(--on-navy-2); overflow-wrap: anywhere; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #FFFFFF; }
.nav a.on { background: var(--navy-2); color: #FFFFFF; font-weight: 600; }
.bar { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px clamp(16px, 3vw, 40px) 0; max-width: 1440px; width: 100%; margin: 0 auto; }
.brand { padding: 0; font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.2px; flex-wrap: nowrap; gap: 7px; align-items: baseline; }
.brand::before { content: none; }
.brand small { flex-basis: auto; padding-left: 0; margin-top: 0; font-family: "Inter", system-ui, sans-serif; font-size: 13px; font-weight: 500; color: var(--text-2); }
.bar .search { flex: 1 1 220px; max-width: 420px; padding: 0; }
.search-in { height: 38px; border-radius: 19px; padding: 0 14px; background: var(--surface); border-color: var(--border); }
.search-in:focus { outline: 2px solid var(--teal); }
.who { flex-direction: row; align-items: center; gap: 12px; margin-left: auto; padding: 0; border-top: 0; font-size: 13px; color: var(--text-2); }
.who a { font-weight: 500; }
.subnav { grid-column: 2; grid-row: 3; padding: 12px clamp(16px, 3vw, 40px) 0; }
.subnav .tab.on { color: var(--text); border-bottom-color: var(--teal); }
main { grid-column: 2; grid-row: 4; max-width: 1440px; padding: 22px clamp(16px, 3vw, 40px) 64px; }
main.narrow { max-width: 980px; padding-top: 28px; }
#app.shell.quiet .bar, #app.shell.quiet .subnav { display: none; }

/* sign-in */
.signin-page { min-height: 100vh; display: flex; flex-wrap: wrap; }
.signin-brand { flex: 1 1 360px; background: var(--navy); color: #FFFFFF; padding: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.signin-brand img { display: block; max-width: 100%; height: auto; }
.signin-product { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -.4px; margin-top: 18px; }
.signin-line { color: var(--on-navy-2); font-size: 16px; line-height: 24px; max-width: 34ch; }
.signin-side { flex: 1 1 360px; display: flex; align-items: center; justify-content: center; padding: clamp(20px, 5vw, 56px); }
.signin { margin: 0; width: 100%; max-width: 440px; border: 1px solid var(--border); border-radius: 20px; box-shadow: none; padding: 32px; }
.signin h1 { font-size: 30px; line-height: 38px; }
.signin .btn.primary { min-height: 44px; padding: 0 22px; font-size: 15px; }
.dev-users .btn { min-height: 40px; }

/* Today */
.today-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; }
.today-title { flex: 1 1 280px; min-width: 0; }
.askbox { flex: 0 1 420px; min-width: 260px; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; border-radius: 22px; background: var(--surface); border: 1.5px solid var(--teal); }
.askbox .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.askbox input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14.5px; color: var(--text); }
.askbox:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.askbox .btn { border-radius: 16px; }
.resume { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; margin-bottom: 18px; border-radius: 14px; background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--text); }
.resume .icon { color: var(--amber-text); }
.resume p { flex: 1 1 260px; font-size: 14.5px; }
.hero { background: var(--navy-block); color: #FFFFFF; border-radius: 24px; padding: clamp(22px, 3vw, 34px); display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 20px; box-shadow: var(--shadow-2); }
.hero-main { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero-label { color: var(--on-navy-2); font-size: 14.5px; font-weight: 500; }
.hero h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.18; letter-spacing: -.6px; max-width: 24ch; }
.hero-sub { color: var(--on-navy-3); font-size: 15px; max-width: 56ch; }
.hero .loading { color: var(--on-navy-2); padding: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags .tag { padding: 6px 12px; border-radius: 8px; background: var(--navy-2); font-size: 14px; font-weight: 500; }
.tags .chip { padding: 5px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.tags .chip.bad, .tags .chip.warn { background: var(--amber); color: #13183F; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hero .btn.go { min-height: 50px; padding: 0 24px; border-radius: 12px; border: 0; background: var(--teal); color: #FFFFFF; font-size: 16.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.hero .btn.go:hover { background: #0B7F75; }
.hero .btn.alt { min-height: 50px; padding: 0 18px; border-radius: 12px; background: transparent; border: 1.5px solid var(--navy-line); color: #FFFFFF; font-size: 15px; font-weight: 600; }
.hero .btn.alt:hover { border-color: #FFFFFF; }
.hero :focus-visible { outline-color: #FFFFFF; }
.how { flex: 1 1 280px; max-width: 420px; background: var(--navy-2); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.how-title { font-weight: 600; font-size: 15.5px; }
.how ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.how li { display: flex; gap: 12px; font-size: 14.5px; line-height: 21px; color: var(--on-navy-3); }
.how .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #FFFFFF; display: grid; place-items: center; font-weight: 600; font-size: 13.5px; }
.today-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.today-rest { flex: 3 1 480px; min-width: 0; }
.today-side { flex: 2 1 340px; min-width: 0; }
.today-side:empty { display: none; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 22px 8px; margin-bottom: 20px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.panel-head h2 { font-size: 18px; line-height: 26px; }
.batches { list-style: none; margin: 10px 0 0; padding: 0; }
.batches li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.batches .mark { flex: none; width: 38px; height: 38px; padding: 0; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-weight: 600; font-size: 14px; }
.batches .what { flex: 1 1 220px; min-width: 0; }
.batches .what strong { display: block; font-weight: 600; font-size: 15px; }
.batches .what span { color: var(--text-2); }
.batches .btn { min-height: 40px; padding: 0 16px; font-weight: 600; }
.moved { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; padding: 20px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 20px; }
.moved-main { flex: 1 1 300px; min-width: 0; }
.moved-main .loading { padding: 0; }
.moved-label { color: var(--text-2); font-size: 14px; }
.moved-value { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -.4px; }
.moved-value span { font: 500 14px/20px "Inter", system-ui, sans-serif; letter-spacing: 0; color: var(--text-2); }
.moved progress { display: block; width: 100%; height: 10px; margin-top: 8px; border: 0; border-radius: 5px; overflow: hidden; background: var(--surface-2); accent-color: var(--amber); }
.moved progress::-webkit-progress-bar { background: var(--surface-2); }
.moved progress::-webkit-progress-value { background: var(--amber); border-radius: 5px; }
.moved progress::-moz-progress-bar { background: var(--amber); }
.moved-side { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; }
.moved-side strong { display: block; font-size: 20px; line-height: 26px; }
.moved-side span { color: var(--text-2); }
.progress progress { accent-color: var(--teal); }
.progress progress::-webkit-progress-value { background: var(--teal); }
.progress progress::-moz-progress-bar { background: var(--teal); }

/* Queues */
.qtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.qtile.tab { border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--surface); border: 1px solid var(--border); color: var(--text); min-height: 96px; }
.qtile.tab:hover { border-color: var(--teal); }
.qtile.tab.on { background: var(--navy-block); border-color: var(--navy-block); color: #FFFFFF; }
.qtile-name { font-size: 13px; font-weight: 600; }
.qtile .qtile-n { font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 600; margin: 0; opacity: 1; }
.qtile-amt { font-size: 12.5px; color: var(--text-2); min-height: 18px; }
.qtile.on .qtile-amt { color: var(--on-navy-2); }
.viewswitch { display: inline-flex; gap: 0; margin-bottom: 14px; border: 1px solid var(--border-2); border-radius: 9px; overflow: hidden; background: var(--surface); }
.viewswitch .btn { border: 0; border-radius: 0; padding: 7px 16px; font-weight: 600; background: transparent; }
.viewswitch .btn.on { background: var(--navy-block); color: #FFFFFF; }
.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-bottom: 14px; }
.lanes > .empty, .lanes > .loading, .lanes > .error, .lanes > .sub { grid-column: 1 / -1; }
.lane { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lane h3 { margin: 0; font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
.lane-count { color: var(--text-2); font-size: 13.5px; }
.lane-count strong { color: var(--text); }
.lane-top { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-height: 66px; font-size: 13px; }
.lane-top li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--grid); color: var(--text-2); }
.lane-top li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lane-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lane-actions .btn { min-height: 38px; font-weight: 600; }

/* Focus session */
.focus-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.focus-title { display: flex; flex-direction: column; min-width: 0; }
.focus-title strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.focus-title span { color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.focus-pos { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 160px; }
.segs { display: flex; gap: 5px; }
.segs span { flex: 1 1 0; height: 10px; border-radius: 5px; background: var(--surface-2); max-width: 64px; }
.segs .done, .segs .saved { background: var(--teal); }
.segs .parked { background: var(--amber); }
.segs .skipped, .segs .seen { background: var(--neutral-mark); }
.segs .now { background: var(--navy-block); outline: 2px solid var(--teal); outline-offset: 1px; }
@media (prefers-color-scheme: dark) { .segs .now { background: #FFFFFF; } }
.chip.timer { border: 0; cursor: pointer; padding: 7px 12px; font-size: 13px; background: var(--surface-2); color: var(--text); gap: 6px; }
.chip.timer.over { background: var(--amber-bg); color: var(--amber-text); }
.focus-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.focus-item, .focus-do { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; min-width: 0; }
.focus-item { flex: 3 1 440px; }
.focus-item .body { padding: 26px 28px; display: flex; flex-direction: column; gap: 20px; }
.focus-item .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: flex-start; }
.focus-item .head h2 { font-family: var(--font-display); font-size: 24px; line-height: 30px; letter-spacing: -.3px; }
.focus-item .head h2:focus { outline: none; }
.focus-item .amount { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.focus-item .steps strong { font-size: 15px; }
.focus-do { flex: 2 1 360px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.focus-do h2 { font-size: 17px; }
.focus-do .team { margin-top: 0; }
.focus-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.park { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-radius: 12px; background: var(--amber-bg); border: 1px solid var(--amber-line); }
.park input { flex: 1 1 200px; min-width: 0; height: 40px; border: 1px solid var(--border-2); border-radius: 8px; padding: 0 10px; background: var(--surface); color: var(--text); }
.focus-do .hint { margin-top: 2px; }
.focus-done { max-width: 620px; margin: 6vh auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.big-check { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-strong); display: grid; place-items: center; }
.tally { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--text-2); }
.tally strong { color: var(--text); font-size: 18px; }
.focus-done .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

@media (max-width: 1040px) {
  #app.shell { display: block; }
  .top { border-bottom: 0; }
  .top-in { position: static; height: auto; max-height: none; flex-direction: row; align-items: center; gap: 10px; padding: 8px 12px; overflow-x: auto; flex-wrap: nowrap; }
  .nav { flex-direction: row; flex-wrap: nowrap; }
  .nav a { width: auto; min-width: 68px; padding: 7px 10px; border-radius: 12px; }
  .bar { padding: 10px 16px 0; }
  .who { flex-wrap: wrap; }
  .subnav { padding: 10px 16px 0; }
  main, main.narrow { padding: 18px 16px 48px; }
  .brand small { display: inline; }
}
@media (max-width: 860px) {
  h1 { font-size: 22px; line-height: 30px; }
  .hero .btn.go, .hero .btn.alt { width: 100%; justify-content: center; }
  .focus-actions .btn { flex: 1 1 auto; justify-content: center; }
  .focus-item .amount { text-align: left; }
  .focus-item .body { padding: 22px 20px; }
  .focus-do { padding: 20px; }
}
@media print {
  .bar, .hero-actions, .askbox, .resume, .viewswitch, .lane-actions, .focus-actions, .focus-bar .btn { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .segs .now { animation: seg-now 2.4s ease-in-out infinite; } }
@keyframes seg-now { 50% { opacity: .6; } }

/* ---- 0.10.1: Billing rules, one card per company ---- */
.companies { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 0 0 16px; }
.company { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); min-width: 0; }
.company h3 { font-family: var(--font-display); font-size: 15px; line-height: 20px; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.company p { margin: 4px 0 0; font-size: 13.5px; line-height: 19px; color: var(--text-2); overflow-wrap: anywhere; }
.company p.sub { font-size: 12.5px; color: var(--muted); }

.tabs + p.sub { margin: 8px 0 12px; }
