:root {
  color-scheme: light;
  --paper: #f2f4f1;
  --surface: #fcfdfb;
  --ink: #17241f;
  --ink-2: #44544c;
  --muted: #66766e;
  --rule: #d6ded8;
  --rule-soft: #e6ebe7;
  --green: #1e6b4e;          /* text green */
  --cash: #13875a;           /* chart: cash generated */
  --ebitda: #4f79bf;         /* chart: EBITDA */
  --lev: #8f520f;            /* leverage warning text */
  --neg: #a23a2e;
  --est: #edf1f7;
  --focus: #2f62b8;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #111815; --surface: #161f1b; --ink: #e2e9e4; --ink-2: #b5c2ba; --muted: #8e9d95;
    --rule: #2a3630; --rule-soft: #212b26; --green: #5fbf92; --cash: #2a9a69; --ebitda: #5f86c9;
    --lev: #d99a52; --neg: #e58474; --est: #1b2430; --focus: #7fa5ea;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111815; --surface: #161f1b; --ink: #e2e9e4; --ink-2: #b5c2ba; --muted: #8e9d95;
  --rule: #2a3630; --rule-soft: #212b26; --green: #5fbf92; --cash: #2a9a69; --ebitda: #5f86c9;
  --lev: #d99a52; --neg: #e58474; --est: #1b2430; --focus: #7fa5ea;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans);
       font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 2rem; line-height: 1.15; }
h2 { font-size: 1.15rem; line-height: 1.3; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- frame */
.topbar { display: flex; align-items: baseline; gap: 2rem; padding: 0.9rem 1.5rem;
          border-bottom: 1px solid var(--rule); background: var(--surface); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.topbar nav { display: flex; gap: 1.25rem; }
.topbar nav a { text-decoration: none; color: var(--muted); padding-bottom: 2px; }
.topbar nav a[aria-current] { color: var(--ink); border-bottom: 2px solid var(--green); }
main { max-width: 1240px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }
main.wide { max-width: none; }
.flash { max-width: 1240px; margin: 1rem auto 0; padding: 0 1.5rem; }
.flash p { margin: 0; padding: 0.6rem 0.9rem; background: var(--surface); border-left: 3px solid var(--green); }

/* ---- screener */
.screener-head { margin-bottom: 1.25rem; }
.lede { color: var(--ink-2); margin: 0.4rem 0 0; max-width: 70ch; }
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: flex-end; margin-bottom: 1rem; }
.filters label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; color: var(--muted); }
.filters .f-search input { width: 16rem; }
.count { margin: 0 0 0.4rem auto; color: var(--muted); font-size: 0.85rem; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
                          padding: 0.4rem 0.55rem; min-height: 2.25rem; max-width: 100%; }
textarea { width: 100%; resize: vertical; }
button { background: var(--ink); color: var(--paper); border: 0; border-radius: 4px; padding: 0.45rem 0.9rem;
         cursor: pointer; font-weight: 500; min-height: 2.25rem; }
button.link { background: none; color: var(--muted); padding: 0; min-height: 0; font-weight: 400;
              text-decoration: underline; text-underline-offset: 3px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; }
.screen th, .screen td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--rule-soft); text-align: left;
                         vertical-align: middle; white-space: nowrap; }
.screen thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); font-size: 0.78rem;
                   font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--rule); white-space: normal;
                   vertical-align: bottom; line-height: 1.25; hyphens: none; }
.screen th[data-sort] { cursor: pointer; user-select: none; }
.screen th[aria-sort="ascending"]::after { content: " ▲"; font-size: 0.65em; }
.screen th[aria-sort="descending"]::after { content: " ▼"; font-size: 0.65em; }
.screen tbody tr:hover { background: var(--paper); }
.num { text-align: right !important; }
/* columns size to their figures; headings wrap; the company column takes the spare width */
.screen .col-name { width: 100%; min-width: 14rem; }
#screen .col-name { position: sticky; left: 0; z-index: 1; background: var(--surface); }
#screen thead .col-name { z-index: 3; }
#screen tbody tr:hover .col-name { background: var(--paper); }
.col-name a { font-weight: 600; text-decoration: none; }
.col-name a:hover { text-decoration: underline; }
.tick { display: block; font-size: 0.78rem; color: var(--muted); }
.stale { color: var(--muted); font-style: italic; }
.past { color: var(--muted); }
.lev { color: var(--lev); font-weight: 600; }
.ccy { color: var(--muted); font-size: 0.75rem; }
.screen.narrow { width: auto; background: var(--surface); }
.foot { color: var(--muted); font-size: 0.82rem; margin-top: 0.75rem; }
.flagcount { color: var(--lev); font-weight: 600; }
form.inline { display: flex; gap: 0.5rem; }
.h2-gap { margin: 2rem 0 0.75rem; }

