/* Wow Life Is Weird archive edition. Shared layout and component behavior live in styles.css. */
:root {
  --bg: #050c10;
  --panel: #0a151c;
  --panel-raised: #11252e;
  --line: #23404a80;
  --line-strong: #36545e;
  --text: #d2dcd9;
  --muted: #91a8ad;
  --faint: #728c94;
  --lime: #69cbcc;
  --green: #69cbcc;
  --red: #e1a091;
  --amber: #d4ad82;
  --font: 'Courier New', 'Consolas', monospace;
  --display: 'Courier New', 'Consolas', monospace;
  --mono: 'Courier New', 'Consolas', monospace;
}
body { background: radial-gradient(ellipse at 50% 0, #182a3280, transparent 700px), var(--bg); font-size:14.95px; }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 120; background: repeating-linear-gradient(0deg, transparent 0 3px, #90b7c703 3px 4px); }
::selection { background: #3c858b80; color: #fff; }
::-webkit-scrollbar-thumb { background: #2a626a; border-radius: 0; }
input, select, textarea { border-radius: 0; background: #081219; border-color: var(--line-strong); font-size: 15px; }
input:focus, select:focus, textarea:focus { border-color: var(--lime); }
input::placeholder, textarea::placeholder { color: #80969e; }
input, select, textarea, .dialog-intro, .help-text, .journal-card > p { text-transform: none; }
button, a, select { transition: background .18s ease, color .18s ease, border-color .18s ease; }
.button, .button.small { border-radius: 0; font-size:15.81px; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; padding: 12px 17px; min-height: 40px; }
.primary { background: #16414b; color: #d2f3ef; border-color: #42858e; box-shadow: inset 0 0 24px #58bac411; }
.primary:hover:not(:disabled) { background: #205561 !important; color: #fff !important; border-color: #7fc7ca; transform: none; box-shadow: none; }
.subtle { background: #0e2028; border-color: #36545e; color: #bbced0; }
.subtle:hover:not(:disabled) { background: #18343e; border-color: #628c94; }
.icon-button, .avatar, .skip-link { border-radius: 0; }
.icon-button { color: #95b4bb; min-width: 32px; min-height: 32px; }
.icon-button:hover { background: #54bfc217; }
.text-link { color: var(--lime); font-size:14.37px; text-transform: uppercase; letter-spacing: .4px; }
.positive { color: var(--lime) !important; }
.negative-soft { color: #d4ad9b !important; }

/* The archive has a masthead and a single horizontal index. */
#app { position: relative; z-index: 1; }
.ambient-net { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; opacity: .725; pointer-events: none; }
.archive-header { position: relative; z-index: 20; background: #050b0fbd; border-bottom: 1px solid var(--line-strong); }
.archive-status { display: flex; justify-content: space-between; gap: 20px; padding: 9px max(32px, calc((100vw - 1320px) / 2)); background: #11242fcc; color: #9fb6bf; font-size:12.94px; letter-spacing: .8px; }
.archive-status > span:first-child { display: flex; align-items: center; gap: 9px; }
.archive-status .owner-access { color:#c8dcdd; border:1px solid #4b7b80; padding:3px 9px; font:inherit; font-size:inherit; letter-spacing:inherit; text-transform:uppercase; }
.archive-status .owner-access:hover { background:#163941; color:#e7f3ed; }
.owner-gate { padding:34px; margin:30px 0; }
.owner-gate h2 { margin:12px 0 8px; font-family:var(--display); font-size:25px; font-weight:400; }
.owner-gate p { margin:0 0 20px; color:#8ea7a3; font-size:13px; line-height:1.8; }
.data-dot { background: var(--lime); box-shadow: none; border-radius: 0; }
.masthead { max-width: 1384px; padding: 27px 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { padding: 0; gap: 15px; font-size: 34px; letter-spacing: 7px; color: #e0e7e3; }
.brand-mark { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #48717a; color: #92c5c5; }
.brand-mark > svg { width: 37px; height: 37px; }
.brand-sub { font-family: var(--mono); color: #8da6ad; font-size:11.5px; letter-spacing: 1.6px; margin-top: 9px; }
.masthead-caption { font-size:14.37px; letter-spacing: 1px; line-height: 1.9; color: #77969e; text-align: right; }
.archive-navigation { max-width: 1384px; margin: auto; display: flex; gap: 20px; padding: 0 32px; }
.archive-navigation .nav-item { width: auto; margin: 0; padding: 17px 0; gap: 9px; border-radius: 0; color: #91a6ac; text-transform: uppercase; font-size:15.81px; letter-spacing: .5px; border-bottom: 2px solid transparent; }
.archive-navigation .nav-item.active { background: none; color: #d5e4e2; box-shadow: none; border-bottom-color: var(--lime); }
.archive-navigation .nav-item.active::before { display: none; }
.archive-navigation .nav-item:hover { background: none; color: var(--lime); }
.nav-index { font-size:12.94px; color: #63848d; }
.nav-item.active .nav-index { color: var(--lime); }
.nav-index::before { content: '['; }
.nav-index::after { content: ']'; }
.archive-navigation .nav-settings { margin-left: auto; font-size:14.37px; }
.archive-navigation .nav-settings > .icon { width: 14px; height: 14px; }
.mobile-menu { display: none; }
.app-main { margin-left: 0; background: none; }
.topbar { position: static; max-width: 1384px; padding: 0 32px; margin: auto; height: 50px; border-bottom: 0; background: none; backdrop-filter: none; }
.breadcrumb { gap: 13px; font-size:12.94px; letter-spacing: .7px; text-transform: uppercase; }
.breadcrumb-root { color: #74919a; }
.breadcrumb-slash { color: #4b737e; }
.topbar-right { gap: 16px; }
.record-date { color: #8ba9b1; font-size:12.94px; letter-spacing: .6px; }
.avatar { width: 26px; height: 26px; background: #10252e; border: 1px solid #345762; color: #b7d4d4; font-size:14.37px; }
main { max-width: 1384px; padding: 38px 32px 0; }
.page-heading { align-items: flex-end; margin-bottom: 34px; padding-bottom: 35px; border-bottom: 1px solid var(--line-strong); position: relative; gap: 24px; }
.page-heading::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 84px; height: 2px; background: #58b6b9; }
.eyebrow, .page-heading .eyebrow { font-size:14.37px; color: #76aeb4; letter-spacing: 1.6px; margin-bottom: 21px; }
.eyebrow > span { border-radius: 0; background: var(--lime); }
.page-heading h1 { font-size: clamp(32px, 4vw, 56px); font-weight: 400; letter-spacing: -2px; line-height: 1.08; text-transform: uppercase; color: #e0e8e4; }
.page-heading p { color: #92a8af; font-size: 15px; margin-top: 19px; max-width: 640px; line-height: 1.8; }
.page-heading > .button { padding: 14px 20px; margin-bottom: 2px; font-size:15.81px; }
.filterbar { gap: 18px; margin-bottom: 28px; min-height: 40px; }
.account-filter > select { color: #c0d2d4; font-size:15.81px; max-width: 220px; }
.account-filter option { background: #10222a; }
.account-filter > .icon:first-child { color: #83afb7; }
.range-switch, .segmented { background: #08141b; border: 1px solid #29444e; padding: 3px; border-radius: 0; }
.range-switch button, .segmented button { border-radius: 0; font-size:14.37px; padding: 7px 11px; color: #92a9b0; }
.range-switch button.selected, .segmented button.selected { background: #1b3841; color: #c9e6e4; border-color: #3e6a74; box-shadow: none; }
.filter-end { font-size:14.37px; color: #96b0b7; }
.dashboard-main > main { padding-top: 20px; }
.dashboard-import { border: 1px solid #31515d; color: #a8c3c4; }
.dashboard-import:hover { background: #1b3841; color: #d5e4e2; }
.filter-small { color: #7c979f; font-size:12.94px; }
.page-content { animation: none; }
.dashboard-tail { display: grid; gap: 24px; }

/* Flat surfaces, instrument labels, and fine rules replace soft dashboard cards. */
.stats-grid { gap: 0; border: 1px solid var(--line-strong); margin-bottom: 28px; }
.stat-card, .stat-card:first-child { border: 0; border-right: 1px solid var(--line-strong); border-radius: 0; background: #10242b70; padding: 24px; min-height: 153px; }
.stat-card:last-child { border-right: 0; }
.stat-card:first-child::after { display: none; }
.stat-label { font-size:14.37px; letter-spacing: 1px; color: #95b0b6; }
.stat-label .icon { color: #648f9b; }
.stat-value { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -1.6px; margin: 15px 0 17px; }
.stat-bottom, .stat-card:nth-child(3) .stat-bottom, .stat-bottom b { font-size:14.37px; color: #8fa6ad; }
.mini-win, .mini-win i, .instrument-track, .instrument-track i { border-radius: 0; }
.mini-win { background: #7c514966; }
.panel { border-radius: 0; background: #0b1820; border-color: var(--line-strong); }
.stat-card, .stat-card:first-child { background-color: #0b1820; }
.performance-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; margin-bottom: 28px; }
.panel-head { padding: 23px 24px 21px; gap: 14px; }
.section-kicker { font-size:12.94px; letter-spacing: 1.5px; color: #77a3ae; margin-bottom: 8px; }
.section-kicker::before { content: '// '; color: #4f828e; }
.panel-head h2, .snapshot .panel-head h2 { font-size: 16px; letter-spacing: .3px; text-transform: uppercase; color: #d2deda; }
.chart-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.chart-controls .segmented { flex-shrink: 0; }
.chart-zoom button { min-width: 30px; }
.chart-zoom button:last-child { font-size:10.35px; }
.chart-wrap > svg { cursor: grab; touch-action: pan-y; user-select: none; }
.chart-wrap > svg:active { cursor: grabbing; }
.chart-summary { padding: 0 24px 20px; gap: 16px; }
.chart-total { font-size: 34px; }
.chart-summary-label { font-size:14.37px; color: #a2b9bd; }
.chart-caption { font-size:12.94px; color: #829ca6; }
.chart-legend { font-size:12.94px; color: #98b7bd; }
.chart-legend i { border-radius: 0; }
.chart-wrap { padding: 9px 20px 20px; }
.chart-wrap > svg { min-height: 190px; }
.chart-x-labels, .chart-x-labels > span:last-child { font-size:12.94px; color: #7e9da7; }
.panel-foot { padding: 14px 24px; font-size:12.94px; color: #819ea7; flex-wrap: wrap; }
.panel-foot button { font-size:12.94px; color: #94c5c8; }
.panel-foot > .icon { color: #7da1ac; }
.foot-end { font-size:12.94px; }
.snapshot { background: linear-gradient(140deg, #183b45b0, #0c1a23); }
.snapshot { background-color: #0b1820; }
.snapshot .panel-head { padding-bottom: 0; }
.consistency-ring { width: 155px; height: 155px; margin: 14px auto; }
.consistency-ring strong { font-size: 40px; }
.consistency-ring strong small { color: #94b4b8; }
.consistency-ring > div > span { font-size:12.94px; color: #94b7ba; }
.snapshot-grid { margin-bottom: 22px; }
.snapshot-grid span { font-size:14.37px; color: #91adb4; }
.snapshot-grid strong { font-size: 15px; }
.snapshot-grid strong small { color: #8babb1; }
.snapshot-bottom { background: #173c4540; padding: 15px 20px; font-size:14.37px; color: #bfd6d5; }
.snapshot-bottom .icon { color: var(--lime); }
.snapshot-bottom small { font-size:12.94px; color: #93b1b7; }
.heatmap-panel { margin-bottom: 28px; }
.heatmap-meta { font-size:14.37px; color: #90aab2; }
.heat-scroll { padding-inline: 24px; padding-bottom: 4px; overflow-y: hidden; scrollbar-width: none; }
.heat-scroll::-webkit-scrollbar { display: none; }
.heatmap-months > div, .heat-day-labels { font-size:12.94px; color: #8aa6af; }
.heat-cell, .heat-blank { border-radius: 0; }
.heat-cell { background: #172d37; border-color: #27434b; }
.heat-cell:hover { background: #3a626c; box-shadow: 0 0 0 1px #98cbcf; }
.heat-cell.gain.level-1 { background: #1d454b; border-color: #35636b; }
.heat-cell.gain.level-2 { background: #2d6d73; }
.heat-cell.gain.level-3 { background: #429ca0; }
.heat-cell.gain.level-4 { background: #69cbcc; box-shadow: none; }
.heat-cell.loss.level-1 { background: #4c3533; }
.heat-cell.loss.level-2 { background: #83564c; }
.heat-cell.loss.level-3 { background: #af7b68; }
.heat-cell.loss.level-4 { background: #e1a091; box-shadow: none; }
.heat-cell.today::after { border-color: #94b5bf; border-radius: 0; }
.heatmap-footer { padding: 20px 24px; font-size:14.37px; color: #8ca8b0; }
.heatmap-footer b { color: #bed5d5; }
.heat-legend > span { color: #9fb9bf; font-size:12.94px; }
.heat-date-range, .heat-date-range > span { font-size:12.94px; color: #829fa9; }
.two-column { gap: 24px; margin-bottom: 28px; }
.instrument-list, .recent-list { padding-inline: 24px; }
.instrument-row { padding-block: 18px; }
.instrument-symbol, .instrument-symbol.symbol-1, .instrument-symbol.symbol-2 { border-radius: 0; border-color: #426a73; background: #19343d; color: #a5d1d1; width: 38px; height: 38px; }
.instrument-name > strong, .instrument-row > strong, .recent-row strong, .recent-pnl { font-size:14.95px; }
.instrument-name small, .recent-row small, .recent-pnl small { font-size:14.37px; color: #88a5ae; }
.recent-row { padding-block: 17px; }
.recent-row strong small { font-size:12.94px; color: #91b2bb; }
.gain-bar { background: #54aeb3; border-radius: 0; }
.loss-bar { background: #bc8b7a; border-radius: 0; }
.direction-icon, .direction-tag, .tag, .mood-label, .account-initial { border-radius: 0; }
.direction-icon.long, .direction-tag.long { background: #54bfc212; color: #8cd2cf; border-color: #54bfc233; }
.direction-icon.short, .direction-tag.short { background: #d2947c12; color: #dfb099; border-color: #d2947c33; }
.calendar-summary { background: #14333c55; border-radius: 0; border-color: #365763; }
.calendar-summary > div > span { color: #90aeb7; font-size:12.94px; }
.calendar-summary > span, .calendar-summary > .calendar-hint { color: #91afb7; font-size:14.37px !important; }
.calendar-controls > span { font-size: 15px; min-width: 122px; }
.calendar-weekdays > span { color: #90a9b3; font-size:12.94px; }
.calendar-cell { border-radius: 0; background: #0d1c25; border-color: #24404b; min-height: 95px; }
.calendar-cell.calendar-gain { background: #153b4255; border-color: #386a70; }
.calendar-cell.calendar-loss { background: #60413933; border-color: #74564a; }
.calendar-cell:hover { border-color: var(--lime); }
.calendar-number { font-size:15.81px; color: #9dbac0; }
.calendar-cell > small { font-size:12.94px; color: #96b4b6; }
.calendar-empty { color: #496771; }
.journal-dot { background: var(--lime); }
.page-footer { padding: 32px 0; margin-top: 12px; border-top: 1px solid var(--line-strong); font-size:12.94px; letter-spacing: .6px; color: #8ca6ad; }
.page-footer.journal-footer { margin-top: 20px; }
.page-footer > span { line-height: 1.8; }
.page-footer svg { color: #74a2ad; }
.page-footer i { color: #4c7682; }

/* Ledgers, analysis, notes, and settings use the same archive language. */
.trade-table th { color: #91afb8; background: #102630; font-size:14.37px; }
.trade-table td, .trade-table td > strong { font-size: 15px; }
.trade-table td small { color: #8ba8b2; font-size:14.37px; }
.trade-table tbody tr:hover { background: #17394366; }
.direction-tag, .tag { font-size:12.94px; }
.ledger-filters input, .ledger-filters > select { font-size: 15px; }
.search-input { border-radius: 0; background: #081219; border-color: var(--line-strong); }
.search-input input { background: transparent; }
.ledger-footer { color: #91afb8; font-size:15.81px; }
.bar-name { color: #b6cdd0; font-size: 15px; }
.bar-value { font-size: 15px; }
.bar-value small { color: #8daab3; font-size:12.94px; }
.diverging-track { background: #18303b; border-radius: 0; }
.quality-list span, .quality-list strong { font-size: 15px; }
.quality-list span { color: #93afb5; }
.quality-list strong { color: #cbdcda; }
.journal-intro p, .journal-card > p, .settings-body .help-text, .backup-visual p { font-size: 15px; color: #a3b9bc; }
.journal-card { text-align: left; }
.journal-card:hover { background: #15333d; border-color: #568d96; }
.journal-card-top, .journal-card > small { color: #94b2ba; font-size:15.81px; }
.journal-card-bottom { font-size:14.37px; }
.tag { background: #1a3942; color: #b1d5d5; border-color: #3a626c; }
.info-callout { border-radius: 0; background: #0e232d; color: #9fbdc2; font-size:15.81px; }
.info-callout > .icon { color: #77bac2; }
.field-label, .settings-body .field-label { color: #b0cdd0; font-size: 15px; }
.account-initial { background: #21404a; color: #b4d5d5; border-color: #3c626d; }
.account-row strong, .backup-visual strong { font-size:14.95px; color: #d1dfdc; }
.account-row small, .history-row small { font-size:14.37px; color: #90adb5; }
.setting-detail, .setting-detail > strong { font-size:15.81px; color: #a2bac0; }
.history-row strong { font-size: 15px; color: #c4d7d7; }
.history-row > span { color: #b1ced0; font-size:15.81px; }
.backup-visual > .icon { color: #6cb3be; }
.observations > p { color: #a0b9bf; font-size: 15px; }
.observations h3 { color: #c8dcd9; }
.observation-icon { color: #7ac4c9; border-radius: 0; background: #16333e; }
.observation-foot { color: #90acb5; font-size:14.37px; }

/* Inspectors and import forms remain quiet and readable over the archive. */
.overlay { background: #02080cdd; backdrop-filter: blur(5px); }
.dialog, .drawer { border-radius: 0; background: #0d1c25; border-color: #416670; }
.dialog-header, .drawer .dialog-header { background: #102631f5; }
.dialog-header .section-kicker { color: #83b5be; font-size:12.94px; }
.dialog-header h2 { color: #d7e3df; font-size: 24px; letter-spacing: -.5px; }
.dialog-intro, .help-text, .methodology p { color: #9cb7bd; font-size: 15px; }
.dialog-actions { background: #0a171e; }
.dropzone { border-radius: 0; background: #15354055; border-color: #5b8d96; }
.dropzone:hover, .dropzone.drag-over { background: #20475166; border-color: var(--lime); }
.dropzone > .icon, .dropzone b { color: #89c9cc; }
.dropzone strong { color: #c5dfdd; }
.dropzone > span, .dropzone small { color: #91b0b9; }
.import-checks > span { color: #9dbfc1; font-size:12.94px; }
.import-preview, .position-prices, .day-position, .source-row, .form-error, .restore-warning { border-radius: 0; }
.import-preview { background: #17343e55; border-color: #365c66; }
.import-numbers strong { color: #d2e5e1; }
.import-numbers span, .import-preview-foot { color: #96b5bb; }
.day-account, .day-stats span { color: #9bbac0; }
.dialog.position-dialog, .dialog.session-dialog { width: min(760px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; }
.day-stats strong, .drawer-section h3, .day-position summary strong { color: #ccdfdb; }
.drawer-section textarea, .drawer-section input, .drawer-section select { background: #08151d; font-size: 15px; }
.day-position summary small, .source-row summary small, .position-prices small { color: #90aeb7; font-size:14.37px; }
.source-row dd, .position-prices strong, .methodology h3, .methodology strong { color: #bed7d7; }
.source-row dt, .position-prices span { color: #92b1ba; }
.source-row dl > div, .source-row dd { font-size:14.37px; }
.tooltip { border-radius: 0; background: #142e38f7; color: #cee2df; border-color: #51818b; }
.toast { left: 50%; border-radius: 0; background: #173d47; border-color: #5b9b9f; color: #d2e9e5; }

@media (max-width: 1100px) {
  .archive-navigation { gap: 24px; }
  .stat-card, .stat-card:first-child { padding: 20px 16px; }
  .stat-bottom, .stat-card:nth-child(3) .stat-bottom, .stat-bottom b { font-size:12.94px; }
  .stat-card .mini-spark { width: 40px; }
  .stat-card .mini-win { width: 40px; }
  .performance-grid { grid-template-columns: minmax(0, 1fr) 270px; }
  .panel-head { padding: 21px 19px; }
  .panel-head h2, .snapshot .panel-head h2 { font-size: 14px; }
  .chart-summary { gap: 12px; padding-inline: 19px; }
  .chart-total { font-size: 29px; }
  .chart-legend { display: none; }
  .chart-x-labels, .chart-x-labels > span:last-child { font-size:11.5px; }
  .panel-foot { padding-inline: 19px; }
}
@media (max-width: 520px) {
  .equity-panel > .panel-head { align-items: flex-start; flex-wrap: wrap; }
  .chart-controls { width: 100%; justify-content: space-between; }
}
@media (max-width: 800px) {
  .archive-status { padding-inline: 24px; font-size:11.5px; }
  .masthead { padding: 24px; }
  .archive-navigation { padding-inline: 24px; gap: 22px; }
  .archive-navigation .nav-item { font-size:14.37px; gap: 6px; }
  .archive-navigation .nav-settings { font-size: 0; gap: 0; }
  .archive-navigation .nav-settings > .icon { width: 18px; height: 18px; }
  .topbar { padding-inline: 24px; }
  main { padding: 30px 24px 0; }
  .page-heading { gap: 18px; }
  .page-heading h1 { font-size: 36px; }
  .page-heading > .button { font-size:14.37px; padding: 12px; }
  .page-heading p { font-size:15.81px; max-width: 380px; }
  .eyebrow, .page-heading .eyebrow { font-size:12.94px; letter-spacing: 1px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card, .stat-card:first-child { padding: 22px; min-height: 144px; }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
  .stat-value { font-size: 34px; }
  .stat-card .mini-spark { width: 55px; }
  .stat-card .mini-win { width: 55px; }
  .performance-grid, .two-column { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .panel-head h2, .snapshot .panel-head h2 { font-size: 16px; }
  .section-kicker, .snapshot .section-kicker, .equity-panel .section-kicker { font-size:12.94px; }
  .snapshot > .consistency-ring { width: 145px; height: 145px; }
  .snapshot .snapshot-grid span, .snapshot .snapshot-bottom, .snapshot .snapshot-bottom small { font-size:14.37px; }
  .snapshot .snapshot-grid strong { font-size: 16px; }
  .chart-wrap > svg { min-height: 0; }
  .chart-summary-label, .chart-caption { font-size:14.37px; }
  .segmented button { font-size:14.37px; }
  .heatmap-meta { max-width: 145px; font-size:14.37px; }
  .heatmap-footer { font-size:12.94px; }
  .calendar-summary > .calendar-hint { display: none; }
  .calendar-cell { min-height: 88px; }
  .calendar-cell > small { font-size:11.5px; }
  .settings-grid { grid-template-columns: 1fr; }
  .dashboard-main > main { padding-top: 18px; }
  .dashboard-main .filterbar { flex-wrap: wrap; }
  .dashboard-main .filterbar > .filter-divider { display: none; }
  .dashboard-main .range-switch { order: 3; width: 100%; justify-content: space-between; }
}
@media (max-width: 600px) {
  .archive-status { padding: 8px 18px; font-size:10.06px; letter-spacing: .5px; }
  .archive-status > span:last-child { display: none; }
  .masthead { padding: 22px 18px; }
  .brand { font-size: 29px; gap: 13px; letter-spacing: 6px; }
  .brand-mark { width: 45px; height: 45px; }
  .brand-mark > svg { width: 30px; height: 30px; }
  .brand-sub { font-size:10.06px; letter-spacing: 1px; }
  .masthead-caption { display: none; }
  .mobile-menu { display: flex; width: 38px; height: 38px; border: 1px solid #31515d; }
  .archive-navigation { padding: 0 18px; gap: 0; flex-wrap: wrap; }
  .archive-navigation .nav-item { justify-content: center; flex: 1; padding: 13px 7px; font-size:12.94px; }
  .archive-navigation .nav-index { display: none; }
  .archive-navigation .nav-settings { display: none; }
  .mobile-open .archive-navigation { display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 12px; }
  .mobile-open .archive-navigation .nav-item { justify-content: flex-start; gap: 9px; padding: 14px 10px; font-size:15.81px; }
  .mobile-open .archive-navigation .nav-index { display: inline; }
  .mobile-open .archive-navigation .nav-settings { display: flex; grid-column: 1 / -1; margin-left: 0; gap: 9px; font-size:15.81px; }
  .topbar { height: 44px; padding: 0 18px; }
  .breadcrumb { font-size:11.5px; gap: 8px; }
  .breadcrumb-root, .breadcrumb-slash { display: inline; }
  .record-date { font-size:11.5px; letter-spacing: 0; }
  .topbar-right { gap: 9px; }
  .avatar { width: 24px; height: 24px; }
  main { padding: 26px 18px 0; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; padding-bottom: 27px; margin-bottom: 22px; gap: 22px; }
  .page-heading h1 { font-size: clamp(28px, 7.2vw, 42px); letter-spacing: -1.5px; }
  .eyebrow, .page-heading .eyebrow { font-size:11.5px; letter-spacing: .8px; margin-bottom: 17px; }
  .page-heading p { font-size:15.81px; line-height: 1.8; margin-top: 16px; max-width: none; }
  .page-heading > .button { min-height: 40px; font-size:14.37px; gap: 8px; padding: 12px 16px; margin: 0; }
  .page-heading > .button > .icon { width: 14px; height: 14px; }
  .filterbar { gap: 10px; margin-bottom: 22px; }
  .account-filter > select { font-size:15.81px; max-width: 165px; }
  .filter-end { font-size:12.94px; }
  .filter-end .filter-small { display: none; }
  .range-switch button { font-size:14.37px; padding: 8px; }
  .stat-card, .stat-card:first-child { padding: 19px 15px; min-height: 143px; }
  .stat-label { font-size:12.94px; letter-spacing: .5px; }
  .stat-value { font-size: clamp(20px, 6.2vw, 29px); letter-spacing: -1.2px; margin: 17px 0 14px; white-space: nowrap; }
  .stat-bottom, .stat-card:nth-child(3) .stat-bottom, .stat-bottom b { font-size:12.94px; }
  .stat-card .mini-spark, .stat-card .mini-win { display: none; }
  .stats-grid { margin-bottom: 22px; }
  .panel-head { padding: 21px 17px; gap: 10px; }
  .panel-head h2, .snapshot .panel-head h2, .equity-panel > .panel-head h2 { font-size: 14px; }
  .section-kicker, .snapshot .section-kicker, .equity-panel .section-kicker { font-size:11.5px; letter-spacing: 1px; }
  .segmented button { font-size:12.94px; padding: 6px; }
  .chart-summary { padding-inline: 17px; gap: 12px; }
  .chart-total { font-size: 29px; }
  .chart-summary-label, .chart-caption { font-size:12.94px; }
  .chart-x-labels, .chart-x-labels > span:last-child { font-size:10.06px; }
  .chart-wrap { padding: 4px 12px 18px; }
  .panel-foot, .panel-foot button, .panel-foot .foot-end { font-size:11.5px; }
  .snapshot .snapshot-grid span { font-size:12.94px; }
  .snapshot .snapshot-grid strong { font-size: 14px; }
  .snapshot > .consistency-ring { width: 132px; height: 132px; }
  .snapshot .consistency-ring strong { font-size: 34px; }
  .snapshot .snapshot-bottom { padding: 15px 17px; }
  .snapshot .snapshot-bottom small { font-size:12.94px; }
  .heatmap-panel .panel-head h2, .calendar-panel .panel-head h2 { font-size: 14px; }
  .heatmap-meta { font-size:12.94px; max-width: 125px; }
  .heatmap-meta > .positive { font-size:14.37px; }
  .heat-scroll { padding-inline: 17px; }
  .heatmap-footer { padding-inline: 17px; font-size:12.94px; }
  .heat-date-range { font-size:11.5px; padding-inline: 17px; }
  .instrument-list, .recent-list { padding-inline: 17px; }
  .instrument-name small, .recent-row small, .recent-pnl small { font-size:12.94px; }
  .instrument-name > strong, .instrument-row > strong, .recent-row strong, .recent-pnl { font-size: 15px; }
  .calendar-panel .panel-head { flex-wrap: wrap; gap: 16px; }
  .calendar-controls { margin-left: auto; }
  .calendar-controls > span { font-size:15.81px; min-width: 120px; }
  .calendar-controls .icon-button { min-width: 30px; min-height: 30px; }
  .calendar-cell { min-height: 71px; padding: 6px 3px; }
  .calendar-number { font-size:12.94px; }
  .calendar-cell > strong { font-size:12.94px; letter-spacing: -.6px; }
  .calendar-cell > small { font-size: 0; }
  .calendar-cell > small::after { color: #a5c5c6; font-size:5.75px; }
  .calendar-weekdays > span { font-size:10.06px; }
  .calendar-summary > span { font-size:12.94px !important; }
  .page-footer, .page-footer > span:last-child { font-size:11.5px; }
  .ledger-panel .panel-head h2, .settings-grid .panel-head h2 { font-size: 14px; }
  .ledger-filters > select, .ledger-filters input { font-size:15.81px; }
  .ledger-panel .panel-head .button, .settings-grid .panel-head > .button { font-size:12.94px; padding: 8px; }
  .ledger-footer { font-size:14.37px; gap: 10px; flex-wrap: wrap; }
  .settings-body .button { font-size:14.37px; }
  .journal-header .panel-head { flex-wrap: wrap; }
  .journal-header .panel-head .button { font-size:14.37px; }
  .bar-name { font-size:14.37px; }
  .bar-value { font-size:15.81px; }
  .dialog, .drawer { border-radius: 0; }
  .dialog-header h2, .drawer .dialog-header h2 { font-size: 21px; }
  .dialog-intro, .help-text, .methodology p { font-size:15.81px; }
  .import-checks { flex-wrap: wrap; gap: 10px; }
  .import-checks > span { font-size:11.5px; }
  .dropzone small { font-size:12.94px; }
  .settings-grid .section-kicker, .dialog-header .section-kicker { font-size:11.5px; }
  .day-account { font-size:14.37px; }
  .day-account > span:last-child:not(.direction-tag) { font-size:11.5px; }
  .source-row dl > div, .source-row dd { font-size:12.94px; }
}
@media (max-width: 380px) {
  .breadcrumb-root, .breadcrumb-slash { display: none; }
  .archive-navigation .nav-item { font-size:11.5px; padding-inline: 4px; }
  .stat-value { font-size: clamp(18px, 5.8vw, 22px); }
  .stat-label { font-size:11.5px; }
  .stat-bottom, .stat-card:nth-child(3) .stat-bottom { font-size:11.5px; }
  .equity-panel > .panel-head { flex-wrap: wrap; }
  .calendar-cell > strong { font-size:11.5px; }
}
