/* Books Ready To Go — portal + report styles */
:root {
  --pine: #0C3B24; --green: #1F9D45; --green-dk: #14622C; --lime: #A9E838; --paper: #F4F8F3; --white: #fff;
  --ink: #1B2A22; --mute: #5B6B63; --rule: #DDE5DE; --rule-dk: #BFCDC2;
  --good-bg: #E7F5EB; --good: #14622C; --warn-bg: #FDF1DC; --warn: #8A4B08; --bad-bg: #FBE6E3; --bad: #9B2318;
  --font: 'Figtree', 'Avenir Next', Avenir, 'Segoe UI', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--green-dk); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
small { color: var(--mute); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

/* buttons + forms */
.btn { font: 600 15px var(--font); padding: 9px 16px; border-radius: 6px; border: 1px solid var(--rule-dk); background: var(--white); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dk); border-color: var(--green-dk); }
.btn-quiet { border-color: transparent; background: none; color: var(--mute); padding: 6px 10px; }
.btn-danger { color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: default; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 0; }
label input, label select, label textarea, .dlg textarea { display: block; width: 100%; margin-top: 5px; font: 16px var(--font); padding: 9px 11px; border: 1px solid var(--rule-dk); border-radius: 6px; background: var(--white); color: var(--ink); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
label.check input { width: auto; margin: 0; }
.hint { color: var(--mute); font-size: 14px; margin: 6px 0 0; }
.form-error, .form-ok { padding: 10px 12px; border-radius: 6px; font-size: 14px; background: var(--bad-bg); color: var(--bad); }
.form-ok { background: var(--good-bg); color: var(--good); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* login + setup */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--pine); }
.login-card { width: 100%; max-width: 380px; background: var(--white); padding: 32px; border-radius: 10px; }
.login-card h1 { font-size: 22px; margin: 22px 0 6px; }
.login-card .btn { width: 100%; margin-top: 20px; text-align: center; }
.login-back { font-size: 14px; margin: 18px 0 0; text-align: center; }

