/* ============================================================
   Origin Investor Portal - v1 SPA styles
   Design tokens and component vocabulary ported from
   design/prototype.html. Light + dark come free via tokens.
   ASCII only. No hardcoded firm colors; branding tokens may be
   overridden at runtime from /api/portal/me branding.

   Register: quiet fund-administrator. One accent (evergreen),
   hairline rules, generous whitespace, tabular numerals,
   8px spacing rhythm.
   ============================================================ */

:root {
  --paper: #FAFAF8;
  --card: #FFFFFF;
  --ink: #1E2926;
  --ink-soft: #55645F;
  --ink-faint: #8A968F;
  --line: #E3E7E2;
  --line-soft: #EEF1EC;
  --brand: #14544A;
  --brand-deep: #0E3F38;
  --brand-tint: #EAF2EF;
  --pos: #1B7A4E;
  --shadow: 0 1px 2px rgba(20, 40, 35, .05), 0 4px 16px rgba(20, 40, 35, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101715;
    --card: #18211E;
    --ink: #E8ECE9;
    --ink-soft: #A7B3AD;
    --ink-faint: #6E7B75;
    --line: #2A3531;
    --line-soft: #222C28;
    --brand: #4FA893;
    --brand-deep: #6FBFAC;
    --brand-tint: #1C2E29;
    --pos: #5CBB8A;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  }
}
:root[data-theme="light"] {
  --paper: #FAFAF8; --card: #FFFFFF; --ink: #1E2926; --ink-soft: #55645F;
  --ink-faint: #8A968F; --line: #E3E7E2; --line-soft: #EEF1EC;
  --brand: #14544A; --brand-deep: #0E3F38; --brand-tint: #EAF2EF; --pos: #1B7A4E;
  --shadow: 0 1px 2px rgba(20, 40, 35, .05), 0 4px 16px rgba(20, 40, 35, .06);
}
:root[data-theme="dark"] {
  --paper: #101715; --card: #18211E; --ink: #E8ECE9; --ink-soft: #A7B3AD;
  --ink-faint: #6E7B75; --line: #2A3531; --line-soft: #222C28;
  --brand: #4FA893; --brand-deep: #6FBFAC; --brand-tint: #1C2E29; --pos: #5CBB8A;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
}

/* Brand logo pair: markup carries both the black (.logo-light) and white
   (.logo-dark) transparent PNGs; only one is visible per theme. data-theme
   overrides beat the media query, mirroring the token blocks above. */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: inline-block; }
}
:root[data-theme="light"] .logo-light { display: inline-block; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: inline-block; }

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.serif { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.num, .lead-value, .lead-svalue, .sum-value { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* One focus treatment for the whole surface. */
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px;
}

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.skiplink:focus {
  left: 16px; top: 16px;
  background: var(--card); color: var(--brand-deep);
  border: 1px solid var(--brand); border-radius: 8px; padding: 9px 14px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.frame { max-width: 1080px; margin: 32px auto 56px; padding: 0 24px; }

/* -- portal chrome ------------------------------------------- */
.portal {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.topbar .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar .brand .brand-logo { height: 21px; width: auto; }
/* Firm identity is the logo; the org-name text stays in the DOM as the
   runtime branding hook (and for document.title) but is not rendered. */
.topbar .brand .name { display: none; font-size: 19px; letter-spacing: .01em; }
.topbar .brand .sub {
  font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--brand); font-weight: 700; white-space: nowrap;
}
.session { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.ctl-email { color: var(--ink-soft); }
.session-sep { color: var(--line); }
.signout { color: var(--ink-faint); text-decoration: none; cursor: pointer; font-weight: 600; }
.signout:hover { color: var(--ink); }

/* investor switcher: sits with the wordmark, uses the same control vocabulary as the
   account / period selects. Hidden entirely for single-investor sessions. */
.gswitch { display: flex; align-items: center; margin-right: auto; min-width: 0; }

.tabnav {
  display: flex; gap: 4px; padding: 0 28px; border-bottom: 1px solid var(--line);
  background: var(--card); overflow-x: auto;
}
.tabnav a {
  padding: 13px 12px 11px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabnav a:hover { color: var(--ink); }
.tabnav a.current { color: var(--brand-deep); border-bottom-color: var(--brand); }
.tabnav a:focus-visible { outline-offset: -3px; }

/* context row: account + statement period, one quiet line */
.contextbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 11px 28px;
  border-bottom: 1px solid var(--line); background: var(--paper);
}
.contextbar:empty { display: none; }
.ctl-group { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ctl-wrap { position: relative; display: inline-flex; align-items: center; gap: 9px; }
.ctl-label {
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; white-space: nowrap;
}
.ctl-select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 30px 7px 11px; cursor: pointer; max-width: 260px;
}
.ctl-select:hover { border-color: var(--brand); }
.ctl-wrap::after {
  content: ""; position: absolute; right: 12px; top: 50%; pointer-events: none;
  width: 0; height: 0; margin-top: -1px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-faint);
}
.ctl-hint { font-size: 12px; color: var(--ink-faint); }

/* -- board / screens ----------------------------------------- */
.board { padding: 32px 28px 36px; }
.board:focus { outline: none; }
.board-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.board-head h1 { font-size: 25px; font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: .005em; }
.asof { font-size: 12.5px; color: var(--ink-faint); }
.asof strong { color: var(--ink-soft); font-weight: 600; }
.board-sub { font-size: 13.5px; color: var(--ink-soft); margin: -10px 0 26px; max-width: 68ch; }

/* lead stat block: one headline figure, companions on a hairline grid */
.leadblock {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  margin-bottom: 32px; overflow: hidden;
}
.lead-primary { padding: 24px 24px 20px; }
.lead-label {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin-bottom: 8px;
}
.lead-value { font-size: 36px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.lead-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; }
.lead-companions {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft); background: var(--paper);
}
.lead-stat { padding: 16px 24px; border-left: 1px solid var(--line-soft); min-width: 0; }
.lead-stat:first-child { border-left: 0; }
.lead-slabel {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin-bottom: 6px;
}
.lead-svalue { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.lead-svalue.pos { color: var(--pos); }
.lead-svalue.neg { color: var(--ink-soft); }
.lead-svalue.soft { color: var(--ink-faint); font-weight: 500; }
@media (max-width: 820px) {
  .lead-companions { grid-template-columns: repeat(2, 1fr); }
  .lead-stat:nth-child(odd) { border-left: 0; }
  .lead-stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 430px) {
  .lead-primary { padding: 20px 18px 16px; }
  .lead-value { font-size: 30px; }
  .lead-companions { grid-template-columns: 1fr; }
  .lead-stat { border-left: 0; border-top: 1px solid var(--line-soft); padding: 13px 18px; }
  .lead-stat:first-child { border-top: 0; }
}

/* quiet summary strip (activity) */
.sumstrip {
  display: flex; flex-wrap: wrap; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); margin-bottom: 26px; overflow: hidden;
}
.sum-item { flex: 1 1 220px; padding: 16px 24px; border-left: 1px solid var(--line-soft); min-width: 0; }
.sum-item:first-child { border-left: 0; }
.sum-label {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin-bottom: 6px;
}
.sum-value { font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 480px) {
  .sum-item { flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--line-soft); padding: 14px 18px; }
  .sum-item:first-child { border-top: 0; }
}

