/* Tallywright. Ledger and annual-report conventions: ruled tables, a green margin rule, notes at the foot. */
@font-face { font-family: "Besley"; src: url(../fonts/besley-latin-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Besley"; src: url(../fonts/besley-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; src: url(../fonts/fira-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; src: url(../fonts/fira-sans-latin-ext-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; src: url(../fonts/fira-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; src: url(../fonts/fira-sans-latin-ext-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; src: url(../fonts/fira-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; src: url(../fonts/fira-sans-latin-ext-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; src: url(../fonts/fira-sans-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Fira Sans"; src: url(../fonts/fira-sans-latin-ext-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F; }

:root {
  --paper: #F4F1E8; --sheet: #FDFCF8; --ink: #231F1A; --ink-2: #554F47; --ink-3: #666058;
  --accent: #1E5C46; --accent-tint: #E2ECE4; --feint: #C9C8B8; --edge: #827C72;
  --red: #A8261C; --red-tint: #F6E4E0; --warn: #855400; --warn-tint: #F5EBD3;
  --c1: #1E5C46; --c2: #A87800; --c3: #2F6FA8; --c4: #BF5A12; --c5: #A8507A; --c6: #3E8CBF; --c7: #85827A;
  --serif: "Besley", "Clarendon", "Rockwell", Georgia, serif;
  --sans: "Fira Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --top: 48px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/22px var(--sans); font-variant-numeric: lining-nums; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--sheet); padding: 8px 12px; border: 1px solid var(--ink); }
.skip:focus { top: 8px; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; line-height: 18px; }
.red { color: var(--red); }
.warn { color: var(--warn); }
.ok { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); background: var(--sheet); border-bottom: 1px solid var(--ink); display: flex; align-items: center; gap: 16px; padding: 0 16px 0 24px; }
.wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wordmark b { font: 700 18px/1 var(--serif); }
.wordmark span { font-size: 13px; color: var(--ink-2); }
.wordmark:hover b { text-decoration: underline; text-decoration-thickness: 1px; }
.top .grow { flex: 1; }
.asat { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.switcher-btn { font-weight: 500; }
.acct-btn .ini { display: none; }
.top .more { display: none; }

/* Buttons, inputs, segmented controls */
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--edge); border-radius: 2px; background: var(--sheet); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; font-size: 14px; line-height: 20px; }
.btn:hover { border-color: var(--ink); background: #fff; }
.btn:active { background: var(--accent-tint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #174a38; }
.btn.small { min-height: 30px; padding: 0 9px; font-size: 13px; }
.btn.danger { color: var(--red); }
.btn[disabled], .btn[aria-disabled="true"] { color: var(--ink-3); border-color: var(--feint); background: var(--sheet); cursor: not-allowed; }
.btn.primary[aria-disabled="true"] { background: var(--paper); color: var(--ink-3); border-color: var(--feint); }
.btn svg, .link svg { width: 16px; height: 16px; flex: none; }
.link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 4px 0; color: var(--accent); cursor: pointer; font-size: 14px; text-decoration: none; }
.link:hover, .link:focus-visible { text-decoration: underline; }
.link[aria-disabled="true"] { color: var(--ink-3); cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--edge); border-radius: 2px; background: var(--sheet); }
.seg button { border: 0; background: none; min-height: 30px; padding: 0 10px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--feint); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.seg button:hover:not([aria-pressed="true"]) { color: var(--ink); background: var(--accent-tint); }
.field { display: inline-flex; flex-direction: column; gap: 3px; }
.field > span, .lbl { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-2); }
.inline-field { display: inline-flex; align-items: center; gap: 8px; }
.inp, select.inp, textarea.inp { min-height: 34px; padding: 5px 9px; border: 1px solid var(--edge); border-radius: 2px; background: #fff; font-size: 14px; line-height: 22px; }
select.inp:not([multiple]) { padding-right: 28px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23231F1A' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 7px center; }
.inp:hover { border-color: var(--ink); }
.inp[disabled], .inp[aria-disabled="true"] { background: var(--paper); color: var(--ink-3); }
.inp.search { padding-left: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5' fill='none' stroke='%23554F47' stroke-width='1.5'/%3E%3Cpath d='M10.5 10.5L14 14' stroke='%23554F47' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 8px center; min-width: 260px; }
textarea.inp { width: 100%; min-height: 84px; resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
input[type="range"] { accent-color: var(--accent); }
.err { color: var(--red); font-size: 13px; }
.why { font-size: 13px; line-height: 18px; color: var(--ink-2); margin-top: 8px; }
.why::before { content: ""; display: inline-block; width: 6px; height: 6px; border: 1px solid var(--ink-2); margin-right: 7px; vertical-align: 1px; }

/* Menus */
.pop { position: absolute; z-index: 40; background: var(--sheet); border: 1px solid var(--edge); box-shadow: 0 1px 0 rgba(22, 32, 44, .08); min-width: 220px; padding: 6px 0; }
.pop[hidden] { display: none; }
.menu-item, [role="option"] { position: relative; display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 14px; cursor: pointer; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 20px; }
.menu-item:hover, [role="option"]:hover, [role="option"].active { background: var(--accent-tint); }
[role="option"][aria-selected="true"] { box-shadow: inset 2px 0 0 var(--accent); font-weight: 500; }
[role="option"] small, .menu-item small { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 17px; font-weight: 400; }
.pop h3 { font: 500 13px/18px var(--sans); color: var(--ink-2); padding: 8px 14px 4px; }
.pop hr { border: 0; border-top: 1px solid var(--feint); margin: 6px 0; }
.switch-pop { width: 340px; max-height: calc(100vh - 70px); overflow: auto; }
.acct-pop { width: 290px; right: 0; }
.acct-pop .who { padding: 6px 14px 8px; }
.acct-pop .who b { display: block; font-weight: 500; }
.menu-item[aria-checked="true"]::after { content: ""; position: absolute; right: 16px; top: 12px; width: 10px; height: 6px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); margin-top: 5px; }
.keys { padding: 4px 14px 8px; font-size: 13px; color: var(--ink-2); }
.keys div { display: flex; justify-content: space-between; }

/* Import banner */
.banner { background: var(--warn-tint); border-bottom: 1px solid #d9c79c; padding: 9px 24px; display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.banner p { flex: 1 1 520px; }
.banner p::before { content: ""; display: inline-block; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--warn); margin-right: 9px; vertical-align: -1px; }
.banner .why { margin: 0; }

/* Frame, rail, sheet */
.frame { display: grid; grid-template-columns: 168px minmax(0, 1180px); gap: 24px; padding: 24px 24px 72px; align-items: start; }
.rail { position: sticky; top: calc(var(--top) + 24px); font-size: 13px; line-height: 18px; }
.rail a { display: block; padding: 5px 0 5px 12px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; }
.rail a:hover { color: var(--ink); text-decoration: underline; }
.rail a[aria-current="true"] { color: var(--ink); border-left-color: var(--accent); }
.rail .rail-foot { margin-top: 18px; padding-left: 14px; color: var(--ink-3); }
.rail h3 { font: 500 13px/18px var(--sans); color: var(--ink-2); padding: 18px 0 4px 14px; }
main:focus { outline: none; }
.sheet { position: relative; background: var(--sheet); border: 1px solid var(--feint); padding: 40px 48px 56px 104px; min-height: 70vh; }
.sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50px; width: 5px; border-left: 1px solid var(--accent); border-right: 1px solid var(--accent); pointer-events: none; }
.fade { animation: fade .12s ease-out; }
@keyframes fade { from { opacity: .35; } to { opacity: 1; } }

/* Title block and sections */
.titleblock { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; align-items: start; }
h1 { font: 500 34px/40px var(--serif); letter-spacing: -.005em; }
h1 .edit { border: 0; border-bottom: 1px dashed var(--edge); background: none; font: inherit; padding: 0; width: 100%; max-width: 720px; }
h1 .edit:hover { border-bottom-color: var(--ink); }
.standfirst { font-size: 17px; line-height: 26px; max-width: 68ch; margin-top: 12px; color: var(--ink); }
.title-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ctrlrow { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin-top: 20px; }
.sec { position: relative; border-top: 1px solid var(--ink); padding-top: 12px; margin-top: 48px; }
.titleblock + .sec, .first-sec { margin-top: 56px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
h2 { font: 500 21px/28px var(--serif); }
h3 { font: 500 15px/22px var(--sans); }
.sec-head .actions { font-size: 14px; }
.lead-line { max-width: 72ch; margin: -4px 0 16px; }
.insights { margin: 0 0 16px; max-width: 76ch; }
.insights li { padding-left: 16px; position: relative; margin-bottom: 4px; }
.insights li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; border-top: 1px solid var(--ink); }
.mg { position: absolute; left: -96px; width: 40px; text-align: right; top: 14px; font-size: 12px; line-height: 16px; color: var(--ink-2); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mg a, .nref { color: var(--ink-2); text-decoration: none; font-size: 12px; }
.mg a:hover { color: var(--accent); text-decoration: underline; }
.amark { display: inline-block; width: 6px; height: 6px; background: var(--red); vertical-align: 2px; }
.amark.hollow { background: none; border: 1px solid var(--red); }
td .mg-mark { position: absolute; left: -84px; top: 50%; margin-top: -8px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.related { margin-top: 32px; font-size: 14px; display: flex; gap: 8px 24px; flex-wrap: wrap; }
.related span { color: var(--ink-2); }
.notes { counter-reset: n; font-size: 12.5px; line-height: 18px; color: var(--ink-2); max-width: 90ch; }
.notes li { counter-increment: n; display: grid; grid-template-columns: 24px 1fr; margin-bottom: 6px; }
.notes li::before { content: counter(n) "."; }
.notes em { font-style: italic; }
sup.fn a, sup.fn { font-size: 10.5px; color: var(--ink-2); text-decoration: none; margin-left: 2px; }

/* Figure list (not cards) */
.figlist dt { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-2); }
.figlist dd { font: 600 30px/34px var(--serif); margin-top: 2px; }
.figlist dd small { display: block; font: 400 13px/18px var(--sans); color: var(--ink-2); margin-top: 3px; }
.figlist div { padding: 12px 0; border-top: 1px solid var(--feint); }
.figlist div:first-child { border-top: 0; padding-top: 0; }
.figlist .sm dd { font-size: 21px; line-height: 26px; }
.position { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 32px; }

/* Tables */
.tw { position: relative; overflow-x: auto; margin-left: calc(-1 * var(--ml)); padding-left: var(--ml); }
.sheet { --ml: 104px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.t caption { text-align: left; }
.t th { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-2); text-align: left; vertical-align: bottom; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.t th.num { text-align: right; }
.t th:last-child, .t td:last-child { padding-right: 0; }
.t th .sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; text-align: inherit; }
.t th .sort:hover { color: var(--ink); }
.t th[aria-sort] .sort { color: var(--ink); }
.t th .sort svg { width: 10px; height: 10px; }
.t td { padding: 8px 10px 7px 0; border-bottom: 1px solid var(--feint); vertical-align: top; position: relative; }
.t.dense td { padding-top: 6px; padding-bottom: 5px; }
.t tbody tr:hover td { background: #F8F6EF; }
.t tbody tr.sel td { background: var(--accent-tint); }
.t tbody tr.click { cursor: pointer; }
.t td.name { max-width: 320px; }
.t td.name .trunc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t td a.rowlink, .t td button.rowlink { color: var(--ink); text-decoration: none; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; }
.t td a.rowlink:hover, .t td button.rowlink:hover { color: var(--accent); text-decoration: underline; }
.t td .sub { display: block; color: var(--ink-2); font-size: 13px; line-height: 18px; }
.t td .id { display: block; color: var(--ink-2); font-size: 13px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.t tr.subtotal td { border-top: 1px solid var(--ink); font-weight: 500; }
.t tr.total td { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); font-weight: 500; padding-top: 9px; padding-bottom: 8px; }
.t tr.unalloc td { color: var(--ink-2); font-style: normal; }
.t tr.muted-row td { color: var(--ink-2); }
.t td.cb, .t th.cb { width: 28px; padding-right: 6px; }
.t td.key { width: 22px; padding-right: 6px; }
.keysq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: 0; }
.t .bar-cell { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.minibar { position: relative; width: 64px; height: 6px; background: var(--paper); flex: none; }
.minibar i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--accent); }
.minibar i.over { background: var(--red); }
.minibar i.risk { background: var(--warn); }
.minibar b { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--ink); }
.usebar { position: relative; width: 90px; height: 8px; border: 1px solid var(--edge); flex: none; }
.usebar i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--accent); }
.usebar i.over { background: var(--red); }
.usebar i.risk { background: var(--warn); }
.usebar b { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--ink); }
.status { white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: 1px; background: var(--ink-2); }
.status.s-open::before, .status.s-over::before { background: var(--red); }
.status.s-over { color: var(--red); }
.status.s-risk::before { background: var(--warn); }
.status.s-risk { color: var(--warn); }
.status.s-ack::before { background: none; border: 1px solid var(--ink-2); }
.status.s-ok::before, .status.s-done::before { width: 9px; height: 5px; background: none; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); vertical-align: 3px; }
.status.s-ok, .status.s-done { color: var(--accent); }
.status.s-none::before { background: none; border: 1px dashed var(--ink-3); }
.status.s-dis::before { background: none; border-top: 1px solid var(--ink-2); height: 0; vertical-align: 4px; }
.risk-High { color: var(--red); }
.risk-Medium { color: var(--warn); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.pager .actions { gap: 8px; }
.vscroll { max-height: 560px; overflow: auto; border-bottom: 1px solid var(--feint); }
.vscroll thead th { position: sticky; top: 0; background: var(--sheet); z-index: 1; }
.bulk { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 8px 12px; background: var(--accent-tint); border: 1px solid #b9cfc0; margin-bottom: 10px; font-size: 14px; }
.bulk[hidden] { display: none; }
.empty { padding: 28px 0; color: var(--ink-2); border-bottom: 1px solid var(--feint); }
.empty b { color: var(--ink); font-weight: 500; display: block; margin-bottom: 6px; }
.skel { padding-top: 8px; }
.skel i { display: block; height: 10px; background: #ECE9DF; margin: 18px 0; }
.skel i:nth-child(3n) { width: 82%; } .skel i:nth-child(3n+1) { width: 94%; } .skel i:nth-child(4n) { width: 64%; }
.skel .t1 { height: 30px; width: 46%; margin-bottom: 26px; }
spark, .spark { display: inline-block; vertical-align: middle; }

/* Filters and chips */
.controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; margin-top: 24px; }
.controls + .controls { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; border: 1px solid var(--edge); border-radius: 2px; background: var(--sheet); font-size: 13px; padding-left: 9px; }
.chip button { border: 0; background: none; width: 26px; height: 26px; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.chip button:hover { color: var(--red); }
.chip button svg { width: 12px; height: 12px; }
.chip.locked { background: var(--accent-tint); border-color: #b9cfc0; padding-right: 9px; }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 4px 0 14px; }
.addfilter { width: 300px; padding: 12px 14px; }
.addfilter .vals { max-height: 260px; overflow: auto; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.addfilter .inp { width: 100%; }

/* Charts */
.chart { position: relative; }
.chart:focus-visible { outline-offset: 4px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); font-size: 12.5px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart text.lab { fill: var(--ink); }
.chart text.lab2 { fill: var(--ink-2); }
.chart .grid { stroke: var(--feint); stroke-width: 1; shape-rendering: crispEdges; }
.chart .zero { stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
.chart .guide { stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
.chart .budget { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 2; fill: none; }
.chart .fc { fill: var(--sheet); stroke: var(--accent); stroke-width: 1.5; }
.chart .band { fill: var(--accent-tint); stroke: none; }
.chart .band-edge { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 2; }
.chart .prev { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.chart .ln { fill: none; stroke-width: 1.75; stroke-linejoin: round; }
.chart .ln.dash { stroke-dasharray: 5 3; }
.chart .apt { fill: var(--red); stroke: var(--sheet); stroke-width: 1; }
.chart .hot { fill: var(--ink); stroke: var(--sheet); stroke-width: 1.5; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .partial-lab { fill: var(--warn); }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--sheet); border: 1px solid var(--ink); padding: 6px 9px; font-size: 13px; line-height: 18px; min-width: 170px; max-width: 290px; }
.tip[hidden] { display: none; }
.tip b { display: block; font-weight: 500; margin-bottom: 3px; }
.tip table { border-collapse: collapse; width: 100%; }
.tip td { padding: 1px 0; }
.tip td + td { text-align: right; padding-left: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-tools { display: flex; justify-content: flex-end; gap: 18px; margin-bottom: 4px; }
.chart-live { font-size: 13px; color: var(--ink-2); min-height: 18px; margin-top: 6px; }
.chart-unit { font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
.chart-table { max-height: 420px; overflow: auto; }
.panels .chart + .chart { margin-top: 4px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--accent); }
.chart-legend i.dash { border-top-style: dashed; border-top-color: var(--ink); border-top-width: 1px; }
.chart-legend i.box { height: 10px; width: 10px; border: 1.5px solid var(--accent); background: var(--sheet); }
.chart-legend i.rib { height: 10px; width: 14px; border: 0; background: var(--accent-tint); outline: 1px dashed var(--accent); }
.chart-legend i.hatch { height: 10px; width: 10px; border: 1px solid var(--warn); background: repeating-linear-gradient(45deg, var(--warn) 0 1px, transparent 1px 4px); }

/* Diverging movers */
.movers li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 96px; gap: 16px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--feint); }
.movers li:first-child { border-top: 1px solid var(--ink); }
.movers a { color: var(--ink); text-decoration: none; }
.movers a:hover { color: var(--accent); text-decoration: underline; }
.movers .sub { color: var(--ink-2); font-size: 13px; }
.dv { position: relative; height: 12px; }
.dv::before { content: ""; position: absolute; left: 50%; top: -5px; bottom: -5px; border-left: 1px solid var(--ink); }
.dv i { position: absolute; top: 0; bottom: 0; background: var(--ink-2); }
.dv i.up { left: 50%; background: var(--red); }
.dv i.down { right: 50%; background: var(--accent); }

/* Text summaries */
.prose p { max-width: 74ch; margin-bottom: 8px; }
.prose p .fig { font-variant-numeric: tabular-nums; font-weight: 500; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.three-text { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Allocation flow bar */
.flow { display: flex; height: 34px; border: 1px solid var(--ink); }
.flow > div { position: relative; min-width: 3px; border-right: 1px solid var(--sheet); }
.flow > div:last-child { border-right: 0; }
.flow .d { background: var(--accent); }
.flow .r1 { background: var(--c2); } .flow .r2 { background: var(--c3); } .flow .r3 { background: var(--c5); } .flow .r4 { background: var(--c6); } .flow .r5 { background: var(--c7); }
.flow .u { background: repeating-linear-gradient(45deg, var(--red) 0 1.5px, var(--sheet) 1.5px 6px); }
.flow-key { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 20px; margin-top: 12px; font-size: 13px; }
.flow-key div { border-left: 10px solid var(--accent); padding-left: 8px; }
.flow-key b { display: block; font-weight: 500; font-variant-numeric: tabular-nums; font-size: 14px; }
.flow-key .r1 { border-color: var(--c2); } .flow-key .r2 { border-color: var(--c3); } .flow-key .r3 { border-color: var(--c5); } .flow-key .r4 { border-color: var(--c6); } .flow-key .r5 { border-color: var(--c7); }
.flow-key .u { border-image: repeating-linear-gradient(45deg, var(--red) 0 1.5px, var(--sheet) 1.5px 5px) 1; }
.conserve { margin-top: 18px; padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 15px; }
.conserve b { font-weight: 500; }
.conserve .chk { color: var(--accent); margin-left: auto; }
.conserve .chk.bad { color: var(--red); }

/* Statement */
.stmt-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 24px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--feint); margin-top: 24px; font-size: 14px; }
.stmt-head dt { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.stmt-total { font: 600 30px/34px var(--serif); }
.noperm { padding: 40px 0; max-width: 60ch; }
.noperm h2 { margin-bottom: 8px; }

/* Forms in drawers */
.form { display: grid; gap: 14px; }
.form .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form label.blk { display: flex; flex-direction: column; gap: 3px; }
.form fieldset { border: 0; border-top: 1px solid var(--feint); padding: 12px 0 0; margin: 0; }
.form legend { font-weight: 500; font-size: 14px; padding: 0 8px 0 0; }
.clause { display: grid; grid-template-columns: 1fr 0.8fr 1.4fr 32px; gap: 6px; margin-bottom: 6px; align-items: start; }
.clause .inp { width: 100%; min-width: 0; }
.splitrow { display: grid; grid-template-columns: 1fr 90px 32px; gap: 6px; margin-bottom: 6px; }
.iconbtn { border: 1px solid var(--edge); background: var(--sheet); width: 32px; height: 34px; border-radius: 2px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.iconbtn:hover { border-color: var(--ink); }
.iconbtn svg { width: 14px; height: 14px; }
.iconbtn[disabled] { color: var(--feint); cursor: not-allowed; }
.preview { background: var(--paper); padding: 12px 14px; border-left: 3px solid var(--accent); font-size: 14px; }
.history li { border-top: 1px solid var(--feint); padding: 8px 0; font-size: 13px; }
.history li b { font-weight: 500; }
.method p { margin-bottom: 6px; max-width: 64ch; }
.wkbars { display: inline-flex; gap: 3px; align-items: flex-end; height: 34px; vertical-align: middle; margin-left: 8px; }
.wkbars i { width: 9px; background: var(--accent); display: block; }
.wkbars i.neg { background: var(--ink-3); }
.handle { cursor: grab; color: var(--ink-3); display: inline-flex; vertical-align: middle; }
.handle svg { width: 14px; height: 14px; }
.t tr.dragging td { opacity: .45; }
.t tr.dropline td { box-shadow: inset 0 2px 0 var(--accent); }
.ord { display: inline-flex; gap: 2px; margin-left: 6px; }
.ord .iconbtn { width: 26px; height: 26px; }
.toggle { width: 18px; height: 18px; accent-color: var(--accent); }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(35, 31, 26, .18); z-index: 44; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100%; background: var(--sheet); border-left: 1px solid var(--edge); box-shadow: 0 1px 0 rgba(22, 32, 44, .08); z-index: 45; display: flex; flex-direction: column; animation: slide .16s ease-out; }
.drawer.wide { width: 640px; }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--ink); }
.drawer-head h2 { font-size: 21px; line-height: 27px; overflow-wrap: anywhere; }
.drawer-head .sub { font-size: 13px; color: var(--ink-2); margin-top: 3px; overflow-wrap: anywhere; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 24px 32px; }
.drawer-body > * + * { margin-top: 22px; }
.drawer-body h3 { border-top: 1px solid var(--ink); padding-top: 8px; margin-bottom: 8px; }
.closebtn { border: 1px solid transparent; background: none; width: 36px; height: 36px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.closebtn:hover { border-color: var(--edge); }
.closebtn svg { width: 16px; height: 16px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 14px; }
.kv dt { color: var(--ink-2); }
.kv dd { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.modal { position: fixed; z-index: 60; left: 50%; top: 22vh; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); background: var(--sheet); border: 1px solid var(--ink); padding: 20px 22px; }
.modal h2 { font-size: 19px; margin-bottom: 8px; }
.modal .actions { margin-top: 18px; justify-content: flex-end; gap: 10px; }

/* Calendar */
.datebtn { min-width: 210px; justify-content: space-between; }
.cal-pop { padding: 12px 14px; width: 600px; }
.cal-pop .presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cal-pop .typed { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.cal-pop .typed .inp { width: 130px; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal { border-collapse: collapse; width: 100%; font-size: 13px; }
.cal caption { font-weight: 500; text-align: left; padding-bottom: 6px; }
.cal th { font-weight: 500; color: var(--ink-3); padding: 2px; }
.cal td { padding: 1px; text-align: center; }
.cal button { width: 100%; height: 30px; border: 1px solid transparent; background: none; cursor: pointer; font-variant-numeric: tabular-nums; }
.cal button:hover { border-color: var(--edge); }
.cal button[disabled] { color: var(--feint); cursor: default; }
.cal button.inr { background: var(--accent-tint); }
.cal button.end { background: var(--accent); color: #fff; }

/* Toasts, live, journey */
body.journeying { padding-bottom: var(--jh, 0px); }
body.journeying .drawer { bottom: var(--jh, 0px); }
body.journeying #toasts { bottom: calc(24px + var(--jh, 0px)); }
#toasts { position: fixed; left: 24px; bottom: 24px; z-index: 70; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: var(--sheet); padding: 9px 14px; font-size: 14px; max-width: 420px; }
.journey-outline { position: absolute; z-index: 35; border: 2px solid var(--accent); outline: 4px solid rgba(226, 236, 228, .85); pointer-events: none; transition: all .2s ease-out; }
.journey { position: fixed; left: 0; right: 0; bottom: 0; z-index: 66; background: var(--sheet); border-top: 1px solid var(--ink); padding: 12px 24px; display: flex; gap: 12px 24px; align-items: center; flex-wrap: wrap; }
.journey p { flex: 1 1 460px; max-width: 86ch; }
.journey .stepn { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.demo-pop { width: 300px; right: 0; padding: 8px 0 10px; }
.demo-pop p { padding: 4px 14px; font-size: 13px; color: var(--ink-2); }

/* Responsive */
@media (max-width: 1280px) {
  .sheet { padding-right: 32px; }
  .position { grid-template-columns: minmax(0, 1fr) 220px; }
}
@media (max-width: 1100px) {
  .top .acct-btn .nm { display: none; }
  .top .acct-btn .ini { display: inline; }
}
@media (max-width: 900px) { .wordmark span { display: none; } }
@media (max-width: 1023px) {
  .frame { display: block; padding: 0 0 72px; }
  .rail { position: sticky; top: var(--top); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--feint); display: flex; overflow-x: auto; white-space: nowrap; padding: 0 12px; scrollbar-width: none; }
  .rail a { display: inline-block; border-left: 0; border-bottom: 2px solid transparent; padding: 12px 10px 10px; min-height: 44px; }
  .rail a[aria-current="true"] { border-bottom-color: var(--accent); }
  .rail .rail-foot, .rail h3, .rail .saved { display: none; }
  .sheet { border-left: 0; border-right: 0; padding: 32px 28px 48px 80px; --ml: 80px; }
  .sheet::before { left: 34px; }
  .mg { left: -72px; width: 30px; }
  .asat { display: none; }
  html { scroll-padding-top: 110px; }
}
@media (max-width: 860px) {
  .position, .two, .three-text { grid-template-columns: minmax(0, 1fr); }
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .title-tools { align-items: flex-start; }
  .top .acct-btn .nm { display: none; }
  .top .acct-btn .ini { display: inline; }
  .cal-pop { width: 320px; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-months > :nth-child(2) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 24px; }
  .top { padding: 0 6px 0 14px; gap: 8px; }
  .wordmark span, .top .cur-seg, .top .acct-wrap, .top .demo-wrap { display: none; }
  .top .more { display: inline-flex; }
  .top .grow { display: none; }
  .switcher-btn { flex: 1; min-width: 0; justify-content: space-between; }
  .switcher-btn .lbl-txt { overflow: hidden; text-overflow: ellipsis; }
  .btn { min-height: 44px; }
  .seg button { min-height: 40px; }
  .switch-pop, .acct-pop { position: fixed; left: 8px !important; right: 8px; width: auto; top: 52px !important; }
  .banner { padding: 10px 16px; }
  .sheet { padding: 24px 16px 40px 28px; --ml: 0px; }
  td .mg-mark { position: static; display: inline-flex; width: auto; height: auto; margin: 0 6px 0 0; vertical-align: 1px; }
  .sheet::before { left: 12px; width: 4px; }
  .mg { display: none; }
  h1 { font-size: 26px; line-height: 32px; }
  h2 { font-size: 19px; line-height: 26px; }
  .figlist dd { font-size: 26px; line-height: 30px; }
  .standfirst { font-size: 16px; line-height: 24px; }
  .t { font-size: 15px; line-height: 22px; }
  .chip { min-height: 44px; }
  .chip button { width: 40px; height: 42px; }
  .inp.search { min-width: 0; width: 100%; }
  .controls > * { flex: 1 1 140px; }
  .controls .field .inp, .controls .field .seg { width: 100%; }
  .seg { display: flex; }
  .seg button { flex: 1; }
  /* stacked rows */
  .t.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .t.stack, .t.stack tbody, .t.stack tfoot, .t.stack tr, .t.stack td { display: block; width: 100%; }
  .t.stack tr { border-bottom: 1px solid var(--feint); padding: 10px 0; }
  .t.stack tr.total { border-bottom: 3px double var(--ink); border-top: 1px solid var(--ink); }
  .t.stack td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .t.stack tr.total td, .t.stack tr.subtotal td { border: 0; }
  .t.stack td::before { content: attr(data-label); color: var(--ink-2); font-size: 14px; text-align: left; font-weight: 400; }
  .t.stack td.first { display: block; text-align: left; font-weight: 500; padding-bottom: 4px; }
  .t.stack td.first::before { content: none; }
  .t.stack td.cb { position: absolute; right: 0; width: auto; }
  .t.stack tr { position: relative; }
  .t.stack td.cb::before, .t.stack td.key::before { content: none; }
  .t.stack td.key { display: none; }
  .t.stack td.ph-hide, .t.stack th.ph-hide { display: none; }
  .t.stack td.name { max-width: none; }
  .t.stack td .bar-cell { justify-content: flex-end; }
  .t.stack tr.expanded td.ph-hide { display: flex; }
  .t.stack .exp { display: inline-flex; }
  .t td.cb input { width: 22px; height: 22px; }
  .movers li { grid-template-columns: minmax(0, 1fr) 90px; }
  .movers .dv { grid-column: 1 / -1; order: 3; }
  .drawer, .drawer.wide { width: 100%; border-left: 0; }
  .drawer-body { padding: 16px 16px 40px; }
  .clause { grid-template-columns: 1fr 1fr; }
  .clause > :nth-child(3) { grid-column: 1 / 2; }
  .journey { padding: 10px 16px; }
  .journey p { flex-basis: 100%; }
  #toasts { left: 12px; right: 12px; bottom: 12px; }
  .vscroll { max-height: 70vh; }
  .cal-pop { position: fixed !important; left: 8px !important; right: 8px; top: 60px !important; width: auto; }
}
.exp { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .sheet::before { border-color: CanvasText; }
  .status::before { forced-color-adjust: none; }
}
.chart .ph { display: none; }
@media (forced-colors: active) { .chart .ph { display: inline; } }
.chart-tools .chart-unit { margin-right: auto; margin-bottom: 0; align-self: center; }
.chart-legend i.box.solid { background: var(--accent); }
.print-head, .print-foot { display: none; }
[tabindex="-1"]:focus { outline: none; }
.t td.nw, .t th.nw { white-space: nowrap; }
.stmt { max-width: 760px; } .stmt td.ind { padding-left: 16px; } .lead-line.after { margin-top: 14px; }
.stmt tr.grp td { font-weight: 500; border-bottom: 0; padding-top: 16px; }
.stmt td .sub { font-size: 13px; }
.variants li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 10px 0; border-bottom: 1px solid var(--feint); align-items: center; }
.variants li:first-child { border-top: 1px solid var(--ink); }
.variants .vals span { display: block; font-variant-numeric: tabular-nums; }
h3.subhead { margin: 36px 0 4px; font-size: 15px; font-weight: 600; }
.t td.cb + td .mg-mark { left: -110px; }
.drawer .t td.name { max-width: 260px; }
@media (max-width: 640px) { .t.stack td .id, .t.stack td .trunc { max-width: 62vw; } .t.stack td.first { min-width: 0; } }
@media (max-width: 860px) { .position > .figlist { order: -1; } .position .figlist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; } .position .figlist div:first-child, .position .figlist div:nth-child(2) { grid-column: 1 / -1; } .position .figlist div:nth-child(2) { border-top: 1px solid var(--feint); padding-top: 12px; } }
.settings > summary { display: none; }
@media (max-width: 640px) {
  .settings { margin-top: 20px; border-top: 1px solid var(--feint); border-bottom: 1px solid var(--feint); }
  .settings > summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; font-weight: 500; list-style: none; }
  .settings > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
  .settings[open] > summary::after { transform: rotate(-135deg); }
  .settings .controls:first-of-type { margin-top: 4px; }
  .settings[open] { padding-bottom: 16px; }
  .t.stack tr:has(td.cb) { padding-right: 40px; }
  .t.stack td.cb { top: 8px; }
}

.cv { display: block; }
@media (max-width: 640px) { .t.stack td > .cv { flex: 0 1 auto; min-width: 0; text-align: right; } }
@media (max-width: 640px) { .drawer-body table.t:not(.stack), .chart-table table.t { display: block; overflow-x: auto; } }

.hit { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; min-height: 22px; cursor: pointer; }
.ph-key { display: none; }
@media (max-width: 640px) { .t.stack tfoot td:empty { display: none; } }
.vals-box { max-height: 150px; overflow: auto; border: 1px solid var(--edge); border-radius: 2px; background: #fff; padding: 4px 8px; display: flex; flex-direction: column; }
.vals-box .check { min-height: 30px; }
.vals-box[aria-disabled="true"] { background: var(--paper); color: var(--ink-3); }
.tabs-note { margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }
.t td .trunc.cause { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
@media (max-width: 640px) {
  .t td a.rowlink, .t td button.rowlink { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; }
  .t th .sort { min-height: 44px; }
  .hit { min-width: 44px; min-height: 44px; }
  .t.stack td.cb { top: 0; right: -6px; }
  .toggle { width: 22px; height: 22px; }
  label:has(> .toggle), td:has(> .cv > .toggle) .cv { min-height: 44px; }
  .t.stack td:has(.toggle) { min-height: 44px; align-items: center; }
  .link { min-height: 44px; }
  .btn.small, .iconbtn, .ord .iconbtn { min-height: 44px; min-width: 44px; }
  .ph-key { display: inline-block; margin-right: 8px; }
  .vals-box .check { min-height: 44px; }
  .check { min-height: 44px; }
  .menu-item, [role="option"] { min-height: 44px; }
  .mg a, sup.fn a { display: inline-block; min-width: 24px; }
}
td .mg-mark { left: calc(22px - var(--ml)); }
.t td.cb + td .mg-mark { left: calc(22px - var(--ml) - 34px); }
@media (max-width: 640px) { td .mg-mark, .t td.cb + td .mg-mark { left: auto; } }
@media (max-width: 1200px) { .asat { display: none; } }
@media (max-width: 640px) {
  .wordmark { min-height: 44px; align-items: center; }
  .top .more { min-width: 44px; justify-content: center; }
  .seg button { min-height: 44px; }
  .t th .sort { min-width: 44px; }
  .inp, select.inp, textarea.inp { min-height: 44px; }
  input[type="range"] { height: 44px; }
  .closebtn { width: 44px; height: 44px; }
  .related a, .sec-head .actions a, .tabs-note a, .drawer-body p > a:only-child, .chart-tools .link { display: inline-flex; align-items: center; min-height: 44px; }
  .t td a.rowlink, .t td button.rowlink { min-width: 44px; }
  h1 .edit { min-height: 44px; }
}
.pop > p { padding: 4px 14px 6px; font-size: 13px; color: var(--ink-2); }
.chart-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
@media (max-width: 640px) { .link { min-width: 44px; justify-content: center; } }
