:root {
  --ink: #18211c;
  --muted: #536058;
  --muted-strong: #3e4942;
  --paper: #f3f1e9;
  --panel: #fcfbf7;
  --surface: #ffffff;
  --surface-subtle: #f1f0ea;
  --line: #cfd2c9;
  --green: #10734d;
  --green-dark: #09583a;
  --green-soft: #d8eee3;
  --coral: #c44833;
  --coral-soft: #f4dcd5;
  --yellow: #d9b13d;
  --on-strong: #ffffff;
  --brand-bar: #ffffff;
  --brand-accent: #79d1a8;
  --dropzone-border: #829087;
  --dropzone-bg: rgba(252, 251, 247, .78);
  --axis: #5d6961;
  --grid: #dfe1d9;
  --guide: #7d8981;
  --drawdown-zero: #b6bbb3;
  --coral-area: rgba(196, 72, 51, .20);
  --coral-window: rgba(196, 72, 51, .08);
  --status-ring: rgba(16, 115, 77, .15);
  --focus-ring: rgba(16, 115, 77, .14);
  --overlay: rgba(14, 21, 17, .58);
  --error-bg: #f8edd0;
  --error-text: #5f4b1e;
  --danger-text: #873322;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(24, 33, 28, .08);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #edf4ef;
  --muted: #aebdb4;
  --muted-strong: #c9d5cd;
  --paper: #101612;
  --panel: #18201b;
  --surface: #202923;
  --surface-subtle: #141b17;
  --line: #39463e;
  --green: #61d49e;
  --green-dark: #8be5b8;
  --green-soft: #203d30;
  --coral: #ff8169;
  --coral-soft: #482b25;
  --yellow: #f1c65b;
  --on-strong: #101612;
  --brand-bar: #101612;
  --brand-accent: #61d49e;
  --dropzone-border: #66766c;
  --dropzone-bg: rgba(24, 32, 27, .82);
  --axis: #aab8af;
  --grid: #303b34;
  --guide: #829187;
  --drawdown-zero: #66736b;
  --coral-area: rgba(255, 129, 105, .22);
  --coral-window: rgba(255, 129, 105, .09);
  --status-ring: rgba(97, 212, 158, .18);
  --focus-ring: rgba(97, 212, 158, .16);
  --overlay: rgba(2, 6, 4, .72);
  --error-bg: #3d351f;
  --error-text: #f3d985;
  --danger-text: #ffad9d;
  --shadow: 0 20px 60px rgba(0, 0, 0, .28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; transition: color .2s ease, background-color .2s ease; }
button, input, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.topbar { height: 74px; padding: 0 clamp(22px, 4vw, 62px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 18px; letter-spacing: -.45px; }
.brand b { color: var(--green); }
.brand-mark { width: 28px; height: 28px; display: flex; align-items: end; gap: 3px; padding: 5px; background: var(--ink); border-radius: 4px; transform: rotate(-2deg); }
.brand-mark i { display: block; flex: 1; background: var(--brand-bar); border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 42%; }.brand-mark i:nth-child(2) { height: 76%; background: var(--brand-accent); }.brand-mark i:nth-child(3) { height: 58%; }
.topbar-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--status-ring); }
.topbar-actions, .user-menu { display: flex; align-items: center; gap: 12px; }
.header-button { height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 4px; background: transparent; font-size: 12px; cursor: pointer; }
.header-button:hover { color: var(--paper); background: var(--ink); }
.user-menu > span { max-width: 190px; overflow: hidden; color: var(--muted); font: 9px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.icon-button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-subtle); cursor: pointer; transform: rotate(45deg); }
.theme-toggle { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--ink); cursor: pointer; font-size: 17px; line-height: 1; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.theme-toggle:hover { border-color: var(--green); background: var(--green-soft); transform: rotate(8deg); }
.theme-toggle:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