/* section headings */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin: 0 0 12px;
}
.section-head .section-title { margin: 0; }
.section-note { font-size: 12px; color: var(--ink-faint); }

/* -- tables --------------------------------------------------- */
.tablewrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 32px;
}
.tablewrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
thead th {
  text-align: right; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; padding: 11px 16px;
  border-bottom: 1px solid var(--line); background: var(--paper); white-space: nowrap;
}
thead th:first-child, tbody td:first-child, tfoot td:first-child { text-align: left; }
tbody td, tfoot td {
  padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line-soft);
  white-space: nowrap; color: var(--ink-soft);
}
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { font-weight: 600; color: var(--ink); white-space: normal; }
td.pos { color: var(--pos); font-weight: 600; }
td.neg { color: var(--ink-soft); }
tfoot td {
  border-top: 1px solid var(--line); border-bottom: 0;
  font-weight: 700; color: var(--ink); background: var(--paper);
}
/* ledger-style tables: text columns read left, the figure column reads right */
table.tbl-left thead th, table.tbl-left tbody td, table.tbl-left tfoot td { text-align: left; }
table.tbl-left thead th:last-child,
table.tbl-left tbody td:last-child,
table.tbl-left tfoot td:last-child { text-align: right; }

.moic { font-weight: 600; color: var(--ink); }
.rownote { font-size: 12px; color: var(--ink-faint); font-weight: 400; }

/* year band inside the activity ledger */
.act-year td, table.tbl-left tbody tr.act-year td {
  text-align: left;
  background: var(--paper); color: var(--ink-faint);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  padding: 8px 16px; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line-soft);
}
tbody tr.act-year:first-child td { border-top: 0; }