/* the cash-conversion bar - the one strong element */
.conv { min-width: 9.5rem; }
.conv .bar { display: inline-block; width: 5.5rem; height: 0.55rem; border-radius: 4px;
             background: var(--rule-soft); vertical-align: middle; overflow: hidden; }
.conv .fill { display: block; height: 100%; background: var(--cash); border-radius: 4px; }
.conv .fill.neg { background: repeating-linear-gradient(135deg, var(--neg) 0 3px, transparent 3px 6px); }
.conv .pct { display: inline-block; width: 3.2rem; text-align: right; margin-left: 0.4rem; }

.stance { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 0.1rem 0.5rem;
          border-radius: 999px; border: 1px solid currentColor; }
.s-buy { color: var(--green); }
.s-hold { color: var(--ebitda); }
.s-watch { color: var(--lev); }
.s-sell, .s-avoid { color: var(--neg); }
.s-none { color: var(--muted); }
.stance.big { font-size: 1rem; padding: 0.2rem 0.8rem; }

/* ---- company */
.co-head { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start;
           padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; color: var(--ink-2); margin: 0.5rem 0 0; }
.stance-box { min-width: 15rem; text-align: right; }
.stance-box dl { margin: 0.6rem 0 0; }
.stance-box dl div { display: flex; justify-content: flex-end; gap: 0.5rem; }
.stance-box dt { color: var(--muted); }
.stance-box dd { margin: 0; font-weight: 600; }
.stance-note { color: var(--ink-2); font-size: 0.9rem; margin: 0.4rem 0 0; }
details.edit { margin-top: 0.75rem; text-align: left; }
details.edit summary { cursor: pointer; color: var(--muted); text-align: right; font-size: 0.9rem; }
.stack { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.75rem; }
.stack label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; color: var(--ink-2); }
.stack .row { display: flex; gap: 0.5rem; }
.stack .row select { flex: 1; min-width: 0; }
.stack button { align-self: flex-start; }

.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.5rem; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.2rem;
         margin-bottom: 1.5rem; }
.panel .table-wrap { border: 0; border-radius: 0; margin: 0 -1.2rem -1.1rem; }
.sub { color: var(--muted); font-size: 0.85rem; margin: 0.25rem 0 0.9rem; }

.fig th, .fig td { padding: 0.38rem 0.75rem; border-bottom: 1px solid var(--rule-soft); white-space: nowrap; }
.fig thead th { font-size: 0.78rem; color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--rule); }
.fig tbody th { text-align: left; font-weight: 400; color: var(--ink-2); position: sticky; left: 0;
                background: var(--surface); min-width: 13rem; }
.fig thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 13rem; }
.fig tbody th { z-index: 1; }
.fig .est { background: var(--est); font-style: italic; color: var(--ink-2); }
.fig tr.em th, .fig tr.em td { font-weight: 600; color: var(--ink); }
.hint { display: inline-block; margin-left: 0.35rem; width: 1rem; height: 1rem; line-height: 1rem;
        text-align: center; font-size: 0.68rem; border: 1px solid var(--rule); border-radius: 50%; color: var(--muted); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lev);
       margin-left: 4px; vertical-align: middle; }
.src-override { box-shadow: inset 3px 0 0 var(--lev); }
.src-workbook { color: var(--ebitda); }
.src-key { font-size: 0.8rem; padding: 0 0.4rem; margin-left: 0.5rem; }