main { min-height: calc(100vh - 74px); }
.upload-view { max-width: 1180px; margin: 0 auto; padding: clamp(70px, 10vh, 120px) 28px 48px; }
.hero-copy { max-width: 840px; }
.eyebrow, .panel-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--green); font-weight: 500; }
.hero-copy h1 { margin: 20px 0 24px; font-size: clamp(52px, 7.6vw, 100px); line-height: .98; letter-spacing: -.065em; font-weight: 600; }
.hero-copy h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--green); }
.hero-copy p { max-width: 650px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }

.dropzone { margin-top: 58px; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px dashed var(--dropzone-border); border-radius: 8px; background: var(--dropzone-bg); cursor: pointer; transition: .2s ease; }
.dropzone:hover, .dropzone.dragover { border-color: var(--green); background: var(--green-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.upload-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 50%; background: var(--ink); }
.upload-icon svg { width: 28px; fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropzone strong { font-size: 17px; }.dropzone > span:not(.upload-icon) { color: var(--muted); font-size: 14px; }.dropzone small { margin-top: 12px; font-family: var(--mono); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 58px; border-top: 1px solid var(--line); }
.feature-strip > div { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 25px 22px 10px 34px; border-right: 1px solid var(--line); }
.feature-strip > div:last-child { border-right: 0; }
.feature-strip span { position: absolute; left: 0; top: 27px; font-family: var(--mono); font-size: 9px; color: var(--green); }
.feature-strip b { font-size: 13px; }.feature-strip small { color: var(--muted); font-size: 11px; }

.loading-view { min-height: calc(100vh - 74px); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.loader { display: flex; gap: 5px; height: 38px; align-items: end; }
.loader span { width: 7px; background: var(--green); animation: bars 1s ease-in-out infinite; }.loader span:nth-child(2) { animation-delay: .15s; }.loader span:nth-child(3) { animation-delay: .3s; }
@keyframes bars { 0%,100% { height: 10px; } 50% { height: 36px; } }

.dashboard { max-width: 1480px; margin: 0 auto; padding: 38px clamp(18px, 3.5vw, 54px) 32px; }
.report-header { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 20px 0 34px; }
.text-button { padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }.text-button:hover { color: var(--green); }
.report-title-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.report-title-row h1 { margin: 0; font-size: clamp(28px, 3.5vw, 48px); letter-spacing: -.05em; }
.badge { padding: 5px 8px; border: 1px solid var(--green); border-radius: 3px; color: var(--green); font-family: var(--mono); font-size: 9px; }
.report-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.report-period { text-align: right; }.report-period small, .monthly-summary small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }.report-period strong { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.report-side { display: flex; flex-direction: column; align-items: end; gap: 10px; }.save-state { padding: 6px 9px; border-radius: 3px; background: var(--green-soft); color: var(--green-dark); font: 10px var(--mono); }.save-state.error { background: var(--coral-soft); color: var(--danger-text); }
.error-banner { margin-bottom: 16px; padding: 12px 14px; border-left: 3px solid var(--yellow); background: var(--error-bg); color: var(--error-text); font-size: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--line); }
.metric { min-height: 132px; padding: 20px 18px; background: var(--panel); }
.metric small { display: block; min-height: 34px; color: var(--muted-strong); font-size: 11px; font-weight: 600; line-height: 1.45; text-transform: uppercase; letter-spacing: .055em; }
.metric strong { display: block; margin-top: 7px; font-family: var(--mono); font-size: clamp(22px, 2vw, 29px); font-weight: 500; line-height: 1.15; letter-spacing: -.05em; }
.metric .positive { color: var(--green); }.metric .negative { color: var(--coral); }
.metric footer { margin-top: 8px; color: var(--muted-strong); font-size: 11px; font-weight: 500; line-height: 1.4; }

.panel { background: var(--panel); border: 1px solid var(--line); }
.chart-grid { display: grid; gap: 18px; }.chart-grid-main { grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); align-items: start; }
.panel-heading { min-height: 77px; padding: 19px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.025em; }
.legend { display: flex; gap: 15px; font-size: 11px; color: var(--muted); }.legend i { display: inline-block; width: 16px; height: 2px; margin-right: 5px; vertical-align: middle; }.legend-green { background: var(--green); }.legend-coral { background: var(--coral); }
.chart { position: relative; width: 100%; overflow: hidden; }.chart-large { height: 330px; }.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.axis-label { fill: var(--axis); font: 10px var(--mono); }.grid-line { stroke: var(--grid); stroke-width: 1; }.balance-line { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }.balance-area { fill: url(#balanceGradient); }.balance-gradient-stop { stop-color: var(--green); }.chart-dot { fill: var(--panel); stroke: var(--green); stroke-width: 2; }.chart-guide { stroke: var(--guide); stroke-width: 1; stroke-dasharray: 3 3; }.chart-bar-positive { fill: var(--green); }.chart-bar-negative { fill: var(--coral); }
.chart-tooltip { position: absolute; z-index: 3; pointer-events: none; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--ink); color: var(--paper); font: 11px/1.55 var(--mono); box-shadow: var(--shadow); transform: translate(-50%, -115%); white-space: pre; }
.drawdown-section { border-top: 1px solid var(--line); }.drawdown-heading { min-height: 92px; padding: 18px 22px 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }.drawdown-heading h3 { margin: 5px 0 4px; font-size: 16px; }.drawdown-heading > div > small { color: var(--muted-strong); font-size: 11px; font-weight: 500; }.drawdown-stats { display: flex; justify-content: end; gap: 22px; text-align: right; flex-wrap: wrap; }.drawdown-stats span { min-width: 130px; }.drawdown-stats small { display: block; margin-bottom: 6px; color: var(--muted-strong); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }.drawdown-stats strong { color: var(--coral); font: 500 12px var(--mono); white-space: nowrap; }
.drawdown-chart { height: 165px; }.drawdown-zero-line { stroke: var(--drawdown-zero); stroke-width: 1; }.underwater-area { fill: var(--coral-area); }.underwater-line { fill: none; stroke: var(--coral); stroke-width: 1.5; vector-effect: non-scaling-stroke; }.max-drawdown-window { fill: var(--coral-window); }.drawdown-dot { fill: var(--panel); stroke: var(--coral); stroke-width: 2; }.drawdown-marker { stroke-width: 2; vector-effect: non-scaling-stroke; }.drawdown-marker-start { fill: var(--panel); stroke: var(--ink); }.drawdown-marker-trough { fill: var(--coral); stroke: var(--panel); }.drawdown-marker-recovery { fill: var(--green); stroke: var(--panel); }

.direction-chart { padding: 24px 22px; }
.donut-wrap { position: relative; width: min(190px, 75%); margin: 2px auto 26px; aspect-ratio: 1; }.donut-wrap svg { width: 100%; transform: rotate(-90deg); }.donut-track { stroke: var(--grid); }.donut-value { stroke: var(--green); }.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }.donut-center strong { font: 500 27px var(--mono); }.donut-center small { color: var(--muted-strong); font-size: 10px; font-weight: 600; }
.direction-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }.direction-row span { font-size: 12px; }.direction-row strong { font: 500 13px var(--mono); }.direction-row small { grid-column: 1 / -1; color: var(--muted-strong); font-size: 10px; }