/* -- panels / rows -------------------------------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line-soft); border-radius: 10px; padding: 18px 20px; }
.doc-row, .act-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px;
}
.doc-row:last-child, .act-row:last-child { border-bottom: 0; }
.doc-meta, .act-meta { min-width: 0; }
.doc-name { font-weight: 600; color: var(--ink); }
.doc-sub, .act-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.panel-note { font-size: 13px; color: var(--ink-faint); padding: 10px 0; }
.dl {
  flex: none; font-size: 12.5px; font-weight: 600; color: var(--brand);
  text-decoration: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 13px; cursor: pointer; white-space: nowrap;
}
.dl:hover { border-color: var(--brand); background: var(--brand-tint); }
.act-amt { font-weight: 600; color: var(--ink); flex: none; }

.footnote {
  margin: 4px 0 0; padding: 13px 16px; border-radius: 8px;
  background: var(--paper); border: 1px solid var(--line-soft);
  font-size: 12.5px; line-height: 1.6; color: var(--ink-faint);
}

.disclosure {
  padding: 18px 28px 22px; border-top: 1px solid var(--line);
  background: var(--paper); font-size: 11px; color: var(--ink-faint); line-height: 1.65;
}
.disclosure p { margin: 0; }
.disclosure-brand { margin-bottom: 9px; }
.disclosure-brand .brand-logo { height: 13px; width: auto; opacity: .5; }
.disclosure-meta {
  margin-top: 6px !important; letter-spacing: .06em; text-transform: uppercase;
  font-size: 9.5px; font-weight: 600;
}

/* -- investments (inv-) -------------------------------------- */
.inv-row-link { cursor: pointer; }
.inv-row-link:hover td { background: var(--brand-tint); }
.inv-row-link:hover td:first-child { color: var(--brand-deep); }
.inv-row-link:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.inv-panelhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.inv-panelhead .section-title { margin: 0; }
.inv-viewall { font-size: 12px; font-weight: 600; color: var(--brand); text-decoration: none; letter-spacing: .02em; }
.inv-viewall:hover { text-decoration: underline; }

.inv-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.inv-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 18px 20px; text-align: left; width: 100%; font: inherit; color: inherit;
}
button.inv-card { cursor: pointer; }
button.inv-card:hover { border-color: var(--line); background: var(--paper); }
.inv-main { min-width: 0; }
.inv-name { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.inv-name .rownote { font-weight: 400; }
.inv-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }
.inv-cols { display: grid; grid-template-columns: repeat(4, minmax(96px, auto)); gap: 26px; align-items: baseline; flex: none; }
.inv-metric { text-align: right; }
.inv-mlabel { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-bottom: 4px; }
.inv-mval { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.inv-mval.soft { color: var(--ink-faint); font-weight: 500; }
@media (max-width: 720px) {
  .inv-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .inv-cols { grid-template-columns: repeat(2, 1fr); gap: 14px 24px; width: 100%; }
  .inv-metric { text-align: left; }
}

.inv-crumb { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 14px; }
.inv-crumb a { color: var(--brand); text-decoration: none; font-weight: 600; cursor: pointer; }
.inv-crumb a:hover { text-decoration: underline; }
.inv-crumb .sep { padding: 0 8px; color: var(--line); }
.inv-dethead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.inv-dethead h1 { font-size: 25px; font-weight: 500; margin: 0; text-wrap: balance; }
.inv-chip {
  display: inline-flex; align-items: center;
  background: var(--paper); color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
  font-weight: 600; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
}
.inv-detsub { font-size: 13px; color: var(--ink-faint); margin: 0 0 24px; }

/* -- documents + activity (doc- / act-) ---------------------- */
.notice {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--brand); border-radius: 8px;
  padding: 14px 18px; margin-bottom: 24px;
}
.notice-mark {
  flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-deep); padding-top: 2px;
}
.notice-body { min-width: 0; }
.notice-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.notice-text { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

.doc-filters, .act-filters { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.doc-fgroup { display: flex; flex-direction: column; gap: 6px; }
.doc-flabel { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.doc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.doc-chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  border-radius: 999px; padding: 7px 14px; font: 600 12.5px/1 inherit; font-family: inherit; cursor: pointer;
}
.doc-chip:hover { border-color: var(--brand); color: var(--ink); }
.doc-chip[aria-pressed="true"] { background: var(--brand-tint); color: var(--brand-deep); border-color: var(--brand); }
.doc-select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding: 8px 30px 8px 12px; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  min-width: 190px; cursor: pointer;
}
.doc-select:hover { border-color: var(--brand); }
.doc-fgroup { position: relative; }
.doc-fgroup.has-select::after {
  content: ""; position: absolute; right: 12px; bottom: 15px; pointer-events: none;
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-faint);
}
.doc-tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .03em;
  color: var(--ink-soft); background: var(--paper);
  border: 1px solid var(--line-soft); border-radius: 6px; padding: 2px 9px;
}
.doc-empty { text-align: center; color: var(--ink-faint); font-size: 13.5px; padding: 40px 16px; }
.doc-count { font-size: 12px; color: var(--ink-faint); margin: 0 0 12px; }

