/* Design H — in the style of Hinder Hub: flat grey paper, ink type in Host Grotesk,
   no boxes or icons in the navigation, greys for the charts and one orange mark —
   the decimal point of the net worth (and the current page in the menu). */

:root {
  --bg: #f3f3f3; --bg-2: #ebebeb; --card: #f3f3f3;
  --ui: #e2e2e2; --ui-2: #d4d4d4; --ui-3: #b0b0b0;
  --tx: #171717; --tx-2: #6b6b6b; --tx-3: #a3a3a3;
  --input-bg: #fafafa; --hover: rgba(23, 23, 23, 0.04);
  --signal: #ff4d00;
  --axis-flush: 1;
  --col-radius: 0;   /* square columns in every chart */
  --success: #2c7a4b; --danger: #c93a2e; --warning: #a86a00; --info: #171717;
  --success-bg: #e1efe6; --danger-bg: #f8e2df; --warning-bg: #f6ecd7;
  --s1: #171717; --s2: #7a7a7a; --s3: #c4c4c4;
  --grid: #e2e2e2;
  --radius: 10px;
  --shadow: 0 12px 32px -16px rgba(0, 0, 0, .25);
  --font-sans: "Host Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-serif: var(--font-sans);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181818; --bg-2: #202020; --card: #181818;
    --ui: #2a2a2a; --ui-2: #363636; --ui-3: #4f4f4f;
    --tx: #ececec; --tx-2: #959595; --tx-3: #666666;
    --input-bg: #1e1e1e; --hover: rgba(236, 236, 236, 0.05);
    --signal: #ff6a2b;
    --success: #5cc48a; --danger: #f07468; --warning: #e0a840; --info: #ececec;
    --success-bg: #17301f; --danger-bg: #3b1d1a; --warning-bg: #382b12;
    --s1: #ececec; --s2: #8a8a8a; --s3: #464646;
    --grid: #262626;
  }
}
:root[data-theme="dark"] {
  --bg: #181818; --bg-2: #202020; --card: #181818;
  --ui: #2a2a2a; --ui-2: #363636; --ui-3: #4f4f4f;
  --tx: #ececec; --tx-2: #959595; --tx-3: #666666;
  --input-bg: #1e1e1e; --hover: rgba(236, 236, 236, 0.05);
  --signal: #ff6a2b;
  --success: #5cc48a; --danger: #f07468; --warning: #e0a840; --info: #ececec;
  --success-bg: #17301f; --danger-bg: #3b1d1a; --warning-bg: #382b12;
  --s1: #ececec; --s2: #8a8a8a; --s3: #464646;
  --grid: #262626;
}