.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--rule); margin: 0 -1.2rem; padding: 0 1.2rem; }
.tabs button { background: none; color: var(--muted); border-radius: 0; padding: 0.5rem 0.75rem;
               border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--green); }

.note { border-top: 1px solid var(--rule-soft); padding: 0.7rem 0; }
.note p { margin: 0; }
.note footer { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: var(--muted);
               margin-top: 0.3rem; }
.flag-warn p::before { content: "⚠ "; color: var(--lev); }
.empty { color: var(--muted); font-size: 0.9rem; }
.hist { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.hist li { padding: 0.3rem 0; border-top: 1px solid var(--rule-soft); }

/* chart */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; font-size: 0.85rem; color: var(--ink-2); }
.legend .li { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: 1rem; white-space: nowrap; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.k-ebitda { background: var(--ebitda); }
.k-cash { background: var(--cash); }
.chart { position: relative; margin-top: 0.75rem; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--rule-soft); }
.chart .zero { stroke: var(--rule); }
.chart text { fill: var(--muted); font: 12px var(--sans); }
.chart .lbl { fill: var(--ink-2); font-weight: 600; }
.chart .b-ebitda { fill: var(--ebitda); }
.chart .b-cash { fill: var(--cash); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover { fill: var(--ink); fill-opacity: 0.04; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 0.82rem;
       padding: 0.45rem 0.6rem; border-radius: 4px; white-space: nowrap; transform: translate(-50%, -110%); }
.tip b { font-weight: 600; }

@media (max-width: 960px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-head { flex-direction: column; }
  .stance-box { text-align: left; }
  .stance-box dl div { justify-content: flex-start; }
  details.edit summary { text-align: left; }
}
@media (max-width: 640px) {
  main { padding: 1.25rem 1rem 2.5rem; }
  .topbar { padding: 0.8rem 1rem; gap: 1rem; flex-wrap: wrap; }
  h1 { font-size: 1.6rem; }
  .filters .f-search input { width: 100%; }
  .filters label { flex: 1 1 45%; }
  .count { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- interim views, links, figures page */
.links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.25rem; margin: 0.6rem 0 0; }
.links a { color: var(--ebitda); font-weight: 500; }
.inline-edit summary { cursor: pointer; color: var(--muted); font-size: 0.88rem; }
.inline-edit .row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.inline-edit input { width: 22rem; }
.srcnote { font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-left: 0.3rem; }
.est-date { font-style: italic; color: var(--muted); }
.viewbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg a { padding: 0.4rem 0.9rem; text-decoration: none; color: var(--ink-2); border-right: 1px solid var(--rule); }
.seg a:last-child { border-right: 0; }
.seg a[aria-current] { background: var(--ink); color: var(--paper); }
.btnlink { display: inline-block; padding: 0.42rem 0.9rem; border: 1px solid var(--ink); border-radius: 4px;
           text-decoration: none; font-weight: 500; }
.colhead { text-decoration: none; }
.colhead:hover { text-decoration: underline; }
.more { font-size: 0.88rem; margin: 0.75rem 0 0; }
.crumb { margin: 0 0 0.5rem; color: var(--muted); }
.fig-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.fig-pick label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--ink-2); }
.fig-pick .or { margin: 0 0 0.45rem; color: var(--muted); }
.figbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1.25rem;
          background: var(--paper); padding: 0.75rem 0; margin-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.figbar h2 { margin-right: auto; align-self: center; }
.figbar label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.82rem; color: var(--ink-2); }
.figbar.end { position: static; border: 0; justify-content: flex-end; }
.figset { border: 1px solid var(--rule); }
.figset legend { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; padding: 0 0.4rem; }
.figgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 0.1rem 1.5rem; }
.figgrid label { display: grid; grid-template-columns: 1fr 7.5rem; grid-template-rows: auto auto; column-gap: 0.75rem;
                 align-items: center; padding: 0.3rem 0; border-bottom: 1px solid var(--rule-soft); }