.act-type {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .03em;
  border-radius: 6px; padding: 2px 9px; border: 1px solid var(--line-soft);
  color: var(--ink-soft); background: var(--paper);
}
.act-type.is-contribution { color: var(--brand-deep); border-color: var(--line); }
.act-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; font-size: 12.5px; color: var(--ink-faint);
  background: var(--paper); border-top: 1px solid var(--line);
}
.act-export {
  font-size: 12.5px; font-weight: 600; color: var(--brand); text-decoration: none;
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 13px; cursor: pointer;
}
.act-export:hover { background: var(--brand-tint); border-color: var(--brand); }

/* -- auth (login- / au-) ------------------------------------- */
.login-wrap {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); min-height: 540px;
  display: flex; align-items: center; justify-content: center; padding: 56px 24px;
}
.login-card { width: 100%; max-width: 384px; text-align: center; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.wordmark .brand-logo { height: 26px; width: auto; }
.wordmark .name { font-size: 25px; letter-spacing: .01em; color: var(--ink); }
.wordmark .sub { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.login-card h1 { font-size: 20px; font-weight: 500; margin: 40px 0 8px; text-wrap: balance; }
.login-card p.lede { color: var(--ink-soft); font-size: 14px; margin: 0 0 28px; text-wrap: pretty; }
.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus-visible { outline: 2px solid var(--brand); outline-offset: -1px; }
.btn-primary {
  width: 100%; padding: 13px 16px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--brand); color: #fff; font: 600 15px/1 inherit; font-family: inherit;
}
:root[data-theme="dark"] .btn-primary { color: #0E1A17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #0E1A17; } }
:root[data-theme="light"] .btn-primary { color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-primary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn-primary[disabled] { opacity: .55; cursor: default; }
.login-hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 18px; }
.login-foot {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: 11px; line-height: 1.65; color: var(--ink-faint);
}
.au-ghost {
  width: 100%; margin-top: 12px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  background: var(--card); color: var(--ink); font: 600 14.5px/1 inherit; font-family: inherit;
}
.au-ghost:hover { border-color: var(--brand); background: var(--brand-tint); }
.au-ghost[disabled] { opacity: .55; cursor: default; }
.au-back { display: inline-block; margin-top: 24px; font-size: 12.5px; font-weight: 600; color: var(--brand); text-decoration: none; cursor: pointer; }
.au-back:hover { text-decoration: underline; }
.au-badge {
  width: 52px; height: 52px; margin: 6px auto 24px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.au-badge svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 1.5; }
.au-sentto { display: block; margin: 4px 0 24px; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.au-expire {
  margin: 24px auto 0; max-width: 320px; padding: 10px 14px; border-radius: 8px;
  background: var(--paper); border: 1px solid var(--line-soft);
  font-size: 12px; color: var(--ink-faint);
}
/* investor picker (post sign-in): a quiet stack of names, no figures */
.choose-card { max-width: 420px; }
.choose-list { margin-top: 4px; text-align: left; }
.choose-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; padding: 14px 16px;
}
.choose-name { min-width: 0; color: var(--ink); }
.choose-go { flex: none; color: var(--brand); font-weight: 600; }
.choose-row:hover .choose-name { color: var(--brand-deep); }

.au-note {
  margin: 0 auto 22px; max-width: 360px; padding: 11px 14px; border-radius: 8px;
  background: var(--paper); border: 1px solid var(--line-soft); border-left: 3px solid var(--brand);
  font-size: 12.5px; color: var(--ink-soft); text-align: left;
}

/* -- skeleton / states --------------------------------------- */
.skel {
  background: linear-gradient(90deg, var(--line-soft) 25%, var(--line) 37%, var(--line-soft) 63%);
  background-size: 400% 100%; animation: skel 1.4s ease infinite; border-radius: 6px; display: block;
}
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skel-line { height: 12px; margin: 8px 0; }
.skel-row { height: 44px; margin: 8px 0; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; }
  * { scroll-behavior: auto !important; }
}
/* -- admin preview ------------------------------------------- */
/* Fixed deep evergreen in both themes: the bar marks an admin surface, not investor
   chrome, so it deliberately ignores the light/dark tokens. */
.previewbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 28px; font-size: 12.5px;
  background: #0E3F38; color: #E8F0ED;
  border-bottom: 1px solid rgba(0,0,0,.25);
}
.pv-label {
  font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  padding: 2px 9px; border: 1px solid rgba(232,240,237,.45); border-radius: 999px;
  white-space: nowrap;
}
.pv-text strong { font-weight: 600; color: #FFFFFF; }
/* the contact's own investor switcher, inside the preview bar */
.pv-select {
  font: inherit; font-size: 12.5px; font-weight: 600; color: #FFFFFF;
  background: rgba(255,255,255,.10); border: 1px solid rgba(232,240,237,.45);
  border-radius: 6px; padding: 3px 8px; max-width: 260px; cursor: pointer;
}
.pv-select option { color: #24303e; background: #FFFFFF; }
.pv-select:disabled { opacity: .6; cursor: default; }
.pv-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.14);
  color: #E8F0ED; white-space: nowrap;
}
.pv-actions { margin-left: auto; display: flex; gap: 18px; }
.previewbar a { color: #FFFFFF; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.previewbar a:hover { text-decoration: underline; }
.previewbar a:focus-visible { outline-color: #E8F0ED; }

.pick-card { max-width: 640px; }
.pick-table { margin: 0 0 20px; text-align: left; }
.pick-table table { min-width: 0; }
.pick-table thead th:first-child, .pick-table td:first-child { text-align: left; }
.pick-row { cursor: pointer; }
.pick-row:hover td { background: var(--brand-tint); }
.pick-row td:first-child { font-weight: 600; }
.pick-go { color: var(--brand); font-weight: 600; white-space: nowrap; }
/* investor / contact mode switch above the picker table */
.pick-modes { justify-content: center; margin: 0 0 14px; }
/* a contact attached to nothing: listed, but there is no portal to open for them */
.pick-row.pick-off { cursor: default; }
.pick-row.pick-off:hover td { background: transparent; }
.pick-row.pick-off td:first-child { font-weight: 500; color: var(--ink-soft); }
.pick-note { color: var(--ink-faint); }
.pick-badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line-soft);
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-faint);
  text-transform: none; white-space: nowrap;
}

