@charset "UTF-8";
:root {
  --paper: #f5f3ed;
  --paper-deep: #eeece4;
  --surface: #fffefa;
  --surface-soft: #faf9f5;
  --ink: #202c2e;
  --ink-soft: #52605d;
  --muted: #8b928c;
  --line: #e8e5dc;
  --line-strong: #d8d4c9;
  --pine: #315b4e;
  --pine-deep: #26483e;
  --pine-soft: #e8f0ea;
  --gold: #aa8856;
  --gold-soft: #f1ebdf;
  --red: #b1584d;
  --red-soft: #f7eae6;
  --blue: #617e8d;
  --blue-soft: #eaf0f2;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 10px 35px rgba(42, 47, 40, .055);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #668e7c; outline-offset: 2px; }
[hidden] { display: none !important; }
.application { min-height: 100vh; }
.sidebar { width: 244px; position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; padding: 24px 15px 14px; background: #fbfaf6; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 9px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; color: var(--pine); }
.brand-mark svg { width: 37px; height: 37px; fill: currentColor; }
.brand-mark svg path:last-child { fill: none; stroke: var(--gold); stroke-width: 1.8; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-size: 14px; letter-spacing: .18em; font-weight: 750; }
.brand-copy small { color: #87908a; font-size: 8px; letter-spacing: .18em; font-weight: 650; }
.workspace-label { margin: 48px 10px 12px; color: #999b93; font-size: 9px; font-weight: 750; letter-spacing: .14em; }
.workspace-dot { display: inline-block; width: 5px; height: 5px; margin-left: 4px; border-radius: 50%; vertical-align: 1px; background: var(--gold); }
.primary-nav { display: grid; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; border: 0; border-radius: 6px; padding: 0 11px; color: #6e7773; background: transparent; text-align: left; cursor: pointer; transition: background .16s, color .16s; }
.nav-item:hover { color: var(--ink); background: #f1f0ea; }
.nav-item.active { color: var(--pine-deep); background: #eaf0e9; font-weight: 650; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 2px; border-radius: 2px; background: var(--pine); }
.nav-icon { width: 18px; height: 18px; display: grid; place-items: center; }
.nav-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.nav-count { margin-left: auto; color: #969991; font-size: 10px; font-variant-numeric: tabular-nums; }
.sidebar-bottom { margin-top: auto; }
.market-mini { margin: 0 5px 14px; padding: 12px 10px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fdfcf8; }
.market-mini-head { display: flex; align-items: center; gap: 6px; font-size: 8px; font-weight: 750; letter-spacing: .12em; color: #66716c; }
.live-indicator { width: 6px; height: 6px; border-radius: 50%; background: #b8b4a8; }
.live-indicator.live { background: #5b9877; box-shadow: 0 0 0 3px rgba(91,152,119,.11); }
.market-mini-status { margin-left: auto; text-transform: uppercase; font-size: 8px; color: #969991; letter-spacing: .03em; }
.market-mini p { margin: 9px 0 0 12px; font-size: 10px; color: #93958e; }
.settings-link { margin-bottom: 11px; }
.profile-row { display: flex; align-items: center; padding: 13px 4px 2px; border-top: 1px solid var(--line); }
.profile-avatar { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--pine-deep); background: #e5e9de; font-family: var(--serif); font-size: 15px; }
.profile-meta { display: flex; flex-direction: column; gap: 3px; padding-left: 9px; min-width: 0; }
.profile-meta strong { font-size: 10px; font-weight: 650; }
.profile-meta span { color: #969991; font-size: 9px; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 5px; color: #737d78; background: transparent; cursor: pointer; transition: all .16s; }
.icon-button:hover { color: var(--pine-deep); background: white; border-color: var(--line); }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.logout-button { margin-left: auto; width: 28px; height: 28px; }
.main-shell { min-height: 100vh; margin-left: 244px; padding: 0 38px; max-width: 1800px; }
.topbar { height: 69px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.page-context { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 580; }
.context-overline { color: #9a9c94; font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.context-divider { color: #c5c2b9; }
.topbar-right { display: flex; align-items: center; gap: 13px; }
.topbar-date { color: #848b84; font-size: 10px; }
.topbar-separator { height: 17px; width: 1px; background: var(--line-strong); }
.market-pill { display: inline-flex; align-items: center; gap: 7px; color: #707974; font-size: 10px; }
.market-pill i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #b4b5ae; }
.market-pill.live i { background: #52936f; box-shadow: 0 0 0 3px rgba(82,147,111,.12); }
.market-pill.stale i { background: var(--gold); }
.refresh-button { border-color: var(--line); background: #fbfaf6; }
.refresh-button.spinning svg { animation: turn .8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.mobile-menu { display: none; }
.demo-notice { display: flex; align-items: center; gap: 10px; margin: 19px 0 -5px; padding: 10px 12px; border: 1px solid #e5ddcc; border-radius: 4px; color: #756b5c; background: #f5f0e5; font-size: 11px; }
.demo-notice strong { color: #68583e; font-weight: 700; }
.demo-notice-icon { display: grid; flex: 0 0 auto; width: 17px; height: 17px; place-items: center; border: 1px solid #bfaa82; border-radius: 50%; color: #927749; font-family: var(--serif); font-size: 12px; }
.demo-notice button { margin-left: auto; padding: 1px 6px; border: 0; color: #847b6d; background: transparent; font-size: 18px; cursor: pointer; }
.view { display: none; padding-top: 31px; animation: appear .24s ease-out; }
.view.active { display: block; }
.view.spotwise-host { padding-top: 20px; }
.view.spotwise-host.active { display: flex; flex-direction: column; gap: 12px; }
.spotwise-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 2px; }
.spotwise-toolbar > div { display: grid; gap: 3px; }
.spotwise-toolbar .eyebrow { margin: 0; }
.spotwise-toolbar strong { color: var(--ink); font-size: 13px; font-weight: 650; }
.spotwise-toolbar span:not(.eyebrow) { color: var(--muted); font-size: 10px; }
.spotwise-frame { display: block; width: 100%; height: calc(100vh - 190px); min-height: 690px; border: 1px solid var(--line); border-radius: 12px; background: #f4f5f7; }
@keyframes appear { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 23px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 9px; line-height: 1.2; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.page-heading h1, .auth-card h1 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(27px, 2.5vw, 36px); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
.page-heading .lede { margin: 8px 0 0; color: #818781; font-size: 11px; line-height: 1.65; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.button { min-height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 4px; color: #626b65; background: var(--surface); font-size: 10px; font-weight: 650; cursor: pointer; transition: .15s; }
.button:hover { border-color: #aab8ad; color: var(--pine-deep); }
.button.primary { border-color: var(--pine); color: white; background: var(--pine); }
.button.primary:hover { border-color: var(--pine-deep); background: var(--pine-deep); }
.button.subtle { border-color: transparent; background: transparent; }
.button.danger { color: var(--red); border-color: #ecd7d2; background: #fff9f7; }
.button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.select-control { min-height: 34px; padding: 0 29px 0 10px; border: 1px solid var(--line); border-radius: 4px; color: #68716b; background-color: var(--surface); font-size: 10px; cursor: pointer; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.73fr) minmax(240px, .85fr); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 2px 8px rgba(42,47,40,.018); }
.hero-panel { min-height: 216px; padding: 21px 24px 17px; overflow: hidden; position: relative; background: #fffefa; }
.hero-panel::after { content: ""; position: absolute; right: -48px; top: -100px; width: 360px; height: 260px; border: 1px solid rgba(177,163,133,.12); border-radius: 50%; transform: rotate(-18deg); box-shadow: 0 0 0 23px rgba(177,163,133,.025), 0 0 0 48px rgba(177,163,133,.022), 0 0 0 76px rgba(177,163,133,.016); pointer-events: none; }
.hero-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.card-kicker { display: flex; align-items: center; gap: 7px; color: #8a9088; font-size: 9px; font-weight: 740; letter-spacing: .12em; text-transform: uppercase; }
.card-kicker svg { width: 13px; height: 13px; fill: none; stroke: #a28b61; stroke-width: 1.5; }
.hero-currency { color: #91948b; font-size: 9px; }
.hero-value { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 10px; margin: 15px 0 5px; font-size: clamp(33px, 4.6vw, 50px); line-height: 1.05; letter-spacing: -.055em; font-weight: 530; font-variant-numeric: tabular-nums; }
.hero-value .currency-symbol { color: #9a8a6d; font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: 0; }
.hero-subline { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; color: #828a83; font-size: 10px; }
.change-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 3px; font-size: 10px; font-weight: 680; font-variant-numeric: tabular-nums; }
.change-chip.positive { color: #3e785a; background: var(--pine-soft); }
.change-chip.negative { color: #a74d42; background: var(--red-soft); }
.change-chip.neutral { color: #76817b; background: #f0f0eb; }
.hero-rule { position: relative; z-index: 1; height: 1px; margin: 18px 0 13px; background: var(--line); }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-stat { padding: 0 16px; border-left: 1px solid var(--line); }
.hero-stat:first-child { padding-left: 0; border: 0; }
.stat-label { display: block; margin-bottom: 6px; color: #92968e; font-size: 9px; }
.stat-value { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 620; font-variant-numeric: tabular-nums; }
.stat-value.positive { color: #43805c; }
.stat-value.negative { color: #ae584c; }
.hero-stat-note { margin-top: 3px; color: #a0a198; font-size: 8px; }
.metric-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 13px; }
.metric-card { min-height: 100px; padding: 15px 17px; }
.metric-card-head { display: flex; justify-content: space-between; align-items: center; color: #899088; font-size: 9px; }
.metric-card-head .metric-symbol { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: #967c50; background: var(--gold-soft); font-family: var(--serif); font-size: 13px; }
.metric-value { margin-top: 11px; font-size: 20px; font-weight: 560; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metric-foot { margin-top: 4px; color: #929890; font-size: 9px; }
.metric-foot strong { font-weight: 650; }
.positive-text { color: #4b805e !important; }
.negative-text { color: #ad594f !important; }
.subgrid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, .85fr); gap: 16px; margin-top: 16px; }
.chart-panel { padding: 18px 20px 10px; min-height: 292px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-heading h2, .panel-title { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.panel-subtitle { margin: 5px 0 0; color: #959890; font-size: 9px; }
.range-tabs { display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 4px; background: #faf9f5; }
.range-tab { min-width: 27px; padding: 5px 6px; border: 0; border-radius: 3px; color: #93968d; background: transparent; font-size: 8px; cursor: pointer; }
.range-tab.active { color: var(--pine-deep); background: white; box-shadow: 0 1px 3px rgba(35,50,40,.1); font-weight: 700; }
.chart-summary { display: flex; align-items: baseline; gap: 8px; margin: 13px 0 0; }
.chart-summary strong { font-size: 14px; font-weight: 620; font-variant-numeric: tabular-nums; }
.chart-summary span { font-size: 9px; }
.chart-wrap { position: relative; height: 177px; margin-top: 3px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid-line { stroke: #eeece5; stroke-width: 1; stroke-dasharray: 2 5; }
.chart-line { fill: none; stroke: #476f5e; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-area { opacity: .73; }
.chart-point { fill: var(--surface); stroke: #476f5e; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-axis-label { fill: #a0a197; font-family: var(--sans); font-size: 9px; }
.chart-empty { display: grid; height: 172px; place-items: center; color: #959890; font-size: 10px; text-align: center; }
.chart-empty p { max-width: 260px; line-height: 1.7; }
.allocation-panel { min-height: 292px; padding: 18px 18px 15px; }
.allocation-content { display: flex; align-items: center; justify-content: center; gap: 19px; padding: 20px 0 16px; }
.donut { position: relative; width: 136px; height: 136px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(#315b4e 0 44%, #9eaf91 44% 67%, #bd9b67 67% 81%, #8098a1 81% 90%, #c8c5b8 90% 100%); }
.donut::after { content: ""; position: absolute; inset: 21px; border-radius: 50%; background: var(--surface); }
.donut-center { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center strong { font-size: 17px; font-weight: 590; letter-spacing: -.03em; }
.donut-center span { margin-top: 3px; color: #999b93; font-size: 8px; }
.legend { display: grid; gap: 10px; min-width: 75px; }
.legend-row { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 6px; color: #737c76; font-size: 9px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }
.legend-row strong { color: #424e49; font-size: 9px; font-weight: 620; font-variant-numeric: tabular-nums; }
.allocation-foot { padding-top: 12px; border-top: 1px solid var(--line); color: #8d938c; font-size: 9px; line-height: 1.55; }
.allocation-foot strong { color: #66726a; font-weight: 620; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(290px, .92fr); gap: 16px; margin-top: 16px; margin-bottom: 21px; }
.table-panel { overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 13px; }
.panel-header .panel-title { font-size: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 0; color: #637e6b; background: transparent; font-size: 9px; font-weight: 650; cursor: pointer; }
.text-link:hover { color: var(--pine-deep); }
.text-link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { padding: 9px 12px; border-top: 1px solid #f0eee7; border-bottom: 1px solid #f0eee7; color: #999b93; background: #fcfbf8; font-size: 8px; font-weight: 730; letter-spacing: .09em; text-transform: uppercase; }
.data-table th:first-child, .data-table td:first-child { padding-left: 18px; }
.data-table td { height: 50px; padding: 7px 12px; border-bottom: 1px solid #f1efe9; color: #68716c; font-size: 10px; font-variant-numeric: tabular-nums; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { cursor: pointer; transition: background .1s; }
.data-table tbody tr:hover { background: #fbfaf6; }
.asset-cell { display: flex; align-items: center; gap: 9px; }
.asset-mark { display: grid; flex: 0 0 auto; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(59,74,64,.08); border-radius: 50%; color: var(--asset-color, #526b5d); background: var(--asset-bg, #edf1e9); font-size: 10px; font-weight: 700; }
.asset-name { display: flex; flex-direction: column; gap: 3px; }
.asset-name strong { color: #37433e; font-size: 10px; font-weight: 650; }
.asset-name small { color: #999c94; font-size: 8px; }
.mono { font-variant-numeric: tabular-nums; }
.table-positive { color: #51805d !important; }
.table-negative { color: #ae584c !important; }
.activity-list { display: grid; padding: 0 17px 5px; }
.activity-row { display: grid; grid-template-columns: 30px minmax(75px, 1fr) auto; align-items: center; gap: 9px; min-height: 48px; border-top: 1px solid #f0eee7; }
.activity-type-mark { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: #47735a; background: #edf2e9; font-family: var(--serif); font-size: 13px; }
.activity-type-mark.sell { color: #a76356; background: #f7eeea; }
.activity-type-mark.other { color: #8a7856; background: #f4efe4; }
.activity-title { color: #49534e; font-size: 10px; font-weight: 620; }
.activity-detail { margin-top: 3px; color: #999c94; font-size: 8px; }
.activity-value { color: #59645e; font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.activity-footer { padding: 6px 17px 12px; text-align: center; }
.empty-compact { padding: 24px 15px; color: #979990; font-size: 10px; text-align: center; line-height: 1.6; }
.search-box { display: flex; align-items: center; gap: 7px; height: 34px; min-width: 190px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; color: #9a9c94; background: white; }
.search-box svg { flex: 0 0 auto; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.search-box input::placeholder { color: #a1a29a; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.result-note { color: #9a9c94; font-size: 9px; }
.table-shell { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.table-shell .data-table td { height: 57px; }
.badge { display: inline-flex; align-items: center; padding: 4px 6px; border-radius: 3px; color: #4e755a; background: #edf3ec; font-size: 8px; font-weight: 700; letter-spacing: .035em; }
.badge.sell { color: #a45448; background: #f7ece8; }
.badge.neutral { color: #81734e; background: #f4f0e5; }
.badge.muted { color: #727c76; background: #f0f1ed; }
.row-action { width: 26px; height: 26px; border: 0; border-radius: 4px; color: #9b9e96; background: transparent; cursor: pointer; }
.row-action:hover { color: var(--red); background: #fbefec; }
.range-select-row { display: flex; align-items: center; gap: 8px; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.stat-block { min-height: 84px; padding: 15px 17px; border-left: 1px solid var(--line); }
.stat-block:first-child { border-left: 0; }
.stat-block span { display: block; color: #93968e; font-size: 9px; }
.stat-block strong { display: block; margin-top: 9px; color: #3f4b45; font-size: 18px; font-weight: 560; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.performance-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .82fr); gap: 15px; }
.performance-chart { min-height: 340px; padding: 19px 21px 14px; }
.performance-chart .chart-wrap { height: 237px; margin-top: 16px; }
.analytics-card { padding: 18px; }
.analytics-card h2 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.analytics-card > p { margin: 5px 0 16px; color: #989a92; font-size: 9px; }
.risk-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid #efede7; color: #7e857e; font-size: 10px; }
.risk-row strong { color: #4a5750; font-size: 10px; font-weight: 620; font-variant-numeric: tabular-nums; }
.risk-row .risk-positive { color: #4c7d5b; }
.risk-row .risk-negative { color: #b0584e; }
.insight-note { margin-top: 12px; padding: 12px; border: 1px solid #e7e2d6; border-radius: 4px; color: #7e796b; background: #f8f5ed; font-size: 9px; line-height: 1.65; }
.secondary-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 15px; }
.small-panel { min-height: 140px; padding: 16px; }
.small-panel .card-kicker { font-size: 8px; }
.small-panel strong { display: block; margin-top: 14px; font-size: 21px; font-weight: 550; font-variant-numeric: tabular-nums; }
.small-panel p { margin: 6px 0 0; color: #979990; font-size: 9px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.report-card { min-height: 173px; padding: 19px; }
.report-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 5px; color: #617c67; background: #edf2e9; }
.report-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.report-card h2 { margin: 13px 0 5px; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.report-card p { max-width: 350px; margin: 0 0 14px; color: #8f938b; font-size: 10px; line-height: 1.55; }
.report-footnote { margin-top: 14px; padding: 12px 14px; border-left: 2px solid #b59a69; color: #8e887b; background: #f7f4ed; font-size: 9px; line-height: 1.7; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .8fr); gap: 15px; align-items: start; }
.settings-panel { padding: 19px; }
.settings-panel h2 { margin: 0 0 5px; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.settings-panel > p { margin: 0 0 18px; color: #92958d; font-size: 9px; line-height: 1.6; }
.setting-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 200px); align-items: center; gap: 18px; min-height: 65px; border-top: 1px solid #efede7; }
.setting-title { color: #4f5a54; font-size: 10px; font-weight: 650; }
.setting-description { margin-top: 4px; color: #989a92; font-size: 8px; line-height: 1.4; }
.setting-row .select-control { width: 100%; }
.storage-card { padding: 17px; margin-bottom: 14px; }
.storage-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.storage-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #efede7; color: #8e928a; font-size: 9px; }
.storage-line strong { color: #5c675f; text-align: right; font-size: 9px; font-weight: 600; }
.storage-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.storage-actions .button { min-height: 30px; font-size: 9px; }
.danger-zone { margin-top: 15px; padding: 15px 17px; border: 1px solid #ecdcd7; border-radius: 6px; background: #fffaf8; }
.danger-zone h3 { margin: 0 0 6px; color: #9d5148; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.danger-zone p { margin: 0 0 12px; color: #9a817b; font-size: 9px; line-height: 1.55; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0 18px; border-top: 1px solid var(--line); color: #a1a199; font-size: 8px; letter-spacing: .02em; }
.app-footer > span:first-child { color: #9a9d94; font-size: 8px; font-weight: 720; letter-spacing: .12em; }
.app-footer b { padding: 0 4px; color: #c1b497; }
.app-footer a { color: #758575; text-decoration: none; }
.app-footer a:hover { color: var(--pine-deep); text-decoration: underline; }

/* First-run password screen */
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 26px 16px; background: radial-gradient(ellipse at 50% 6%, #fffefa 0, #f7f5ee 48%, #efede5 100%); }
.auth-card { width: min(100%, 440px); padding: 36px 38px 32px; border: 1px solid #e5e1d6; border-radius: 7px; background: rgba(255,254,250,.93); box-shadow: 0 18px 60px rgba(51,58,48,.075); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.auth-brand .brand-mark { width: 41px; height: 41px; }
.auth-brand .brand-mark svg { width: 41px; height: 41px; }
.auth-card h1 { font-size: 31px; }
.auth-copy { margin: 10px 0 21px; color: #838980; font-size: 11px; line-height: 1.7; }
.auth-card label, .field label { display: block; margin-bottom: 6px; color: #67716b; font-size: 9px; font-weight: 680; }
.auth-card input, .field input, .field select, .field textarea { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #e2dfd6; border-radius: 4px; color: #36423d; background: white; font-size: 11px; }
.auth-card input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #b0b1a9; }
.auth-card .button { width: 100%; min-height: 40px; margin-top: 12px; font-size: 11px; }
.auth-error { min-height: 15px; margin: 8px 0 0; color: #a44f45; font-size: 10px; }
.auth-security { display: flex; align-items: center; gap: 7px; margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--line); color: #9a9b93; font-size: 9px; line-height: 1.5; }
.auth-security svg { flex: 0 0 auto; width: 14px; height: 14px; fill: none; stroke: #82917f; stroke-width: 1.5; }
.mode-choice { display: grid; gap: 8px; margin: 14px 0 15px; }
.mode-option { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid #e7e4dc; border-radius: 4px; cursor: pointer; }
.mode-option.selected { border-color: #b8c8b8; background: #f4f7f1; }
.mode-option input { width: auto; min-height: auto; margin: 2px 0 0; accent-color: var(--pine); }
.mode-option strong { display: block; margin-bottom: 3px; color: #56645b; font-size: 10px; }
.mode-option small { color: #90958c; font-size: 9px; line-height: 1.4; }

/* Modal, drawer and feedback */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(33,42,38,.36); backdrop-filter: blur(2px); animation: fade-in .16s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(100%, 565px); max-height: min(90vh, 800px); overflow-y: auto; border: 1px solid #dedbd2; border-radius: 7px; background: var(--surface); box-shadow: 0 20px 80px rgba(23,35,29,.2); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 19px 21px 15px; border-bottom: 1px solid var(--line); background: var(--surface); }
.modal-head h2 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.modal-head p { margin: 5px 0 0; color: #92958d; font-size: 9px; }
.modal-body { padding: 18px 21px 20px; }
.modal-close { flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.field.full { grid-column: 1 / -1; }
.field small { display: block; margin-top: 5px; color: #9b9d95; font-size: 8px; line-height: 1.5; }
.field .quote-status[data-state="loading"] { color: #927a50; }
.field .quote-status[data-state="success"] { color: #4b805e; }
.field .quote-status[data-state="error"] { color: #ad594f; }
.field textarea { height: 64px; min-height: 64px; padding: 9px 10px; resize: vertical; }
.modal-note { margin: 15px 0 0; padding: 10px 11px; border-radius: 4px; color: #827b6c; background: #f7f4ec; font-size: 9px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 17px; margin-top: 17px; border-top: 1px solid var(--line); }
.detail-hero { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 5px 0 18px; border-bottom: 1px solid var(--line); }
.detail-symbol { display: flex; align-items: center; gap: 12px; }
.detail-symbol .asset-mark { width: 43px; height: 43px; font-size: 14px; }
.detail-symbol h3 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.detail-symbol p { margin: 4px 0 0; color: #959890; font-size: 9px; }
.detail-value { font-size: 21px; font-weight: 570; letter-spacing: -.03em; text-align: right; font-variant-numeric: tabular-nums; }
.detail-value small { display: block; margin-top: 4px; color: #93968e; font-size: 9px; font-weight: 400; }
.detail-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 12px; padding-top: 7px; }
.detail-metric { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0eee8; color: #92958e; font-size: 9px; }
.detail-metric strong { color: #536057; font-size: 10px; font-weight: 630; text-align: right; }
.detail-section-heading { margin: 17px 0 7px; color: #8d928a; font-size: 8px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.mini-ledger-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; padding: 9px 0; border-top: 1px solid #f1efe9; color: #7f877f; font-size: 9px; }
.mini-ledger-row strong { color: #57635c; font-size: 9px; font-weight: 620; }
.toast-stack { position: fixed; right: 20px; bottom: 18px; z-index: 100; display: grid; gap: 8px; width: min(330px, calc(100vw - 32px)); }
.toast { padding: 11px 13px; border: 1px solid #d8e3d8; border-radius: 5px; color: #3f654d; background: #f8fcf7; box-shadow: var(--shadow); font-size: 10px; line-height: 1.5; animation: toast-in .2s ease-out; }
.toast.error { border-color: #ebd7d1; color: #954e46; background: #fffaf8; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1450px) { .main-shell { padding-right: 54px; padding-left: 54px; } .view { padding-top: 38px; } .hero-panel { min-height: 230px; } }
@media (max-width: 1150px) { .main-shell { padding: 0 24px; } .overview-grid { grid-template-columns: minmax(0, 1.45fr) minmax(218px, .8fr); } .subgrid { grid-template-columns: minmax(0, 1.45fr) minmax(228px, .8fr); } .allocation-content { gap: 12px; } .donut { width: 116px; height: 116px; } .donut::after { inset: 18px; } .legend { gap: 8px; } }
@media (max-width: 900px) { .sidebar { transform: translateX(-100%); transition: transform .22s; box-shadow: 10px 0 30px rgba(34,45,38,.08); } .sidebar.open { transform: translateX(0); } .main-shell { margin-left: 0; padding: 0 22px; } .mobile-menu { display: grid; margin-right: 4px; } .topbar { justify-content: flex-start; gap: 12px; } .page-context { flex: 1; } .topbar-right { gap: 8px; } .workspace-label { margin-top: 34px; } .overview-grid { grid-template-columns: minmax(0,1.5fr) minmax(220px,.8fr); } }
@media (max-width: 690px) { .main-shell { padding: 0 15px; } .topbar { height: 59px; } .context-overline, .context-divider, .topbar-date, .topbar-separator { display: none; } .page-context { font-size: 11px; } .market-pill { font-size: 9px; } .view { padding-top: 25px; } .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; } .heading-actions { width: 100%; } .heading-actions .button { flex: 1; } .overview-grid, .subgrid, .bottom-grid, .performance-grid, .settings-grid { grid-template-columns: 1fr; gap: 12px; } .hero-panel { min-height: 205px; padding: 17px 17px 14px; } .hero-value { font-size: clamp(34px,10vw,46px); } .hero-value .currency-symbol { font-size: 20px; } .hero-stat { padding: 0 8px; } .stat-value { font-size: 12px; } .metric-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; } .metric-card { min-height: 96px; padding: 13px; } .metric-value { font-size: 17px; } .chart-panel, .allocation-panel { min-height: auto; padding: 15px; } .chart-wrap { height: 165px; } .allocation-content { justify-content: flex-start; padding: 17px 4px 14px; } .donut { width: 125px; height: 125px; } .donut::after { inset: 19px; } .legend { min-width: 110px; flex: 1; } .bottom-grid { margin-top: 12px; } .activity-panel { min-height: 240px; } .stats-strip { grid-template-columns: 1fr 1fr; } .stat-block:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); } .stat-block:nth-child(4) { border-top: 1px solid var(--line); } .secondary-cards { grid-template-columns: 1fr; gap: 10px; } .small-panel { min-height: 115px; } .small-panel strong { margin-top: 9px; } .report-grid { grid-template-columns: 1fr; } .page-heading .lede { max-width: 400px; } .app-footer { flex-direction: column; gap: 6px; } .search-box { min-width: min(100%, 180px); flex: 1; } .filter-row { width: 100%; } .setting-row { grid-template-columns: minmax(0,1fr) 135px; gap: 8px; } .data-table th { padding: 8px 9px; } .data-table td { padding: 7px 9px; } .data-table th:first-child, .data-table td:first-child { padding-left: 12px; } .table-shell .data-table td { height: 52px; } .modal-backdrop { place-items: end center; padding: 0; } .modal { width: 100%; max-height: 93vh; border-radius: 9px 9px 0 0; } .modal-head { padding: 17px 16px 13px; } .modal-body { padding: 15px 16px 18px; } .form-grid { gap: 12px 9px; } .auth-card { padding: 29px 23px 25px; } .demo-notice { align-items: flex-start; margin-top: 13px; line-height: 1.55; } }
@media (max-width: 410px) { .metric-stack { grid-template-columns: 1fr; } .topbar-right { gap: 5px; } .market-pill span { display: none; } .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 12px; } .hero-stat:nth-child(3) { display: none; } .hero-panel { min-height: 190px; } .hero-value { margin-top: 13px; } .form-grid { grid-template-columns: 1fr; } .field.full { grid-column: auto; } .detail-metrics { grid-template-columns: 1fr; } }

@media print { body { background: white; } .sidebar, .topbar, .heading-actions, .demo-notice, .app-footer, .button, .range-tabs { display: none !important; } .main-shell { margin: 0; padding: 0; } .view { display: none !important; padding: 0; } #view-reports { display: block !important; } .panel, .report-card { break-inside: avoid; box-shadow: none; } .report-grid { display: none !important; } .print-summary { display: block !important; margin-top: 15px; } .page-heading { margin-bottom: 15px; } .page-heading h1 { font-size: 24px; } .stats-strip { box-shadow: none; } }
