.date-range-field{position:relative;display:flex;flex-direction:column;gap:7px;min-width:0;grid-column:1 / -1;color:var(--muted)}.date-range-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--input-border);border-radius:4px;background:var(--surface);color:var(--text);text-align:left}.date-range-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.date-range-trigger>svg{flex-shrink:0;color:var(--muted)}.date-range-panel{position:fixed;top:var(--range-top, 80px);left:var(--range-left, 16px);z-index:60;width:min(340px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:12px;border:1px solid var(--input-border);border-radius:4px;background:var(--surface);color:var(--text)}.date-range-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.date-range-heading strong{font-size:14px;font-weight:500}.date-range-heading .icon-button{width:36px;height:36px}.date-range-weekdays,.date-range-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.date-range-weekdays span{padding:8px 0;text-align:center;color:var(--muted);font-size:12px}.date-range-calendar button{min-width:0;height:38px;padding:0;border:0;border-radius:2px;background:transparent;color:var(--text);font-size:14px}.date-range-calendar button.outside-month{color:var(--muted)}.date-range-calendar button.in-range{background:var(--accent-soft)}.date-range-calendar button.range-endpoint{background:var(--accent);color:var(--on-accent)}.date-range-calendar button:hover:not(.range-endpoint){background:var(--surface-hover)}.date-range-presets{display:flex;gap:16px;padding:12px 2px}.date-range-presets button{border:0;padding:4px 0;background:transparent;color:var(--accent);font-size:12px}.date-range-clocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.date-range-clocks label{min-width:0;font-size:12px}.date-range-clocks input{display:block;width:100%;min-width:0;max-width:100%}.date-range-status{margin:8px 0;color:var(--muted);font-size:12px;min-height:18px}.date-range-error{margin:8px 0;color:var(--danger);font-size:12px}.date-range-panel footer{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}.date-range-panel footer button{min-height:40px}@media (max-width: 600px){.date-range-panel{position:fixed;top:auto;left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - 32px - env(safe-area-inset-bottom));overflow-y:auto}.date-range-calendar button{height:40px}}:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,PingFang SC,Microsoft YaHei,sans-serif;color:var(--text);background:var(--canvas);font-synthesis:none;letter-spacing:0;--radius:4px}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--canvas)}button,input,select,textarea{font:inherit;letter-spacing:0}button{cursor:pointer}a{color:inherit;text-decoration:none}.positive{color:var(--positive)!important}.negative{color:var(--negative)!important}.app-shell{min-height:100vh}.side-nav{display:none}.app-column{min-height:100vh}.topbar{height:56px;padding:env(safe-area-inset-top) 18px 0;display:flex;align-items:center;justify-content:space-between;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.mobile-brand{font-size:18px;font-weight:600}.sync-state{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:14px}.sync-state span{width:8px;height:8px;border-radius:50%;background:var(--muted)}.sync-state.synced span{background:var(--accent)}.sync-state.syncing span{background:var(--warning);animation:pulse 1s infinite}.sync-state.error{color:var(--danger)}.sync-state.error span{background:var(--danger)}@keyframes pulse{50%{opacity:.35}}main{padding-bottom:82px}.page{max-width:1120px;margin:0 auto;padding:24px 18px 40px}.bottom-nav{position:fixed;z-index:30;bottom:0;left:0;right:0;height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border-top:1px solid var(--line)}.bottom-nav a{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:12px;color:var(--muted)}.bottom-nav a.active{color:var(--accent);font-weight:600}.primary-button,.secondary-button,.text-button,.icon-button{border:0;background:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary-button{min-height:44px;padding:0 18px;background:var(--accent);color:var(--on-accent);border-radius:4px;font-weight:600}.primary-button.compact{min-height:42px}.primary-button:disabled{opacity:.55}.secondary-button{min-height:42px;padding:0 14px;background:var(--surface);border:1px solid var(--input-border);border-radius:4px;color:var(--text);font-weight:600}.icon-button{width:44px;height:44px;border-radius:4px;color:var(--muted)}.icon-button:hover{background:var(--surface-hover)}.equity-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:8px 0 22px}.section-label{margin:0 0 7px;color:var(--muted);font-size:14px}.equity-header h1{margin:0;font-size:32px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:0}.metric-strip{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.metric-strip>div{padding:17px 12px 17px 0;display:flex;flex-direction:column;gap:7px;min-width:0}.metric-strip span,.review-stats span{color:var(--muted);font-size:14px}.metric-strip strong{font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}.withdrawal-callout{margin-top:18px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;background:var(--accent-soft);border-left:3px solid var(--accent)}.withdrawal-callout div{display:flex;flex-direction:column;gap:4px}.withdrawal-callout span{color:var(--muted);font-size:14px}.withdrawal-callout strong{font-size:18px}.withdrawal-callout button{border:0;background:none;color:var(--accent);font-weight:600}.chart-section,.recent-section{padding-top:26px}.chart-section header,.recent-section header{display:flex;align-items:center;justify-content:space-between}.page h2,.chart-section h2,.recent-section h2{font-size:18px;margin:0}.recent-section header{padding-bottom:10px;border-bottom:1px solid var(--line)}.recent-section a{font-size:14px;color:var(--accent)}.chart-legend{display:flex;gap:20px;color:var(--muted);font-size:12px}.chart-legend span:before{content:"";display:inline-block;width:18px;margin-right:7px;vertical-align:middle;border-top:2px solid var(--positive)}.chart-legend .high-key:before{border-top-color:var(--chart-secondary);border-top-style:dashed}.chart-wrap{height:250px;margin-top:10px}.risk-row{margin-top:10px;min-height:54px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}.risk-row span{color:var(--muted)}.risk-row strong{color:var(--accent)}.risk-row small{margin-left:auto;color:var(--muted)}.risk-row.caution strong,.risk-row.minimum strong{color:var(--warning)}.risk-row.stop strong{color:var(--danger)}.ledger-list{background:var(--surface)}.ledger-row{min-height:70px;display:grid;grid-template-columns:64px minmax(0,1fr) auto 40px;align-items:center;gap:10px;border-bottom:1px solid var(--line);position:relative}.entry-date,.entry-main,.entry-amount{display:flex;flex-direction:column;gap:4px;min-width:0}.entry-date strong{font-size:14px}.entry-date span,.entry-main span,.entry-amount span{font-size:12px;color:var(--muted)}.entry-main strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entry-amount{text-align:right;font-variant-numeric:tabular-nums}.row-action{width:36px;height:36px}.empty-state{padding:40px 16px;text-align:center;display:flex;flex-direction:column;gap:8px;color:var(--muted)}.empty-state strong{color:var(--text)}.page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}.page-title h1{font-size:18px;margin:0 0 5px}.page-title p{margin:0;color:var(--muted);font-size:14px}.header-actions{display:flex;gap:8px}.filter-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:4px}.filter-tabs button{border:0;background:none;padding:11px 14px;color:var(--muted);border-bottom:2px solid transparent}.filter-tabs button.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}.review-stats{display:grid;grid-template-columns:repeat(2,1fr);border:1px solid var(--line);background:var(--surface)}.review-stats div{padding:18px;display:flex;flex-direction:column;gap:8px;border-bottom:1px solid var(--line)}.review-stats strong{font-size:18px}.review-checklist{margin-top:24px}.review-checklist h2{margin-bottom:10px}.review-checklist button{width:100%;min-height:54px;padding:0;border:0;border-bottom:1px solid var(--line);background:none;display:flex;align-items:center;gap:12px;text-align:left}.review-result{margin-top:24px;padding:20px;border-left:3px solid var(--warning);background:var(--warning-soft)}.review-result.eligible{border-color:var(--accent);background:var(--accent-soft)}.review-result span{color:var(--muted);font-size:14px}.review-result strong{display:block;font-size:18px;margin-top:5px}.review-result p{margin:8px 0 0;color:var(--muted);line-height:1.6}.settings-form,.data-actions{display:grid;gap:20px}.settings-form section,.data-actions{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.settings-form h2,.data-actions h2{margin-bottom:18px}.settings-form label,.entry-sheet label,.auth-panel label{display:flex;flex-direction:column;gap:7px;color:var(--text);font-size:14px}.settings-form label+label,.entry-sheet label+label{margin-top:15px}.settings-form input,.entry-sheet input,.entry-sheet select,.entry-sheet textarea,.auth-panel input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--input-border);border-radius:4px;background:var(--surface);color:var(--text)}.settings-form input:focus,.entry-sheet input:focus,.entry-sheet select:focus,.entry-sheet textarea:focus,.auth-panel input:focus{outline:2px solid color-mix(in srgb,var(--accent) 25%,transparent);border-color:var(--accent)}.settings-form input[type=range]{padding:0;border:0;accent-color:var(--accent)}.settings-form label>span{align-self:flex-end;margin-top:-25px;font-weight:600}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.settings-form .form-row{grid-template-columns:repeat(3,minmax(0,1fr))}.data-actions{grid-template-columns:1fr auto auto;align-items:center;margin-top:20px}.data-actions h2{margin:0}.modal-backdrop{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;background:var(--overlay);display:flex;align-items:flex-end;justify-content:center}.entry-sheet{width:100%;max-width:620px;max-height:92vh;overflow:auto;background:var(--surface);border-radius:4px 8px 0 0;padding:0 18px calc(22px + env(safe-area-inset-bottom))}.entry-sheet>header{height:58px;position:sticky;top:0;background:var(--surface);z-index:2;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.entry-sheet h2{margin:0;font-size:18px}.entry-sheet form{padding-top:16px}.segmented{display:grid;grid-template-columns:repeat(4,1fr);padding:3px;background:var(--surface-muted);border-radius:4px;margin-bottom:18px}.segmented button{min-height:36px;border:0;background:none;border-radius:4px;color:var(--muted)}.segmented button.active{background:var(--surface);color:var(--text);font-weight:600;box-shadow:none}.net-preview{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line)}.net-preview strong{font-size:18px}details{margin-top:15px}summary{color:var(--accent);cursor:pointer;padding:8px 0}details[open] summary{margin-bottom:8px}.entry-sheet textarea{resize:vertical}.entry-sheet .primary-button{width:100%;margin-top:20px}.auth-page,.loading-screen{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-panel{width:min(100%,420px);padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.auth-mark{width:46px;height:46px;display:grid;place-items:center;background:var(--accent);color:var(--on-accent);border-radius:4px;font-weight:600;font-size:18px}.auth-panel h1{font-size:18px;margin:22px 0 8px}.auth-panel>p{color:var(--muted);line-height:1.6;margin:0 0 26px}.auth-panel .primary-button{width:100%;margin-top:14px}.auth-message{margin-top:14px;padding:12px;background:var(--accent-soft);color:var(--accent);font-size:14px;line-height:1.5}.auth-message.error{background:var(--danger-soft);color:var(--danger)}.auth-notes{margin-top:24px;padding-top:18px;border-top:1px solid var(--line);display:flex;gap:18px;color:var(--muted);font-size:12px}.auth-notes span{display:flex;align-items:center;gap:6px}@media (min-width:760px){.app-shell{display:grid;grid-template-columns:220px 1fr}.side-nav{display:flex;position:sticky;top:0;height:100vh;padding:24px 14px;flex-direction:column;background:var(--surface);border-right:1px solid var(--line)}.brand{height:52px;padding:0 10px;display:flex;align-items:center;gap:11px;font-weight:600;font-size:18px}.brand-mark{width:31px;height:31px;display:grid;place-items:center;background:var(--accent);color:var(--on-accent);border-radius:4px}.side-nav nav{display:grid;gap:4px;margin-top:24px}.side-nav nav a{min-height:44px;padding:0 12px;border-radius:4px;display:flex;align-items:center;gap:11px;color:var(--muted)}.side-nav nav a.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.sign-out{margin-top:auto;justify-content:flex-start;padding:0 12px;min-height:44px;color:var(--muted)}.topbar{justify-content:flex-end}.mobile-brand,.bottom-nav{display:none}main{padding-bottom:0}.page{padding:38px 40px 60px}.metric-strip{grid-template-columns:repeat(4,1fr)}.metric-strip>div+div{padding-left:18px;border-left:1px solid var(--line)}.review-stats{grid-template-columns:repeat(4,1fr)}.review-stats div{border-bottom:0}.entry-sheet{border-radius:4px;align-self:center;padding-bottom:24px}.modal-backdrop{align-items:center;padding:24px}.chart-wrap{height:310px}}@media (max-width:520px){.equity-header{align-items:center}.equity-header h1{font-size:32px}.primary-button.compact{padding:0 13px}.metric-strip>div:nth-child(2n){padding-left:12px;border-left:1px solid var(--line)}.ledger-row{grid-template-columns:54px minmax(0,1fr) auto}.row-action{display:none}.entry-amount strong{font-size:14px}.page-title{align-items:flex-start}.page-title h1{font-size:18px}.header-actions .secondary-button{padding:0 10px}.form-row,.settings-form .form-row,.data-actions{grid-template-columns:1fr}.auth-notes{flex-direction:column;gap:10px}}.field-status{color:var(--muted);font-size:12px;line-height:1.4}.checkbox-row{margin-top:14px!important;display:flex!important;flex-direction:row!important;align-items:center;gap:10px!important;min-height:36px}.checkbox-row input{width:18px!important;min-height:18px!important;accent-color:var(--accent)}.fee-block{margin-top:15px}.fee-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;color:var(--text);font-size:14px}.fee-heading button{border:0;background:none;color:var(--accent);padding:4px;font-weight:600}.fee-block small{display:block;margin-top:6px;color:var(--muted);font-size:12px}.fee-block input[readonly]{background:var(--surface-muted);color:var(--text);font-weight:600}.action-segmented{grid-template-columns:repeat(2,1fr);margin-top:4px}.action-segmented button:disabled{opacity:.4;cursor:not-allowed}.position-preview{margin-top:15px;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.position-preview>div{padding:13px 10px 13px 0;display:flex;flex-direction:column;gap:5px}.position-preview>div+div{padding-left:12px;border-left:1px solid var(--line)}.position-preview span{font-size:12px;color:var(--muted)}.position-preview strong{font-size:14px;font-variant-numeric:tabular-nums}.form-error{margin-top:14px;padding:10px 12px;background:var(--danger-soft);color:var(--danger);border-left:3px solid var(--danger);font-size:14px}.active-cycles{padding-top:24px}.active-cycles>h2{margin-bottom:10px}.trade-cycles{display:grid;gap:10px}.trade-cycle{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.trade-cycle summary{min-height:66px;padding:12px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;cursor:pointer;list-style:none}.trade-cycle summary::-webkit-details-marker{display:none}.trade-cycle summary>div{display:flex;flex-direction:column;gap:4px;min-width:0}.trade-cycle summary>div:last-child{text-align:right}.trade-cycle summary span{font-size:12px;color:var(--muted)}.trade-cycle.open{border-left:3px solid var(--accent)}.cycle-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface-muted)}.cycle-stats span{padding:10px 12px;display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:12px}.cycle-stats strong{color:var(--text);font-size:14px}.fill-timeline{padding:0 14px}.fill-timeline>div{min-height:56px;display:grid;grid-template-columns:90px minmax(0,1fr) auto;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.fill-timeline>div:last-child{border-bottom:0}.fill-timeline time,.fill-timeline small{font-size:12px;color:var(--muted)}.fill-timeline strong{font-size:14px}.fill-timeline>div>span{text-align:right;font-size:14px}.fill-timeline small{grid-column:2/4;margin-top:-12px}.other-ledger{margin-top:28px}.other-ledger>h2{margin-bottom:10px}@media (max-width:520px){.position-preview{grid-template-columns:1fr}.position-preview>div+div{padding-left:0;border-left:0;border-top:1px solid var(--line)}.trade-cycle summary{padding:11px 12px}.cycle-stats{grid-template-columns:1fr 1fr}.cycle-stats span:last-child{display:none}.fill-timeline>div{grid-template-columns:70px minmax(0,1fr) auto}.fill-timeline small{grid-column:2/4}}.entry-sheet .form-row>label+label{margin-top:0}.trade-size-row{align-items:start}.contract-search{position:relative}.contract-menu{position:absolute;z-index:8;top:74px;left:0;right:0;max-height:260px;overflow:auto;padding:4px;background:var(--surface);border:1px solid var(--input-border);border-radius:4px;box-shadow:none}.contract-menu button{width:100%;min-height:52px;padding:7px 10px;border:0;border-bottom:1px solid var(--line);background:var(--surface);display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left}.contract-menu button:last-child{border-bottom:0}.contract-menu button:hover,.contract-menu button:focus{background:var(--accent-soft);outline:none}.contract-menu button span{display:flex;flex-direction:column;gap:2px;min-width:0}.contract-menu strong{font-size:14px}.contract-menu small{color:var(--muted);font-size:12px}.contract-menu em{color:var(--muted);font-size:12px;font-style:normal;white-space:nowrap}.admin-panel,.stats-panel,.account-panel{margin-top:20px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.admin-panel>header,.stats-panel>header,.account-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.admin-panel h2,.stats-panel h2,.account-panel h2{margin:0;font-size:18px}.admin-panel p,.account-panel p{margin:5px 0 0;color:var(--muted);font-size:14px;line-height:1.5}.inline-message{padding:12px 14px;background:var(--surface-muted);border-left:3px solid var(--chart-secondary);color:var(--text);font-size:14px;line-height:1.5}.inline-message.error{background:var(--danger-soft);border-color:var(--danger);color:var(--danger)}.admin-actions,.account-actions{display:flex;flex-wrap:wrap;gap:10px}.secondary-button:disabled,.danger-button:disabled{opacity:.5;cursor:not-allowed}.job-status{margin-top:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);background:var(--surface-muted)}.job-status>div{padding:13px 14px;display:flex;flex-direction:column;gap:5px;border-right:1px solid var(--line);min-width:0}.job-status>div:last-of-type{border-right:0}.job-status span{font-size:12px;color:var(--muted)}.job-status strong{font-size:14px;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.job-status p{grid-column:1/-1;margin:0;padding:12px 14px;border-top:1px solid var(--line);color:var(--danger);font-size:14px}.job-status.running strong,.job-status.pending strong{color:var(--warning)}.job-status.success strong{color:var(--accent)}.job-status.failed strong{color:var(--danger)}.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line)}.stats-grid>div{padding:16px;display:flex;flex-direction:column;gap:7px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.stats-grid>div:nth-child(2n){border-right:0}.stats-grid span{font-size:12px;color:var(--muted)}.stats-grid strong{font-size:18px;font-variant-numeric:tabular-nums}.danger-zone{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.danger-zone h3{margin:0 0 6px;font-size:14px}.danger-zone label{display:flex;flex-direction:column;gap:7px;margin-top:14px;color:var(--text);font-size:14px}.danger-zone input{width:100%;max-width:360px;min-height:44px;padding:10px 12px;border:1px solid var(--input-border);border-radius:4px;background:var(--surface);color:var(--text)}.danger-zone input:focus{outline:2px solid color-mix(in srgb,var(--accent) 25%,transparent);border-color:var(--accent)}.danger-button{margin-top:12px;color:var(--danger);border-color:var(--danger)}.danger-zone small{display:block;margin-top:9px;color:var(--muted);font-size:12px}@media (min-width:760px){.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-grid>div:nth-child(2n){border-right:1px solid var(--line)}.stats-grid>div:nth-child(3n){border-right:0}}@media (max-width:520px){.admin-actions,.account-actions{display:grid;grid-template-columns:1fr}.job-status{grid-template-columns:1fr}.job-status>div{border-right:0;border-bottom:1px solid var(--line)}.job-status>div:last-of-type{border-bottom:0}.stats-grid{grid-template-columns:1fr}.stats-grid>div,.stats-grid>div:nth-child(2n){border-right:0}.danger-zone input{max-width:none}}.auth-email-row{min-height:38px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:14px}.auth-email-row span{overflow:hidden;text-overflow:ellipsis}.auth-email-row button,.auth-resend{border:0;background:none;color:var(--accent);font-weight:600}.otp-input{font-size:18px!important;font-variant-numeric:tabular-nums;letter-spacing:6px!important}.auth-resend{width:100%;min-height:40px;margin-top:6px}.auth-resend:disabled{opacity:.5}.action-segmented{grid-template-columns:repeat(4,1fr)}.fill-timeline>div{grid-template-columns:72px minmax(0,1fr) auto 34px}.fill-action{grid-column:4;grid-row:1/3;width:32px;height:32px;align-self:center;border:0;background:none;color:var(--muted);display:grid;place-items:center;border-radius:4px}.fill-action:hover{background:var(--danger-soft);color:var(--danger)}.fill-timeline small{grid-column:2/4}.entry-date{justify-content:center}.ledger-list .ledger-row:first-child{border-top:0}@media (max-width:520px){.action-segmented{grid-template-columns:repeat(2,1fr)}.fill-timeline>div{grid-template-columns:58px minmax(0,1fr) 32px}.fill-timeline>div>span{display:none}.fill-action{grid-column:3}.fill-timeline small{grid-column:2/3}}.trade-target{margin-top:15px;padding:12px 14px;background:var(--surface-muted);border-left:3px solid var(--accent)}.trade-target select{margin-top:7px}.trade-target small{display:block;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.5}.fill-timeline>div{grid-template-columns:92px minmax(0,1fr) auto 34px}.fill-timeline time{white-space:nowrap}@media (max-width:520px){.fill-timeline>div{grid-template-columns:82px minmax(0,1fr) 32px}}.fill-actions{grid-column:4;grid-row:1/3;align-self:center;display:flex;gap:2px}.fill-actions button{width:32px;height:32px;border:0;background:none;color:var(--muted);display:grid;place-items:center;border-radius:4px}.fill-actions button:hover{background:var(--surface-hover);color:var(--accent)}.fill-actions button:last-child:hover{background:var(--danger-soft);color:var(--danger)}.fill-timeline>div{grid-template-columns:92px minmax(0,1fr) auto 68px}.edit-fill-context{margin-bottom:15px;padding:12px 14px;background:var(--surface-muted);display:flex;justify-content:space-between}.edit-fill-context span{color:var(--accent);font-weight:600}@media (max-width:520px){.fill-timeline>div{grid-template-columns:82px minmax(0,1fr) 66px}.fill-actions{grid-column:3}.edit-fill-sheet .form-row{grid-template-columns:1fr 1fr}}.active-cycles-header{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:10px}.active-cycles-header h2{margin:0}.active-cycles-header span{color:var(--muted);font-size:14px;font-variant-numeric:tabular-nums}@media (max-width:520px){.active-cycles-header{align-items:flex-start;flex-direction:column;gap:4px}}.review-result{position:relative;padding-right:170px}.review-capital-button{position:absolute;right:20px;top:50%;transform:translateY(-50%)}.delete-account-sheet{max-width:520px}.delete-account-content{padding-top:18px}.delete-account-content>p{margin:0 0 18px;color:var(--muted);line-height:1.65}.delete-account-content label{display:flex;flex-direction:column;gap:7px}.delete-account-content input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--input-border);border-radius:4px}.delete-account-content .inline-message{margin-top:14px}.delete-account-content .destructive{margin-top:18px;background:var(--danger)}@media (max-width:520px){.review-result{padding-right:20px}.review-capital-button{position:static;transform:none;margin-top:16px;width:100%}.account-actions{display:grid;grid-template-columns:1fr 1fr}.delete-account-sheet{max-height:80vh}}.settings-form .form-row>label+label{margin-top:0}.account-actions{align-items:center}.account-actions .secondary-button{min-width:132px}.other-ledger .ledger-row{padding-left:14px}.review-withdrawals{margin-top:24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.review-withdrawals>header{padding:14px 0}.review-withdrawals>header>div{display:flex;align-items:baseline;justify-content:space-between}.review-withdrawals h2{margin:0}.review-withdrawals header span,.review-withdrawals>p{color:var(--muted);font-size:14px}.review-withdrawals>p{margin:0;padding:18px 0}.review-withdrawals article{min-height:48px;display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:12px;border-top:1px solid var(--line)}.review-withdrawals time,.review-withdrawals article span{color:var(--muted);font-size:14px}.review-withdrawals article strong{font-variant-numeric:tabular-nums}@media (max-width:520px){.other-ledger .ledger-row{padding-left:10px}.review-withdrawals article{grid-template-columns:58px minmax(0,1fr) auto}.account-actions .secondary-button{min-width:0}}.review-period-tabs{display:flex;padding:3px;background:var(--surface-hover);border-radius:4px}.review-period-tabs button{min-width:62px;min-height:36px;border:0;background:none;color:var(--muted);border-radius:4px}.review-period-tabs button.active{background:var(--surface);color:var(--accent);font-weight:600;box-shadow:none}@media (max-width:520px){.review-title{display:block}.review-period-tabs{margin-top:16px}.review-period-tabs button{flex:1}}.curve-header-tools{display:flex;align-items:center;gap:22px}.curve-period-tabs{display:flex;padding:2px;background:var(--surface-hover);border-radius:4px}.curve-period-tabs button{min-width:46px;min-height:30px;padding:0 9px;border:0;background:none;border-radius:4px;color:var(--muted);font-size:12px}.curve-period-tabs button.active{background:var(--surface);color:var(--accent);font-weight:600;box-shadow:none}@media (max-width:520px){.chart-section header{align-items:flex-start;gap:12px}.curve-header-tools{align-items:flex-end;flex-direction:column-reverse;gap:10px}.curve-period-tabs button{min-width:40px;padding:0 7px}.chart-legend{gap:12px}}.recent-section .ledger-row{padding-left:14px}@media (max-width:520px){.recent-section .ledger-row{padding-left:10px}}.account-actions{display:grid;grid-template-columns:repeat(2,150px);align-items:stretch;gap:10px}.account-actions .secondary-button{width:100%;min-width:0;min-height:46px}@media (max-width:520px){.account-actions{grid-template-columns:1fr 1fr}}.maintenance-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:14px;border:1px solid var(--line);background:var(--surface-muted)}.maintenance-summary>div{padding:13px 14px;display:flex;flex-direction:column;gap:5px;min-width:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.maintenance-summary>div:nth-child(2n){border-right:0}.maintenance-summary span{font-size:12px;color:var(--muted)}.maintenance-summary strong{font-size:14px;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (min-width:760px){.maintenance-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.maintenance-summary>div:nth-child(2n){border-right:1px solid var(--line)}.maintenance-summary>div:nth-child(3n){border-right:0}}@media (max-width:520px){.maintenance-summary{grid-template-columns:1fr}.maintenance-summary>div,.maintenance-summary>div:nth-child(2n){border-right:0}}.projection-panel{margin-top:26px;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.projection-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.projection-heading h2{margin:2px 0 6px;font-size:18px}.projection-heading p:not(.section-label){margin:0;color:var(--muted);font-size:14px}.projection-heading>svg{color:var(--accent)}.projection-source{margin-top:18px;padding:12px 14px;display:flex;align-items:center;gap:11px;background:var(--surface-muted);border-left:3px solid var(--accent)}.projection-source svg{flex:0 0 auto;color:var(--accent)}.projection-source div{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 14px}.projection-source strong{font-size:14px}.projection-source span{color:var(--muted);font-size:12px}.scenario-tabs{margin-top:18px;display:flex;gap:3px;padding:3px;overflow-x:auto;background:var(--surface-hover);border-radius:4px}.scenario-tabs button{min-height:36px;padding:0 14px;white-space:nowrap;border:0;border-radius:4px;background:transparent;color:var(--muted);font-size:14px}.scenario-tabs button.active{background:var(--surface);color:var(--accent);font-weight:600;box-shadow:none}.scenario-note{min-height:38px;padding:9px 2px 7px;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px}.scenario-note small{white-space:nowrap}.projection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.projection-card{min-width:0;padding:16px;text-align:left;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text)}.projection-card:hover{border-color:var(--input-border)}.projection-card.selected{border-color:var(--accent);box-shadow:none}.projection-card header strong{display:block;font-size:16px}.projection-card header span{display:block;min-height:34px;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}.projection-horizons{margin-top:13px;border-top:1px solid var(--line)}.projection-horizon{padding:11px 0;display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}.projection-horizon:last-child{padding-bottom:0;border-bottom:0}.projection-horizon b{color:var(--muted);font-size:12px;font-weight:600}.projection-horizon>strong{text-align:right;font-size:14px}.projection-horizon span{color:var(--muted);font-size:12px;white-space:nowrap}.projection-horizon span:nth-of-type(2n){text-align:right}.projection-chart-heading{margin-top:22px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.projection-chart-heading>div{display:flex;flex-direction:column;gap:7px}.projection-chart-heading strong{font-size:14px}.projection-chart-heading span{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.projection-chart-heading>span{white-space:nowrap}.legend{width:16px;height:2px;display:inline-block;background:var(--accent)}.legend.withdrawn{background:var(--chart-secondary)}.legend.wealth{background:var(--text)}.projection-chart{height:300px;margin-top:9px}.settings-policy-panel{margin-top:18px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.settings-policy-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.settings-policy-panel h2{margin:0 0 5px;font-size:18px}.settings-policy-panel header p{margin:0;color:var(--muted);font-size:14px}.settings-policy-panel header svg{color:var(--accent)}.settings-policy-grid{margin-top:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line)}.settings-policy-grid>div{padding:13px;display:flex;flex-direction:column;gap:5px;border-right:1px solid var(--line)}.settings-policy-grid>div:last-child{border-right:0}.settings-policy-grid strong{font-size:14px}.settings-policy-grid span{color:var(--muted);font-size:12px}.settings-data-source{margin:14px 0 0;display:flex;flex-wrap:wrap;gap:5px 14px;font-size:12px}.settings-data-source span{color:var(--muted)}@media (max-width:820px){.projection-grid{grid-template-columns:1fr}.projection-card header span{min-height:0}.projection-horizons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.projection-horizon{display:flex;flex-direction:column;gap:4px;border-bottom:0}.projection-horizon>strong,.projection-horizon span:nth-of-type(2n){text-align:left}.settings-policy-grid{grid-template-columns:1fr}.settings-policy-grid>div{border-right:0;border-bottom:1px solid var(--line)}.settings-policy-grid>div:last-child{border-bottom:0}}.account-actions .danger-button{margin-top:0}.position-risk-alert{margin:12px 14px 0;padding:12px 14px;display:flex;align-items:flex-start;gap:10px;background:var(--warning-soft);border-left:3px solid var(--warning);color:var(--warning)}.position-risk-alert>svg{flex:0 0 auto;margin-top:1px;color:var(--warning)}.position-risk-alert>div{display:flex;flex-direction:column;gap:4px;min-width:0}.position-risk-alert strong{font-size:14px;color:var(--warning)}.position-risk-alert span,.position-risk-alert small{font-size:12px;line-height:1.45;color:var(--muted)}.position-risk-alert small{color:var(--muted)}.position-risk-alert.at-limit{background:var(--danger-soft);border-left-color:var(--danger);color:var(--danger)}.position-risk-alert.at-limit>svg,.position-risk-alert.at-limit strong{color:var(--danger)}.position-risk-alert.at-limit span,.position-risk-alert.at-limit small{color:var(--danger)}@media (max-width:520px){.projection-panel{margin-top:20px;padding:20px 0}.scenario-tabs{margin-left:-2px;margin-right:-2px}.scenario-note{display:block}.scenario-note small{display:block;margin-top:4px}.projection-card{padding:14px 12px}.projection-horizons{grid-template-columns:1fr;gap:0}.projection-horizon{display:grid;grid-template-columns:1fr 1fr;padding:10px 0;border-bottom:1px solid var(--line)}.projection-horizon>strong,.projection-horizon span:nth-of-type(2n){text-align:right}.projection-chart-heading{align-items:flex-start;flex-direction:column}.projection-chart-heading>span{white-space:normal}.projection-chart{height:250px}.settings-policy-panel{padding:16px}}.projection-settings-link{margin-top:18px;min-height:72px;padding:16px 18px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.projection-settings-link>svg:first-child{color:var(--accent)}.projection-settings-link>svg:last-child{color:var(--muted)}.projection-settings-link div{display:flex;flex-direction:column;gap:5px;min-width:0}.projection-settings-link strong{font-size:14px}.projection-settings-link span{color:var(--muted);font-size:12px;line-height:1.45}.projection-settings-link:hover{border-color:var(--input-border)}.projection-page-title{display:flex;align-items:flex-start;gap:12px}.projection-page-title .icon-button{width:40px;height:40px;flex:0 0 auto;color:var(--text)}.projection-page-title h1{margin:0;font-size:27px}.projection-page-title p{margin:6px 0 0;color:var(--muted);font-size:14px}.projection-settings-page .projection-panel{margin-top:20px}.projection-apply-form{margin-top:24px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.projection-apply-form h2{margin:2px 0 5px;font-size:18px}.projection-apply-form header p:not(.section-label){margin:0;color:var(--muted);font-size:14px}.projection-form-grid{margin:18px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.projection-form-grid label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:14px}.projection-form-grid label>span{align-self:flex-end;margin-top:-23px;color:var(--text);font-weight:600}.projection-form-grid input:not([type=range]){width:100%;min-height:42px;padding:8px 10px;border:1px solid var(--input-border);border-radius:4px;background:var(--surface);color:var(--text)}.projection-form-grid input[type=range]{width:100%;accent-color:var(--accent)}.projection-apply-form>.primary-button{min-width:176px}.projection-step-heading{margin-top:18px;display:flex;align-items:baseline;justify-content:space-between;gap:16px}.projection-step-heading strong{font-size:14px}.projection-step-heading span{color:var(--muted);font-size:12px}.projection-step-heading+.scenario-tabs{margin-top:9px}.projection-step-heading.policy-step{margin:5px 0 10px}@media (max-width:720px){.projection-form-grid{grid-template-columns:1fr 1fr}}@media (max-width:520px){.projection-settings-link{padding:14px}.projection-page-title h1{font-size:18px}.projection-form-grid{grid-template-columns:1fr}.projection-apply-form{padding:16px}.projection-apply-form>.primary-button{width:100%}.projection-step-heading{align-items:flex-start;flex-direction:column;gap:3px}.projection-step-heading.policy-step{margin-top:8px}}.margin-rates-panel{margin-top:18px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.margin-rates-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.margin-rates-panel h2{margin:0 0 5px;font-size:18px}.margin-rates-panel header p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}.margin-rate-list{display:grid;gap:10px;margin-top:18px}.margin-rate-row{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;align-items:end;gap:10px;padding:12px 0;border-top:1px solid var(--line)}.margin-rate-row>div{display:flex;flex-direction:column;gap:4px;min-width:0}.margin-rate-row>div strong{font-size:14px}.margin-rate-row>div span,.margin-rate-row label{font-size:12px;color:var(--muted)}.margin-rate-row label{display:flex;flex-direction:column;gap:6px}.margin-rate-row input{width:100%;min-height:42px;padding:8px 10px;border:1px solid var(--input-border);border-radius:4px;background:var(--surface);color:var(--text)}.margin-rate-row .secondary-button{min-height:42px}.margin-rate-entry{margin-top:15px!important}.margin-rate-entry small,.margin-rate-status small{color:var(--muted);font-size:12px;line-height:1.45}.margin-rate-status{margin-top:15px;padding:11px 12px;background:var(--accent-soft);border-left:3px solid var(--accent);display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;color:var(--muted);font-size:14px}.margin-rate-status strong{color:var(--accent);font-size:14px}.margin-rate-status small{width:100%}@media (max-width:520px){.margin-rate-row{grid-template-columns:1fr 1fr}.margin-rate-row .secondary-button{grid-column:1/-1;width:100%}.margin-rates-panel{padding:16px}}.margin-rate-management-intro{margin-top:20px;padding:14px 16px;display:flex;align-items:flex-start;gap:11px;background:var(--accent-soft);border-left:3px solid var(--accent)}.margin-rate-management-intro svg{flex:0 0 auto;color:var(--accent);margin-top:1px}.margin-rate-management-intro div{display:flex;flex-direction:column;gap:4px}.margin-rate-management-intro strong{font-size:14px}.margin-rate-management-intro span{color:var(--muted);font-size:12px;line-height:1.5}.margin-rate-management-list{display:grid;gap:16px;margin-top:20px}.margin-rate-management-card{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.margin-rate-management-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.margin-rate-management-card h2{margin:0 0 5px;font-size:18px}.margin-rate-management-card header p{margin:0;color:var(--muted);font-size:14px}.margin-rate-management-card>header>strong{color:var(--accent);font-size:18px;font-variant-numeric:tabular-nums}.margin-rate-mode-tabs{margin-top:18px}.margin-rate-edit-form{margin-top:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.margin-rate-edit-form label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:14px}.margin-rate-edit-form input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--input-border);border-radius:4px;background:var(--surface);color:var(--text)}.margin-rate-edit-form input:focus{outline:2px solid color-mix(in srgb,var(--accent) 25%,transparent);border-color:var(--accent)}.margin-rate-edit-form>.primary-button{min-width:132px}.inference-form{grid-template-columns:repeat(3,minmax(0,1fr)) auto}.inference-result{min-height:44px;padding:8px 0;display:flex;flex-direction:column;justify-content:center;gap:3px;color:var(--muted);font-size:12px}.inference-result strong{color:var(--accent);font-size:14px}.inference-form>.primary-button{grid-column:4;grid-row:1;align-self:end}.margin-rate-empty{margin-top:20px;background:var(--surface);border:1px solid var(--line)}@media (max-width:720px){.inference-form{grid-template-columns:1fr 1fr}.inference-result{grid-column:1/-1}.inference-form>.primary-button{grid-column:1/-1;grid-row:auto;width:100%}}@media (max-width:520px){.margin-rate-management-card{padding:16px}.margin-rate-management-card>header{gap:10px}.margin-rate-management-card>header>strong{font-size:18px}.margin-rate-edit-form{grid-template-columns:1fr}.margin-rate-edit-form>.primary-button{width:100%}.inference-form{grid-template-columns:1fr 1fr}.inference-form label:first-child{grid-column:1/-1}}.margin-rate-management-card{padding:0;overflow:hidden}.margin-rate-management-card>summary{padding:20px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}.margin-rate-management-card>summary::-webkit-details-marker{display:none}.margin-rate-management-card>summary:after{content:"＋";color:var(--muted);font-size:18px;line-height:1;margin-left:auto}.margin-rate-management-card[open]>summary:after{content:"−"}.margin-rate-management-card>summary h2{margin:0 0 5px}.margin-rate-management-card>summary p{margin:0;color:var(--muted);font-size:14px}.margin-rate-management-card>summary>strong{color:var(--accent);font-size:18px;font-variant-numeric:tabular-nums}.margin-rate-management-card[open]>summary{border-bottom:1px solid var(--line)}.margin-rate-management-card[open]>summary+*{margin-left:20px;margin-right:20px}@media (max-width:520px){.margin-rate-management-card>summary{padding:16px}.margin-rate-management-card>summary>strong{font-size:18px}}.margin-rate-management-card[open]>.margin-rate-edit-form,.margin-rate-management-card[open]>.inline-message{margin-left:20px;margin-right:20px}@media (max-width:520px){.margin-rate-management-card[open]>.margin-rate-edit-form,.margin-rate-management-card[open]>.inline-message{margin-left:16px;margin-right:16px}}.calibration-sheet h2{display:flex;align-items:center;gap:8px}.calibration-sheet form{padding-top:16px}.calibration-intro{margin:0 0 18px;color:var(--muted);font-size:14px;line-height:1.6}.calibration-summary{display:grid;grid-template-columns:1fr 1fr;margin-bottom:18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.calibration-summary div{padding:12px 0;display:flex;flex-direction:column;gap:5px}.calibration-summary div+div{padding-left:14px;border-left:1px solid var(--line)}.calibration-summary span{color:var(--muted);font-size:12px}.calibration-summary strong{font-size:14px;font-variant-numeric:tabular-nums}.calibration-delta{margin:15px 0;padding:13px 14px;display:flex;align-items:center;justify-content:space-between;background:var(--surface-muted);border-left:3px solid var(--line)}.calibration-delta.positive{border-left-color:var(--accent);background:var(--accent-soft)}.calibration-delta.negative{border-left-color:var(--danger);background:var(--danger-soft)}.calibration-delta span{color:var(--muted);font-size:14px}.calibration-delta strong{font-size:18px;font-variant-numeric:tabular-nums}.calibration-warning{margin-top:15px;padding:11px 12px;color:var(--warning);background:var(--warning-soft);border-left:3px solid var(--warning);font-size:14px;line-height:1.5}@media (max-width:520px){.calibration-summary{grid-template-columns:1fr}.calibration-summary div+div{padding-left:0;border-left:0;border-top:1px solid var(--line)}}.entry-sheet{height:min(760px,calc(100dvh - 48px));max-height:none}.entry-sheet input,.entry-sheet select,.entry-sheet textarea{font-size:16px}.header-actions .header-action-button{width:44px;height:44px;border:1px solid var(--input-border);background:var(--surface);color:var(--text)}.header-actions .header-action-button:hover{background:var(--surface-hover)}.header-actions .header-action-button.primary-action{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.header-actions .header-action-button.primary-action:hover{background:var(--accent-hover)}@media (max-width:759px){.modal-backdrop{padding:0}.entry-sheet{height:calc(100dvh - 58px);border-radius:8px 8px 0 0}}.protected-setting{display:flex;flex-direction:column;gap:8px}.protected-setting label{margin:0!important}.protected-setting input[readonly]{background:var(--surface-muted);color:var(--muted)}.protected-setting-action{align-self:flex-start;min-height:30px;padding:0;color:var(--accent);font-size:14px;font-weight:600}.protected-setting-confirm{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:10px;padding:10px 12px;background:var(--warning-soft);border-left:3px solid var(--warning);color:var(--warning);font-size:12px;line-height:1.45}.protected-setting-confirm input{min-height:38px!important;font-size:14px!important}.protected-setting>small{color:var(--muted);font-size:12px}@media (max-width:520px){.protected-setting-confirm{grid-template-columns:1fr}.protected-setting-confirm input{width:100%}}.calibration-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin-top:16px;padding:3px;background:var(--surface-muted);border-radius:4px}.calibration-tabs button{min-height:36px;border:0;border-radius:4px;background:none;color:var(--muted)}.calibration-tabs button.active{background:var(--surface);color:var(--text);font-weight:600;box-shadow:none}@media (min-width:760px){.metric-strip{grid-template-columns:repeat(5,1fr)}}html{-webkit-text-size-adjust:100%;overflow-x:hidden;touch-action:pan-y}html,body{overflow-x:hidden}body{touch-action:pan-y}input,select,textarea{font-size:16px}.modal-backdrop{overflow-x:hidden;touch-action:pan-y}.entry-sheet{overflow-x:hidden;overflow-y:auto;touch-action:pan-y}.protected-setting-confirm input{font-size:16px!important}@media (min-width:760px){.metric-strip{grid-template-columns:repeat(4,1fr)}}.settings-inline-actions{display:flex;gap:8px}.settings-inline-actions .primary-button,.settings-inline-actions .secondary-button{min-height:38px}.settings-collapsible{padding:0!important;overflow:hidden}.settings-collapsible details{margin:0}.settings-collapsible summary{padding:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;color:var(--text);font-size:inherit}.settings-collapsible summary::-webkit-details-marker{display:none}.settings-collapsible summary h2{margin:0}.settings-collapsible summary span{color:var(--muted);font-size:14px}.settings-collapsible summary:after{content:"＋";color:var(--muted);font-size:18px;line-height:1}.settings-collapsible details[open] summary{border-bottom:1px solid var(--line)}.settings-collapsible details[open] summary:after{content:"−"}.settings-collapsible details>.form-row{padding:20px}.settings-parameter{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}.settings-parameter+.settings-parameter{margin-top:16px}.settings-parameter>small{grid-column:1/-1;color:var(--muted);font-size:12px}.settings-parameter>.protected-setting-action{align-self:end;margin-bottom:0}.settings-collapsible{margin-top:18px!important;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.settings-collapsible>summary{min-height:72px;padding:16px 18px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;cursor:pointer;list-style:none}.settings-collapsible>summary::-webkit-details-marker{display:none}.settings-collapsible>summary:after{display:none}.settings-collapsible>summary>svg:first-child{color:var(--accent)}.settings-collapsible>summary>svg:last-child{color:var(--muted);transition:transform .16s ease}.settings-collapsible[open]>summary{border-bottom:1px solid var(--line)}.settings-collapsible[open]>summary>svg:last-child{transform:rotate(90deg)}.settings-collapsible>summary h2{margin:0;font-size:14px}.settings-collapsible-content{padding:20px}.settings-collapsible-content>.settings-inline-actions{justify-content:flex-end;margin-top:16px}.withdrawal-callout a{border:0;background:none;color:var(--accent);font-weight:600}.ledger-row.is-cancelled{background:var(--surface-muted)}.ledger-row{grid-template-columns:64px minmax(0,1fr) 124px}.ledger-row.has-actions{grid-template-columns:64px minmax(0,1fr) 124px 92px}.ledger-actions{display:flex;align-items:center;justify-content:flex-end;gap:1px}.ledger-actions .row-action{display:inline-flex;width:30px;height:34px}@media (max-width: 520px){.margin-rate-settings-page .projection-page-title{flex-wrap:wrap}.margin-rate-settings-page .projection-page-title>div{min-width:0;flex:1}.margin-rate-settings-page .projection-page-title>.secondary-button{flex-basis:100%;width:100%}.ledger-row{grid-template-columns:54px minmax(0,1fr) 112px}.ledger-row.has-actions{grid-template-columns:54px minmax(0,1fr) 112px 88px}.ledger-actions .row-action{width:28px;height:32px}}.review-withdrawal-actions{display:flex;justify-content:flex-end;gap:1px}.review-withdrawal-actions .icon-button{width:30px;height:34px}.entry-amount{width:auto;min-width:0;justify-self:stretch;align-items:flex-end;text-align:right}.entry-amount.waived strong{color:var(--muted);font-size:13px}.withdrawal-disposition{grid-template-columns:repeat(2,1fr)}.withdrawal-waiver-note{margin-top:15px;padding:15px;border-left:3px solid var(--warning);background:var(--warning-soft);display:grid;gap:5px}.withdrawal-waiver-note span,.withdrawal-waiver-note p{color:var(--muted);font-size:12px}.withdrawal-waiver-note strong{font-size:20px}.withdrawal-waiver-note p{margin:3px 0 0;line-height:1.55}.profit-withdrawal-callout{background:var(--accent-soft);border-left-color:var(--accent)}.temporary-capital-callout{background:var(--warning-soft);border-left-color:var(--warning)}.temporary-capital-callout strong,.temporary-capital-callout a{color:var(--warning)}.recent-section .ledger-row{padding-left:14px;padding-right:14px}.margin-rate-add-card{margin-top:20px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.margin-rate-add-card h2{margin:0 0 5px;font-size:19px}.margin-rate-add-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.margin-rate-add-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.margin-rate-add-fields label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:13px}.margin-rate-add-fields input,.margin-rate-add-card .margin-rate-edit-form input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--input-border);border-radius:6px;background:var(--surface);color:var(--text)}.margin-rate-special-toggle{display:flex;align-items:flex-start;gap:9px;margin-top:16px;color:var(--text);font-size:13px}.margin-rate-special-toggle input{width:17px;height:17px;margin:1px 0 0;accent-color:var(--accent)}.margin-rate-special-toggle span{display:flex;flex-direction:column;gap:3px}.margin-rate-special-toggle small{color:var(--muted);font-size:12px}@media (max-width: 520px){.recent-section .ledger-row{padding-left:10px;padding-right:10px}.margin-rate-add-card{padding:16px}.margin-rate-add-fields,.margin-rate-add-card .margin-rate-edit-form{grid-template-columns:1fr}.margin-rate-add-card .margin-rate-edit-form>.primary-button{width:100%}}@media (min-width: 521px){.review-withdrawals article{grid-template-columns:72px minmax(0,1fr) auto 64px}}@media (max-width: 520px){.review-withdrawals article{grid-template-columns:58px minmax(0,1fr) auto 60px}.review-withdrawal-actions .icon-button{width:28px;height:32px}}.market-page{max-width:1120px}.market-contract-panel,.market-query,.market-results{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:18px;min-width:0}.market-contract-panel h2{margin-bottom:16px}.market-search-row{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.market-query-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.market-page label{display:flex;flex-direction:column;gap:7px;font-size:14px;color:var(--muted);min-width:0}.market-page input:not([type=checkbox]),.market-page select{width:100%;max-width:100%;min-width:0;min-height:44px;border:1px solid var(--input-border);border-radius:4px;padding:10px 12px;background:var(--surface);color:var(--text);font:inherit;font-size:16px}.market-search-input{display:flex;align-items:center;position:relative}.market-search-input svg{position:absolute;left:12px;color:var(--muted)}.market-search-input input{padding-left:38px!important}.market-favorites{display:flex;gap:8px;overflow:auto;padding:16px 0 4px;touch-action:pan-x pan-y}.market-favorites button{display:flex;align-items:center;gap:6px;white-space:nowrap;min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:4px;color:var(--muted);background:var(--surface)}.market-favorites button.active{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}.market-contract-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px;max-height:260px;overflow:auto;overscroll-behavior:contain}.market-contract-list>button{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;min-height:64px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:4px;background:var(--surface)}.market-contract-list button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}.market-contract-list span{font-size:12px;color:var(--muted)}.market-contract-list p{grid-column:1/-1;color:var(--muted);font-size:14px;line-height:1.6}.market-selected{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}.market-selected>div{display:flex;flex-direction:column;gap:5px}.market-selected span{color:var(--muted);font-size:14px}.market-timeframes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line);margin-bottom:20px}.market-timeframes button,.market-output-tabs button{border:0;background:none;min-height:44px;color:var(--muted);border-bottom:2px solid transparent;font-size:14px}.market-timeframes button[aria-pressed=true],.market-output-tabs button[aria-pressed=true]{border-bottom-color:var(--accent);color:var(--accent);font-weight:600}.market-help{font-size:14px;color:var(--muted);line-height:1.6}.market-fetch{min-width:140px;margin-top:20px;white-space:nowrap}.market-results>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.market-results h2{font-size:18px}.market-results h2 span{font-size:14px;color:var(--muted)}.market-results header p{font-size:12px;color:var(--muted);line-height:1.6;margin:8px 0 0}.market-output-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin-top:16px}.market-table-scroll{overflow:auto;max-height:580px;max-width:100%;touch-action:pan-x pan-y;overscroll-behavior:contain;margin-top:12px;border:1px solid var(--line);-webkit-overflow-scrolling:touch}.market-table-scroll table{border-collapse:separate;border-spacing:0;width:100%;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}.market-table-scroll th,.market-table-scroll td{padding:12px;text-align:right;border-bottom:1px solid var(--line);background:var(--surface)}.market-table-scroll th{position:sticky;top:0;z-index:2;background:var(--surface-muted);color:var(--muted);font-weight:600}.market-table-scroll th:first-child,.market-table-scroll td:first-child{position:sticky;left:0;text-align:left;border-right:1px solid var(--line);z-index:1}.market-table-scroll th:first-child{z-index:3}.market-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:10px}.market-pagination span{margin-right:auto;font-size:12px;color:var(--muted)}.market-warnings{padding:10px 12px;margin-top:12px;background:var(--warning-soft);border-left:3px solid var(--warning);color:var(--warning);font-size:12px;line-height:1.6}.market-warnings p{margin:3px 0}.market-markdown-label{margin-top:14px}.market-markdown-label textarea{width:100%;resize:vertical;min-height:260px;padding:12px;border:1px solid var(--line);border-radius:4px;font:13px/1.6 ui-monospace,monospace;white-space:pre;overflow:auto;color:var(--text);background:var(--surface);touch-action:pan-x pan-y}.market-copy-status{font-size:14px;color:var(--accent)}.market-page :focus-visible{outline:2px solid var(--accent);outline-offset:2px}.maintenance-page{max-width:1000px}.maintenance-history{margin-top:20px;border-top:1px solid var(--line)}.maintenance-history .job-status{margin:0;padding:16px 0;border:0;border-bottom:1px solid var(--line)}.maintenance-history .job-status p{overflow-wrap:anywhere}.market-spinning{animation:market-spin 1.4s linear infinite}@keyframes market-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.market-spinning{animation:none}}@media (max-width:600px){.market-contract-panel,.market-query,.market-results{padding:16px}.market-search-row{grid-template-columns:minmax(0,1fr)}.market-contract-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:224px}.market-query-fields{grid-template-columns:minmax(0,1fr)}.market-results>header{flex-direction:column;gap:12px}.market-results>header button,.market-fetch{width:100%}.market-table-scroll{max-height:55dvh}.market-table-scroll th,.market-table-scroll td{padding:10px}.market-table-scroll th:first-child,.market-table-scroll td:first-child{min-width:164px}.market-selected .secondary-button{white-space:nowrap}.maintenance-page .admin-actions{display:grid;grid-template-columns:1fr}.maintenance-page .admin-actions button{width:100%}}html,body{touch-action:auto}.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.app-shell,.app-column{min-height:100dvh}main{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.entry-sheet{max-height:92dvh}.topbar{height:calc(56px + env(safe-area-inset-top))}.bottom-nav a{min-width:0}.bottom-nav a span{white-space:nowrap}@media (min-width:760px){main{padding-bottom:0}}.app-column{min-width:0}.market-page{width:100%}@media (min-width:760px){.app-shell{grid-template-columns:220px minmax(0,1fr)}}:root{color-scheme:light dark;--canvas: #f6f7f8;--surface: #fff;--surface-muted: #f0f2f4;--surface-hover: #eaedf0;--text: #20252a;--muted: #68717a;--line: #e1e5e8;--input-border: #cbd2d8;--accent: #2f363d;--accent-hover: #1e252c;--accent-soft: #e9edef;--on-accent: #fff;--positive: #be4b49;--negative: #25764f;--danger: #b83c39;--danger-soft: #fcf0ef;--warning: #8c631c;--warning-soft: #fbf5e8;--success: #25764f;--success-soft: #edf5f0;--chart-secondary: #89939b;--overlay: rgba(14, 20, 25, .4);font-size:14px;font-weight:400;font-variant-numeric:lining-nums tabular-nums;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}@media (prefers-color-scheme: dark){:root:not([data-color-scheme]){--canvas: #1d2024;--surface: #24282d;--text: #e6e9ed;--muted: #a2acb5;--line: #383f47;--accent: #d9e0e7;--on-accent: #1d242a}}body{color:var(--text);line-height:1.5}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{color:inherit}button,a{transition:color .14s ease,background-color .14s ease,border-color .14s ease}button:not(:disabled):active{transform:translateY(1px)}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button,input,select,textarea{accent-color:var(--accent)}input,select,textarea{border-radius:4px}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}button:disabled{cursor:default}.topbar{background:var(--canvas);border-bottom:0}.side-nav{background:var(--surface);border-right:0}.brand,.mobile-brand{font-size:18px;font-weight:600}.brand-mark{border-radius:4px;font-size:16px;font-weight:500}.side-nav nav a{border-radius:4px;font-weight:500}.side-nav nav a:hover,.bottom-nav a:hover{background:var(--surface-hover)}.side-nav nav a.active{background:var(--accent-soft);font-weight:600}.bottom-nav a{font-size:12px}.sync-state.synced span{background:var(--success)}.primary-button,.secondary-button{font-size:14px;font-weight:500}.primary-button:hover:not(:disabled){background:var(--accent-hover)}.secondary-button:hover:not(:disabled){background:var(--surface-hover)}.primary-button.destructive{background:var(--danger);color:var(--surface)}.header-actions .header-action-button{border:0;background:transparent}.header-actions .header-action-button.primary-action{background:var(--accent);color:var(--on-accent)}.equity-header h1{font-size:32px;font-weight:500;line-height:1.2;letter-spacing:-.025em}.page-title h1,.projection-page-title h1,.auth-panel h1{font-size:18px;font-weight:600}.page h2,.entry-sheet h2,.margin-rate-add-card h2{font-size:14px;font-weight:600}.section-label{font-size:14px}.metric-strip{border:0}.metric-strip>div+div,.metric-strip>div:nth-child(2n){border-left:0}.metric-strip span{font-size:12px}.metric-strip strong,.review-stats strong{font-size:18px;font-weight:500}.ledger-row strong,.trade-cycle strong{font-weight:500}.chart-section header,.recent-section header{gap:12px}.recent-section header{border-bottom:0}.recent-section .ledger-row{padding-left:0;padding-right:0}.ledger-list{background:transparent}.risk-row{border:0;font-size:14px}.risk-row strong{color:var(--success);font-weight:500}.review-result.eligible{border-color:var(--success);background:var(--success-soft)}.job-status.success strong{color:var(--success)}.trade-cycle.open,.withdrawal-callout{border-left-width:2px}.settings-form>section,.data-actions,.account-panel,.admin-panel,.stats-panel,.projection-settings-link,.margin-rate-management-card,.margin-rate-add-card,.market-contract-panel,.market-query,.market-results{border-color:transparent}.chart-legend .equity-key:before{border-top-color:var(--accent)}.records-header{container-type:inline-size;align-items:center}.records-header>div:first-child{min-width:0;flex:1}.records-header h1,.records-header p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.records-header-actions{flex-shrink:0}.records-header-actions button{flex-shrink:0;min-width:44px;min-height:44px;white-space:nowrap}.records-header-actions svg{flex-shrink:0}@container (max-width: 380px){.records-header-actions .action-label{display:none}.records-header-actions button{padding-inline:12px}}.appearance-settings{padding:20px;margin-bottom:20px;background:var(--surface);border-radius:var(--radius)}.appearance-settings>header{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.appearance-settings>header>span{font-size:12px;color:var(--muted)}.appearance-settings fieldset{padding:0;margin:18px 0 0;border:0;min-width:0}.appearance-settings legend{padding:0;margin-bottom:10px;color:var(--muted);font-size:14px}.theme-options{display:flex;flex-wrap:wrap;gap:10px}.theme-option{position:relative;display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 14px;border:1px solid var(--input-border);border-radius:4px;cursor:pointer}.theme-option:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.theme-option:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}.theme-option input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.theme-swatch{width:20px;height:20px;border-radius:2px;background:var(--swatch);border-right:10px solid var(--swatch-soft)}@media (min-width: 760px){html,body{overflow-x:clip}.side-nav{display:block;position:relative;align-self:stretch;height:auto;min-height:100dvh;padding:0}.side-nav-content{position:sticky;top:0;display:flex;flex-direction:column;height:100dvh;padding:24px 14px;overflow-y:auto}.side-nav-content>.brand,.side-nav-content>nav{flex-shrink:0}}@media (max-width: 759px){.appearance-settings{padding:18px}.entry-sheet input,.entry-sheet select,.entry-sheet textarea,.settings-form input{font-size:16px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