body { font-size: 14.5px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* navigation: words only, no icons, no collapsing; the current page in ink with the orange dot */
.sidebar .nav-item svg, .nav-collapse { display: none !important; }
@media (min-width: 761px) {
  .app, .nav-collapsed .app { grid-template-columns: 220px minmax(0, 1fr); }
  .sidebar, .nav-collapsed .sidebar { border-right: 0; padding: 28px 20px; overflow: visible; }
  .brand, .nav-collapsed .brand { visibility: visible; font-size: 21px; font-weight: 700; letter-spacing: -.02em; padding: 0 10px 28px; }
  .nav-collapsed .sidebar .nav-item { justify-content: flex-start; padding: 5px 10px; }
  .nav-collapsed .sidebar .nav-item > span:not(.badge) { display: inline; }
  .nav-collapsed .sidebar .nav-item .badge { position: static; width: auto; height: auto; min-width: 0; padding: 1px 8px; font-size: 11.5px; border-radius: 999px; margin-left: auto; }
  .main { padding: 36px 48px 72px; }
}
.nav-item { font-size: 15px; padding: 5px 10px; color: var(--tx-3); border-radius: 0; }
.nav-item:hover { background: none; color: var(--tx); }
.nav-item.active { background: none; color: var(--tx); }
.nav .nav-item.active > span:not(.badge)::after { content: "."; color: var(--signal); font-weight: 700; }
.nav-bottom .nav-item { font-size: 13.5px; color: var(--tx-2); }
@media (max-width: 760px) {
  /* phone: the bottom bar is a row of words */
  .nav-item { font-size: 13px; padding: 12px 8px; flex: 0 0 auto; }
}

/* no boxes: sections sit on the paper, separated by space */
.card { background: none; border: 0; border-radius: 0; padding: 0; }
.grid { gap: 48px; }
.grid-tiles { gap: 32px; }
.stack { gap: 40px; }
.mt { margin-top: 52px; }
.card-head { margin-bottom: 16px; }
.card-title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.card-sub { color: var(--tx-2); }
.tile { padding: 0; }
.tile-label { color: var(--tx-2); font-size: 13.5px; }
.tile-value { font-size: 30px; font-weight: 500; letter-spacing: -.035em; margin: 4px 0 4px; }
.table-wrap { margin: 0; padding: 0; }
.matrix th.sticky, .matrix td.sticky { background: var(--bg); }

/* the figure, large like the hub's addresses */
.hero { margin-bottom: 0; }
.hero-label { font-size: 14px; }
.hero-value { font-size: clamp(44px, 6vw, 84px); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin: 10px 0 14px; }
.hero-value .ccy { font-size: .3em; font-weight: 500; letter-spacing: 0; color: var(--tx-3); margin-right: .3em; }
.hero-value .dot { color: var(--signal); font-weight: 600; padding-inline: .02em; }
.page-head { margin-bottom: 36px; align-items: flex-end; }
.page-title { font-size: clamp(36px, 4.4vw, 56px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.page-sub { margin-top: 10px; font-size: 14px; }
.crumb { color: var(--tx-3); font-size: 14px; margin-bottom: 10px; }
.crumb svg { display: none; }
.card-head .btn-ghost { padding: 0; height: auto; color: var(--tx-2); }

/* controls stay quiet: text buttons, one ink button for the main action, no icons */
.seg { background: none; padding: 0; gap: 2px; border: 0; }
.seg button { color: var(--tx-3); padding: 4px 9px; font-size: 14px; }
.seg button:hover { color: var(--tx); }
.seg button[aria-pressed="true"] { background: none; box-shadow: none; color: var(--tx); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.btn { height: 34px; padding: 0 2px; border: 0; border-radius: 0; background: none; color: var(--tx-2); font-size: 14px; gap: 0; }
.btn:hover { background: none; color: var(--tx); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.btn:not(.btn-icon) svg { display: none; }
.actions { gap: 4px 20px; }
.btn-primary { padding: 0 16px; border-radius: 0; background: var(--tx); color: var(--bg); }
/* hover: an orange outline around the box, so it's clear what you're about to press */
.btn-primary:hover { background: var(--tx); color: var(--bg); text-decoration: none; outline: 2px solid var(--signal); outline-offset: -2px; }   /* the ring sits inside, on the button's edge (as in Stratus) */
.btn-danger, .btn-danger:hover { color: var(--danger); }
.btn-icon { width: 28px; padding: 0; color: var(--tx-3); }
.btn-icon:hover { text-decoration: none; }
.input, .field input, .field select, .field textarea, select.input {
  border: 0; border-bottom: 1px solid var(--ui-3); border-radius: 0; background: none; padding: 0 2px;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { box-shadow: none; border-bottom-color: var(--tx); }
.field > span, .fieldset legend { color: var(--tx-3); font-weight: 500; }
.fieldset { border-radius: 0; border-color: var(--ui); }

/* small labels are text, not chips */
.badge { background: none; padding: 0; border-radius: 0; color: var(--tx-3); font-size: 12.5px; }
.badge-ok { background: none; color: var(--success); }
.badge-warn { background: none; color: var(--warning); }
.badge-bad { background: none; color: var(--danger); }
.nav .badge { color: var(--warning); }
.sym { border: 0; background: none; padding: 0; color: var(--tx-2); font-size: 12px; }
.sym-off { color: var(--tx-3); }
.bud-acc-chip { background: none; padding: 0; color: var(--tx-2); font-size: 13px; }
/* banks, funds and files: their initials as plain text, no circle */
.avatar { width: 30px; height: auto; background: none; border-radius: 0; color: var(--tx-3); font-size: 12px; font-weight: 600; letter-spacing: .02em; place-items: start; }
.callout { background: none; padding: 0; color: var(--tx-2); }
.callout svg { color: var(--warning); }
.callout.info { background: none; }

/* tables: hairlines only, no hover fill */
.t th { color: var(--tx-3); font-size: 12.5px; font-weight: 500; }
.t td, .t th { border-bottom-color: var(--ui); }
.t tbody tr:hover td { background: none; }
.t tbody tr:hover td:first-child a { text-decoration: underline; text-underline-offset: 3px; }
.t tr.group-row td, .acc-group-label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--tx); font-weight: 600; }
.acc-row { border-radius: 0; padding-inline: 0; }
.acc-row:hover { background: none; }
.matrix .cell-btn { border-radius: 0; }
.matrix .cell-btn:hover { background: var(--hover); }

/* bars */
.alloc-bar { height: 10px; border-radius: 0; }
.goal-bar { height: 4px; border-radius: 0; }
.goal-bar.lg { height: 6px; border-radius: 0; }
.goal-bar i { background: var(--tx); }
.bud-acc-bar, .bud-acc-bar i, .bud-sec-bar, .bud-sec-bar i, .cat-bar, .cat-bar i { border-radius: 0; }
.month-stat, .notify-box, .plan-acc { background: none; border: 0; border-top: 1px solid var(--ui); border-radius: 0; padding-inline: 0; }

/* import: the drop area is a big line of type */
.dropzone { border: 1.5px dashed var(--ui-3); border-radius: 0; background: none; padding: 56px 20px; }
.dropzone:hover, .dropzone.over { background: none; border-color: var(--tx); }
.dropzone svg { display: none; }
.dropzone h3 { font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: -.035em; margin: 0 0 8px; }
.supported .badge { color: var(--tx-3); }
.supported { gap: 6px 16px; }

/* overlays */
.modal { border: 0; border-radius: 0; background: var(--bg); box-shadow: var(--shadow); }
.modal h2 { font-size: 26px; font-weight: 500; letter-spacing: -.035em; }
.tooltip { border: 0; border-radius: 0; }
.toast { border-radius: 0; }
.demo-banner, .demo-banner button { border-radius: 0; }

/* login: like the hub — a bar on top, one big field in the middle, a bar at the bottom */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.login { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 0 max(clamp(16px, 4vw, 64px), env(safe-area-inset-right, 0px)) 0 max(clamp(16px, 4vw, 64px), env(safe-area-inset-left, 0px)); place-items: initial; }
.login-bar { display: flex; justify-content: space-between; align-items: baseline; padding-block: clamp(18px, 3vh, 30px); color: var(--tx-2); font-size: 14px; }
.login-brand { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--tx); }
.login-card { flex: 1; display: flex; flex-direction: column; justify-content: center; width: min(720px, 100%); margin: 0 auto; padding: 3vh 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.login-field { display: block; }
.login-field input {
  width: 100%; border: 0; border-bottom: 2px solid var(--ui-2); background: none; border-radius: 0; padding: 0 0 .12em;
  font: inherit; font-size: clamp(36px, 6vw, 72px); font-weight: 500; letter-spacing: -.04em; color: var(--tx); caret-color: var(--signal);
}
.login-field input::placeholder { color: var(--ui-3); }
.login-field input:focus { outline: none; border-bottom-color: var(--signal); }
.login .error-text { margin: 10px 0 0; }
.login-actions { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin-top: 18px; }
.login-actions .btn-primary { height: 44px; padding: 0 26px; font-size: 15px; }
.login-demo { border: 0; background: none; padding: 0; color: var(--tx-2); font: inherit; font-size: 15px; cursor: pointer; }
.login-demo:hover { color: var(--tx); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.goal-foot svg, .callout svg, .page-sub .badge svg { display: none; }
.goal-foot { border-top-color: var(--ui); }
.page-head ~ .hero .hero-value { font-size: clamp(36px, 4.4vw, 56px); }
/* square corners throughout, like the hub's square dot */
.key, .lg-dot, .dot-live, .dot-demo { border-radius: 0; }
.switch, .switch-knob { border-radius: 0; }
.combo-list, .combo-opt, .matrix input.cell-input { border-radius: 0; }
.matrix .cell-btn::before, .matrix .cell-static::before { border-radius: 0; }
.btn:disabled:hover { outline: none; text-decoration: none; }

/* checkboxes and radios: square, like Nimbus — an outlined box, filled with a paper inset when on */
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 0;
  border: 1.5px solid var(--ui-3); border-radius: 0; background: none; cursor: pointer; vertical-align: -3px;
}
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--tx); border-color: var(--tx); box-shadow: inset 0 0 0 3px var(--bg); }
input[type="checkbox"]:hover:not(:disabled), input[type="radio"]:hover:not(:disabled) { border-color: var(--tx); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .4; cursor: default; }
@media (forced-colors: active) { input[type="checkbox"], input[type="radio"] { appearance: auto; } }
.inline-check { gap: 10px; font-size: 14px; color: var(--tx); cursor: pointer; }
.bud-start input[type="radio"] { margin: 2px 0 0; }
/* switch: a square track with a square knob */
.switch { width: 32px; height: 18px; background: var(--ui-2); }
.switch-knob { top: 3px; left: 3px; width: 12px; height: 12px; box-shadow: none; }
.switch[aria-checked="true"] .switch-knob { transform: translateX(14px); }

/* settings, laid out like Nimbus' alerts page: one big field, then titled columns of rows */
.set-mail .lbl { display: block; color: var(--tx-3); font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.bigfield input { width: 100%; border: 0; border-bottom: 2px solid var(--ui-2); background: none; border-radius: 0; padding: 0 0 .1em; font: inherit; font-size: clamp(28px, 4.4vw, 48px); font-weight: 500; letter-spacing: -.04em; color: var(--tx); caret-color: var(--signal); }
.bigfield input::placeholder { color: var(--ui-3); }
.bigfield input:focus { outline: none; border-bottom-color: var(--signal); }
.set-mail .actions { margin-top: 12px; font-size: 14px; }
.set-mail .warn { color: var(--warning); }
.set-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; margin-top: 64px; }
.set-col { min-width: 0; }
.set-title { margin: 0; padding-bottom: 12px; border-bottom: 2px solid var(--tx); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.set-row { display: flex; align-items: center; gap: 14px; min-height: 50px; border-bottom: 1px solid var(--ui); font-size: 15px; }
.set-row > span:first-child { color: var(--tx-2); }
.set-row .val { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 20px; text-align: right; font-variant-numeric: tabular-nums; }
.set-row .seg button { padding: 4px 0 4px 14px; }
@media (max-width: 760px) { .set-cols { grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 48px; } }
.set-mail, .set-cols, .set-col, .set-row .val, .bigfield input { min-width: 0; max-width: 100%; }
.set-row > span:first-child { flex: none; }

/* documents: one flat table with year rows and text actions, like Nimbus' log */
.doc-t td { vertical-align: baseline; }
.doc-t tr.year td { font-weight: 600; padding-top: 28px; color: var(--tx); }
.doc-t tr.year:first-child td { padding-top: 10px; }
.doc-t .fn { font-weight: 600; }
.doc-t small { display: block; color: var(--tx-3); font-size: 12.5px; font-weight: 400; }
.row-acts { display: inline-flex; gap: 4px 16px; justify-content: flex-end; }
.row-acts .btn { height: 28px; }
.doc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; margin-bottom: 48px; }
.doc-stats .l { color: var(--tx-2); font-size: 13px; }
.doc-stats .v { font-size: 30px; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .doc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }

/* account page: figure on the left, facts on the right (as Nimbus' log), then chart and tables */
.acc-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; margin-bottom: 56px; }
.acc-split .hero-value { font-size: clamp(44px, 6vw, 84px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.stats .l { color: var(--tx-2); font-size: 13px; }
.stats .v { font-size: 26px; font-weight: 500; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats .wide { grid-column: 1 / -1; }
.stats .v.mono { font-size: 17px; letter-spacing: 0; font-family: inherit; }
@media (max-width: 900px) { .acc-split { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; } }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }

/* shared page lead: figure left, facts right; flat tables with bold group rows */
.stats .s { font-size: 12.5px; margin-top: 2px; }
.stats .l .key { margin-right: 8px; }
.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-pick { display: flex; justify-content: flex-end; margin-bottom: 28px; }
.dash-split { margin-bottom: 24px; }
.flow-split { margin-bottom: 32px; }
.flow-split .hero-value { font-size: clamp(36px, 4.4vw, 56px); }
.row-link { text-decoration: none; color: inherit; }
.row-link:hover .fn, tr.year .row-link:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.doc-t tr.is-archived td { opacity: .5; }
.doc-t tr.total-row td { vertical-align: baseline; }
@media (max-width: 900px) { .split-pick { justify-content: flex-start; margin-bottom: 20px; } }

/* the line under a headline figure: change, today's move and the live-price status side by side */
.hero-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.hero-line .live-status { font-size: 13.5px; }
.live-status .btn { height: auto; font-size: inherit; margin-left: 6px; }
/* words instead of icons */
.row-act { width: auto; height: 24px; font-size: 13px; }
.matrix th .rm-year { height: auto; font-size: 12px; font-weight: 400; color: var(--tx-3); margin-right: 6px; }
.bud-edit-head, .bud-edit-row { grid-template-columns: 22px minmax(120px, 2fr) minmax(80px, 110px) 110px 84px minmax(130px, 1.4fr) 90px 40px 60px; }
@media (max-width: 760px) { .bud-edit-head, .bud-edit-row { grid-template-columns: 1fr 1fr; } }

.live-line { margin-top: 6px; }
.live-line.is-off { opacity: .35; pointer-events: none; }
.live-line.is-off .dot-live { background: var(--tx-3); }