.figgrid .fl { color: var(--ink-2); font-size: 0.9rem; }
.figgrid input { text-align: right; width: 100%; min-height: 2rem; padding: 0.25rem 0.45rem; }
.figgrid .was { grid-column: 2; font-size: 0.72rem; color: var(--muted); text-align: right; }
.figgrid .was:empty { display: none; }
.figgrid label.mine input { border-color: var(--lev); box-shadow: inset 3px 0 0 var(--lev); }
@media (max-width: 640px) {
  .inline-edit input { width: 100%; }
  .figgrid { grid-template-columns: 1fr; }
}

/* LTM column: computed, set apart from reported years by a rule */
.fig .ltm { border-left: 2px solid var(--rule); color: var(--ink); background: var(--surface); }
.fig thead .ltm { color: var(--green); }

/* screener: page frame stays put; only the table scrolls, so the title, filters and column
   headings are always visible */
body.fixed { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.fixed main { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; padding-bottom: 0.75rem; }
body.fixed .table-wrap { flex: 1; min-height: 0; overflow: auto; }
body.fixed .foot { margin: 0.5rem 0 0; }
body.fixed .screener-head { margin-bottom: 0.75rem; }
@media (max-width: 640px), (max-height: 520px) {
  body.fixed { height: auto; overflow: visible; display: block; }
  body.fixed .table-wrap { max-height: none; }
}

.pos-txt { color: var(--green); }
.neg-txt { color: var(--neg); }

/* company header: price and valuation strip */
.pricestrip { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 1rem 0 0; }
.pricestrip div { display: flex; flex-direction: column; }
.pricestrip dt { font-size: 0.78rem; color: var(--muted); }
.pricestrip dd { margin: 0; font-size: 1.05rem; font-weight: 600; }
.pricestrip small { display: block; font-size: 0.72rem; font-weight: 400; color: var(--muted); }
.muted { color: var(--muted); }
.fig tr.sub-row th { padding-left: 1.6rem; font-size: 0.88rem; }
.fig td.assumed { font-style: italic; color: var(--muted); }
/* price + EV/FCF chart */
.chart .l-price { fill: none; stroke: var(--ebitda); stroke-width: 2; }
.chart .l-evf { fill: none; stroke: var(--cash); stroke-width: 2; }
.chart .ptitle { fill: var(--ink-2); font-weight: 600; font-size: 12px; }
.chart .xhair { stroke: var(--ink); stroke-opacity: 0.35; stroke-width: 1; }
.chart .dotm { stroke: var(--surface); stroke-width: 2; }

/* ---- add a company, portfolio */
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
a.btn, .btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; border-radius: 4px;
              padding: 0.45rem 0.9rem; font-weight: 500; line-height: 1.35; }
a.btn.ghost, button.ghost { background: none; color: var(--ink); border: 1px solid var(--rule); }
.flash-inline { padding: 0.6rem 0.9rem; background: var(--surface); border-left: 3px solid var(--neg); }
.screener-toggle { margin-top: 0.6rem; text-align: right; }
.screener-toggle button { font-size: 0.85rem; }
button:disabled { opacity: 0.6; cursor: progress; }
.h1-sub { font-family: var(--sans); font-weight: 400; font-size: 1.1rem; color: var(--muted); margin-left: 0.4rem; letter-spacing: 0; }
.h2-count { font-family: var(--sans); font-weight: 400; font-size: 0.85rem; color: var(--muted); margin-left: 0.3rem; }
.head-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.screener-head .filters { margin: 1rem 0 0; }

.pricestrip.summary { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
                      padding: 0.9rem 1.2rem; margin: 0 0 1rem; gap: 0.9rem 2.25rem; }
.pricestrip.summary dd { font-size: 1.3rem; font-family: var(--serif); }
.pricestrip.summary small { font-family: var(--sans); font-size: 0.76rem; margin-top: 0.1rem; }

.ret td, .ret th { white-space: nowrap; }
.ret tr.subtotal th, .ret tr.subtotal td { background: var(--paper); font-weight: 600; border-bottom: 1px solid var(--rule); }
.ret tr.subtotal th { text-align: left; }
.ret tfoot th, .ret tfoot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; text-align: left; }
#screen .ret, .ret .col-name { min-width: 13rem; }
.ret .col-name b { font-weight: 600; }

