/* Layout: a client portal — slim top bar, month-close status strip, tabbed workspace, ledger-style tables in mono. */
:root {
  --bg: #F5F2EA; --surface: #FBF8F0; --ink: #16190F; --muted: #6E7063; --line: #DEDACB;
  --primary: #47702A; --primary-ink: #FBF8F0; --primary-soft: #E7EEDA; --accent: #B4CB2E;
  --warn: #8A500F; --control-line: #74715F; --warn-soft: #F6E7CF; --bad: #A33A2B; --bad-soft: #F6DCD6;
  --font-sans: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14170F; --surface: #1C2016; --ink: #ECEADF; --muted: #8E9182; --line: #2C3124;
    --primary: #B4CB2E; --primary-ink: #1A2C12; --primary-soft: #27401A; --accent: #C9E75A;
    --warn: #E8B266; --control-line: #74715F; --warn-soft: #3A2D16; --bad: #F08B7A; --bad-soft: #3B1F1A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14170F; --surface: #1C2016; --ink: #ECEADF; --muted: #8E9182; --line: #2C3124;
  --primary: #B4CB2E; --primary-ink: #1A2C12; --primary-soft: #27401A; --accent: #C9E75A;
  --warn: #E8B266; --control-line: #74715F; --warn-soft: #3A2D16; --bad: #F08B7A; --bad-soft: #3B1F1A; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 1.5; padding-inline: 16px; padding-block: 0 48px; }
.wrap { max-width: 1080px; margin: 0 auto; }
.mono, td.num, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
button, input, textarea, select { font: inherit; color: inherit; }
/* form controls: 16px stops iOS zooming on focus; border meets 3:1 for controls */
input, textarea, select { font-size: 16px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 600; font-size: 13px; }


.steps { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.steps small { display: block; font-weight: 400; color: var(--muted); }
details.more > summary { cursor: pointer; color: var(--primary); font-size: 14px; margin-top: 8px; }
.steps li { font-size: 12px; color: var(--muted); border-top: 3px solid var(--line); padding-top: 7px; }
.steps li.done { border-color: var(--primary); color: var(--ink); }
.steps li.now { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.steps b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 11px; color: var(--muted); }

.count { font-family: var(--font-mono); font-size: 11px; background: var(--warn-soft); color: var(--warn); border-radius: 99px; padding: 1px 7px; }
.count.zero { background: var(--primary-soft); color: var(--primary); }

.up { color: var(--primary); }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.linkbtn { border: 0; background: none; color: var(--primary); cursor: pointer; padding: 0; font-weight: 500; text-decoration: underline; }

.pill { font-size: 12px; font-weight: 600; border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.pill.ok { background: var(--primary-soft); color: var(--primary); }
.pill.miss { background: var(--warn-soft); color: var(--warn); }
.pill.late { background: var(--bad-soft); color: var(--bad); }

.requests { display: grid; gap: 10px; }
.req { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; }
.req .t { font-weight: 600; font-size: 14px; }
.req .d { font-size: 13px; color: var(--muted); }
.req .files { grid-column: 1 / -1; font-size: 13px; font-family: var(--font-mono); color: var(--primary); }
.req .act { display: flex; gap: 8px; align-items: center; }
.btn { border: 1px solid var(--primary); background: var(--primary); color: var(--primary-ink); border-radius: 8px; padding: 7px 14px; cursor: pointer; font-weight: 500; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--primary); }

.q { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 8px; }
.q + .q { margin-top: 10px; }
.q .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.q .txn { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.q .ask { font-weight: 500; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.choice[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.q textarea { width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg); resize: vertical; }
.q .answered { font-size: 13px; color: var(--primary); }

.reportnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.sheet header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.sheet header h4 { margin: 0; font-size: 16px; }
.sheet header p { margin: 0; font-size: 13px; color: var(--muted); }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 14px; }
th, td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
th.num, td.num { text-align: right; white-space: nowrap; }
tr.group td { font-weight: 600; padding-top: 14px; border-bottom: 0; }
tr.ind td:first-child { padding-left: 22px; }
tr.sub td { font-weight: 600; }
tr.total td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 3px double var(--ink); }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; max-width: 70ch; }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 14px; max-width: calc(100% - 32px); }
footer { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 640px) { .steps:not(.n2):not(.n3) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .req { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .tab, .choice, .btn { transition: background .15s, color .15s, border-color .15s; } }

/* -- additions for the live portal -- */
a { color: var(--primary); }
.monthpick { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.monthpick select { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 10px; color: var(--ink); }
.flash { border-radius: 8px; padding: 9px 12px; font-size: 14px; margin-top: 14px; }
.flash.ok { background: var(--primary-soft); color: var(--primary); }
.flash.err { background: var(--bad-soft); color: var(--bad); }
input[type=file] { font-size: 13px; max-width: 100%; }
.thread { display: grid; gap: 10px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.msg.mine { background: var(--primary-soft); border-color: transparent; margin-left: min(12%, 60px); }
.msg .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.msg p { margin: 0 0 6px; } .msg ul, .msg ol { margin: 4px 0 6px; padding-left: 20px; }
.answer { margin-top: 14px; display: grid; gap: 8px; }
.answer textarea { width: 100%; min-height: 96px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface); resize: vertical; }
.answer .btn { justify-self: start; }
.answer .hint { font-size: 12px; color: var(--muted); }
.files { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 14px; }
.files li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.files a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-size: 14px; }
.staffbar { background: var(--warn-soft); color: var(--warn); font-size: 13px; padding: 8px 12px; border-radius: 8px; margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.staffbar form { display: inline; }
.signin { max-width: 420px; margin: 12vh auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.signin h1 { font-size: 22px; margin: 14px 0 6px; letter-spacing: -0.02em; }
.signin p { color: var(--muted); margin: 0 0 16px; }
.signin input[type=email] { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg); margin-bottom: 12px; }
.signin .btn { width: 100%; padding: 10px; }
.linkbtn { text-decoration: underline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* in-page report tables */
.reportnav a { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 12px; font-size: 13px; color: var(--ink); text-decoration: none; }
tr.ind td { font-weight: 400; }
tr.d1 td:first-child { padding-left: 14px; } tr.d2 td:first-child { padding-left: 28px; } tr.d3 td:first-child { padding-left: 42px; }
.sheetact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sheetact .btn { text-decoration: none; font-size: 13px; padding: 5px 12px; }
td.txt { white-space: nowrap; color: var(--muted); font-size: 13px; }
/* indentation follows nesting depth; account lines sit one step in from their section */
tr.d0 td:first-child { padding-left: 8px; } tr.ind.d0 td:first-child { padding-left: 22px; }
tr.ind.d1 td:first-child { padding-left: 36px; } tr.ind.d2 td:first-child { padding-left: 50px; } tr.ind.d3 td:first-child { padding-left: 64px; }
/* report pagination */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; }
.pager a, .pager span { border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; text-decoration: none; color: var(--ink); background: var(--surface); }
.pager .cur { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.pager .off { color: var(--muted); border-color: transparent; background: none; }
.pager .info { border: 0; background: none; color: var(--muted); margin-left: auto; }
.pager.compact { margin-top: 0; }
.monthpick .hint { font-size: 12px; color: var(--muted); }
/* balance sheet line details */
a.drill { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a.drill:hover { color: var(--primary); text-decoration-color: var(--primary); }
.detail .balance { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 0 0 14px; }
.detail .balance b { font-size: 22px; font-weight: 500; }
.detail h5 { margin: 14px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ties { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.ties li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; }
.ties .src { font-size: 13px; color: var(--muted); }
.ties .src a { color: var(--primary); }
.detail .note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.detail .note a { color: var(--primary); }
.detail small { color: var(--muted); }
/* support tables: books | statement | difference | comment, rows expand to invoices/entries */
table.support td.comment { font-size: 13px; min-width: 180px; }
table.support td.comment small { color: var(--muted); }
table.support td.comment small a { color: var(--primary); }
table.support tr.difference td { background: var(--bad-soft); }
table.support details summary { cursor: pointer; }
table.support details summary small { color: var(--muted); }
table.support ul.items { list-style: none; margin: 6px 0 2px 14px; padding: 0; display: grid; gap: 4px; font-size: 13px; }
table.support ul.items li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
table.support ul.items .muted { color: var(--muted); }
table.support ul.items a { color: var(--primary); }
table.support ul.recon { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
table.support ul.recon .mono { color: var(--bad); }
/* income statement detail: line, account, partner (folded) */
tr.cap td { font-weight: 600; padding-top: 10px; }
tr.child { display: none; }
tr.child.open { display: table-row; }
tr.child td { color: var(--muted); font-size: 13px; }
button.fold { border: 0; background: none; cursor: pointer; color: var(--primary); padding: 0 4px 0 0; font-size: 12px; }
form.inline { display: inline; margin: 0; }

/* -- UX review 2026-10-17: mobile layout, touch targets, cards -- */
.todo li { flex-wrap: wrap; }
.todo li > :last-child { overflow-wrap: anywhere; }
.files li { align-items: flex-start; }
.files .pill { flex: none; }
.signin label.field { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.signin input[type=email], .answer textarea, .q textarea, .monthpick select { border-color: var(--control-line); }
button[aria-busy="true"] { opacity: .6; cursor: progress; }
@media (max-width: 640px) {
  .linkbtn, .reportnav a, .btn, .pager a, .pager span:not(.info) { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .linkbtn { padding-inline: 4px; }
  button.fold { min-width: 44px; min-height: 44px; margin: -12px 0 -12px -14px; font-size: 14px; }
  details summary { padding-block: 10px; }
  .files li { min-height: 44px; align-items: center; }
  /* multi-column reports: the account column stays put while the figures scroll */
  .tablewrap th:first-child, .tablewrap td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 150px; }
  .tablewrap td[colspan]:first-child { position: static; }
  /* a section heading spans the whole row: its text stays anchored on the left instead */
  .tablewrap td[colspan] .grp { position: sticky; left: 8px; display: inline-block; max-width: min(58vw, 260px); }
  /* the account column never takes more than ~58% of the screen, so figures stay visible */
  .tablewrap th:first-child, .tablewrap td:first-child:not([colspan]) { max-width: min(58vw, 260px); overflow-wrap: break-word; }
  /* statement support: one card per line instead of a wide table */
  table.support { min-width: 0; }
  table.support thead { display: none; }
  table.support, table.support tbody, table.support tr, table.support td { display: block; width: 100%; }
  table.support tr { border-bottom: 1px solid var(--line); padding-block: 8px; }
  table.support td, .tablewrap table.support td:first-child { border: 0; padding: 3px 0; position: static; min-width: 0; text-align: left; }
  table.support td.num { display: flex; justify-content: space-between; gap: 12px; }
  table.support td:empty { display: none; }
  table.support td.num::before { content: attr(data-label); font-family: var(--font-sans); color: var(--muted); font-size: 13px; }
  table.support tr.total { border-top: 2px solid var(--ink); border-bottom: 3px double var(--ink); }
  table.support tr.total { display: flex; justify-content: space-between; gap: 12px; }
  table.support tr.total td { border: 0; width: auto; font-weight: 700; }
  table.support td.comment { min-width: 0; padding-top: 6px; }
}

/* -- simplified layout (2026-10-17): app bar, one nav, cards, one big number -- */
.appbar { display: flex; align-items: center; gap: 14px; padding-block: 14px; }
.appbar .brand { color: var(--ink); text-decoration: none; }
.appbar .company { flex: 1; min-width: 0; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 1px solid var(--line); padding-left: 14px; }
.avatar { width: 40px; height: 40px; cursor: pointer; list-style: none; }
.avatar::-webkit-details-marker { display: none; }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 2px; }
.menu.right { left: auto; right: 0; }
.menu p { margin: 6px 8px; font-size: 14px; }
.menu small { color: var(--muted); }
.menu form { margin: 6px 8px; }
.menu a { display: block; padding: 10px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.menu a:hover { background: var(--primary-soft); color: var(--primary); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.tab { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--ink); border-color: var(--primary); font-weight: 600; }
.ico { width: 20px; height: 20px; flex: none; }
.tab .count { font-family: var(--font-mono); font-size: 11px; font-weight: 600; background: var(--bad); color: var(--surface); border-radius: 99px; padding: 1px 7px; }

.pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 24px 14px; }
.pagehead h1 { margin: 0; font-size: clamp(24px, 4vw, 32px); font-weight: 600; letter-spacing: -0.03em; }
.panelhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 14px; }
.card h2 { margin: 0 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.hint { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.card > .hint:last-child { margin-bottom: 0; }
.label { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.action { border-color: var(--accent); }
.action-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.action-head .hint { margin: 0; }
.action .steps + .hint { margin: 12px 0 0; }

.hero .big { margin: 6px 0 4px; font-family: var(--font-mono); font-size: clamp(36px, 7vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.hero .hint { margin: 0; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 20px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; max-width: 64px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar span { display: block; width: 100%; height: var(--h); background: var(--primary-soft); border-radius: 6px 6px 0 0; }
.bar.now span { background: var(--primary); }
.bar small { font-size: 11px; color: var(--muted); font-family: var(--font-mono); margin-bottom: -20px; }
.hero:has(.bars) { padding-bottom: 32px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stat .value { margin: 6px 0 2px; font-family: var(--font-mono); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.stat .sub { margin: 0; font-size: 13px; color: var(--muted); }
.chg { font-weight: 600; }
.chg.up { color: var(--primary); }
.chg.down { color: var(--bad); }
.more-link { margin: 4px 0 18px; font-size: 14px; }
.more-link a { font-weight: 500; text-decoration: none; }
.team .todo { margin-top: 10px; }

.checklist { margin: 0 0 14px; padding-left: 20px; font-size: 14px; display: grid; gap: 4px; }
.drop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 2px dashed var(--control-line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.drop label { font-weight: 600; width: 100%; }
.drop input[type=file] { flex: 1; min-width: 0; }

.reportnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; align-items: center; }
.reportnav a, .reportnav summary { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 8px 14px; font-size: 14px; color: var(--ink); text-decoration: none; }
.reportnav a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; }
.reportnav summary { color: var(--primary); font-weight: 500; }
.reportnav .menu a { border: 0; border-radius: 8px; background: none; padding: 10px; }
.sheetact .dropdown > summary { display: inline-flex; align-items: center; }
.sheet { margin-bottom: 12px; }

footer { margin-top: 32px; }

@media (max-width: 640px) {
  .wrap { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  /* bottom navigation, app style */
  .tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 0;
          padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; gap: 0; }
  .tab { flex: 1; flex-direction: column; gap: 2px; padding: 6px 2px; min-height: 56px; justify-content: center; font-size: 11px; border-bottom: 0; margin: 0; position: relative; }
  .tab[aria-current="page"] { color: var(--primary); }
  .tab .count { position: absolute; top: 2px; left: calc(50% + 6px); font-size: 10px; padding: 0 5px; }
  .appbar .company { font-size: 14px; }
  .appbar .brand span { display: none; }
  .pagehead { padding-block: 12px 10px; }
  .card { padding: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px; }
  .stat .value { font-size: 20px; }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .reportnav a, .reportnav summary { min-height: 44px; display: inline-flex; align-items: center; }
  .pagehead .monthpick select { min-height: 44px; }
}
.bar em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.bar.now em { color: var(--ink); font-weight: 500; }
.bars { height: 140px; }
.team .todo { max-width: 520px; }
.card .q { border: 0; background: var(--bg); }
@media (min-width: 760px) {
  .hero:has(.bars) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 46%); gap: 24px; align-items: end; }
  .hero .bars { margin-top: 0; }
}
.pill.neutral { background: var(--bg); color: var(--muted); border: 1px solid var(--line); font-weight: 500; }

/* report tables: every figure column is the same width in every report (the account column takes
   the rest); headers wrap onto two lines rather than widening their column */
table.report { table-layout: fixed; min-width: calc(13rem + var(--cols, 2) * 7rem); }
table.report col.fig { width: 7rem; }
table.report col.txt { width: 8rem; }
table.report th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
table.report th.num, table.report td.num { padding-left: 12px; }
table.report td:first-child, table.report th:first-child { overflow-wrap: break-word; }
@media (max-width: 640px) {
  table.report col.fig { width: 6.75rem; }
  table.report col.txt { width: 7.5rem; }
  table.report col:first-child { width: min(58vw, 260px); }
  table.report { width: calc(min(58vw, 260px) + var(--cols, 2) * 6.75rem); min-width: 100%; }
}
table.report td.txt { white-space: normal; overflow-wrap: break-word; }
