/* Layout: navy masthead with search; LP directory left, selected LP's funds and files right, general resources below. */
:root {
  --navy: #41485f;
  --bg: #f2f3f7;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --line: #dfe2ea;
  --ink: #1b2032;
  --muted: #5b6279;
  --accent: #3f73a8;
  --accent-soft: #e4edf7;
  --pos: #2d7a55;
  --neg: #b4443c;
  --warn-bg: #fbf1dc;
  --warn-ink: #7a5712;
  --font-display: "Aleo", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11141d; --surface: #1a1f2c; --surface-2: #202637; --line: #2c3347;
    --ink: #e7eaf3; --muted: #9ba3ba; --accent: #86abd4; --accent-soft: #222c3f;
    --pos: #5fc596; --neg: #e48a82; --warn-bg: #3a3017; --warn-ink: #e8c97e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11141d; --surface: #1a1f2c; --surface-2: #202637; --line: #2c3347;
  --ink: #e7eaf3; --muted: #9ba3ba; --accent: #86abd4; --accent-soft: #222c3f;
  --pos: #5fc596; --neg: #e48a82; --warn-bg: #3a3017; --warn-ink: #e8c97e;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 14px; line-height: 1.5; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mast { background: var(--navy); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.mast-in { max-width: 1280px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.mast img { height: 30px; width: auto; display: block; }
.mast-title { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #c9cfe0; white-space: nowrap; }
.search { flex: 1 1 320px; min-width: 0; position: relative; max-width: 520px; margin-left: auto; }
.search + .mast-btn { flex: 0 0 auto; }
.search input { width: 100%; font: inherit; font-size: 15px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); border-radius: 6px; padding: 10px 14px 10px 38px; }
.search input::placeholder { color: #c3c9db; }
.search input:focus { background: rgba(255,255,255,.16); border-color: #fff; outline: none; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: #c3c9db; fill: none; stroke-width: 2; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 24px 20px 56px; }
.mock-note { background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: 8px 14px; font-size: 12.5px; margin-bottom: 20px; }
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }

.dir { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 132px); }
.dir-head { padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); }
.dir-head h2 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0; }
.dir-head span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dir-list { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 220px); min-height: 120px; overflow-y: auto; }
.dir-list .lpb { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 9px 16px; cursor: pointer; border-bottom: 1px solid var(--line); }