.side { font-size: 0.78rem; font-weight: 600; }
.s-buy.side { color: var(--green); }
.s-sell.side { color: var(--lev); }
.note-cell { white-space: normal !important; color: var(--ink-2); font-size: 0.85rem; min-width: 10rem; }
.row-acts { text-align: right; font-size: 0.85rem; }
.row-acts a { color: var(--muted); }
.trades .col-name { width: auto; }
.narrowish { width: auto; min-width: 60%; }

.entry-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
.entry-grid .panel h2 { margin-bottom: 0.75rem; }
.tform { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.75rem 1rem; margin-bottom: 1rem; }
.tform label, .tform fieldset { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.82rem; color: var(--ink-2); }
.tform .wide { grid-column: span 2; }
.tform input, .tform select { width: 100%; }
.tform fieldset.side { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; }
.tform fieldset.side legend { width: 100%; padding: 0; margin-bottom: 0.25rem; }
.tform fieldset.side label { flex-direction: row; align-items: center; gap: 0.35rem; font-size: 0.95rem; color: var(--ink); min-height: 2.25rem; }
.tform fieldset.side input { width: auto; min-height: 0; }
.tform .help { color: var(--muted); font-size: 0.75rem; line-height: 1.3; }
.tform .unit { color: var(--muted); font-weight: 400; }
.tform [hidden] { display: none; }
.row-form { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.row-form input { flex: 1; min-width: 0; }
.narrow-panel { max-width: 760px; }
.cancel { margin-left: 1rem; color: var(--muted); }
form.danger { margin-top: 1.25rem; padding-top: 0.75rem; border-top: 1px solid var(--rule-soft); }
.row-acts details.inline-edit { text-align: left; }
.row-acts details[open] { min-width: 24rem; }
#holdings .hist li { line-height: 1.45; }
@media (max-width: 960px) {
  .entry-grid { grid-template-columns: minmax(0, 1fr); }
  .tform .wide { grid-column: auto; }
}
.ret td.heldin { white-space: normal; min-width: 9rem; max-width: 16rem; font-size: 0.85rem; line-height: 1.35; }
.pricestrip.summary { gap: 0.9rem 1.75rem; }
.ret .group-head th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
                      border-bottom: 0; padding-bottom: 0; text-align: center; position: static; }
.ret .sep-r { border-right: 1px solid var(--rule); }
.pricestrip.summary .hl dd { color: var(--ink); }
.pricestrip.summary dd .pos-txt + .pos-txt, .pricestrip.summary dd span + span { font-size: 0.85em; margin-left: 0.2rem; }
details.history { margin-top: 1.25rem; }
details.history summary { cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
details.history .sub { margin-top: 0.5rem; }
.ckind { white-space: nowrap; }
.ckind.k-opening { color: var(--ebitda); }
.ckind.k-fee, .ckind.k-tax { color: var(--lev); }
p.help.wide { grid-column: 1 / -1; margin: -0.25rem 0 0; color: var(--muted); font-size: 0.78rem; }
a.drill { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; color: inherit; }
a.drill:hover { text-decoration-color: currentColor; }
.pricestrip dt a.drill { text-decoration: none; }
.months .col-name { min-width: 14rem; }
.mbar { display: flex; width: 100%; max-width: 22rem; height: 0.6rem; background: var(--rule-soft); border-radius: 4px; overflow: hidden; }
.mbar .paid { background: var(--cash); }
.mbar .due { background: repeating-linear-gradient(135deg, var(--cash) 0 3px, transparent 3px 6px); }
.wht-form { display: flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.wht-form input { width: 4.5rem; min-height: 1.9rem; padding: 0.2rem 0.4rem; text-align: right; }
.wht-form button { font-size: 0.8rem; }
.screen td.assumed, .pricestrip dd.assumed { font-style: italic; }
.screen td.assumed { color: var(--ink-2); }
.screen td.conv.assumed .fill { opacity: 0.55; }
.login { max-width: 22rem; margin: 4rem auto; }
.login h1 { margin-bottom: 1rem; }
.login .check { flex-direction: row; align-items: center; gap: 0.5rem; }
.login .check input { min-height: 0; }
.topbar .signout { margin-left: auto; }
.topbar .signout button { font-size: 0.9rem; }
