/* Investor Portal. SSV fonts (the files in assets/ssv/fonts), laid out as an application.
   A quiet palette: neutrals with a hint of pistachio by day, SSV black by night.
   Supernova is the one accent. Soft shadows only where something floats. */
@font-face { font-family: "Denim Ink"; src: url("ssv/fonts/DenimINK-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Quadrant Text Mono"; src: url("ssv/fonts/QuadrantTextMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ABC Diatype"; src: url("ssv/fonts/ABCDiatype-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root { --font-display: "Denim Ink", "Arial Black", sans-serif; --font-mono: "Quadrant Text Mono", "Courier New", monospace; --font-body: "ABC Diatype", "Helvetica Neue", Arial, sans-serif; }
:root[data-theme="light"], :root:not([data-theme]) {
  color-scheme: light;
  --bg: #f6f7f4; --surface: #ffffff; --sunken: #eef0eb; --hover: rgba(19, 18, 19, 0.05);
  --border: rgba(19, 18, 19, 0.09); --border-strong: rgba(19, 18, 19, 0.17);
  --text: #131213; --text-2: #5b5d58; --text-3: #777973;
  --accent: #f09eff; --accent-soft: #fae6ff; --accent-text: #86209e;
  --green-soft: #e2f3e9; --green-text: #1d7449; --blue-soft: #e5edff; --blue-text: #2a4fb3;
  --gold-soft: #fff1cf; --gold-text: #855a00; --red-soft: #ffe6e7; --red-text: #b01f29;
  --primary: #131213; --on-primary: #ffffff;
  --shadow-xs: 0 1px 2px rgba(19, 18, 19, 0.05);
  --shadow-md: 0 1px 2px rgba(19, 18, 19, 0.04), 0 6px 16px rgba(19, 18, 19, 0.06);
  --shadow-lg: 0 2px 6px rgba(19, 18, 19, 0.06), 0 28px 56px -12px rgba(19, 18, 19, 0.22);
  --scrim: rgba(19, 18, 19, 0.26); --brand-bg: #131213; --brand-text: #fdf3f9;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131213; --surface: #1b1a1b; --sunken: #0e0d0e; --hover: rgba(253, 243, 249, 0.06);
  --border: rgba(253, 243, 249, 0.08); --border-strong: rgba(253, 243, 249, 0.16);
  --text: #f6eff4; --text-2: #a9a3a8; --text-3: #8a848a;
  --accent: #f09eff; --accent-soft: rgba(240, 158, 255, 0.14); --accent-text: #f4b8ff;
  --green-soft: rgba(61, 180, 126, 0.16); --green-text: #74d6a6; --blue-soft: rgba(127, 165, 255, 0.16); --blue-text: #abc4ff;
  --gold-soft: rgba(255, 200, 87, 0.14); --gold-text: #ffd98a; --red-soft: rgba(255, 57, 67, 0.16); --red-text: #ff9298;
  --primary: #f09eff; --on-primary: #131213;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 28px 56px -12px rgba(0, 0, 0, 0.7);
  --scrim: rgba(0, 0, 0, 0.5); --brand-bg: #0e0d0e; --brand-text: #f6eff4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 14px; line-height: 1.45; font-synthesis: none; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; font-weight: 400; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.t1 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; }
.t2 { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.15; letter-spacing: -0.005em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: -0.01em; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.right { margin-left: auto; }
.grow { flex: 1; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-xs); }
.pad { padding: 20px; }
.stack { display: grid; gap: 14px; }
/* position: relative keeps the screen-reader-only labels inside the scrolling box, so they cannot widen the page. */
.scroll-x { overflow-x: auto; max-width: 100%; position: relative; }
.page > *, .body > *, .detail > *, .two-col > *, .md > *, .cols > * { min-width: 0; }
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }

/* Controls -------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 13.5px; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-xs); white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.btn.primary:hover { opacity: 0.9; }
.btn.quiet { border-color: transparent; background: transparent; box-shadow: none; color: var(--text-2); }
.btn.quiet:hover { background: var(--hover); color: var(--text); }
.btn.danger { color: var(--red-text); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn.lg { height: 42px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn.icon { width: 34px; padding: 0; }
.btn.sm.icon { width: 28px; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.link:hover { color: var(--text); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 13px; color: var(--text-2); display: grid; gap: 6px; }
.input { width: 100%; height: 36px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 14px; }
.input::placeholder { color: var(--text-3); }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.input.lg { height: 44px; font-size: 16px; }
textarea.input { height: auto; padding: 10px 11px; line-height: 1.5; resize: vertical; }
input[type="file"].input { height: auto; padding: 7px 8px; font-size: 13px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 11px) 55%; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
select.input.auto { width: auto; }
.search { position: relative; flex: 1 1 220px; max-width: 300px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 32px; }
.search.wide { max-width: none; flex: none; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 2px; gap: 2px; background: var(--sunken); border: 1px solid var(--border); border-radius: 9px; }
.seg button { height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; background: var(--sunken); color: var(--text-2); }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); }
.badge.green { background: var(--green-soft); color: var(--green-text); }
.badge.blue { background: var(--blue-soft); color: var(--blue-text); }
.badge.gold { background: var(--gold-soft); color: var(--gold-text); }
.badge.red { background: var(--red-soft); color: var(--red-text); }
.badge.code { font-family: var(--font-mono); font-size: 11.5px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; flex: none; }
.dot.off { background: transparent; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 11.5px; display: inline-grid; place-items: center; flex: none; text-transform: uppercase; }
.avatar.sq { border-radius: 7px; background: var(--green-soft); color: var(--green-text); }
.check, .field > label.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.check input, .ticks input { width: 15px; height: 15px; margin: 0; accent-color: var(--primary); flex: none; }
.error { color: var(--red-text); font-size: 13.5px; }
.note { font-size: 13px; color: var(--text-3); }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 8px 12px; background: var(--accent-soft); color: var(--accent-text); border-radius: 9px; font-size: 13.5px; }
.sitenote { margin: 0; padding: 8px 16px; background: var(--gold-soft); color: var(--gold-text); font-size: 13px; text-align: center; }
.empty { padding: 36px 20px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.empty p { color: var(--text-2); max-width: 520px; }
.centre { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.centre .empty { max-width: 560px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: min(560px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 13.5px; box-shadow: var(--shadow-lg); }
.toast.bad { background: var(--red-text); color: #ffffff; }

/* Tables ---------------------------------------------------------------------- */
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-weight: 400; font-size: 12.5px; color: var(--text-3); padding: 10px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 8px 16px; height: 50px; border-top: 1px solid var(--border); vertical-align: middle; }
table.t tbody tr:first-child td { border-top: 0; }
table.t .title { display: flex; align-items: center; font-size: 14px; min-width: 180px; }
table.t td.sub { color: var(--text-2); font-size: 13px; white-space: nowrap; }
table.t .two { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.3; }
table.t .two + .mono { display: block; color: var(--text-3); margin-top: 1px; }
table.t.tall td { height: 60px; }
.acts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; white-space: nowrap; }
.viewonly { font-size: 12px; color: var(--text-3); padding: 0 4px; }
/* The sign-in form's security check: takes no room unless it has something to show */
.captcha:empty { display: none; }
.captcha { min-height: 0; }
/* Confidentiality terms, accepted on the first sign-in */
.ack { max-width: 620px; margin: 4vh auto 0; display: grid; gap: 16px; }
.ack .terms { font-size: 15px; line-height: 1.55; }
/* Funds and the amount invested in each */
.holdings { display: grid; gap: 8px; }
.holding { display: grid; grid-template-columns: minmax(88px, max-content) 1fr; gap: 10px; align-items: center; }
.holding .chip { height: 32px; }
.moneybox { display: flex; align-items: center; gap: 8px; min-width: 0; }
.input.money:disabled { background: var(--sunken); color: var(--text-3); }
.input.money.bad { border-color: var(--red-text); }
.invested .feed .total { font-weight: 400; }
.invested .feed .total .money { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.meter { display: inline-block; width: 72px; height: 4px; border-radius: 999px; background: var(--sunken); overflow: hidden; vertical-align: middle; margin-left: 10px; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--text-2); }
.tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Investor side ----------------------------------------------------------------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 20px; min-height: 54px; padding: 8px 24px; background: var(--surface); border-bottom: 1px solid var(--border); flex: none; flex-wrap: wrap; }
.logo { height: 14px; width: auto; display: block; }
.tabs { display: flex; gap: 2px; }
.tab { height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 7px; border: 0; background: transparent; color: var(--text-2); text-decoration: none; font-size: 13.5px; cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-current] { background: var(--hover); color: var(--text); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page { width: 100%; max-width: 1100px; margin: 0 auto; padding: 28px 32px 32px; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head p { margin-top: 6px; }
.latest { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.feature { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; box-shadow: var(--shadow-md); }
.feature h2 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; margin: 10px 0 2px; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.stat b { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: -0.01em; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.foot { border-top: 1px solid var(--border); padding: 16px 32px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 6px 40px; font-size: 12px; line-height: 1.5; color: var(--text-3); flex: none; }
.foot .links { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* The investor header: who the page is about, how to switch, and the two pages. */
.ehead { background: var(--surface); border-bottom: 1px solid var(--border); flex: none; }
.ehead-in { width: 100%; max-width: 1100px; margin: 0 auto; padding: 22px 32px 0; }
.ehead-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.t0 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.1; letter-spacing: -0.015em; margin: 2px 0 10px; }
.ptabs { display: flex; gap: 22px; margin-top: 18px; }
.ptabs button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-2); font-size: 14px; cursor: pointer; }
.ptabs button:hover { color: var(--text); }
.ptabs button[aria-current] { color: var(--text); border-bottom-color: var(--text); }
.ptabs .n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #131213; font-size: 11px; display: inline-grid; place-items: center; }
.ecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ecard { display: grid; gap: 10px; padding: 16px 18px; text-align: left; color: var(--text); cursor: pointer; }
.ecard:hover { box-shadow: var(--shadow-md); }
.ecard .nm { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; letter-spacing: -0.01em; }
.ecard .nm svg { color: var(--text-3); flex: none; }
.menu-wrap { position: relative; display: inline-block; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; width: min(360px, calc(100vw - 28px)); padding: 6px; display: grid; gap: 6px; box-shadow: var(--shadow-lg); }
.menu-list { display: grid; gap: 2px; max-height: 340px; overflow-y: auto; }
.menu-item { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; color: var(--text); cursor: pointer; }
.menu-item:hover, .menu-item[aria-selected="true"] { background: var(--hover); }
.menu-item .nm { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.menu-item .mt { display: block; margin-top: 1px; font-size: 12.5px; color: var(--text-3); }
.menu .note { padding: 6px 10px; }

/* Sign in ----------------------------------------------------------------------- */
.split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.brand { background: var(--brand-bg); color: var(--brand-text); padding: 36px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; border-right: 1px solid var(--border); }
.brand img { height: 16px; width: auto; align-self: flex-start; }
.brand h1 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 60px); line-height: 0.94; text-transform: uppercase; letter-spacing: -0.02em; color: var(--accent); }
.brand p { font-size: 16px; line-height: 1.45; max-width: 320px; margin-top: 16px; opacity: 0.86; }
.points { padding: 0; list-style: none; display: grid; gap: 9px; font-size: 13.5px; opacity: 0.86; }
.points li { display: flex; align-items: baseline; gap: 10px; }
.points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.signin { padding: 28px 44px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.form { width: 100%; max-width: 380px; margin: 0 auto; display: grid; gap: 14px; }
.steps { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.steps i { width: 22px; height: 3px; border-radius: 999px; background: var(--border-strong); }
.steps i.on { background: var(--text); }
.steps span { margin-left: 4px; }
.codein { font-family: var(--font-mono); font-size: 22px; letter-spacing: .34em; text-align: center; height: 52px; }
.legal { display: grid; gap: 6px; font-size: 12px; line-height: 1.5; color: var(--text-3); max-width: 600px; margin: 0 auto; }
.qr { width: 190px; height: 190px; background: #ffffff; border: 1px solid var(--border); border-radius: 10px; padding: 8px; justify-self: center; }
.secret { font-family: var(--font-mono); font-size: 12.5px; word-break: break-all; }

/* Team side --------------------------------------------------------------------- */
.team { min-height: 100vh; display: flex; }
.side { width: 228px; flex: none; background: var(--sunken); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 10px 12px; position: sticky; top: 0; height: 100vh; }
.side .logo { height: 12px; margin: 8px 8px 18px; align-self: flex-start; }
.nav { display: grid; gap: 1px; }
.nav a, .nav button { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); text-decoration: none; font-size: 13.5px; cursor: pointer; text-align: left; width: 100%; }
.nav a:hover, .nav button:hover { color: var(--text); }
.nav [aria-current] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }
.nav .n { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #131213; font-size: 11px; display: inline-grid; place-items: center; }
.side-foot { margin-top: auto; display: grid; gap: 1px; padding-top: 10px; border-top: 1px solid var(--border); }
.side-foot .who { padding: 8px; font-size: 13px; color: var(--text-2); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 24px; border-bottom: 1px solid var(--border); background: var(--surface); flex: none; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.bar > .right { flex-wrap: nowrap; min-width: 0; }
.bar .search { flex: 0 1 260px; min-width: 140px; }
.body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--border); overflow: hidden; }
.strip .stat { background: var(--surface); }
.stat .sub { font-size: 12.5px; color: var(--text-3); }
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 20; }
.drawer { position: fixed; top: 8px; right: 8px; bottom: 8px; width: min(520px, calc(100vw - 16px)); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; z-index: 21; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--border); flex: none; }
.drawer-body { padding: 18px 20px; display: grid; gap: 14px; align-content: start; flex: 1; overflow-y: auto; }
.drawer-foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--sunken); flex: none; flex-wrap: wrap; }
.three { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.ticks { display: grid; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: 8px; max-height: 200px; overflow-y: auto; }
.ticks label { display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 2px 8px; border-radius: 6px; font-size: 13.5px; cursor: pointer; }
.ticks label:has(input:checked) { background: var(--hover); }
.reach { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; background: var(--accent-soft); color: var(--accent-text); border-radius: 8px; font-size: 13.5px; line-height: 1.4; }
.reach svg { flex: none; margin-top: 2px; }
.entry.card { padding: 14px; box-shadow: none; background: var(--bg); }
.files { padding-left: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.md { display: grid; grid-template-columns: 340px minmax(0, 1fr); flex: 1; align-items: start; }
.list { border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; min-height: calc(100vh - 54px); }
.items { display: grid; gap: 2px; }
.item { display: block; width: 100%; padding: 9px 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; text-align: left; color: var(--text); cursor: pointer; }
.item:hover { background: var(--hover); }
.item[aria-current] { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-xs); }
.item .nm { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.item .mt { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.detail { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.inline { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) auto auto; gap: 8px; align-items: center; }
.inline.two { grid-template-columns: minmax(0, 1fr) auto; }
.feed { display: grid; }
.feed > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13.5px; flex-wrap: wrap; }
.feed > div:first-child { border-top: 0; padding-top: 0; }
.feed > div:last-child { padding-bottom: 0; }
.feed .note { display: block; margin-top: 2px; }
.feed .two { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reach.summary p + p { margin-top: 6px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.bulk-text { font-family: var(--font-mono); font-size: 12.5px; min-height: 150px; white-space: pre; overflow-x: auto; }
.problems { padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }

/* Phone and narrow screens ------------------------------------------------------- */
/* Report viewer ---------------------------------------------------------------- */
html.viewing { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--sunken); }
.vbar { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--border); flex: none; }
.vtitle { display: grid; gap: 1px; min-width: 0; flex: 1; }
.vtitle strong { font-weight: 400; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vzoom { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.vzoom-n { min-width: 44px; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
.vbody { flex: 1; overflow: auto; padding: 16px; outline: none; -webkit-overflow-scrolling: touch; }
.vpages { display: grid; gap: 14px; justify-items: center; width: max-content; min-width: 100%; }
.vpage { background: #ffffff; border-radius: 4px; box-shadow: var(--shadow-md); overflow: hidden; }
.vpage canvas { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vstate { margin: 18vh auto 0; max-width: 420px; text-align: center; }
@media (max-width: 600px) { .vbar { padding: 6px 8px; gap: 6px; } .vbody { padding: 8px; } .vzoom-n { display: none; } }
@media print { .viewer { display: none !important; } }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .brand { padding: 24px 20px; gap: 20px; border-right: 0; }
  .brand p { margin-top: 10px; }
  .points { display: none; }
  .signin { padding: 24px 20px; }
  .top { padding: 8px 14px; gap: 10px; }
  .ehead-in { padding: 16px 14px 0; }
  .t0 { font-size: 24px; }
  .menu-wrap { display: block; width: 100%; }
  .menu-wrap > .btn { width: 100%; justify-content: space-between; }
  .menu { left: 0; right: 0; width: auto; }
  .page { padding: 18px 14px 24px; }
  .foot { padding: 16px 14px 20px; }
  .latest, .two-col, .md { grid-template-columns: 1fr; }
  .team { flex-direction: column; }
  .side { width: auto; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--border); }
  .side .logo { margin: 4px 8px; }
  .side .nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .side .nav a, .side .nav button { width: auto; }
  .side-foot { margin: 0 0 0 auto; border-top: 0; padding-top: 0; display: flex; align-items: center; }
  .side-foot .who { display: none; }
  .bar { padding: 8px 14px; position: static; }
  .bar > .right { flex-wrap: wrap; margin-left: 0; }
  .body, .detail { padding: 16px 14px 20px; }
  .list { border-right: 0; border-bottom: 1px solid var(--border); min-height: 0; }
  .three, .inline, .inline.two { grid-template-columns: 1fr; }
}
@media (max-width: 700px) { .hide-sm { display: none; } table.t th, table.t td { padding-left: 12px; padding-right: 12px; } table.t .title { min-width: 0; } }
@media (pointer: coarse) { .input, .codein { font-size: 16px; } .btn { min-height: 40px; } .btn.sm { min-height: 36px; } .tab { height: 40px; } }