.monthly-panel { margin-top: 18px; }.monthly-heading { min-height: 84px; }.monthly-summary { text-align: right; }.monthly-summary span { font: 500 17px var(--mono); color: var(--green); }
.monthly-years { width: 100%; overflow: hidden; }.monthly-year { padding: 20px 22px 24px; border-top: 1px solid var(--line); }.monthly-year:first-child { border-top: 0; }.monthly-year-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }.monthly-year-heading h3 { margin: 0; font: 500 24px var(--mono); letter-spacing: -.04em; }.monthly-year-heading > span { display: flex; align-items: baseline; gap: 10px; }.monthly-year-heading small { color: var(--muted-strong); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }.monthly-year-heading strong { font: 500 15px var(--mono); }.monthly-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(4px, .7vw, 11px); }.monthly-month { min-width: 0; display: grid; grid-template-rows: 22px 160px 20px; text-align: center; }.monthly-value { align-self: start; overflow: visible; font: 500 clamp(8px, .75vw, 11px) var(--mono); white-space: nowrap; }.monthly-bar-zone { position: relative; min-width: 0; }.monthly-bar-zone::after { content: ""; position: absolute; z-index: 0; left: -3px; right: -3px; top: 50%; border-top: 1px solid var(--grid); }.monthly-bar { position: absolute; z-index: 1; left: 20%; right: 20%; min-height: 1px; background: var(--green); }.monthly-bar.positive { bottom: 50%; height: var(--bar-size); }.monthly-bar.negative { top: 50%; height: var(--bar-size); background: var(--coral); }.monthly-bar.zero { top: calc(50% - .5px); bottom: auto; height: 1px; min-height: 1px; opacity: .45; }.monthly-month-label { align-self: end; color: var(--muted-strong); font: 500 10px var(--mono); text-transform: uppercase; }.monthly-month.is-empty { opacity: .42; }.monthly-month.is-empty .monthly-bar-zone::after { border-top-style: dashed; }
.behavior-grid { grid-template-columns: 1.1fr 1.6fr .8fr; margin-top: 18px; }
.mini-bars { padding: 24px 22px 20px; }.mini-bar-row { display: grid; grid-template-columns: 32px 1fr 86px; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 11px; }.mini-bar-row > span:first-child { color: var(--muted-strong); font-family: var(--mono); }.mini-bar-row > span:last-child { text-align: right; font-family: var(--mono); }.mini-bar-track { height: 7px; background: var(--grid); }.mini-bar-fill { height: 100%; min-width: 1px; background: var(--green); }.mini-bar-fill.negative { background: var(--coral); }
.hour-chart { height: 245px; padding: 10px 10px 0; }.streaks { padding: 25px 22px; }.streak-item { margin-bottom: 25px; }.streak-item:last-child { margin-bottom: 0; }.streak-item small { display: block; margin-bottom: 6px; color: var(--muted-strong); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }.streak-item strong { font: 500 30px var(--mono); }.streak-item span { margin-left: 5px; color: var(--muted); font-size: 11px; }