.dir-list .lpb:hover { background: var(--surface-2); }
.dir-list .lpb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dir-list .lpb[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.dir-name { display: block; font-weight: 500; overflow-wrap: anywhere; line-height: 1.35; }
.dir-sub { display: block; font-size: 12px; color: var(--muted); }
.dir-empty { padding: 20px 16px; color: var(--muted); }

.lp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; margin-bottom: 16px; }
.lp-head h1 { font-family: var(--font-display); font-size: 28px; line-height: 1.2; margin: 0; font-weight: 700; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
.lp-head p { margin: 4px 0 0; color: var(--muted); }
.lp-head .asof { font-size: 12px; color: var(--muted); }

.pill { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }

.fund { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 20px; overflow: hidden; }
.fund-head { background: var(--navy); color: #fff; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.fund-head h2 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.fund-head span { font-size: 12px; color: #c9cfe0; }
.fund-body { padding: 20px; display: grid; gap: 24px; }
.sec-title { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.metric { background: var(--surface); padding: 12px 14px; min-width: 0; }
.metric.hero { background: var(--surface-2); }
.metric dt { font-size: 11.5px; color: var(--muted); margin: 0 0 2px; }
.metric dd { margin: 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric.hero dd { font-family: var(--font-display); font-size: 20px; }
.metric small { display: block; font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); } .neg { color: var(--neg); }

.docs { display: grid; gap: 8px; }
.doc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-decoration: none; }

.doc .ft { width: 44px; height: 44px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .06em; display: grid; place-items: center; }
.doc .ft.x { background: #2d7a55; } .doc .ft.p { background: #41485f; } .doc .ft.s { background: #3f73a8; }
.doc.off { border-style: dashed; background: transparent; }
.doc.off .ft { background: var(--line); color: var(--muted); }
.doc-t { font-weight: 600; overflow-wrap: anywhere; }
.doc-m { font-size: 12.5px; color: var(--muted); }
.doc-go { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.doc.off .doc-go { color: var(--muted); font-weight: 500; }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 24px; padding: 14px 16px; background: var(--surface-2); border-radius: 6px; }
.strip div { min-width: 0; }
.strip b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.strip span { font-size: 12px; color: var(--muted); }
.strip-foot { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

.letters { width: 100%; border-collapse: collapse; }
.letters th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--line); }
.letters td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.letters tr:last-child td { border-bottom: 0; }
.letters td:last-child, .letters th:last-child { text-align: right; white-space: nowrap; }
.letters .date { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.tbl-scroll { overflow-x: auto; }

.general { margin-top: 8px; }
.general h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 4px; }
.general > p { margin: 0 0 14px; color: var(--muted); }
.gen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 10px; }
.gen-add { border: 1px dashed var(--line); border-radius: 6px; padding: 10px 14px; color: var(--muted); font-size: 13px; display: flex; align-items: center; }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .dir { position: static; }
  .dir-list { max-height: 260px; }
  .mast-title { display: none; }
  .search { margin-left: 0; max-width: none; }
}
@media (max-width: 520px) {
  .doc { grid-template-columns: 40px minmax(0, 1fr); }
  .doc .ft { width: 40px; height: 40px; }
  .doc-go { grid-column: 2; }
  .lp-head h1 { font-size: 23px; }
  .fund-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* browse switch + fund tree */
.dir-head { gap: 12px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.dir-list { list-style: none; }
.grp { border-bottom: 1px solid var(--line); }
.grp:last-child { border-bottom: 0; }
.grp-row { display: flex; align-items: stretch; background: var(--surface-2); }
.grp-main { all: unset; box-sizing: border-box; flex: 1 1 auto; min-width: 0; padding: 10px 8px 10px 16px; cursor: pointer; }
.grp-main:hover { background: var(--accent-soft); }
.grp-main:focus-visible, .chev:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.grp-main[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.grp-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.grp-sub { display: block; font-size: 12px; color: var(--muted); }
.chev { all: unset; box-sizing: border-box; width: 40px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.chev:hover { background: var(--accent-soft); }
.chev svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform .15s; }
.chev[aria-expanded="true"] svg { transform: rotate(90deg); }
.grp ul { list-style: none; margin: 0; padding: 0; }
.grp .lpb { padding-left: 30px; border-top: 1px solid var(--line); border-bottom: 0; }
.dir-list > ul { list-style: none; margin: 0; padding: 0; }
.flat .lpb { border-bottom: 1px solid var(--line); }

/* tables */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 20px; }
.card > .sec-title { margin-bottom: 12px; }
.tbl-scroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; min-width: 760px; font-variant-numeric: tabular-nums; }
.grid th { text-align: right; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid th:first-child, .grid td:first-child { text-align: left; }
.grid td { text-align: right; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid td:first-child { white-space: normal; min-width: 180px; }
.grid tr.total td { background: var(--surface-2); font-weight: 700; border-bottom: 2px solid var(--muted); }
.grid tr.sub td:first-child { padding-left: 24px; }
.grid tbody tr.sub:last-child td, .grid tbody tr.inv:last-child td { border-bottom: 0; }
.grid .sub-note { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.link { all: unset; cursor: pointer; font-weight: 600; color: var(--accent); }
.link:hover { text-decoration: underline; }
.link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sortbtn { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.sortbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sortbtn i { font-style: normal; font-size: 10px; color: var(--accent); }
.grid tr.inv:hover td { background: var(--surface-2); }
.grid tr.total.sticky-total td { position: static; }
.na { color: var(--muted); font-weight: 400; }
.notice { margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; }
.fstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.fstats div { background: var(--surface); padding: 12px 14px; min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fstats dt { font-size: 11.5px; color: var(--muted); margin: 0 0 2px; }
.fstats dd { margin: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fstats .hero { background: var(--surface-2); }
.fstats .hero dd { font-family: var(--font-display); font-size: 21px; }
.cols2 { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.fund-card-note { margin: 0; color: var(--muted); font-size: 13px; }

.mast-btn { font: inherit; font-size: 13.5px; font-weight: 600; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; padding: 9px 16px; cursor: pointer; white-space: nowrap; }
.mast-btn:hover { background: rgba(255,255,255,.12); }
.mast-btn[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.mast-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.fundtags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.grid td.fundcell { text-align: left; white-space: normal; min-width: 200px; }
.grid th.l, .grid td.l { text-align: left; }
.grid td.l { white-space: normal; }

.tabs-row { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; flex-wrap: wrap; }
.tab { font: inherit; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.72); background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 10px 16px 9px; cursor: pointer; }
.tab:hover { color: #fff; }
.tab[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.tab:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.layout.solo { grid-template-columns: minmax(0, 1fr); }
.layout.solo .dir { display: none; }
.hero-band { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; margin-bottom: 20px; display: grid; gap: 16px; }
.hero-band h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.2; margin: 0; }
.hero-band p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.qf { position: relative; max-width: 460px; }
.qf input { width: 100%; box-sizing: border-box; font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.qf input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.qres { margin-top: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.qres:empty { display: none; }
.qres button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 8px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.qres button:last-child { border-bottom: 0; }
.qres button:hover, .qres button:focus-visible { background: var(--accent-soft); }
.qres small { display: block; color: var(--muted); font-size: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; min-width: 0; }
.kpi span { font-size: 12px; color: var(--muted); display: block; }
.kpi b { font-family: var(--font-display); font-size: 24px; font-variant-numeric: tabular-nums; display: block; margin-top: 2px; overflow-wrap: anywhere; }
.fcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; margin-bottom: 20px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.fcard h3 { font-family: var(--font-display); font-size: 19px; margin: 0; }
.fcard h3 button { all: unset; cursor: pointer; }
.fcard h3 button:hover { color: var(--accent); }
.fcard h3 button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fcard .legal { font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.fcard .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.fcard .nums span { font-size: 11.5px; color: var(--muted); display: block; }
.fcard .nums b { font-size: 15px; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.fcard .acts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
/* ---------- Home charts ---------- */
:root { --c-nav: #2a78d6; --c-dist: #1baf7a; --viz-grid: #e9ebf1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-nav: #3987e5; --c-dist: #199e70; --viz-grid: #2c3347; } }
:root[data-theme="dark"] { --c-nav: #3987e5; --c-dist: #199e70; --viz-grid: #2c3347; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-bottom: 20px; }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; overflow: hidden; }
.chart h4 { margin: 0; font-size: 13.5px; font-weight: 600; }
.chart .ch-sub { margin: -4px 0 2px; font-size: 12px; color: var(--muted); }
.brow { display: grid; grid-template-columns: minmax(70px, 38%) minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; min-height: 26px; font-size: 12.5px; }
.brow > .bl { all: unset; box-sizing: border-box; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.brow > span.bl { cursor: default; }
.brow > button.bl:hover { color: var(--accent); text-decoration: underline; }
.brow .bt { position: relative; height: 16px; border-left: 1px solid var(--viz-grid); display: flex; align-items: center; min-width: 0; }
.brow .seg { height: 14px; flex: 0 0 auto; margin-right: 2px; border-radius: 0 4px 4px 0; }
.brow .seg:last-of-type { margin-right: 0; }
.brow .mk { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); margin-left: -1px; }
.brow .bv { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; text-align: right; }
.brow .bv small { color: var(--muted); font-weight: 400; }
.brow.div .bt { border-left: 0; justify-content: center; }
.brow.div .half { flex: 1 1 50%; height: 14px; display: flex; min-width: 0; }
.brow.div .half.l { justify-content: flex-end; }
.brow.div .zero { width: 1px; align-self: stretch; background: var(--viz-grid); }
.brow.div .half.l .seg { border-radius: 4px 0 0 4px; margin: 0; }
.brow.div .half.r .seg { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend i.tick { width: 2px; height: 12px; border-radius: 0; background: var(--ink); margin-right: 7px; }
.tv { min-width: 0; }
.tv summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.tv-w { overflow-x: auto; max-width: 100%; }
.tv td { white-space: nowrap; }
.tv th { vertical-align: bottom; }
.tv table { font-size: 11.5px; }
.tv th, .tv td { padding-left: 4px; padding-right: 4px; }
.tv table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tv th, .tv td { text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.tv th:first-child, .tv td:first-child { text-align: left; }
.fhome { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 22px; }
@media (min-width: 980px) { .fhome { grid-template-columns: 300px minmax(0, 1fr); } }
.fhome .fh-l { display: grid; gap: 10px; align-content: start; min-width: 0; }
.fhome h3 { font-family: var(--font-display); font-size: 19px; margin: 0; }
.fhome h3 button { all: unset; cursor: pointer; }
.fhome h3 button:hover { color: var(--accent); }
.fhome .legal { font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.fhome .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.fhome .nums span { font-size: 11.5px; color: var(--muted); display: block; }
.fhome .nums b { font-size: 15px; font-variant-numeric: tabular-nums; }
.fhome .acts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.fhome .fh-r { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; min-width: 0; align-content: start; }
.ctog { display: flex; width: fit-content; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 2px 0 8px; }
.ctog button { all: unset; cursor: pointer; font-size: 12px; padding: 4px 10px; color: var(--muted); }
.ctog button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.ctog button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.chart[data-view="lp"] .pane-g, .chart[data-view="group"] .pane-lp { display: none; }
.brow .bv .bsub { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.qchip { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.qchip .arr { color: var(--muted); }
.th-sub { display: block; font-size: 10.5px; font-weight: 400; opacity: .8; }
table.qtd { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 10px; font-variant-numeric: tabular-nums; }
table.qtd th, table.qtd td { text-align: right; padding: 4px 6px; border-top: 1px solid var(--line); }
table.qtd th:first-child, table.qtd td:first-child { text-align: left; padding-left: 0; }
table.qtd th { color: var(--muted); font-weight: 600; vertical-align: bottom; }
table.qtd td.pos { color: var(--pos); } table.qtd td.neg { color: var(--neg); }
.cap-ctl .cap-row { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: end; margin-bottom: 10px; }
.cap-ctl .cap-row:last-child { margin-bottom: 0; }
.cap-ctl .mf-f select, .cap-ctl .mf-f input { min-width: 170px; }
.cap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-chip { font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.cap-chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.cap-chk { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink); padding-bottom: 4px; }
.cap-acts { display: flex; gap: 8px; margin-left: auto; }
.cap-wrap { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: 6px; }
table.cap { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 720px; font-variant-numeric: tabular-nums; font-size: 13px; }
table.cap th, table.cap td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; background: var(--surface); }
table.cap thead tr.cap-h2 th { top: 35px; }
table.cap th.cap-g { text-align: center; border-left: 1px solid var(--line); color: var(--ink); font-weight: 700; }
table.cap thead th.cap-l { text-align: left; }
table.cap thead th { text-align: center; white-space: normal; vertical-align: middle; line-height: 1.25; min-width: 92px; }
.cap-caret { color: var(--muted); font-size: 10px; margin-left: 2px; }
.cap-menu { position: fixed; z-index: 100; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18); padding: 4px; display: grid; min-width: 160px; }
.cap-menu button { font: inherit; font-size: 13px; text-align: left; padding: 7px 12px; border: 0; background: none; color: var(--ink); border-radius: 5px; cursor: pointer; }
.cap-menu button:hover, .cap-menu button:focus-visible { background: var(--accent-soft); }
.cap-menu button[aria-current] { font-weight: 700; color: var(--accent); }
table.cap thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); font-size: 11.5px; color: var(--muted); }
table.cap .cap-l { text-align: left; position: sticky; left: 0; z-index: 1; min-width: 230px; max-width: 320px; }
table.cap thead th.cap-l { z-index: 3; }
table.cap td.cap-l { display: table-cell; white-space: normal; }
table.cap tbody tr:hover td { background: var(--surface-2); }
table.cap tr.ent td { background: var(--surface-2); }
table.cap tr.ent .cap-nm { padding-left: 14px; }
table.cap tfoot td { position: sticky; bottom: 0; z-index: 2; font-weight: 700; background: var(--surface-2); border-top: 2px solid var(--muted); border-bottom: 0; }
table.cap tfoot td.cap-l { z-index: 3; }
.cap-nm { display: inline-block; vertical-align: top; max-width: 260px; }
.cap-nm small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.cap-car { all: unset; display: inline-block; width: 18px; cursor: pointer; color: var(--muted); vertical-align: top; }
span.cap-car { cursor: default; }
.cap-sort { all: unset; cursor: pointer; }
.cap-sort:hover, .cap-sort:focus-visible { color: var(--accent); text-decoration: underline; }
.cap-empty { text-align: center !important; color: var(--muted); padding: 24px !important; }
table.cap td.neg { color: var(--neg); } table.cap td.pos { color: var(--pos); }
.cap-th { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.cap-th .sec-title { margin: 0; }
.ft-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0 8px; }
.ft-head .ctog { margin: 0; }
.ft-note { font-size: 12px; color: var(--muted); }
.cap-wrap.ft-wrap { max-height: 420px; }
.ft-wrap table.cap { min-width: 0; font-size: 12.5px; }
.ft-wrap table.cap th, .ft-wrap table.cap td { padding: 7px 7px; }
.ft-wrap table.cap thead th { min-width: 0; }
.ft-wrap table.cap .cap-l { min-width: 160px; max-width: 200px; }
.ft-wrap .cap-nm { max-width: 150px; }
.cap-sep { width: 1px; background: var(--line); margin: 0 4px; }
.cap-chip.pre { font-weight: 600; }
table.cap th.gs, table.cap td.gs { border-left: 1px solid var(--line); }
table.cap td.cv-td { padding: 6px 12px; min-width: 120px; }
.cv { display: grid; gap: 3px; width: 110px; margin-left: auto; }
.cv i { display: block; height: 7px; position: relative; }
.cv .cv-c { background: var(--line); border-radius: 0 3px 3px 0; overflow: hidden; }
.cv .cv-c b { display: block; height: 100%; background: #5b6b7f; }
.cv .cv-v { display: flex; }
.cv .cv-v u { display: block; height: 7px; text-decoration: none; }
.cv .cv-v u.d { background: var(--c-dist); } .cv .cv-v u.n { background: var(--c-nav); border-radius: 0 3px 3px 0; }
.cv .cv-v s { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); margin-left: -1px; }
.cap-key { display: flex; margin: 0 0 10px; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-top: 10px; align-items: center; }
.cap-key b { color: var(--ink); }
.cap-key i { display: inline-block; width: 14px; height: 7px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.cap-key .k1 { background: #5b6b7f; } .cap-key .k2 { background: var(--c-dist); } .cap-key .k3 { background: var(--c-nav); } .cap-key .k4 { display: none; }
.fhome .chart { border: 0; padding: 0; background: transparent; }
.vtip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--surface); font-size: 12px; line-height: 1.35; padding: 6px 9px; border-radius: 6px; max-width: 260px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }

.rel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rel:last-child { border-bottom: 0; }
.rel small { color: var(--muted); display: block; font-size: 12px; }
.rel b { font-variant-numeric: tabular-nums; }
.about summary { cursor: pointer; font-weight: 600; }
.about ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.about li { margin-bottom: 6px; }
.deck { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.deck-top { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.deck-top .ft { width: 44px; height: 44px; border-radius: 6px; background: #3f73a8; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .06em; display: grid; place-items: center; }
.deck-t { font-weight: 600; }
.deck-m { font-size: 12.5px; color: var(--muted); }
.deck-kpi { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; align-items: baseline; }
.deck-kpi span { color: var(--muted); }
.deck-kpi b { font-variant-numeric: tabular-nums; margin-left: 4px; }
.deck-kpi .link { margin-left: auto; }
.deck-more { margin-top: 10px; }
.btn-open { font-weight: 600; font-size: 13px; color: #fff; background: var(--navy); padding: 8px 14px; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.vx { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.vx button.link { font: inherit; font-weight: 600; }
button.btn-open { all: unset; cursor: pointer; font-weight: 600; font-size: 13px; color: #fff; background: var(--navy); padding: 8px 14px; border-radius: 6px; white-space: nowrap; }
button.btn-open.alt { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); padding: 7px 13px; }
button.btn-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; max-width: min(92vw, 520px); z-index: 60; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.btn-open.sm { font-size: 12px; padding: 4px 10px; }
button.btn-open.alt.sm { padding: 3px 9px; }
.vxl { gap: 6px; font-size: 13px; }
.vxl .sep { color: var(--muted); }
.fdocs { display: grid; gap: 6px; }
.fdoc { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.fdoc > span:first-child { color: var(--ink); }
.pcl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0; }
.pcl-t { font-size: 12px; color: var(--muted); }
.mlinks .fdoc { max-width: 380px; }
.btn-open.off { background: var(--surface-2); color: var(--muted); }
.btn-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.srch { font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--ink); min-width: 220px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-bottom: 14px; }
.toolbar .chips { margin: 0; }
@media (max-width: 520px) { .deck-top { grid-template-columns: 40px minmax(0, 1fr); } .deck-top .btn-open { grid-column: 1 / -1; text-align: center; } .rel { grid-template-columns: minmax(0, 1fr) auto; } .rel .bar { grid-column: 1 / -1; } .hero-band h1 { font-size: 24px; } }

.vw { position: fixed; inset: 0; z-index: 50; background: rgba(15,18,28,.72); display: flex; align-items: stretch; justify-content: center; padding: 16px; }
.vw[hidden] { display: none; }
.vw-panel { background: var(--surface); border-radius: 10px; width: min(1100px, 100%); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.vw-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.vw-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.vw-pg { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vw-btn { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.vw-btn:hover { border-color: var(--accent); }
.vw-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vw-btn.pri { background: var(--navy); border-color: var(--navy); color: #fff; }
.vw-body { overflow: auto; padding: 16px; background: var(--surface-2); flex: 1; }
.vw-body canvas, .vw-body img { display: block; width: 100%; max-width: 960px; height: auto; margin: 0 auto 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.fbk p { margin: 0 0 12px; }
.fbk-l { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; }
.fbk-l a { color: var(--accent); font-weight: 600; }
.fbk-t { width: 100%; box-sizing: border-box; font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); margin-bottom: 10px; }
.dir-search { padding: 8px 16px; border-bottom: 1px solid var(--line); }
.dsearch { position: relative; display: block; }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 4px; }
@media (max-width: 900px) { .dgrid { grid-template-columns: minmax(0, 1fr); } }
.dbox { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; align-self: start; }
.dbox h3 { margin: 0; padding: 12px 16px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.dtbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtbl td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtbl tr:last-child td { border-bottom: 0; }
.dtbl .dfund { white-space: nowrap; width: 1%; } .dtbl .dfund .link { display: block; font-size: 12.5px; }
.dtbl .ddesc small { display: block; color: var(--muted); font-size: 11.5px; }
.dtbl .ddate { white-space: nowrap; color: var(--muted); text-align: right; } .dtbl .dopen { white-space: nowrap; text-align: right; }
.dnote { margin: 0; padding: 14px 16px; color: var(--muted); font-size: 13px; }
.dmore { all: unset; box-sizing: border-box; display: block; width: 100%; text-align: center; padding: 7px; cursor: pointer; font-size: 12.5px; color: var(--accent); border-top: 1px solid var(--line); background: var(--surface-2); }
.dmore:hover, .dmore:focus-visible { background: var(--accent-soft); }
.dtag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 2px 8px; white-space: nowrap; }
.dsearch svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 2; pointer-events: none; }
.dsearch input { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px 8px 33px; }
.dsearch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.grp-row.subv { background: var(--surface); border-top: 1px solid var(--line); }
.grp-row.subv .grp-main { padding-left: 28px; }
.grp-row.subv .grp-name { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; }
.grp ul.vl .lpb { padding-left: 44px; }
.allf-h { margin: 26px 0 12px; padding-top: 14px; border-top: 2px solid var(--line); font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.allf-h.first { margin-top: 4px; border-top: 0; padding-top: 0; }
.vw-note { font-size: 12px; color: var(--muted); padding: 8px 16px; border-top: 1px solid var(--line); }
.grid tr.cur td { background: var(--surface-2); }
.vw.mm { z-index: 40; align-items: center; }
.vw-panel.mm-panel { width: min(760px, 100%); max-height: 100%; }
.mm-body { background: var(--surface); }
@media (max-width: 520px) { .vw { padding: 0; } .vw-panel { border-radius: 0; } }
@media (max-width: 520px) { .vw.mm { align-items: stretch; } .vw-panel.mm-panel { max-height: none; } }
.dir-sort { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.dir-sort select { flex: 1; font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.dir-sort select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.grid tr.ent td { font-size: 13px; background: var(--surface-2); }
.grid tr.ent td:first-child { padding-left: 34px; }
.ent-name { color: var(--muted); }
.ents { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ents li { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ents li:last-child { border-bottom: 0; }
.ents span { color: var(--muted); font-size: 13px; }

.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .cal-wrap { grid-template-columns: minmax(0, 1fr); } }
.cal-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 14px; }
.cal-bar h2 { font-family: var(--font-display); font-size: 20px; margin: 0 8px 0 0; min-width: 150px; }
.cal-bar .sp { flex: 1; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); border-radius: 8px; overflow: hidden; }
.cal-h { padding: 6px 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; }
.cal-d { min-height: 104px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-d:hover { background: var(--surface-2); }
.cal-d:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal-d.out { background: var(--surface-2); color: var(--muted); }
.cal-d.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-d .dn { font-size: 12.5px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 99px; }
.cal-d.today .dn { background: var(--navy); color: #fff; }
.mchip { all: unset; box-sizing: border-box; display: block; width: 100%; font-size: 11.5px; line-height: 1.3; padding: 3px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--accent); }
.mchip:hover { filter: brightness(.96); }
.mchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mchip.done { border-left-color: var(--pos); }
.mchip.pending { border-left-style: dashed; border-left-color: var(--warn-ink); background: var(--warn-bg); }
.mchip.cancelled { border-left-color: var(--muted); text-decoration: line-through; color: var(--muted); }
.mchip.open { box-shadow: 0 0 0 2px var(--accent); }
.mmore { font-size: 11px; color: var(--muted); padding-left: 4px; }
.agenda-day { margin-bottom: 16px; }
.agenda-day h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.arow { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); margin-bottom: 6px; cursor: pointer; }
.arow:hover { border-color: var(--accent); }
.arow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.arow .t { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.arow b { display: block; }
.arow small { color: var(--muted); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; display: flex; flex-direction: column; gap: 3px; }
.ccard .cn { font-weight: 600; font-size: 14.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ccard .co, .ccard .ca { color: var(--muted); font-size: 12.5px; }
.ccard a { color: var(--accent, #3f73a8); text-decoration: none; }
.ccard .cl { color: var(--muted); font-size: 12px; margin-left: 4px; }

.att { cursor: help; }
.att:hover { background: var(--accent-soft); }
#srctip { position: fixed; z-index: 95; pointer-events: none; max-width: 380px; background: var(--ink); color: var(--surface); border-radius: 6px; padding: 9px 12px; font-size: 12px; line-height: 1.45; box-shadow: 0 4px 14px rgba(0,0,0,.28); text-align: left; font-weight: 400; white-space: normal; }
#srctip[hidden] { display: none; }
#srctip .st-h { font-weight: 600; margin-bottom: 4px; }
#srctip .st-r { margin-top: 2px; overflow-wrap: anywhere; } #srctip .st-r span { opacity: .7; margin-right: 4px; }
.srctbl { min-width: 880px; table-layout: fixed; } .srctbl th:nth-child(1) { width: 30%; } .srctbl th:nth-child(2) { width: 54%; } .srctbl th:nth-child(3) { width: 16%; } textarea.src-path { resize: none; overflow: hidden; display: block; line-height: 1.4; word-break: break-all; } .srctbl td.l code { font-size: 12px; overflow-wrap: anywhere; } .srctbl td { white-space: normal; vertical-align: top; }
.src-in { width: 100%; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.src-in::placeholder { color: var(--warn-ink); opacity: .8; } tr.src-err .src-in { border-color: var(--neg); }
.srcfiles { margin: 6px 0 0; padding-left: 18px; font-size: 12px; max-height: 220px; overflow: auto; } .srctbl summary { cursor: pointer; }
.ccard .cby { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.clog { margin-top: 18px; } .clog summary { cursor: pointer; font-weight: 600; } .clog table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; } .clog th, .clog td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } .clog th { color: var(--muted); font-size: 11.5px; }
.ccard .cact { margin-top: 6px; display: flex; gap: 8px; }
.cblock { margin: 12px 0; }
.cblock .cgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.mdet h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 2px; }
.mdet .when { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.mdet dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 10px; margin: 0 0 12px; font-size: 13.5px; }
.mdet dt { color: var(--muted); }
.mdet dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.mdet dd a { color: var(--accent, #3f73a8); text-decoration: underline; }
.macts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.msnap { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.msnap .strip { margin-bottom: 10px; }
.mini { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 8px; }
.mini th { text-align: right; color: var(--muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.mini td { text-align: right; padding: 5px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mini th:first-child, .mini td:first-child { text-align: left; }
.mlinks { font-size: 13px; display: grid; gap: 4px; margin-bottom: 8px; }
.mlinks span { color: var(--muted); }
.mlinks a:not(.btn-open) { margin-right: 10px; }
.mf-panel { max-width: 720px; }
.mf-body { padding: 16px; overflow: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mf-f { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; min-width: 0; }
.mf-f input, .mf-f select, .mf-f textarea { font: inherit; font-weight: 400; font-size: 14px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-width: 0; }
.mf-f input:focus-visible, .mf-f select:focus-visible, .mf-f textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mf-wide { grid-column: 1 / -1; }
.pk-menu { position: fixed; z-index: 70; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-height: 260px; overflow: auto; }
.pk-menu[hidden] { display: none; }
.pk-i { padding: 7px 12px; cursor: pointer; display: grid; gap: 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pk-i:last-child { border-bottom: 0; }
.pk-i span { color: var(--muted); font-size: 12px; } .pk-i small { color: var(--accent); font-size: 12px; }
.pk-i.on, .pk-i:hover { background: var(--accent-soft); }
.pk-i.all { color: var(--accent); }
.ai-drop { border: 2px dashed var(--line); border-radius: 8px; padding: 18px; text-align: center; color: var(--muted); font-size: 13.5px; cursor: pointer; background: var(--surface-2); }
.ai-drop:hover, .ai-drop.over, .ai-drop:focus-visible { border-color: var(--accent); color: var(--ink); outline: none; }
.ai-body { padding: 16px; overflow: auto; display: grid; gap: 12px; }
.ai-files { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-file { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 12.5px; background: var(--surface-2); }
.ai-file img { height: 36px; width: 36px; object-fit: cover; border-radius: 4px; }
.ai-file button { border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--muted); }
.ai-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ai-card.done { opacity: .6; }
.ai-card .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ai-card .t { font-weight: 600; } .ai-card .s { font-size: 12.5px; color: var(--muted); }
.mf-err { grid-column: 1 / -1; color: var(--neg); margin: 0; font-size: 13px; min-height: 1em; }
.mf-acts { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
@media (max-width: 560px) { .mf-body { grid-template-columns: 1fr 1fr; } .cal-d { min-height: 64px; padding: 3px; } .mchip { font-size: 10px; padding: 2px 3px; } .arow { grid-template-columns: 70px minmax(0, 1fr); } .arow .pill { display: none; } }

/* ---------- External (investor) view preview ---------- */
.mast-in .viewseg { margin-left: auto; border-color: rgba(255,255,255,.45); }
.mast .viewseg button { color: rgba(255,255,255,.8); padding: 6px 14px; }
.mast .viewseg button + button { border-left-color: rgba(255,255,255,.45); }
.mast .viewseg button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.xbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-bottom: 20px; }
.texp { display: flex; align-items: center; gap: 6px; justify-content: flex-end; margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.texp button { font: inherit; font-size: 12px; font-weight: 600; color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 4px; padding: 2px 9px; cursor: pointer; }
.texp button:hover { border-color: var(--accent); }
.xchart { width: 100%; height: auto; max-width: 760px; display: block; }
.xchart .cg { stroke: var(--line); stroke-width: 1; }
.xchart .ca { fill: var(--muted); font-size: 11px; }
.xchart .cl { fill: var(--ink); font-size: 12px; font-weight: 600; }
.chx:focus { outline: none; fill: rgba(63,115,168,.10); }
.chx:hover { fill: rgba(63,115,168,.08); }
#chtip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: var(--surface); border-radius: 6px; padding: 8px 11px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
#chtip[hidden] { display: none; }
details.chtbl { margin-top: 8px; } details.chtbl > summary { cursor: pointer; font-size: 12.5px; color: var(--accent); font-weight: 600; }
details.chist { border-top: 1px solid var(--line); } details.chist > summary { cursor: pointer; padding: 8px 0; font-size: 13.5px; }
.dsearch { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.dsearch input { flex: 1 1 280px; min-width: 0; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.dsearch label { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.dsearch select { font: inherit; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.xledger td.l, .xledger th.l { text-align: left; }
.xbar[hidden], .tabs-row[hidden], .mock-note[hidden] { display: none; }
.xbar b { font-weight: 600; }
.xbar .xadv { display: inline-flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; margin-left: auto; }
.xbar .xadv label { margin-left: 0; }
.xcl { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.xcl summary { cursor: pointer; padding: 6px 10px; font-weight: 600; }
.xcl-b { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 14px; padding: 8px 12px 12px; max-height: 260px; overflow: auto; border-top: 1px solid var(--line); min-width: min(560px, 80vw); }
.xcl-b label { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 0; }
.xadv[hidden], #xas-wrap[hidden] { display: none; }
.xbar label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-left: auto; }
.xbar select { flex: 1; min-width: 0; font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; max-width: 320px; }
.xalloc { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 4px 0 10px; background: var(--surface-2); }
.xalloc i { display: block; min-width: 3px; }
.xleg { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.xleg span { display: inline-flex; align-items: center; gap: 6px; }
.xleg i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.xchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.xchip { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; cursor: pointer; }
.xchip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
details.xacct { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 10px; }
details.xacct > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 24px; align-items: center; padding: 12px 16px; font-weight: 600; }
details.xacct > summary::-webkit-details-marker { display: none; }
details.xacct > summary .xs-n::before { content: "\25B8"; color: var(--muted); margin-right: 8px; display: inline-block; transition: transform .15s; }
details.xacct[open] > summary .xs-n::before { transform: rotate(90deg); }
details.xacct > summary .xs-n { grid-column: 1; }
details.xacct > summary .xs-v { text-align: right; font-variant-numeric: tabular-nums; }
details.xacct > summary .xs-v small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
details.xacct > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.xacct-b { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.xacct-b .sec-title { margin-top: 14px; }
.xhello { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.xdocs td.l a, .xdocs td.l .link { font-weight: 600; }
.xtype { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { details.xacct > summary { grid-template-columns: minmax(0, 1fr); } details.xacct > summary .xs-v { text-align: left; } .xbar label { margin-left: 0; width: 100%; } }
details.xacct > summary { grid-template-columns: minmax(0, 1fr) 150px 150px 150px; }
.xacct-h { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px 150px; gap: 8px 24px; padding: 0 16px 6px; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.xacct-h span:not(:first-child) { text-align: right; }
details.xacct > summary .xs-v small { display: none; }
@media (max-width: 720px) {
  .xacct-h { display: none; }
  details.xacct > summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
  details.xacct > summary .xs-n { grid-column: 1 / -1; }
  details.xacct > summary .xs-v { text-align: left; font-size: 13px; }
  details.xacct > summary .xs-v small { display: block; }
}
.xexp { all: unset; cursor: pointer; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; margin-right: 4px; border-radius: 4px; vertical-align: middle; }
.xexp::before { content: "\25B8"; color: var(--muted); transition: transform .15s; }
.xexp[aria-expanded="true"]::before { transform: rotate(90deg); }
.xexp:hover { background: var(--accent-soft); } .xexp:focus-visible { outline: 2px solid var(--accent); }
.xfb { font: inherit; font-size: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 2px 4px; margin: -2px -4px; border-radius: 4px; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.xfb:hover { background: var(--accent-soft); } .xfb.on { color: var(--accent); background: var(--accent-soft); } .xfb b { font-size: 11px; }
#xf-menu { position: fixed; z-index: 80; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); min-width: 230px; max-width: min(340px, calc(100vw - 16px)); max-height: 60vh; overflow: auto; padding: 8px 0; font-size: 13.5px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); }
#xf-menu .xf-h { display: flex; justify-content: space-between; gap: 12px; padding: 4px 14px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 12.5px; }
#xf-menu label { display: flex; align-items: center; gap: 8px; padding: 6px 14px; cursor: pointer; } #xf-menu label:hover { background: var(--surface-2); }
#xf-menu label span { flex: 1; } #xf-menu label small { color: var(--muted); }

/* ---------- IR inbox requests ---------- */
.tbadge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: #e0813a; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.rq-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 14px; }
.rq-tools select { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.rq-tools label { font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
table.rq td.l, table.rq th.l { text-align: left; }
table.rq td.sm { white-space: normal; min-width: 260px; }
table.rq td.sj { white-space: normal; min-width: 200px; font-weight: 600; }
table.rq td.sj small { display: block; font-weight: 400; color: var(--muted); }
table.rq input.rq-own { font: inherit; font-size: 13px; width: 120px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--ink); }
table.rq td.ra { white-space: nowrap; text-align: left; }
table.rq td.ra .link { margin-right: 10px; }
.pill.hi { background: #fbe4e1; color: #9a2f27; } .pill.md { background: var(--warn-bg); color: var(--warn-ink); } .pill.lo { background: var(--surface-2); color: var(--muted); }
.pill.done { background: #dff1e8; color: #1f6a47; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.hi { background: #4a2420; color: #f0a8a1; } :root:not([data-theme="light"]) .pill.done { background: #1d3a2d; color: #86d4ab; } }
:root[data-theme="dark"] .pill.hi { background: #4a2420; color: #f0a8a1; } :root[data-theme="dark"] .pill.done { background: #1d3a2d; color: #86d4ab; }

.tabgrp { position: relative; }
.tab .caret { font-size: 10px; margin-left: 3px; opacity: .8; }
.tabmenu { position: absolute; top: 100%; left: 0; z-index: 20; min-width: 230px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.22); padding: 4px; display: grid; }
.tabmenu[hidden] { display: none; }
.tabmenu .mi { font: inherit; font-size: 13.5px; text-align: left; padding: 8px 12px; border: 0; background: none; color: var(--ink); border-radius: 5px; cursor: pointer; }
.tabmenu .mi:hover, .tabmenu .mi:focus-visible { background: var(--accent-soft); outline: none; }
.tabmenu .mi[aria-current="page"] { font-weight: 700; color: var(--accent); }

/* ---------- Feature survey ---------- */
.sv-intro { color: var(--muted); max-width: 70ch; margin: 4px 0 0; }
.sv-scale { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--muted); margin: 8px 0; }
.sv-scale b { color: var(--ink); }
.sv-ph { margin-bottom: 18px; }
.sv-ph h2 { font-family: var(--font-display); font-size: 20px; margin: 0; }
.sv-ph .sv-blurb { color: var(--muted); margin: 2px 0 8px; font-size: 13.5px; }
.svq { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.svq .qn { font-weight: 600; }
.svq .qd { color: var(--muted); font-size: 13.5px; max-width: 60ch; }
.svq .qv { color: var(--accent); font-size: 12.5px; margin-top: 2px; }
.svo { display: flex; gap: 6px; flex-wrap: wrap; }
.svo label { position: relative; }
.svo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.svo span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; font-variant-numeric: tabular-nums; user-select: none; }
.svo input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.svo input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.svo span:hover { border-color: var(--accent); }
.sv-top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; }
.sv-top .mf-f { min-width: 260px; }
.sv-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sv-st { font-size: 13.5px; color: var(--muted); }
.sv-st.ok { color: var(--pos); } .sv-st.err { color: var(--neg); }
.sv-dist { display: inline-flex; height: 10px; width: 110px; border-radius: 3px; overflow: hidden; background: var(--surface-2); vertical-align: middle; }
.sv-dist i { display: block; height: 100%; }
.sv-note { background: var(--accent-soft); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; font-size: 13.5px; }
@media (max-width: 560px) { .svq { grid-template-columns: 1fr; } }

/* Sign-out button in the masthead for every signed-in user. Staff: right of the view switcher. */
.portal-out { margin: 0 0 0 auto; }
.viewseg:not([hidden]) + .portal-out { margin-left: 0; }

/* Admin tab (IR.Editor / IR.Approver only). New classes only: no existing view changes. */
.adm-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; align-items: end; }
.adm-form .mf-wide { grid-column: 1 / -1; }
.adm-form .mf-f select[multiple] { padding: 4px; }
.adm-form [hidden] { display: none; }
.adm-t { min-width: 720px; }
.adm-t td.l { white-space: normal; vertical-align: top; }
.adm-t code { font-size: 12px; overflow-wrap: anywhere; }
.adm-acts { white-space: nowrap; text-align: right; }
.adm-acts .vw-btn { margin: 2px 0; }
.adm-fig input { font: inherit; font-size: 13px; width: 130px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--ink); text-align: right; }
.adm-hist { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; }
.adm-hist li { margin-bottom: 4px; }
.adm-det { font-size: 12px; color: var(--muted); max-width: 420px; overflow-wrap: anywhere; }
.adm-detail td { background: var(--surface-2); }