/* shell */
.demo-bar { margin: 0; padding: 7px 16px; background: var(--lime); color: var(--pine); font-size: 14px; font-weight: 600; text-align: center; }
.top { display: flex; align-items: center; gap: 28px; padding: 12px 24px; background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.top .brand img { display: block; height: 34px; width: auto; }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 8px 14px; border-radius: 6px; color: var(--mute); text-decoration: none; font-weight: 600; }
.top nav a[aria-current] { color: var(--pine); background: var(--good-bg); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who { font-size: 14px; color: var(--mute); }
.lang { display: inline-flex; border: 1px solid var(--rule-dk); border-radius: 6px; overflow: hidden; }
.lang button { font: 600 13px var(--font); padding: 6px 9px; border: 0; background: var(--white); color: var(--mute); cursor: pointer; }
.lang button[aria-pressed=true] { background: var(--pine); color: #fff; }
.page { max-width: 1280px; margin: 0 auto; padding: 28px 24px 60px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }

.tbl-wrap { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 13px; color: var(--mute); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl td small { display: block; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tr[data-href]:hover { background: var(--paper); }
.tbl tr.off { color: var(--mute); }
.tbl .r { text-align: right; }
.tbl a { font-weight: 700; text-decoration: none; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 20px; background: var(--warn-bg); color: var(--warn); }
.pill-sent { background: var(--good-bg); color: var(--good); }
.empty { text-align: center; padding: 70px 20px; background: var(--white); border: 1px dashed var(--rule-dk); border-radius: 8px; }
.empty h1, .empty h2 { font-size: 22px; }
.empty p { color: var(--mute); margin: 8px 0 18px; }

/* editor */
.editor { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 18px 20px 22px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.side h3 { font-size: 15px; margin: 22px 0 8px; }
.back { font-size: 14px; font-weight: 600; text-decoration: none; }
.sent-info { font-size: 14px; background: var(--good-bg); padding: 10px 12px; border-radius: 6px; margin: 12px 0 0; }
.seg { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.seg legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 4px; }
.seg label { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.seg input { width: auto; margin: 0; }
.files { list-style: none; padding: 0; margin: 0 0 10px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.files .f-main { flex: 1; min-width: 0; font-size: 14px; }
.files .f-main b, .files .f-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 4px; background: var(--pine); color: #fff; white-space: nowrap; }
.btn-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--mute); cursor: pointer; padding: 2px 6px; }
.drop { border: 2px dashed var(--rule-dk); border-radius: 8px; padding: 20px 14px; text-align: center; display: grid; gap: 4px; justify-items: center; }
.drop span { font-size: 13px; color: var(--mute); }
.drop .btn { margin-top: 8px; }
.drop.over { border-color: var(--green); background: var(--good-bg); }
.checks { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.checks li { display: flex; gap: 8px; padding: 4px 0; }
.checks i { font-style: normal; font-weight: 800; width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; margin-top: 2px; background: var(--good-bg); color: var(--good); }
.checks .no i { background: var(--bad-bg); color: var(--bad); }
.checks .no span { color: var(--bad); font-weight: 600; }
.checks small { display: block; }
.tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.tabs button { font: 600 15px var(--font); padding: 8px 16px; border: 1px solid var(--rule-dk); background: var(--white); border-radius: 6px; cursor: pointer; color: var(--mute); }
.tabs button[aria-selected=true] { background: var(--pine); border-color: var(--pine); color: #fff; }
.sheet { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 36px 44px 28px; }
.subject { background: var(--white); border: 1px solid var(--rule); border-radius: 8px 8px 0 0; border-bottom: 0; margin: 0; padding: 11px 16px; font-weight: 600; }
.subject span { color: var(--mute); font-weight: 500; margin-right: 8px; }
.mail { width: 100%; height: 1500px; border: 1px solid var(--rule); border-radius: 0 0 8px 8px; background: #EEF3EE; display: block; }
.dlg { border: 0; border-radius: 10px; padding: 26px 28px; width: min(480px, calc(100vw - 32px)); color: var(--ink); }
.dlg::backdrop { background: rgba(12, 59, 36, .55); }
.dlg h2 { font-size: 20px; }
.send-to { background: var(--paper); padding: 12px 14px; border-radius: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--pine); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 600; z-index: 50; max-width: calc(100vw - 32px); }
.toast-bad { background: var(--bad); }

/* client viewer */
.viewer-bar { background: var(--pine); padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.viewer-bar img { display: block; }
.viewer-main { max-width: 860px; margin: 28px auto 60px; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 40px 48px 30px; }

/* ---------- the report ---------- */
.rp { font-variant-numeric: tabular-nums; }
.rp-head { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.rp-kicker, .rp-meta { margin: 0; font-size: 14px; font-weight: 600; }
.rp-meta { color: var(--mute); font-weight: 500; }
.rp-hero { padding: 30px 0 26px; }
.rp-hero h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.015em; line-height: 1.12; max-width: 22ch; }
.rp-hero p { font-size: 19px; margin: 14px 0 0; max-width: 56ch; }
.rp-hero.rp-good h1 { box-shadow: inset 0 -.38em 0 var(--good-bg); display: inline; }
.rp-hero.rp-warn h1 { box-shadow: inset 0 -.38em 0 var(--warn-bg); display: inline; }
.rp-hero.rp-bad h1 { box-shadow: inset 0 -.38em 0 var(--bad-bg); display: inline; }
.rp-note { border-left: 4px solid var(--green); padding: 4px 0 4px 16px; margin: 0 0 26px; }
.rp-note h3 { font-size: 14px; color: var(--mute); }
.rp-note p { margin: 4px 0 0; }
/* key figures: one ledger row, column rules like the logo */
.rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; border-top: 1px solid var(--rule-dk); border-bottom: 1px solid var(--rule-dk); }
.rp-kpis > div { padding: 16px 16px 14px; border-left: 1px solid var(--rule-dk); }
.rp-kpis > div:first-child { border-left: 0; padding-left: 0; }
.rp-kpis dt { font-size: 14px; font-weight: 600; color: var(--mute); }
.rp-kpis dd { margin: 4px 0 2px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.rp-kpis p { margin: 0; font-size: 13px; color: var(--mute); }
.rp-k-good dd { color: var(--good); }
.rp-k-bad dd { color: var(--bad); }
.rp-sec { padding-top: 34px; }
.rp-sec h2 { font-size: 23px; font-weight: 800; letter-spacing: -.01em; }
.rp-lead { margin: 6px 0 16px; color: var(--mute); max-width: 68ch; }
.rp-p { margin: 16px 0 0; max-width: 72ch; }
.rp-dollar { display: flex; gap: 2px; height: 44px; }
.rp-dollar span { border-radius: 4px; display: grid; place-items: center; min-width: 6px; }
.rp-dollar b { color: #fff; font-size: 15px; }
.rp-legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.rp-legend.rp-col { display: block; }
.rp-legend.rp-col li { padding: 3px 0; }
.rp-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; }
.rp-bars, .rp-classes { width: 100%; border-collapse: collapse; font-size: 15px; }
.rp-bars th, .rp-classes tbody th { text-align: left; font-weight: 500; padding: 8px 14px 8px 0; width: 34%; }
.rp-bars td, .rp-classes td { padding: 8px 0; }
.rp-bars tr, .rp-classes tr { border-bottom: 1px solid var(--rule); }
.rp-bars tr:hover, .rp-classes tbody tr:hover { background: var(--paper); }
.rp-bars .rp-track { width: 46%; }
.rp-track span { display: block; height: 14px; border-radius: 0 4px 4px 0; }
.rp-wf .rp-track span { border-radius: 4px; }
.rp-num { text-align: right; white-space: nowrap; padding-left: 14px !important; font-weight: 700; }
.rp-num small { display: block; font-weight: 400; font-size: 12px; }
.rp-classes thead th { font-size: 13px; color: var(--mute); font-weight: 600; padding: 0 0 6px 14px; text-align: left; }
.rp-classes thead th.rp-num { text-align: right; }
.rp-classes tbody th { font-weight: 700; width: 24%; }
.rp-classes td.rp-num { font-weight: 500; }
.rp-classes td.rp-res { font-weight: 700; }
.rp-classes .rp-track { width: 26%; padding-left: 14px; }
.rp-div { display: block; position: relative; height: 14px; }
.rp-div::before { content: ''; position: absolute; left: 50%; top: -5px; bottom: -5px; border-left: 1px solid var(--rule-dk); }
.rp-div.rp-nozero::before { display: none; }
.rp-div i { position: absolute; top: 0; height: 14px; border-radius: 4px; }
.rp-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.rp-badge i { font-style: normal; font-size: 10px; }
.rp-badge.rp-good, .rp-good > .rp-badge { background: var(--good-bg); color: var(--good); }
.rp-warn > .rp-badge { background: #fff; color: var(--warn); }
.rp-bad > .rp-badge, .rp-badge.rp-bad { background: #fff; color: var(--bad); }
.rp-classes .rp-badge.rp-bad { background: var(--bad-bg); }
.rp-callout, .rp-watch li { padding: 14px 16px; border-radius: 8px; margin-top: 14px; }
.rp-callout p, .rp-watch p { margin: 8px 0 0; max-width: 78ch; }
.rp-callout.rp-good, .rp-watch .rp-good { background: var(--good-bg); }
.rp-callout.rp-warn, .rp-watch .rp-warn { background: var(--warn-bg); }
.rp-callout.rp-bad, .rp-watch .rp-bad { background: var(--bad-bg); }
.rp-watch { list-style: none; padding: 0; margin: 0; }
.rp-stack2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rp-stack2 h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; }
.rp-words dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin: 14px 0 0; }
.rp-words dt { font-weight: 700; }
.rp-words dd { margin: 2px 0 0; color: var(--mute); font-size: 15px; }
.rp-foot { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--mute); }

@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  .top { flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; }
  .who { display: none; }
  .sheet, .viewer-main { padding: 24px 18px; }
  .viewer-main { margin: 0; border: 0; border-radius: 0; }
  .page { padding: 20px 14px 50px; }
}
@media (max-width: 620px) {
  .rp-stack2, .rp-words dl { grid-template-columns: 1fr; }
  .rp-kpis { grid-template-columns: 1fr 1fr; }
  .rp-kpis > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .rp-bars th { width: 40%; }
  .rp-classes thead { display: none; }
  .rp-classes tr { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0; }
  .rp-classes tbody th { width: auto; grid-column: 1 / -1; padding-bottom: 2px; }
  .rp-classes td.rp-num { text-align: left; padding-left: 0 !important; }
  .rp-classes td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; color: var(--mute); font-weight: 400; }
  .rp-bars .rp-track { width: 30%; }
  .rp-classes .rp-track { display: none; }
  .rp-classes td.rp-res { grid-column: 1 / -1; }
}
@media print {
  .viewer-bar .lang, .top, .side, .tabs { display: none; }
  body, .viewer-main { background: #fff; border: 0; margin: 0; }
  .rp-sec { break-inside: avoid; }
}

/* AI explanation */
.side { width: auto; }
.editor { grid-template-columns: 380px minmax(0, 1fr); }
textarea.story { display: block; width: 100%; margin-top: 8px; font: 15px/1.5 var(--font); padding: 10px 12px; border: 1px solid var(--rule-dk); border-radius: 6px; color: var(--ink); resize: vertical; }
.btn-ai { margin-top: 8px; border-color: var(--green); color: var(--green-dk); }
.btn-ai:hover { background: var(--good-bg); border-color: var(--green-dk); }
.rp-story { padding: 0 0 26px; }
.rp-story h2 { font-size: 15px; font-weight: 700; color: var(--mute); letter-spacing: 0; }
.rp-story p { margin: 10px 0 0; font-size: 18px; line-height: 1.55; max-width: 68ch; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; } }
.test-bar { background: #FFE9A8; color: #5A4300; }
.mail.pdf { height: 1100px; background: #fff; }
.subject .btn { float: right; padding: 5px 12px; font-size: 14px; margin-top: -3px; }
/* the send buttons stay in view at the bottom of the left panel */
.side > .actions { position: sticky; bottom: -22px; margin: 18px -20px -22px; padding: 12px 20px 16px; background: var(--white); border-top: 1px solid var(--rule-dk); box-shadow: 0 -8px 14px -10px rgba(12, 59, 36, .35); z-index: 2; }
.side > .actions .btn-primary { flex: 1 1 100%; text-align: center; padding: 12px 16px; font-size: 16px; }
@media (max-width: 900px) { .side > .actions { position: static; margin: 18px 0 0; padding: 0; border: 0; box-shadow: none; } }

/* clients: active / inactive */
.ctools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ctools .tabs { margin: 0; }
.ctools .tabs span { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 13px; text-align: center; }
.ctools .tabs button[aria-selected=true] span { background: rgba(255,255,255,.18); color: #fff; }
.ctools input[type=search] { width: min(340px, 100%); margin: 0; font: 15px var(--font); padding: 8px 12px; border: 1px solid var(--rule-dk); border-radius: 6px; background: var(--white); color: var(--ink); }
.cnote { margin: 0 0 12px; }
.tbl td.nowrap { white-space: nowrap; }
.tbl td small { display: block; color: var(--mute); font-weight: 400; }
.cfilters { display: flex; gap: 8px; flex-wrap: wrap; }
.cfilters select { font: 15px var(--font); padding: 8px 10px; border: 1px solid var(--rule-dk); border-radius: 6px; background: var(--white); color: var(--ink); max-width: 240px; }
.gtag { display: inline-block; padding: 2px 9px; border-radius: 10px; background: var(--paper); border: 1px solid var(--rule); font-size: 13px; font-weight: 600; white-space: nowrap; }
.cfilters { flex-wrap: nowrap; align-items: center; }
.cfilters input[type=search] { width: 260px; }
#ctbl td:first-child { min-width: 240px; }
@media (max-width: 760px) { .cfilters { flex-wrap: wrap; } .cfilters input[type=search], .cfilters select { width: 100%; max-width: none; } }
.stale-bar { background: #C2362B; color: #fff; }

/* outlook */
.ol-lead { margin: 4px 0 0; color: var(--mute); }
.ol-tools { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.ol-tools label { margin: 0; font-weight: 600; font-size: 14px; }
.ol-tools select { display: block; margin-top: 4px; font: 16px var(--font); padding: 9px 11px; border: 1px solid var(--rule-dk); border-radius: 6px; background: var(--white); color: var(--ink); max-width: min(360px, 82vw); }
.ol-story { font-size: 19px; line-height: 1.5; max-width: 68ch; margin: 0 0 18px; }
.ol-kpis { margin-bottom: 22px; }
.ol-kpis .ol-est dd { color: var(--green-dk); }
.ol-kpis .ol-est dt::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border: 2px dashed var(--green); border-radius: 50%; vertical-align: middle; }
.ol-card { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 18px 20px; margin-bottom: 18px; min-width: 0; }
.ol-card h2 { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.ol-card .tbl-wrap { border: 0; border-radius: 0; margin: 0 -8px; }
.ol-svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.ol-legend { display: flex; gap: 6px 16px; flex-wrap: wrap; margin: 0 0 6px; font-size: 13px; color: var(--mute); }
.ol-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.ol-legend i.ln { height: 3px; width: 18px; vertical-align: 3px; }
.ol-legend i.est { background: repeating-linear-gradient(135deg, var(--rule-dk) 0 3px, transparent 3px 6px); border: 1px dashed var(--mute); }
.ol-tbl td.r, .ol-tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.ol-tbl td.neg { color: var(--bad); }
.ol-tbl tr.est td { color: var(--mute); font-style: italic; }
.ol-tbl tr.sum td { font-weight: 800; border-top: 2px solid var(--rule-dk); }
.ol-tbl tr.go { cursor: pointer; }
.ol-tbl tr.go:hover td { background: var(--paper); }
.ol-st, .ol-tr { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; font-style: normal; white-space: nowrap; }
.ol-st.actual { background: var(--good-bg); color: var(--good); }
.ol-st.est, .ol-st.partly { background: var(--warn-bg); color: var(--warn); }
.ol-tr.up { background: var(--good-bg); color: var(--good); } .ol-tr.down { background: var(--bad-bg); color: var(--bad); } .ol-tr.flat { background: var(--paper); color: var(--mute); }
.ol-method { margin: 6px 0 30px; color: var(--mute); max-width: 76ch; }
.ol-method summary { cursor: pointer; font-weight: 700; color: var(--ink); }
/* industry views */
.ol-tabs { margin-bottom: 18px; }
.in-basis { margin: 0 0 10px; }
.in-kpis .in-warn dd { color: var(--bad); }
.in-dollar { display: flex; height: 54px; border-radius: 6px; overflow: hidden; margin: 6px 0 10px; }
.in-dollar > div { display: flex; align-items: center; justify-content: center; min-width: 0; color: #fff; font-size: 18px; border-right: 2px solid #fff; }
.in-dollar > div:last-child { border-right: 0; }
.in-leg { margin-bottom: 0; }
.in-ladder { display: grid; gap: 5px; margin: 8px 0 10px; }
.in-row { display: grid; grid-template-columns: minmax(120px, 250px) 1fr 58px; gap: 12px; align-items: center; font-size: 14px; cursor: pointer; border-radius: 4px; }
.in-row:hover { background: var(--paper); }
.in-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-track { position: relative; height: 16px; background: var(--paper); border-radius: 3px; }
.in-track i { position: absolute; top: 0; bottom: 0; }
.in-band { background: rgba(31, 157, 69, .18); border-left: 1px dashed var(--green); border-right: 1px dashed var(--green); }
.in-zero { width: 1px; background: #8FA096; }
.in-med { width: 2px; background: var(--ink); opacity: .5; }
.in-bar { border-radius: 2px; }
.in-bar.good { background: var(--green); } .in-bar.warn { background: #D97706; } .in-bar.bad { background: #C2362B; }
.in-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.in-val.bad { color: var(--bad); } .in-val.warn { color: var(--warn); }
.in-flag { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 9px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 600; }
.in-count { display: inline-block; min-width: 24px; padding: 0 7px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-size: 14px; text-align: center; vertical-align: 2px; }
@media (max-width: 640px) { .in-row { grid-template-columns: 1fr 52px; } .in-name { grid-column: 1 / -1; } }
.in-basis { margin: -8px 0 14px; }
[hidden] { display: none !important; }

/* details and explain */
.ol-card > h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ol-dbtn { font: 600 13px var(--font); color: var(--green-dk); background: none; border: 1px solid var(--rule-dk); border-radius: 14px; padding: 3px 12px; cursor: pointer; white-space: nowrap; }
.ol-dbtn:hover, .ol-dbtn[aria-expanded=true] { background: var(--good-bg); border-color: var(--green); }
.ol-detail { margin: 0 0 12px; padding: 12px 14px; background: var(--paper); border-left: 3px solid var(--green); border-radius: 0 6px 6px 0; font-size: 15px; line-height: 1.55; max-width: 86ch; }
.ol-explain { margin: -6px 0 20px; }
.ol-explain-box { margin-top: 12px; padding: 18px 20px; background: var(--white); border: 1px solid var(--rule-dk); border-radius: 8px; max-width: 76ch; }
.ol-explain-box h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.ol-explain-box p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; }
.ol-explain-box .actions { margin-top: 4px; }