.trades-panel { margin-top: 18px; }.trades-heading { gap: 20px; }.trades-heading h2 small { color: var(--muted); font: 11px var(--mono); }.trade-controls { display: flex; gap: 8px; }.trade-controls input, .trade-controls select { height: 36px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font-size: 11px; outline: none; }.trade-controls input { width: 170px; padding: 0 10px; }.trade-controls select { padding: 0 28px 0 9px; }.trade-controls input:focus, .trade-controls select:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--focus-ring); }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }th { padding: 13px 18px; color: var(--muted-strong); background: var(--surface-subtle); text-align: right; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }th:first-child, td:first-child { text-align: left; }td { padding: 14px 18px; border-top: 1px solid var(--line); text-align: right; font-family: var(--mono); }td.side { font-family: var(--sans); text-transform: uppercase; }.profit-positive { color: var(--green); }.profit-negative { color: var(--coral); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 15px; border-top: 1px solid var(--line); }.pagination button { width: 32px; height: 32px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }.pagination button:disabled { opacity: .35; cursor: default; }.pagination span { min-width: 95px; text-align: center; color: var(--muted); font: 10px var(--mono); }
.dashboard > footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 5px; color: var(--muted); font-size: 9px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 10; max-width: 420px; padding: 14px 17px; border-radius: 4px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); font-size: 12px; }