.state-empty { text-align: center; color: var(--ink-faint); font-size: 14px; padding: 56px 16px; line-height: 1.8; }
.state-error { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 48px 16px; }
.state-error .dl { display: inline-block; margin-top: 16px; }

/* -- phone --------------------------------------------------- */
@media (max-width: 560px) {
  .frame { margin: 12px auto 28px; padding: 0 12px; }
  .portal { border-radius: 12px; }
  .topbar { padding: 14px 18px; gap: 10px; }
  .topbar .brand { flex-direction: column; align-items: flex-start; gap: 2px; }
  .tabnav { padding: 0 12px; }
  .contextbar { padding: 10px 18px; }
  .ctl-group { gap: 12px; }
  .ctl-select { max-width: 180px; }
  .board { padding: 24px 18px 28px; }
  .board-head h1, .inv-dethead h1 { font-size: 22px; }
  .board-sub { margin: -6px 0 22px; }
  .panel { padding: 16px; }
  .disclosure { padding: 16px 18px 20px; }
  .login-wrap { padding: 36px 18px; min-height: 0; }
}

/* -- print (statements get printed) --------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .frame { max-width: none; margin: 0; padding: 0; }
  .portal { border: 0; box-shadow: none; border-radius: 0; }
  .skiplink, .tabnav, .contextbar, .session, .gswitch, .dl, .act-export,
  .doc-filters, .act-filters, .skel, .inv-viewall { display: none !important; }
  .tablewrap { overflow: visible; border-color: #ccc; }
  table { min-width: 0; font-size: 11pt; }
  .board { padding: 0 0 12pt; }
  .leadblock, .sumstrip, .panel, .footnote, .notice { break-inside: avoid; }
  tr, td, th { page-break-inside: avoid; }
  .disclosure { background: transparent; border-top: 1px solid #ccc; }
}
