/* Minimal workspace — retains user-selectable palettes and all app functions. */
:root{--radius:10px;--shadow:none}body{background:radial-gradient(ellipse at 70% 0,color-mix(in srgb,var(--accent) 3%,transparent),transparent 50%),var(--bg)}header{height:74px;padding-inline:30px;box-shadow:none;border-color:color-mix(in srgb,var(--line) 65%,transparent)}.brand-wordmark{font-size:25px;font-weight:600;letter-spacing:-1.3px}.brand-mark{opacity:.8}.shell{min-height:calc(100vh - 74px)}aside{width:210px;flex-basis:210px;top:74px;height:calc(100dvh - 74px);padding:30px 14px;border-color:color-mix(in srgb,var(--line) 65%,transparent)}.nav-caption{font-size:8px;letter-spacing:1.8px;opacity:.8}nav button{padding:11px 13px;font-size:12px;font-weight:450;border-radius:6px}nav button.active{background:color-mix(in srgb,var(--accent) 7%,transparent);border-color:transparent;color:var(--text)}nav button svg{width:16px;height:16px;opacity:.8}.sidebar-note{font-size:9px;line-height:1.8;opacity:.8}main{max-width:1450px;padding:38px clamp(20px,3.2vw,48px) 60px}h1{font-size:clamp(27px,2.6vw,36px);font-weight:450;letter-spacing:-1.25px}h2{font-size:18px;font-weight:500;letter-spacing:-.5px}h3{font-weight:500}p.muted{font-size:12px}.eyebrow{font-size:8px;letter-spacing:1.8px;font-weight:500}.card{background:var(--panel);border-color:color-mix(in srgb,var(--line) 70%,transparent);box-shadow:none;padding:24px;border-radius:10px}.section.active,.section.active>.card,.section.active>.home-panels,.section.active>.grid,.section.active>.profile-layout{animation:none}.home-heading{margin-bottom:25px}.home-heading h1{font-weight:450}.home-heading p{font-size:12px;margin-bottom:0}button{font-size:12px;font-weight:500;border-radius:6px;padding:10px 14px;transition:background .2s,border-color .2s,transform .2s}button:not(:disabled):hover{box-shadow:none!important;transform:translateY(-1px);filter:none}button.secondary{background:transparent;border-color:color-mix(in srgb,var(--line) 90%,transparent);font-weight:450}button.ghost{font-size:11px}input,select,textarea{font-size:12px;border-radius:6px;border-color:color-mix(in srgb,var(--line) 85%,transparent);background:color-mix(in srgb,var(--panel2) 50%,var(--panel));padding:11px}input:focus,textarea:focus,select:focus{border-color:var(--accent)}.pill{font-size:9px;font-weight:450;border-radius:5px;background:color-mix(in srgb,var(--accent) 7%,transparent)}.metric{font-weight:450;font-size:30px;letter-spacing:-1px}.progress{height:4px;border-radius:3px;background:var(--panel2)}.progress>div{border-radius:3px}.grid{gap:14px}.split,.home-panels{gap:18px}.home-panels{margin-top:22px}.home-progress-row{margin-top:24px;font-size:12px}.home-progress-row small{font-size:10px}.modern-task-list .item{border:0;border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent);border-radius:0;background:transparent;margin:0;padding:15px 0;box-shadow:none}.modern-task-list .item:has(input:checked){background:transparent;box-shadow:none;border-color:color-mix(in srgb,var(--line) 60%,transparent)}.modern-task-list .grow{font-size:12px}.modern-task-list input[type=checkbox],.milestone-goal input[type=checkbox],.goal-chip input[type=checkbox]{width:19px;height:19px;flex-basis:19px;border-radius:5px}.modern-task-list .pill{font-size:8px;background:transparent;color:var(--muted)}.milestone-goal{border-radius:7px;box-shadow:none;background:transparent}.milestone-goal.completed{box-shadow:none;background:color-mix(in srgb,var(--accent) 4%,transparent)}.milestone-period,.goal-history-panel{box-shadow:none}.goal-history-panel{border-top-color:var(--line)}.goal-history-header p{font-size:10px}.xp-panel{margin-top:20px;background:transparent;box-shadow:none}.xp-panel h2{font-size:16px}.xp-panel strong{font-size:19px;font-weight:450}.xp-panel .eyebrow{font-size:8px}.rewards-panel{margin-top:20px;background:var(--panel);box-shadow:none}.rewards-panel h2{font-size:20px}.rewards-panel p{font-size:11px;max-width:550px}.premium-case{box-shadow:none;border-radius:8px}.case-window{border-radius:12px;box-shadow:0 20px 80px #0006}.collection-grid{gap:12px}.cosmetic-card{border-radius:8px;box-shadow:none}.cosmetic-card:hover{transform:translateY(-2px);box-shadow:none}.cosmetic-art{border-radius:6px}.cosmetic-meta>strong{font-size:12px;font-weight:500}.cosmetic-meta>small{font-size:9px}.empty-state{padding:30px 18px}.empty-state strong{font-size:14px;font-weight:500}.empty-state p{font-size:11px}.empty-symbol{font-size:25px;opacity:.65}.calendar-day{border-radius:7px;box-shadow:none}.calendar-day:hover{box-shadow:none}.calendar-day.day-win{background:color-mix(in srgb,#5bcea7 7%,var(--panel));border-color:color-mix(in srgb,#5bcea7 18%,var(--line))}.calendar-day.day-loss{background:color-mix(in srgb,#f2818e 6%,var(--panel));border-color:color-mix(in srgb,#f2818e 15%,var(--line))}.calendar-day.selected{outline:1px solid var(--accent);outline-offset:-1px}.calendar-day .day-pnl{font-weight:500;font-size:13px}.weekday{font-size:9px}.trade-card{border-radius:9px;box-shadow:none;border-color:color-mix(in srgb,var(--line) 75%,transparent)}.trade-info strong{font-weight:500}.trade-info small{font-size:9px}.trade-details{font-size:12px}.trade-details h4{font-size:11px;font-weight:500}.detail-panel{border-radius:12px}.detail-panel h2{font-weight:500}.profile-card,.profile-editor,.profile-locker{box-shadow:none;border-radius:10px}.profile-tabs button{font-size:11px;font-weight:450}.profile-tag{font-size:8px;font-weight:500}.profile-cover{opacity:.85}.loadout-slot{border-radius:7px;background:transparent}.theme-option{border-radius:8px;box-shadow:none}.theme-option strong{font-size:12px;font-weight:500}.theme-option small{font-size:10px}.theme-swatch{border-radius:5px}.display-settings .hint{font-size:11px}.display-settings h2{font-size:18px}.display-settings .pnl-options input,.display-settings .pnl-options select{font-size:12px}.table-wrap,table{font-size:12px}th{font-size:10px;font-weight:500}td{padding-block:14px}.routine-settings,.routine-day{font-size:11px}.routine-day span{border-radius:5px}
/* Image-backed daily result: actual recorded trades, never demonstration data. */
.hero-performance.card{position:relative;isolation:isolate;overflow:hidden;display:block;min-height:370px;padding:26px 30px 20px;border:1px solid #ffffff20;border-radius:11px;background:#0b1016!important;box-shadow:0 20px 55px #0002;color:#e9f0f6}.hero-performance:before,.share-preview:before{content:'';position:absolute;inset:0;z-index:-2;background:url('assets/iron-citadel.png') center 44%/cover no-repeat;opacity:.5;pointer-events:none}.hero-performance:after,.share-preview:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#080c12eb,#080c1250),linear-gradient(0deg,#090d12fa,transparent 90%);pointer-events:none}.hero-topline{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.hero-topline .eyebrow{color:#b6c3ce;font-size:9px}.hero-performance .pnl-visibility{color:#b2c0ce;font-size:9px;border:1px solid #ffffff16;background:#0b101755;padding:6px 10px}.hero-performance .hero-pnl,.hero-performance .hero-pnl.positive,.hero-performance .hero-pnl.negative,.hero-performance .hero-pnl.muted{font-size:clamp(38px,4.8vw,62px);font-weight:400;color:#f0f5fa!important;letter-spacing:-2px;line-height:1.2;margin:0;overflow-wrap:anywhere}.pnl-caption{font-size:10px;color:#a4b3c2;margin:8px 0 0}.daily-performance-chart{margin-top:20px;color:#dae7f1}.daily-performance-chart svg{display:block;width:100%;height:140px;overflow:visible}.chart-placeholder{height:140px;display:flex;align-items:center;justify-content:center;font-size:11px;color:#a9b9c7;text-align:center;padding:15px}.pnl-chart-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:10px;font-size:8px;color:#96a7b8}.hero-performance .pnl-chart-footer button{font-size:9px;color:#bdcbd8;background:transparent}.hero-performance .pnl-chart-footer button:hover{background:#ffffff08}.hero-pnl.is-hidden{letter-spacing:5px!important}
/* Compact recap and matching export. */
.share-dialog{width:min(720px,calc(100vw - 30px));max-width:720px;max-height:92dvh;overflow-y:auto;padding:0;background:transparent;box-shadow:none}.share-preview{position:relative;isolation:isolate;overflow:hidden;width:100%;max-width:none;min-height:0;aspect-ratio:3/2;padding:30px 35px 25px;border:1px solid #ffffff20;border-radius:10px;background:#0b1016;color:#edf4fa;box-shadow:none}.share-topline{padding:0;border:0;display:flex;justify-content:space-between;gap:16px;align-items:center}.share-logo{font-size:23px;font-weight:600;letter-spacing:-1px;color:#dce7ef}.share-date{font-size:10px;letter-spacing:.3px;color:#b2c2d0}.share-feature{padding:0;background:transparent;border:0;box-shadow:none;margin:35px 0 0;border-radius:0}.share-feature-label{font-size:9px;color:#b2c3d2;font-weight:400;letter-spacing:1px;margin-bottom:12px}.share-feature>strong,.share-feature>strong.positive,.share-feature>strong.negative{font-size:clamp(30px,6vw,58px);font-weight:400;color:#f1f5fa!important;letter-spacing:-2px;line-height:1.1;overflow-wrap:anywhere}.share-preview .daily-performance-chart{margin-top:20px}.share-preview .daily-performance-chart svg{height:120px}.share-preview .chart-placeholder{height:120px}.share-footer{display:flex;justify-content:space-between;gap:12px;padding:0;border:0;margin-top:15px;color:#97adbf;font-size:8px;letter-spacing:.2px;font-weight:400}.share-actions{display:flex;gap:10px;justify-content:center;margin-top:18px;padding:0}.share-actions button{font-size:11px}.share-actions button.secondary{background:var(--panel);color:var(--text)}
@media(max-width:1000px){aside{width:185px;flex-basis:185px}main{padding-inline:24px}.home-panels{grid-template-columns:1fr}.hero-performance.card{min-height:350px}.hero-performance .hero-pnl{font-size:48px}.card{padding:21px}}
@media(max-width:760px){header{height:auto;min-height:68px;padding:14px 18px}.shell{display:block}aside{position:static;width:100%;height:auto;padding:10px 12px;border-right:0;border-bottom:1px solid var(--line)}aside .nav-caption,aside .sidebar-note{display:none}aside nav{display:flex;overflow-x:auto;gap:4px}aside nav button{width:auto;flex:0 0 auto;font-size:10px;padding:9px 11px;margin:0}aside nav button svg{width:14px;height:14px}main{padding:26px 18px 55px}.home-heading{gap:14px;align-items:flex-start}.home-heading h1{font-size:28px}.home-heading p{font-size:11px}.home-heading>button{font-size:10px;padding:9px 12px}.hero-performance.card{min-height:310px;padding:23px 21px 16px}.hero-performance:before{background-position:62% center}.hero-topline{margin-bottom:21px}.hero-performance .hero-pnl{font-size:44px}.daily-performance-chart svg{height:110px}.chart-placeholder{height:110px;font-size:10px}.pnl-chart-footer{font-size:7px}.pnl-chart-footer button{font-size:8px!important}.home-panels{gap:16px}.card{padding:20px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.split{grid-template-columns:1fr}.xp-panel{padding:20px}.calendar-day{padding:8px 4px}.calendar-day .day-pnl{font-size:10px}.share-preview{padding:23px 22px;aspect-ratio:auto;min-height:330px}.share-logo{font-size:20px}.share-date{font-size:8px}.share-feature{margin-top:28px}.share-feature>strong{font-size:42px}.share-preview .daily-performance-chart svg{height:90px}.share-preview .chart-placeholder{height:90px}.share-footer{font-size:7px}.theme-option{padding:9px}.metric{font-size:25px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* One persisted outlook per calendar date, compatible with the original journal. */
.premarket-card{margin-top:18px;background:var(--panel)}.premarket-card h2{font-size:20px}.premarket-card .row>div{max-width:620px}.premarket-card #premarketDate{display:block;font-size:11px;margin:4px 0 10px;color:var(--muted)}.premarket-card p.muted{font-size:11px}.premarket-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0 20px}.premarket-fields label{display:flex;flex-direction:column;gap:9px;font-size:11px;font-weight:450}.premarket-fields textarea,.premarket-fields select{width:100%;min-height:43px;font-weight:400}.premarket-fields textarea{min-height:115px;resize:vertical;font-size:12px;line-height:1.7}.premarket-status{font-size:10px;line-height:1.6;color:var(--muted);max-width:290px}.premarket-status.saved{color:var(--accent)}.premarket-card .stack button{font-size:11px}.premarket-modal-note{font-size:11px;line-height:1.7;color:var(--muted);padding:12px 14px;border:1px solid var(--line);border-radius:7px;margin:10px 0 18px}@media(max-width:680px){.premarket-fields{grid-template-columns:1fr;gap:15px}.premarket-card .row{align-items:flex-start}.premarket-fields textarea{min-height:100px}}

/* One Sunday–Saturday reflection at the end of every calendar row. */
#pnlCalendar{grid-template-columns:repeat(7,minmax(0,1fr)) minmax(115px,1.35fr)}
.weekly-review-button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;text-align:left;padding:12px;background:color-mix(in srgb,var(--accent) 5%,var(--panel));border:1px solid var(--line);color:var(--text);border-radius:7px;min-width:0}
.weekly-review-button:hover,.weekly-review-button:focus-visible{border-color:var(--accent)}
.weekly-review-button strong{font-size:11px;font-weight:500}.weekly-review-button small{font-size:9px;color:var(--muted);line-height:1.5}.review-mark{color:var(--accent);font-size:17px}.review-action{font-size:9px;color:var(--muted)}.review-written{border-color:color-mix(in srgb,var(--accent) 40%,var(--line))}
#weeklyReviewDialog{width:min(740px,calc(100vw - 28px));max-height:88dvh;overflow:auto;box-sizing:border-box;padding:28px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);box-shadow:0 24px 90px #0008}
#weeklyReviewDialog::backdrop{background:#0009;backdrop-filter:blur(5px)}
#weeklyReviewTitle{margin:8px 0}.weekly-review-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.weekly-review-fields label{display:flex;flex-direction:column;gap:9px;font-size:12px}.weekly-review-fields textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:105px;line-height:1.6}.weekly-review-footer{display:flex;gap:16px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:18px}.weekly-review-footer span{font-size:11px;color:var(--muted)}
@media(max-width:1000px){#pnlCalendar{grid-template-columns:repeat(7,minmax(0,1fr))}.review-heading{display:none}.weekly-review-button{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr auto;gap:5px 10px;margin-bottom:12px;padding:11px 13px}.review-mark{grid-row:1/3}.weekly-review-button small{grid-column:2}.review-action{grid-column:3;grid-row:1/3;align-self:center}}
@media(max-width:600px){.weekly-review-fields{grid-template-columns:1fr}#weeklyReviewDialog{padding:20px}.weekly-review-button small{font-size:8px}.review-action{font-size:8px}}

/* Theme-aware equity candles and matching recap. */
.hero-performance.card,.share-preview{background:var(--panel)!important;color:var(--text);border-color:var(--line)}
.hero-performance:before,.share-preview:before{opacity:.22}
.hero-performance:after,.share-preview:after{background:linear-gradient(90deg,color-mix(in srgb,var(--panel) 93%,transparent),color-mix(in srgb,var(--panel) 60%,transparent)),linear-gradient(0deg,var(--panel),transparent 90%)}
.hero-performance .hero-pnl,.hero-performance .hero-pnl.positive,.hero-performance .hero-pnl.negative,.hero-performance .hero-pnl.muted,.share-feature>strong,.share-feature>strong.positive,.share-feature>strong.negative{color:var(--text)!important}
.hero-topline .eyebrow,.hero-performance .pnl-visibility,.pnl-caption,.pnl-chart-footer,.hero-performance .pnl-chart-footer button,.chart-placeholder,.share-date,.share-feature-label,.share-footer{color:var(--muted)}
.share-logo,.daily-performance-chart{color:var(--accent)}
.hero-performance .pnl-visibility{background:color-mix(in srgb,var(--panel) 65%,transparent);border-color:var(--line)}
.performance-candle{transition:opacity .2s}.performance-candle:hover{opacity:.7}.pnl-chart-footer,.share-footer{flex-wrap:wrap;line-height:1.7}

/* Historical equity curve with readable calendar and value axes. */
#dailyPerformanceChart svg.history-chart{height:auto;min-height:180px;aspect-ratio:900/245}
@media(max-width:600px){#dailyPerformanceChart svg.history-chart{min-height:0}#dailyPerformanceChart{margin-inline:-10px}.history-chart text{font-size:17px}}

/* Full-bleed equity card: blended theme colors, no artwork. */
.hero-performance.card{--equity-color:#31c995;min-height:420px;padding:28px 30px 20px;border-radius:14px;background:radial-gradient(ellipse at 95% 0%,color-mix(in srgb,var(--accent) 13%,transparent),transparent 60%),radial-gradient(ellipse at 65% 100%,color-mix(in srgb,var(--equity-color) 10%,transparent),transparent 70%),linear-gradient(115deg,var(--panel),color-mix(in srgb,var(--accent) 4%,var(--panel)))!important;border-color:color-mix(in srgb,var(--accent) 15%,var(--line));box-shadow:inset 0 1px 0 color-mix(in srgb,var(--text) 4%,transparent),0 18px 45px #00000010}
.hero-performance[data-trend="negative"]{--equity-color:#ed6579}.hero-performance[data-trend="hidden"]{--equity-color:var(--muted)}
.hero-performance:before,.hero-performance:after{display:none;background:none;content:none}
.hero-performance .hero-topline{position:relative;z-index:2;margin-bottom:18px}.hero-performance .hero-topline .eyebrow{letter-spacing:2px;font-size:9px}
.hero-performance .hero-pnl{position:relative;z-index:2;font-size:clamp(44px,5vw,68px);font-weight:500;letter-spacing:-3px;line-height:1.05}
.hero-performance .pnl-caption{position:relative;z-index:2;font-size:10px;margin-top:10px;letter-spacing:.15px}
#dailyPerformanceChart{position:absolute;inset:auto 0 39px;margin:0;width:100%;height:220px;z-index:1}
#dailyPerformanceChart svg.history-chart{height:100%;width:100%;min-height:0;aspect-ratio:auto;overflow:visible}
#dailyPerformanceChart .chart-placeholder{height:100%;box-sizing:border-box}
.hero-performance .pnl-chart-footer{position:absolute;bottom:17px;left:30px;right:30px;z-index:2;margin:0;font-size:8px;letter-spacing:.25px}
@media(max-width:760px){.hero-performance.card{min-height:390px;padding:24px}.hero-performance .hero-pnl{font-size:48px}#dailyPerformanceChart{height:195px;bottom:44px;margin:0}.hero-performance .pnl-chart-footer{left:24px;right:24px;font-size:7px}.history-chart text{font-size:13px}}
@media(max-width:460px){.hero-performance.card{min-height:365px;padding:22px 20px}.hero-performance .hero-pnl{font-size:46px}#dailyPerformanceChart{height:175px;bottom:46px}.hero-performance .pnl-chart-footer{left:20px;right:20px}.history-chart text{font-size:18px}.hero-performance .pnl-caption{font-size:9px}}

/* Editorial journal refinements */
.card{border-radius:12px;box-shadow:0 6px 28px #00000008}.card h2,.card h3{font-weight:650;letter-spacing:-.045em}
.hero-performance .hero-pnl{font-weight:700;letter-spacing:-.065em!important}.share-feature>strong{font-weight:700;letter-spacing:-.065em!important}
input,textarea,select{line-height:1.55}textarea{letter-spacing:0!important}.weekly-review-fields textarea,.premarket-fields textarea{line-height:1.75}