.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: var(--overlay); backdrop-filter: blur(4px); }
.modal-card { position: relative; z-index: 1; width: min(460px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; padding: 38px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); box-shadow: var(--shadow); }
.modal-card h2 { margin: 9px 0 7px; font-size: 29px; letter-spacing: -.045em; }.modal-card > p { margin: 0 0 25px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.modal-close { position: absolute; top: 13px; right: 15px; width: 30px; height: 30px; border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.auth-card form { display: grid; gap: 15px; }.auth-card label { display: grid; gap: 7px; color: var(--muted-strong); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }.auth-card input { height: 45px; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); outline: none; font-size: 13px; text-transform: none; letter-spacing: 0; }.auth-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--focus-ring); }
.primary-button { height: 46px; border: 0; border-radius: 3px; background: var(--ink); color: var(--paper); cursor: pointer; font-size: 12px; }.primary-button:hover { background: var(--green-dark); color: var(--on-strong); }.primary-button:disabled { opacity: .55; cursor: wait; }
.switch-button { width: 100%; margin-top: 18px; border: 0; background: none; color: var(--green-dark); cursor: pointer; font-size: 10px; }
.form-error { padding: 9px 11px; border-left: 3px solid var(--coral); background: var(--coral-soft); color: var(--danger-text); font-size: 11px; line-height: 1.45; }
.turnstile-section { min-height: 70px; }.turnstile-section > div { min-height: 65px; }.turnstile-status { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }.turnstile-status.error { color: var(--danger-text); }
.library-card { width: min(760px, 100%); }.library-list { display: grid; gap: 8px; }.library-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); background: var(--surface); }.library-item-main { min-width: 0; cursor: pointer; }.library-item-main strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.library-item-main span { display: block; margin-top: 6px; color: var(--muted); font: 10px var(--mono); }.library-delete { width: 31px; height: 31px; border: 1px solid var(--line); background: transparent; color: var(--coral); cursor: pointer; }.library-delete:hover { border-color: var(--coral); background: var(--coral-soft); }.library-loading, .library-empty { padding: 35px 18px; text-align: center; color: var(--muted); font-size: 12px; }.library-empty { display: flex; flex-direction: column; gap: 6px; }.library-empty strong { color: var(--ink); font-size: 14px; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .behavior-grid { grid-template-columns: 1fr 1fr; }.streak-panel { grid-column: 1 / -1; }.streaks { display: grid; grid-template-columns: repeat(3,1fr); }.streak-item { margin: 0; }
}
@media (max-width: 760px) {
  .topbar-note { font-size: 0; }.topbar-note .status-dot { display: block; }
  .upload-view { padding-top: 54px; }.hero-copy h1 { font-size: clamp(44px, 14vw, 70px); }.feature-strip { grid-template-columns: 1fr 1fr; }.feature-strip > div:nth-child(2) { border-right: 0; }
  .report-header { align-items: start; flex-direction: column; }.report-period { text-align: left; }.report-side { align-items: start; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid-main, .behavior-grid { grid-template-columns: 1fr; }.streak-panel { grid-column: auto; }.streaks { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }.streak-item strong { font-size: 23px; }.drawdown-heading { align-items: start; flex-direction: column; gap: 12px; }.drawdown-stats { width: 100%; justify-content: start; text-align: left; flex-wrap: wrap; }.monthly-bars { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 18px; }.monthly-month { grid-template-rows: 20px 125px 18px; }.monthly-value { font-size: 9px; }
  .trades-heading { align-items: start; flex-direction: column; }.trade-controls { width: 100%; }.trade-controls input { flex: 1; min-width: 0; }
  .chart-large { height: 290px; }
}
@media (max-width: 480px) {
  .topbar { padding: 0 14px; }.topbar-actions { gap: 7px; }.user-menu > span, .topbar-note { display: none; }.header-button { padding: 0 9px; }
  .feature-strip { display: none; }.dropzone { margin-top: 40px; min-height: 210px; }.dashboard { padding-left: 12px; padding-right: 12px; }.metric { min-height: 108px; padding: 15px 12px; }.metric strong { font-size: 19px; }.panel-heading { padding: 16px; }.legend { display: none; }.streaks { display: block; }.streak-item { margin-bottom: 20px; }.monthly-year { padding: 18px 14px 22px; }.monthly-year-heading { align-items: start; flex-direction: column; gap: 5px; }.monthly-year-heading > span { width: 100%; justify-content: space-between; }.dashboard > footer { flex-direction: column; }.modal-card { padding: 32px 20px 24px; }.library-item { grid-template-columns: minmax(0,1fr) auto; padding: 13px; }
}
