:root{color-scheme:dark;--bg:#131722;--surface:#191e29;--surface-alt:#161b26;--hover:#242a36;--ink:#c4c5c7;--bright:#eceef0;--muted:#808080;--line:#303541;--accent:#c4c5c7;--green:#a1d6b4;--green-bg:#203329;--green-line:#476f56;--red:#dda3ab;--mono:'IBM Plex Mono',ui-monospace,monospace;--radius:8px}
html[data-theme="light"]{color-scheme:light;--bg:#f3f4f6;--surface:#ffffff;--surface-alt:#f8f9fa;--hover:#e9edf1;--ink:#303641;--bright:#171d28;--muted:#727985;--line:#dce0e6;--accent:#252b35;--green:#267648;--green-bg:#e8f3ec;--green-line:#a6c7b1;--red:#ab5560}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 'Inter',system-ui,-apple-system,sans-serif;letter-spacing:-.1px}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{transition:background .15s,color .15s,border-color .15s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}main{max-width:1800px;margin:auto;padding:0 24px 26px}h1,h2,h3,h4,p{margin-top:0}h3{font-size:17px;line-height:1.35;font-weight:600;color:var(--bright);margin-bottom:0}p{color:var(--muted);font-size:13px}button{border-radius:6px}input,select{width:100%;display:block;margin-top:7px;min-height:42px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--bright);padding:10px 12px;font-size:14px}input::placeholder{color:var(--muted);opacity:.8}input:focus,select:focus{border-color:var(--muted);outline:none}input:focus-visible,select:focus-visible{outline:2px solid var(--accent)}select option{background:var(--surface);color:var(--ink)}.field{display:block;font-size:12px;font-weight:500;color:var(--muted)}.small{font-size:12px;line-height:1.5;color:var(--muted)}.label{display:block;font-size:10px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}
/* A quiet application header, followed by a slim session rail. */
.topbar{height:72px;display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line)}.mobile-brand{order:-1;display:flex;align-items:center;gap:10px;color:var(--bright);font-size:19px;font-weight:700;letter-spacing:-.7px;white-space:nowrap}.terminal-mark{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:10px;color:var(--bright);font:600 17px 'Inter',sans-serif;letter-spacing:-1px;background:var(--surface)}.terminal-label{display:none}.view-switch{height:100%;display:flex;gap:22px;align-items:stretch;margin-left:10px}.view-switch button{padding:0 0 1px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);font-size:13px;font-weight:500;white-space:nowrap}.view-switch button:hover{color:var(--bright)}.view-switch button.active{border-bottom-color:var(--bright);color:var(--bright)}.profile-link{font-size:13px;color:var(--muted);padding:8px 0}.profile-link:hover,.profile-link.active{color:var(--bright)}.header-user{margin-left:auto;display:flex;align-items:center;gap:10px}.clock{font:11px var(--mono);color:var(--muted)}.dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--muted);margin-right:6px}.theme-toggle,.running-badge,.user-chip{border:1px solid var(--line);background:transparent;color:var(--ink);padding:7px 10px;font-size:12px;min-height:34px;white-space:nowrap}.theme-toggle:hover,.running-badge:hover,.user-chip:hover{background:var(--hover)}.running-badge,.user-chip{display:flex;align-items:center;gap:7px}.running-badge strong{font:12px var(--mono);color:var(--bright)}.running-badge.has-running .dot{background:var(--green)}.user-chip>span:first-child{font-size:10px;display:grid;place-items:center;width:21px;height:21px;background:var(--hover);border-radius:4px}.user-chip #userShortName{max-width:100px;overflow:hidden;text-overflow:ellipsis}
.workspace-status{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--line)}.test-mode-bar{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted)}.test-mode-bar .text-button{font-size:11px;padding:5px 8px;border:1px solid var(--line);border-radius:4px}.session-strip,.session-lights,.session-selection{display:flex;align-items:center;gap:12px}.session-light{font-size:11px;color:var(--muted);white-space:nowrap}.session-light.open{color:var(--green)}.session-light.open .dot{background:var(--green)}.session-info{display:none}.session-selection{gap:8px;border-left:1px solid var(--line);padding-left:12px}.session-selection>.small{display:none}.session-selection select{width:110px;margin:0;min-height:29px;font-size:11px;padding:4px 8px;background:var(--surface)}.session-selection .text-button{font-size:11px}
.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 18px}.heading .label{margin-bottom:6px}.heading h1{font-size:27px;line-height:1.2;letter-spacing:-1px;color:var(--bright);font-weight:600;margin:0}.heading p{margin:7px 0 0;font-size:13px}#overview .heading{margin:23px 0 15px}#overview .heading h1{font-size:25px}#overview .heading .label{font-size:9px}#overview .heading p{font-size:12px}
.primary,.secondary{padding:10px 15px;font-size:13px;font-weight:500;min-height:40px}.primary{background:var(--accent);border:1px solid var(--accent);color:var(--bg)}.primary:hover{filter:brightness(1.08)}.primary:disabled,.primary[aria-disabled="true"]{background:var(--hover);border-color:var(--line);color:var(--ink)}.secondary{background:transparent;border:1px solid var(--line);color:var(--ink)}.secondary:hover{background:var(--hover)}.text-button{border:0;background:transparent;padding:0;color:var(--ink);font-size:12px}.text-button:hover{color:var(--bright)}.remove{border:0;background:transparent;padding:0;color:var(--red);font-size:12px}.positive,.success-note{color:var(--green)}.negative,.error{color:var(--red)}.error,.success-note{font-size:12px;line-height:1.6}.error:empty,.success-note:empty{display:none}
/* Three independent trades in a single compact strip. */
.setup-workspaces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px}.trade-card{display:flex;align-items:stretch;min-height:40px;background:var(--surface-alt);border:1px solid var(--line);border-radius:6px;overflow:hidden}.trade-card:has(.active){background:var(--hover);border-color:var(--muted)}.setup-tab{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:9px;text-align:left;padding:8px 12px;background:transparent;border:0;color:var(--ink);border-radius:0}.setup-name{font-size:11px;letter-spacing:.2px;font-weight:600;white-space:nowrap}.setup-status{font:10px var(--mono);color:var(--muted);white-space:nowrap}.setup-tab.ready .setup-status{color:var(--green)}.setup-tab.active .setup-name{color:var(--bright)}.setup-symbol,.setup-progress,.setup-draft-note{display:none}.trade-card>select{width:124px;min-height:38px;margin:0;padding:7px 10px;border:0;border-left:1px solid var(--line);border-radius:0;background:transparent;font-size:12px;color:var(--ink)}
/* The chart and checklist share the first row; prices follow the chart. */
.grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:16px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.pill{font:9px var(--mono);letter-spacing:.6px;color:var(--muted);padding:4px 7px;border:1px solid var(--line);border-radius:4px;white-space:nowrap}.chart-panel{grid-column:1;grid-row:1;padding:0;overflow:hidden}.chart-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:15px 18px;border-bottom:1px solid var(--line)}.chart-controls h3{font-size:21px;font-weight:500;letter-spacing:-.7px}.chart-controls .small{font-size:10px;margin-top:2px}.timeframes{display:flex;gap:3px}.timeframes button{border:0;background:transparent;color:var(--muted);font-size:12px;padding:7px 9px;min-width:30px;min-height:32px}.timeframes button:hover{background:var(--hover);color:var(--bright)}.timeframes button.active{background:var(--hover);color:var(--bright)}.chart-frame{height:clamp(500px,67vh,820px);min-height:400px;resize:vertical;overflow:hidden;background:var(--bg)}.chart-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:10px 17px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}.chart-footer a{color:var(--ink);white-space:nowrap}.mobile-market,.setup-pair{display:none}.desk-sidebar{grid-column:2;grid-row:1/span 2;position:sticky;top:16px;min-width:0}.desk-sidebar #checklist{display:flex;flex-direction:column;padding:20px;max-height:calc(100dvh - 32px)}#checklist .panel-title{margin-bottom:8px}#checklist>.small{font-size:11px}.daily-control{display:flex;justify-content:space-between;padding:12px 0;margin:5px 0 12px;border-bottom:1px solid var(--line)}.daily-control strong{font:12px var(--mono);color:var(--bright)}.daily-control .small{font-size:10px;margin-top:3px}#checks{overflow:auto;min-height:120px;scrollbar-width:thin;scrollbar-color:var(--line) transparent;flex:1;padding-right:3px}.check{display:flex;align-items:flex-start;gap:12px;border:1px solid transparent;border-bottom-color:var(--line);padding:13px 2px;cursor:pointer}.check input{width:17px;height:17px;min-height:0;flex-shrink:0;margin:2px 0 0;accent-color:var(--green)}.check strong{display:block;font-size:13px;font-weight:500;color:var(--ink);line-height:1.4}.check span{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:4px}.check.confirmed{background:var(--green-bg);border-color:var(--green-line);border-radius:6px;padding:12px 10px;margin:4px 0}.check.confirmed strong{color:var(--green)}.check.confirmed span{color:var(--green);opacity:.8}.progress{height:3px;background:var(--line);margin-top:15px;border-radius:2px;overflow:hidden}.progress>div{height:100%;background:var(--green);transition:width .2s}.status{display:flex;justify-content:space-between;gap:10px;margin-top:10px;color:var(--muted);font-size:11px}.status .text-button{font-size:11px}.entry-gate{margin-top:15px;padding-top:15px;border-top:1px solid var(--line)}.entry-gate p{font-size:11px;line-height:1.6;margin:0 0 12px}.entry-gate button{width:100%}.entry-gate.ready p{color:var(--green)}.entry-gate.ready button{background:var(--green);border-color:var(--green);color:var(--bg)}
#positionEntry{grid-column:1;grid-row:2;padding:19px 22px;display:grid;grid-template-columns:110px minmax(0,1fr);gap:0 16px}#positionEntry .panel-title{grid-column:1/-1;margin-bottom:0}#positionEntry h3{font-size:16px}.price-help{grid-column:1/-1;margin:6px 0 18px;font-size:12px}#positionEntry>.field{align-self:center}.vertical-prices{display:grid;grid-column:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.price-field{padding:11px 13px;border:1px solid var(--line);border-radius:6px;background:var(--surface-alt)}.price-label{font-size:10px;letter-spacing:.6px;color:var(--muted)}.stop-price .price-label{color:var(--red)}.target-price .price-label{color:var(--green)}.price-field input{background:transparent;border:0;margin:7px 0 0;padding:0;min-height:31px;font:22px var(--mono);color:var(--bright)}.price-field input::placeholder{font:11px 'Inter',sans-serif}.price-field:focus-within{border-color:var(--muted)}.sizing-options{grid-column:1/-1;margin-top:12px}.sizing-options summary,.contract-settings summary{cursor:pointer;font-size:12px;color:var(--muted);padding:4px 0}.sizing-options .inputs{margin-top:12px}#positionError{grid-column:1/-1;margin:9px 0 0}.inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.wide{grid-column:1/-1}#risk{grid-column:1/-1;grid-row:3}.position-summary{display:flex;gap:26px;font:12px var(--mono);margin:5px 0 19px;color:var(--muted)}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{font-size:10px;letter-spacing:.7px;color:var(--muted);font-weight:500;text-align:left;border-bottom:1px solid var(--line);padding:11px 12px;background:var(--surface-alt)}td{padding:14px 12px;border-bottom:1px solid var(--line);color:var(--ink)}.size-table .lot-value{font:22px var(--mono);color:var(--bright)}.size-table td:nth-child(4){color:var(--red)}.size-table td:nth-child(5){color:var(--green)}#combinedRisk{font-size:12px;margin:17px 0 0}.contract-settings{margin-top:17px;border-top:1px solid var(--line);padding-top:10px}.contract-settings p{font-size:11px;margin-top:10px}.chart-url{color:var(--bright)}
/* Journal previews remain directly below the desk, and in the Journal tab. */
#deskView>.journal{margin-top:26px}.journal{padding:23px}.journal .panel-title{flex-wrap:wrap}.journal .panel-title p{margin:6px 0 0;font-size:12px}.backup-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.backup-actions .text-button{font-size:11px}.tabs{display:flex;gap:6px;padding-bottom:13px;border-bottom:1px solid var(--line)}.tabs button{padding:7px 13px;background:transparent;border:1px solid transparent;color:var(--muted);font-size:12px}.tabs button.active{border-color:var(--line);background:var(--hover);color:var(--bright)}.journal-view-tools{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:18px 0}.journal-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.journal-record{border:1px solid var(--line);border-radius:7px;overflow:hidden;background:var(--surface-alt)}.journal-record-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 18px 0}.journal-record-heading h3{font-size:20px;margin:6px 0 0;font-weight:500;letter-spacing:-.5px}.record-result{font:16px var(--mono);white-space:nowrap}.record-result.pending{font:11px 'Inter',sans-serif;padding:4px 8px;border:1px solid var(--line);border-radius:4px;color:var(--muted)}.record-summary{margin:10px 18px 16px;font-size:12px}.record-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:5px;margin:0 12px 12px;min-height:190px}.record-image,.detail-image{padding:0;background:var(--bg);border:1px solid var(--line);border-radius:5px;overflow:hidden;cursor:zoom-in}.record-image img{display:block;width:100%;height:230px;object-fit:contain;background:var(--bg)}.record-empty-image{height:190px;background:transparent;border:1px dashed var(--line);border-radius:5px;color:var(--muted);font-size:12px}.record-empty-image:hover{background:var(--hover);color:var(--bright)}.record-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px;padding:13px 18px;border-top:1px solid var(--line)}.record-actions .remove{margin-left:auto}.empty{text-align:center;padding:34px 15px;color:var(--muted);font-size:13px;line-height:1.9}.running-tag{color:var(--muted)}#storageNote{margin:20px 0 0;font-size:11px}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:23px 0}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px}.card-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.metric{font:32px var(--mono);color:var(--bright);margin:18px 0 9px;letter-spacing:-1px}.foot{font-size:12px;color:var(--muted)}.insights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:17px 0}.insight{font-size:12px;color:var(--muted)}.insight strong{display:block;color:var(--bright);font:23px var(--mono);margin-top:11px}.strategy-panel{margin-top:22px}.strategy-panel>summary{display:flex;justify-content:space-between;gap:15px;cursor:pointer;color:var(--bright);font-size:16px}.strategy-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding-top:24px}.strategy-step{border-left:1px solid var(--line);padding-left:18px;font-size:13px}.strategy-step b{font-size:12px;color:var(--bright);font-weight:500}.strategy-step p{margin:10px 0;font-size:12px;line-height:1.8}.strategy-foot{font-size:12px;color:var(--muted);line-height:1.9;border-top:1px solid var(--line);padding-top:18px;margin-top:8px}.strategy-foot a{display:inline-block;margin-top:10px;color:var(--bright)}
.account-settings{margin:22px 0;max-width:1200px;padding:26px}.account-settings>.small{max-width:760px}.profile-save{font-size:11px;color:var(--green)}.profile-limit{display:flex;align-items:end;gap:22px;margin:22px 0;padding-bottom:22px;border-bottom:1px solid var(--line)}.profile-limit label{width:190px}.profile-limit p{max-width:430px;margin-bottom:0}.account-table td{padding:10px 7px}.account-table input{margin:0;min-width:95px}.account-name-input{min-width:160px!important}.user-profile-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;max-width:1060px;margin:25px 0;min-height:45vh}.user-identity{text-align:center;padding:30px 24px}.user-avatar{width:68px;height:68px;border-radius:14px;background:var(--hover);border:1px solid var(--line);display:grid;place-items:center;margin:0 auto 20px;font:24px var(--mono);color:var(--bright)}.user-identity h3{font-size:21px}.user-identity p{overflow-wrap:anywhere;margin-top:8px}.identity-status{display:inline-block;color:var(--green);font-size:11px;border:1px solid var(--green-line);padding:5px 8px;border-radius:4px;margin:12px 0}.identity-actions{display:flex;justify-content:center;margin:15px 0}.user-settings .field{margin-bottom:17px}.user-links{display:flex;gap:10px;margin:22px 0}.active-trade-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 0;border-bottom:1px solid var(--line)}.active-trade-row strong{font-size:14px;font-weight:500;color:var(--bright)}.active-trade-row p{margin:5px 0 0}
/* Consistent, readable dialogs and full-size chart images. */
dialog{width:min(500px,94vw);max-height:90dvh;overflow:auto;padding:26px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 24px 90px #0005}dialog::backdrop{background:#080d18b3;backdrop-filter:blur(5px)}html[data-theme="light"] dialog::backdrop{background:#28313d66}dialog.dialog-wide{width:min(900px,95vw)}dialog h3{font-size:21px;margin-bottom:17px;letter-spacing:-.5px}dialog p{font-size:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.modal-intro{margin-bottom:25px}.modal-intro h3{margin:8px 0;font-size:26px}.modal-intro p{margin-bottom:0}.entry-section{min-width:0;margin:0;padding:17px 0 22px;border:0;border-top:1px solid var(--line)}.entry-section legend{font-size:14px;font-weight:500;color:var(--bright);padding-right:14px}.entry-section legend span{font:11px var(--mono);color:var(--muted);margin-right:12px}.entry-section .inputs{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.form-management,.outcome-help{padding:13px;background:var(--surface-alt);border:1px solid var(--line);border-radius:6px;font-size:12px;color:var(--muted)}.mgmt-note{font-size:12px}.detail-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.detail-heading h3{font-size:24px;margin:7px 0 0}.detail-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin:22px 0}.detail-image img{display:block;width:100%;height:260px;object-fit:contain;background:var(--bg)}.details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}.details-grid>div{display:grid;grid-template-columns:minmax(100px,42%) minmax(0,1fr);gap:14px;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.details-grid>div>span{color:var(--muted)}.details-grid>div>strong{font-weight:500;color:var(--bright);overflow-wrap:anywhere}.session-setting{margin:20px 0}.session-setting h4{font-size:14px;color:var(--bright);font-weight:500;margin-bottom:12px}
.screenshot-paste{margin:20px 0}.paste-zone{display:flex;flex-direction:column;gap:10px;align-items:center;width:100%;padding:26px 16px;border:1px dashed var(--muted);background:var(--surface-alt);color:var(--bright);border-radius:7px}.paste-zone strong{font-size:16px;font-weight:500}.paste-zone span{font-size:12px;color:var(--muted)}.screenshot-link{padding:16px;border:1px solid var(--line);border-radius:7px;margin-bottom:20px}.screenshot-link>.secondary{margin-top:12px}#screenshotURLPreview img{display:block;width:100%;max-height:360px;object-fit:contain;background:var(--bg);margin:16px 0;border-radius:6px}.screenshot-upload{border-top:1px solid var(--line);padding-top:17px}.screenshot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:20px}.screenshot-card{border:1px solid var(--line);border-radius:7px;overflow:hidden}.screenshot-card figure{margin:0}.screenshot-card img{display:block;width:100%;height:220px;object-fit:contain;background:var(--bg);cursor:zoom-in}.screenshot-card figcaption{padding:10px 12px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.shot-controls{display:flex;justify-content:space-between;gap:10px;padding:11px 12px;border-top:1px solid var(--line)}#imageLightbox{width:min(1500px,97vw);padding:15px;background:var(--bg)}.lightbox-head{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px;margin-bottom:13px}#lightboxImage{display:block;max-width:100%;max-height:75dvh;margin:auto;object-fit:contain}#lightboxOriginal{display:inline-block;margin-top:12px;font-size:12px;color:var(--ink)}footer{display:flex;justify-content:space-between;gap:18px;margin-top:27px;padding-top:18px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}
@media(min-width:1650px){.grid{grid-template-columns:minmax(0,1fr) 375px}.chart-frame{height:clamp(600px,70vh,900px)}}
@media(max-width:1200px){main{padding:0 18px 24px}.topbar{gap:18px}.clock{display:none}.user-chip #userShortName{display:none}.view-switch{gap:18px;margin-left:0}.grid{grid-template-columns:minmax(0,1fr) 320px}.desk-sidebar #checklist{padding:17px}.setup-tab{padding:8px 10px}.trade-card>select{width:112px}.session-selection{gap:7px}.test-mode-bar{gap:8px}#positionEntry{grid-template-columns:1fr}#positionEntry>.field{width:130px;margin-bottom:12px}.vertical-prices{grid-column:1}.price-field input{font-size:20px}}
@media(max-width:960px){.topbar{gap:14px}.mobile-brand{font-size:18px}.header-user{gap:6px}.theme-toggle,.running-badge,.user-chip{padding:6px 8px;font-size:11px}.view-switch{gap:14px}.workspace-status{flex-wrap:wrap;gap:8px}.session-strip{flex:1;justify-content:flex-end}.grid{grid-template-columns:minmax(0,1fr) 300px;gap:12px}.setup-name{font-size:10px}.setup-status{font-size:9px}.setup-tab{padding:7px 8px;gap:7px}.trade-card>select{width:105px;font-size:11px}.chart-controls{padding:12px}.timeframes button{padding:6px 8px;font-size:11px}.heading h1{font-size:25px}.entry-section .inputs{gap:14px}.details-grid{grid-template-columns:1fr}.user-profile-grid{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:760px){main{padding:0 12px 22px}.topbar{height:auto;min-height:65px;flex-wrap:wrap;padding:13px 0 0;gap:12px}.mobile-brand{font-size:19px}.terminal-mark{height:30px;width:30px}.header-user{margin-left:auto}.view-switch{order:2;height:40px;margin-right:auto;gap:22px}.profile-link{order:3}.user-chip{min-height:31px}.theme-toggle,.running-badge{font-size:10px;min-height:31px}.workspace-status{padding:10px 0;gap:10px}.test-mode-bar{width:100%;justify-content:space-between;font-size:10px}.test-mode-bar .text-button{font-size:10px;padding:4px 6px}.session-strip{justify-content:space-between;gap:7px;width:100%;flex-wrap:wrap}.session-lights{gap:10px}.session-selection{gap:6px;border:0;padding:0}.session-selection select{width:96px}.session-selection .text-button{font-size:10px}.session-light{font-size:10px}.heading{margin:21px 0 16px;align-items:start}.heading h1,#overview .heading h1{font-size:23px}.heading p{font-size:12px}.heading .primary{padding:8px 10px;font-size:11px}.setup-workspaces{gap:6px;margin-bottom:13px}.trade-card{display:block;min-height:0}.setup-tab{width:100%;min-height:30px;padding:6px 8px}.setup-status{font-size:9px}.setup-name{font-size:10px}.trade-card>select{width:100%;min-height:30px;padding:5px 8px;border-left:0;border-top:1px solid var(--line);font-size:12px}.grid{grid-template-columns:1fr;gap:14px}.chart-panel{grid-row:1;grid-column:1}.chart-frame{height:510px;min-height:350px}.chart-controls{gap:10px;padding:12px}.chart-controls h3{font-size:20px}.chart-footer{font-size:9px;padding:9px 12px}#positionEntry{grid-column:1;grid-row:2;padding:18px;gap:0}#positionEntry>.field{width:130px}.vertical-prices{grid-template-columns:1fr;gap:8px}.price-field{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px}.price-label{width:35%;font-size:10px}.price-field input{width:65%;text-align:right;margin:0;font-size:22px}.desk-sidebar{grid-column:1;grid-row:3;position:static}.desk-sidebar #checklist{max-height:none;padding:20px}#checks{max-height:none;min-height:0}.check strong{font-size:14px}.check span{font-size:12px}#risk{grid-column:1;grid-row:4;padding:18px}.panel{padding:18px}.position-summary{font-size:11px;gap:17px;flex-wrap:wrap}.size-table .lot-value{font-size:20px}td{padding:13px 10px}.journal-cards{grid-template-columns:1fr}.journal{padding:18px}.journal .panel-title{align-items:start;gap:18px}.backup-actions{gap:14px}.record-gallery{min-height:180px}.record-image img{height:230px}.record-actions{gap:16px}.cards{grid-template-columns:1fr}.metric{font-size:29px}.insights{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.insight{padding:18px}.strategy-steps{grid-template-columns:1fr;gap:18px}.strategy-panel>summary{font-size:14px;flex-wrap:wrap}.profile-limit{flex-direction:column;align-items:start;gap:14px}.account-settings{padding:18px}.user-profile-grid{grid-template-columns:1fr}.user-links{flex-wrap:wrap}.entry-section .inputs{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.inputs{gap:13px 12px}.dialog-actions{flex-wrap:wrap}dialog{padding:22px 18px}.modal-intro h3{font-size:24px}.detail-heading{flex-wrap:wrap}.detail-photos{grid-template-columns:1fr}.details-grid>div{font-size:12px;gap:12px;grid-template-columns:minmax(110px,40%) minmax(0,1fr)}.screenshot-grid{grid-template-columns:1fr}.screenshot-card img{height:260px}.paste-zone{padding:24px 12px}.paste-zone span{font-size:11px}.lightbox-head{flex-wrap:wrap}footer{flex-direction:column;gap:7px;line-height:1.6}}
@media(max-width:400px){.header-user{gap:4px}.theme-toggle,.running-badge{padding:5px 6px}.user-chip{padding:4px}.mobile-brand{gap:6px;font-size:17px}.terminal-mark{width:27px;height:27px}.entry-section .inputs{grid-template-columns:1fr}.setup-status{font-size:8px}.setup-tab{padding:6px}.timeframes{gap:1px}.timeframes button{padding:6px 7px}.heading .primary{max-width:110px}.record-actions{gap:14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Session lamps follow the clock, independently of the timing test bypass. */
.session-light .dot{background:#808080;box-shadow:none}.session-light.open{color:#83efaf}.session-light.open .dot{background:#72ffac;box-shadow:0 0 7px #72ffac80}html[data-theme="light"] .session-light.open{color:#207a44}html[data-theme="light"] .session-light.open .dot{background:#26b963;box-shadow:0 0 6px #26b96350}
@media(min-width:761px){#overview .heading{margin:18px 0 13px}#overview .heading .label{display:none}.chart-frame{height:calc(100dvh - 370px);min-height:260px;max-height:900px;resize:none}.desk-sidebar{position:static}.desk-sidebar #checklist{height:calc(100dvh - 265px);min-height:365px;max-height:1005px}#checks{min-height:90px}.chart-panel{min-width:0}.tradingview-widget-container{height:100%;width:100%}}
@media(max-height:700px) and (min-width:761px){.topbar{height:60px}.workspace-status{padding:8px 0}#overview .heading{margin:12px 0 10px}#overview .heading p{display:none}.setup-workspaces{margin-bottom:12px}.chart-frame{height:calc(100dvh - 305px);min-height:230px}.desk-sidebar #checklist{height:calc(100dvh - 200px);min-height:330px}.desk-sidebar #checklist{padding:16px}.daily-control{padding:8px 0;margin:0 0 8px}.entry-gate{margin-top:10px;padding-top:10px}.entry-gate p{margin-bottom:8px}.status{margin-top:8px}}

.entry-readiness{padding:14px 16px;border:1px solid var(--line);border-radius:6px;background:var(--surface-alt);margin-bottom:20px}.entry-readiness p{margin:0 0 10px;font-size:12px}.entry-readiness-actions{display:flex;gap:20px;flex-wrap:wrap}.entry-readiness .error{color:var(--red)}.entry-readiness .success-note{color:var(--green)}#tradeForm>#entryError{padding:10px 0;margin:0 0 16px}.daily-control{align-items:center;gap:10px}#resetDaily{font-size:11px;white-space:nowrap}

#tradeForm>#entryError{padding:12px 14px;border:1px solid var(--red);border-radius:6px;background:var(--surface-alt);margin:16px 0 0;color:var(--red);font-size:13px}#tradeForm>#entryError:empty{display:none}

.mobile-brand{min-width:170px}.brand-logo{display:block;width:170px;height:29px;object-fit:contain}.brand-logo-light{display:none}html[data-theme="light"] .brand-logo-dark{display:none}html[data-theme="light"] .brand-logo-light{display:block}@media(max-width:960px){.mobile-brand{min-width:145px}.brand-logo{width:145px;height:25px}}@media(max-width:400px){.mobile-brand{min-width:125px}.brand-logo{width:125px;height:22px}}

.brand-logo{height:41px;object-fit:contain}.mobile-brand{overflow:visible}@media(max-width:960px){.brand-logo{height:35px}}@media(max-width:400px){.brand-logo{height:30px}}

/* One planning row below the chart: prices left, per-account lots right. */
.trade-plan-row{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.35fr);gap:16px;align-items:start}.desk-sidebar{grid-row:1}.trade-plan-row #positionEntry{grid-column:1;grid-row:1;grid-template-columns:1fr;padding:20px}.trade-plan-row #positionEntry>.field{width:130px;margin-bottom:13px}.trade-plan-row .vertical-prices{grid-column:1;grid-template-columns:1fr;gap:8px}.trade-plan-row .price-field{display:flex;align-items:center;gap:16px;padding:11px 13px}.trade-plan-row .price-label{width:36%;flex-shrink:0}.trade-plan-row .price-field input{margin:0;text-align:right;min-width:0;width:64%;font-size:22px}.trade-plan-row #risk{grid-column:2;grid-row:1;padding:20px}.trade-plan-row #risk .panel-title{flex-wrap:wrap}.trade-plan-row .position-summary{flex-wrap:wrap;gap:15px;font-size:11px}.trade-plan-row .size-table th{padding:11px 9px;font-size:9px}.trade-plan-row .size-table td{padding:14px 9px;font-size:12px}.trade-plan-row .size-table .lot-value{font-size:21px}@media(max-width:1000px){.trade-plan-row{grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:12px}.trade-plan-row #positionEntry,.trade-plan-row #risk{padding:17px}.trade-plan-row .price-field{padding:10px}.trade-plan-row .price-field input{font-size:19px}}@media(max-width:760px){.trade-plan-row{grid-row:3;grid-template-columns:1fr;gap:14px}.desk-sidebar{grid-row:2}.trade-plan-row #positionEntry{grid-row:1;grid-column:1}.trade-plan-row #risk{grid-row:2;grid-column:1}.trade-plan-row .price-field input{font-size:23px}}
.trade-plan-row{margin-top:16px}

/* Separate each journal action into a visible click target. */
#journalTable .journal-actions-cell{white-space:normal;min-width:258px;width:270px;padding:10px 12px;vertical-align:middle}#journalTable .journal-actions-cell>button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 10px;margin:3px 6px 3px 0;border:1px solid var(--line);border-radius:5px;background:var(--surface-alt);color:var(--ink);font-size:12px;line-height:1.3;white-space:nowrap}#journalTable .journal-actions-cell>button:hover{background:var(--hover);border-color:var(--muted);color:var(--bright)}#journalTable .journal-actions-cell>.remove{color:var(--red);border-color:var(--line)}#journalTable .journal-actions-cell>.remove:hover{border-color:var(--red);color:var(--red)}#journalTable th:last-child{min-width:258px;padding-left:12px}

.details-group-title{grid-column:1/-1;font-size:14px;font-weight:600;color:var(--bright);margin:26px 0 7px;padding-bottom:10px;border-bottom:1px solid var(--line)}.details-group-title:first-child{margin-top:0}.details-grid>div>span{font-size:12px}.detail-photos{margin:22px 0 26px}.detail-photos:empty{display:none}.detail-photos>.text-button{min-height:100px;border:1px dashed var(--line);border-radius:6px;background:var(--surface-alt)}

/* Compact desk chrome and selectable journal density. */
#overview .heading{margin:10px 0 10px;gap:12px}#overview .heading h1{font-size:20px}#overview .heading p{display:none}.workspace-status{padding:6px 0}.setup-workspaces{grid-template-columns:repeat(3,minmax(190px,260px));gap:6px;margin-bottom:10px}.trade-card{min-height:32px}.setup-tab{padding:5px 9px}.trade-card>select{min-height:32px;padding:4px 8px;width:115px}.journal-view-choice{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}.journal-view-choice select{margin:0;width:auto;min-height:34px;font-size:13px;padding:6px 9px}.journal-cards.compact-view{grid-template-columns:1fr;gap:8px}.compact-view .journal-record{display:grid;grid-template-columns:minmax(200px,1fr) minmax(220px,1fr);align-items:center}.compact-view .journal-record-heading{padding:10px 14px 0}.compact-view .journal-record-heading h3{font-size:16px;margin:3px 0}.compact-view .record-summary{grid-column:1;margin:4px 14px 10px}.compact-view .record-gallery{display:none}.compact-view .record-actions{grid-column:2;grid-row:1/3;border-top:0;padding:10px 14px;gap:12px}.record-gallery:has(.record-empty-image){min-height:48px}.record-empty-image{height:48px}.trade-plan-row #positionEntry{padding:15px}.trade-plan-row .price-help{margin:5px 0 10px}.trade-plan-row #positionEntry>.field{margin-bottom:9px}.trade-plan-row .price-field{padding:8px 11px}.trade-plan-row .price-field input{font-size:20px;min-height:29px}#positionError:empty{display:none}#positionError{line-height:1.5;font-size:13px}.brand-logo{object-fit:contain}@media(max-width:760px){.setup-workspaces{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-view .journal-record{grid-template-columns:1fr}.compact-view .record-actions{grid-column:1;grid-row:auto;border-top:1px solid var(--line)}.journal-view-tools{flex-wrap:wrap}.trade-card>select{width:100%}}
/* Mobile containment: shrink native date controls and grid children, not text. */
main,.grid,.trade-plan-row,.panel,.desk-sidebar,.inputs,.field,.vertical-prices,.price-field,.trade-card{min-width:0;max-width:100%}.field input,.field select,.field textarea{min-width:0;max-width:100%;width:100%;box-sizing:border-box}input[type=date],input[type=time]{appearance:none;-webkit-appearance:none;display:block;min-width:0;width:100%}input::-webkit-date-and-time-value{text-align:left;min-width:0}.trade-plan-row .price-label{width:auto;flex:0 0 34%}.trade-plan-row .price-field input{width:0;flex:1 1 0;min-width:0}.setup-tab{position:relative;flex-wrap:wrap;gap:4px 8px}.setup-tab.ready{background:var(--green-bg);box-shadow:inset 0 0 0 1px var(--green-line)}.setup-tab.ready .setup-status{display:inline-flex;padding:3px 7px;border:1px solid var(--green-line);border-radius:4px;font:600 11px 'Inter',sans-serif;color:var(--green);background:var(--surface)}.setup-tab.ready .setup-name{color:var(--green)}.setup-tab.ready .setup-progress{display:block;position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--line)}.setup-progress>span{display:block;height:100%;background:var(--green)}
@media(max-width:760px){dialog{width:calc(100% - 24px);max-width:calc(100% - 24px);max-height:calc(100dvh - 32px);margin:auto;padding:20px 16px;overflow-y:auto;overflow-x:hidden}dialog form,fieldset,dialog .field{min-width:0;max-width:100%}.entry-section .inputs,.inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.trade-plan-row{width:100%;grid-template-columns:minmax(0,1fr)}.trade-plan-row #positionEntry,.trade-plan-row #risk{width:100%;min-width:0}.panel-title{flex-wrap:wrap;gap:8px}.panel-title h3{overflow-wrap:anywhere}.chart-controls,.chart-footer,.topbar,.session-strip{min-width:0;flex-wrap:wrap}.check-footer{flex-wrap:wrap;gap:8px}.setup-tab{justify-content:flex-start;min-height:46px}.setup-status{font-size:11px}.setup-tab.ready .setup-status{font-size:10px;padding:2px 5px}.trade-card>select{min-width:0;width:100%}.table-scroll{max-width:100%;min-width:0}.detail-photos{grid-template-columns:minmax(0,1fr)}.screenshot-grid{grid-template-columns:minmax(0,1fr)}.view-switch{max-width:100%;gap:16px}}
@media(max-width:480px){.entry-section .inputs,dialog .inputs{grid-template-columns:minmax(0,1fr)}dialog .wide{grid-column:1}.trade-plan-row .price-label{flex-basis:33%;font-size:10px}.trade-plan-row .price-field{gap:8px}.trade-plan-row .price-field input{font-size:18px}.header-user{flex-wrap:wrap}.setup-tab.ready .setup-status{white-space:normal}.dialog-actions>button{min-height:42px}}

/* Trading typography: crisp labels, stable price figures, readable mobile forms. */
body{font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:0;line-height:1.55;font-optical-sizing:auto}h1,h2,h3,h4{font-family:'Inter',system-ui,sans-serif;letter-spacing:-.025em;font-weight:600;line-height:1.3}.field{font-size:13px;line-height:1.5}.field input,.field select,.field textarea{font-size:14px;line-height:1.5}.check strong{font-weight:600;letter-spacing:-.01em}.check span,.small{line-height:1.6}.setup-name{font-weight:700;letter-spacing:.02em}.setup-status,.size-table td,.price-field input,.position-summary,.metric{font-variant-numeric:tabular-nums lining-nums}.price-field input{font-family:var(--mono)}button{font-weight:500}.label,.price-label{letter-spacing:.06em}table{font-variant-numeric:tabular-nums}th{font-weight:600;letter-spacing:.04em}@media(max-width:760px){.field{font-size:13px}.field input,.field select,.field textarea{font-size:16px}.check strong{font-size:14px}.check span{font-size:12px}.small{font-size:12px}.setup-status{font-size:11px}.setup-name{font-size:11px}}

/* Shared navigation becomes a desktop rail and a mobile bottom bar. */
.page-navigation{position:fixed;left:0;top:0;bottom:0;width:88px;display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:88px 9px 16px;border-right:1px solid var(--line);background:var(--surface);z-index:30}.page-nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:65px;padding:10px 5px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:11px}.page-nav-item svg{width:21px;height:21px}.page-nav-item:hover{color:var(--bright);background:var(--hover)}.page-nav-item.active{color:var(--green);background:var(--green-bg);box-shadow:inset 3px 0 var(--green)}main{max-width:1800px;margin-left:88px;margin-right:auto}.topbar{height:66px}.top-market{min-width:0;border-left:1px solid var(--line);padding-left:20px}.top-market .label{font-size:9px;letter-spacing:.08em}.top-market strong{font-size:15px;color:var(--bright);font-weight:600}.header-user{margin-left:auto}.mobile-entry-action{display:none}#profileLink{font-size:11px;padding:10px 5px}.page-navigation button:focus-visible{outline:2px solid var(--accent);outline-offset:0}
@media(min-width:1800px){main{margin-right:auto}}@media(max-width:960px) and (min-width:761px){.topbar{gap:12px}.top-market{padding-left:12px}.brand-logo{max-width:140px}.clock{display:none}.theme-toggle{font-size:11px}.page-navigation{width:76px;padding-left:6px;padding-right:6px}main{margin-left:76px}}
@media(max-width:760px){main{margin:0;width:100%;padding-bottom:calc(152px + env(safe-area-inset-bottom,0px))}.page-navigation{top:auto;bottom:0;left:0;right:0;width:100%;height:calc(62px + env(safe-area-inset-bottom,0px));flex-direction:row;gap:0;padding:3px 8px calc(3px + env(safe-area-inset-bottom,0px));border-right:0;border-top:1px solid var(--line);background:var(--surface)}.page-nav-item,#profileLink{flex:1;min-width:0;min-height:54px;padding:5px 3px;gap:4px;font-size:11px;border-radius:6px}.page-nav-item svg{width:20px;height:20px}.page-nav-item.active{box-shadow:inset 0 2px var(--green)}.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 10px;padding:12px 0;min-height:0;height:auto}.mobile-brand{grid-column:1;grid-row:1}.header-user{grid-column:2;grid-row:1;gap:6px;flex-wrap:nowrap;margin:0}.header-user .theme-toggle{font-size:0;width:30px;height:30px;padding:0}.header-user .theme-toggle::after{content:'◐';font-size:19px}.header-user .running-badge{display:none}.header-user #userShortName{display:none}.user-chip{padding:4px;min-height:31px}.top-market{grid-row:2;grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:0;border:0}.top-market strong{font-size:14px}.top-market .label{font-size:9px}.mobile-entry-action{display:block;position:fixed;left:12px;right:12px;bottom:calc(72px + env(safe-area-inset-bottom,0px));z-index:29}.mobile-entry-action button{width:100%;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;border:1px solid var(--green-line);background:var(--green);color:var(--bg);box-shadow:0 4px 16px rgba(0,0,0,.2);font-weight:600;font-size:15px}.mobile-entry-action button span:last-child{font-size:12px}.mobile-entry-action button.ready{border-color:var(--green);box-shadow:0 4px 18px rgba(0,0,0,.25)}#newTrade{display:none}.workspace-status{margin-top:0}.brand-logo{max-width:140px}dialog{z-index:60}}

html[data-theme="light"] .mobile-entry-action button{color:#ffffff}

/* Confirmation state is consistent for every entry action. */
#mobileEnterTrade,#enterTrade,#newTrade{background:var(--hover);border-color:var(--line);color:var(--ink)}#mobileEnterTrade.confirmations-complete,#enterTrade.confirmations-complete,#newTrade.confirmations-complete{background:var(--green);border-color:var(--green-line);color:var(--bg)}html[data-theme="light"] #mobileEnterTrade{color:var(--ink)}html[data-theme="light"] #mobileEnterTrade.confirmations-complete,html[data-theme="light"] #enterTrade.confirmations-complete,html[data-theme="light"] #newTrade.confirmations-complete{color:#ffffff}

.cloud-status{font-size:11px;color:var(--muted);max-width:180px;line-height:1.4}.cloud-status.sync-error{color:var(--red)}#retryCloudSync{font-size:18px;padding:2px 5px}@media(max-width:760px){.cloud-status{display:none}.cloud-status.sync-error{display:block;position:fixed;top:0;left:0;right:0;max-width:none;padding:6px 12px;background:var(--surface);z-index:40}#retryCloudSync{min-height:30px}}
/* Sync messages stay in normal page flow and never cover navigation. */
#cloudStatus.cloud-status.sync-error{position:static!important;inset:auto!important;background:transparent!important;padding:0!important;max-width:110px!important;cursor:pointer;z-index:auto!important}
.cloud-sync-notice{display:flex;align-items:center;gap:12px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--red);font-size:12px;overflow-wrap:anywhere}
.cloud-sync-notice[hidden]{display:none!important}.cloud-sync-notice>span{flex:1;min-width:0}.cloud-sync-actions{display:flex;gap:6px;flex-wrap:wrap}.cloud-sync-actions button{min-height:44px;padding:8px 12px;border:1px solid var(--line);background:var(--bg);color:var(--ink)}
@media(max-width:760px){#cloudStatus.cloud-status.sync-error{display:none!important}.cloud-sync-notice{flex-direction:column;align-items:stretch}.cloud-sync-actions button:last-child{margin-left:auto;min-width:44px}}

/* Confirmation values are part of the setup, beside their explicit ticks. */
.check>div{flex:1;min-width:0}.confirmation-value{margin-top:8px!important;min-height:38px!important;font-size:12px!important;padding:7px 9px!important;background:var(--bg)!important}.check.confirmed .confirmation-value{border-color:var(--green-line)}.confirmation-review-note{font-size:11px;line-height:1.6;color:var(--muted);padding:12px 0;border-bottom:1px solid var(--line)}#checklist .check:nth-child(10){margin-top:12px;border-top:1px solid var(--line)}#checks{min-height:180px}#checklist .check strong{font-size:12px}.cloud-sync-notice{width:100%}.detail-image{min-width:0}@media(max-width:760px){.confirmation-value{font-size:16px!important;min-height:44px!important}.confirmation-review-note{font-size:12px}}

.setup-condition-note{display:block;font-size:11px;line-height:1.5;margin-top:7px;color:var(--muted)}.condition-balanced .setup-condition-note{color:var(--green)}.check.condition-caution{border-color:#b8872f!important;background:rgba(190,137,43,.09)!important}.condition-caution strong,.condition-caution .setup-condition-note{color:#d8a954!important}.check.condition-blocked{border-color:var(--red)!important;background:rgba(209,75,75,.08)!important}.condition-blocked .setup-condition-note{color:var(--red)}.news-strip{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);padding:12px 15px;margin:12px 0 20px;font-size:12px}.news-strip>div{flex:1;min-width:0}.news-strip strong{font-weight:600}.news-strip .small{margin-top:3px;font-size:11px}.news-strip>a{white-space:nowrap}.news-dot{width:8px;height:8px;background:var(--muted);border-radius:50%;flex-shrink:0}.news-alert{border-color:var(--red);background:rgba(209,75,75,.08)}.news-alert strong,.news-alert .small{color:var(--red)}.news-alert .news-dot{background:var(--red)}.news-unknown strong{color:#d8a954}.news-unknown .news-dot{background:#d8a954}@media(max-width:760px){.news-strip{align-items:flex-start;padding:10px;gap:8px}.news-dot{margin-top:6px}.news-strip>a{font-size:10px}.news-strip .small{overflow-wrap:anywhere}}

/* Tradezaga · a compact, modern trading workspace. */
:root{--bg:#090d17;--surface:#111827;--surface-alt:#0e1522;--hover:#1a263c;--ink:#c8d4e6;--bright:#eff6ff;--muted:#8393ad;--line:#243149;--accent:#55dfcf;--green:#55dfaf;--green-bg:#102c29;--green-line:#286052;--red:#ff7b87;--radius:14px}
html[data-theme="light"]{--bg:#eef3f9;--surface:#fff;--surface-alt:#f6f8fd;--hover:#e5edf8;--ink:#35445b;--bright:#15213a;--muted:#72829b;--line:#d9e3ef;--accent:#138b83;--green:#16815b;--green-bg:#e6f7ef;--green-line:#add8c2;--red:#c74357}
body{font-family:'Manrope',system-ui,sans-serif;background:radial-gradient(ellipse at 60% -20%,rgba(54,100,180,.13),transparent 52%),var(--bg)}h1,h2,h3,.setup-symbol,.stat-value{font-family:'Space Grotesk','Manrope',sans-serif}h1{letter-spacing:-1.5px}.topbar{border-bottom-color:var(--line)}.panel{box-shadow:0 8px 28px rgba(0,0,0,.06)}.primary{background:var(--accent)!important;border-color:var(--accent)!important;color:var(--bg)!important;font-weight:800}.primary:disabled{opacity:.35}.page-nav-item.active{color:var(--accent)}.setup-tab.active{border-color:var(--accent)!important;background:linear-gradient(135deg,rgba(73,222,201,.08),rgba(113,130,253,.06))!important}.trade-card{border-radius:12px}.entry-section{border-radius:12px}.check{padding:10px 2px!important;gap:10px!important}.check>div>span:not(.setup-condition-note){display:none!important}.check strong{font-size:11px!important;letter-spacing:.1px}.check input[type="checkbox"]{margin-top:22px!important;border-radius:5px;accent-color:var(--accent)}.check.confirmed{padding:10px 9px!important;margin:3px 0!important}.confirmation-value{margin-top:5px!important;min-height:34px!important;padding:5px 9px!important;border-radius:8px!important;font-size:12px!important}.setup-condition-note{font-size:10px!important;margin-top:4px!important}.confirmation-review-note{font-size:10px;padding:7px 0}.desk-sidebar #checklist{padding:16px}.entry-gate p{display:none}.entry-gate{padding-top:10px;margin-top:10px}.daily-control{padding:8px 0;margin:3px 0 7px}.news-strip{border-radius:12px}.test-mode-bar{border-radius:20px;font-size:10px!important}.sound-toggle{border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--accent);font:10px 'Space Grotesk',sans-serif;min-height:34px;padding:6px 9px}.sound-toggle[aria-pressed="false"]{color:var(--muted)}.session-strip{border-color:var(--line)}select:focus-visible,input:focus-visible{outline-color:var(--accent)}
@media(max-width:760px){.confirmation-value{font-size:16px!important;min-height:40px!important}.check strong{font-size:12px!important}.sound-toggle{min-width:42px;min-height:36px;font-size:9px}.check input[type="checkbox"]{margin-top:24px!important}.desk-sidebar #checklist{padding:16px}.header-user{gap:7px}}

.setup-workspaces[data-count="1"]{grid-template-columns:1fr}.setup-workspaces[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:760px){.setup-workspaces[data-count="2"]{grid-template-columns:1fr}}
.review-toolbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:18px;margin-bottom:12px}.review-toolbar>.field{min-width:140px;flex:1}.review-date-nav{display:flex;align-items:center;gap:6px;flex:1.5}.review-date-nav input{margin:0;min-width:135px}.review-date-nav button{min-width:36px;min-height:42px;background:var(--surface-alt);color:var(--ink);border:1px solid var(--line)}.review-custom{display:flex;gap:10px}.review-estimate-toggle{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.review-estimate-toggle input{width:15px;min-height:15px;margin:0;accent-color:var(--accent)}.review-caption{display:flex;justify-content:space-between;gap:15px;font-size:11px;color:var(--muted);margin:12px 0 20px}.review-tabs{display:flex;gap:5px;overflow:auto;border-bottom:1px solid var(--line);margin-bottom:20px}.review-tabs button{border:0;border-radius:7px 7px 0 0;padding:12px 20px;color:var(--muted);background:transparent;white-space:nowrap;font-size:12px;font-weight:700}.review-tabs button.active{background:var(--hover);color:var(--accent);box-shadow:inset 0 -2px var(--accent)}.review-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:20px}.review-metrics .card{padding:20px 16px}.review-metrics span{font-size:10px;color:var(--muted);display:block;margin-bottom:10px}.review-metrics strong{font:28px 'Space Grotesk',sans-serif;display:block;letter-spacing:-1px}.review-metrics small{font-size:9px;line-height:1.5;color:var(--muted);display:block;margin-top:9px}.review-two-col{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px}.review-two-col>.panel{min-width:0}.review-equity svg{width:100%;display:block;height:auto;min-height:170px}.review-equity text{fill:var(--muted);font-size:11px;font-family:var(--mono)}.equity-grid{stroke:var(--line);stroke-width:1}.equity-path{stroke:var(--accent);fill:none;stroke-width:2.5;stroke-linejoin:round}.review-chart-foot{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px;margin-top:10px}.review-priority{display:flex;flex-direction:column;gap:4px;padding:12px 0;border-bottom:1px solid var(--line)}.review-priority span{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted)}.review-priority strong{font:16px 'Space Grotesk',sans-serif}.review-priority small{font-size:11px;color:var(--muted)}.review-periods{margin-top:16px}.review-periods select,.review-two-col select,[data-review-pane="breakdowns"] select{width:auto;min-width:140px;margin:0}.analytics-table{width:100%;font-size:12px}.analytics-table th{font-size:10px;color:var(--muted);font-weight:600;text-transform:uppercase}.analytics-table td,.analytics-table th{padding:13px 12px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}.analytics-table tbody tr:hover{background:var(--surface-alt)}.sample-note{font-size:9px;color:var(--muted)}.analytics-no-data{padding:45px 15px;text-align:center;color:var(--muted);font-size:12px}.review-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.calendar-weekday{padding:8px;font-size:10px;color:var(--muted)}.calendar-day{min-height:100px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface-alt);display:flex;flex-direction:column;justify-content:space-between;gap:8px}.calendar-day>span{font-size:11px;color:var(--muted)}.calendar-day strong{font:18px 'Space Grotesk',sans-serif}.calendar-day small{font-size:10px;color:var(--muted)}.calendar-day.positive,.month-tile.positive{background:var(--green-bg);border-color:var(--green-line)}.calendar-day.negative,.month-tile.negative{background:rgba(209,75,75,.07);border-color:rgba(209,75,75,.3)}.review-month-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.month-tile{display:flex;flex-direction:column;gap:10px;align-items:start;padding:20px;border:1px solid var(--line);background:var(--surface-alt);border-radius:12px;color:var(--ink)}.month-tile strong{font:24px 'Space Grotesk',sans-serif}.month-tile small{color:var(--muted)}.mistake-bar-row{margin:18px 0}.mistake-bar-row>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:12px}.mistake-bar-row span{color:var(--muted);font-size:11px}.mistake-track{height:5px;border-radius:4px;background:var(--line);margin-top:9px;overflow:hidden}.mistake-track>span{display:block;height:100%;background:var(--red);border-radius:4px}.review-note{display:flex;flex-direction:column;gap:7px;text-align:left;width:100%;padding:14px 0;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink)}.review-note strong{font-size:12px;font-weight:600}.review-note span{font-size:12px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.review-empty{margin:12px 0 18px}.review-empty p{margin:8px 0 0}
@media(max-width:1200px){.review-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.review-two-col{grid-template-columns:1fr}}
@media(max-width:760px){.review-toolbar{padding:14px;gap:10px}.review-toolbar>.field{min-width:120px}.review-date-nav{flex-basis:100%;order:3}.review-custom{flex-basis:100%;order:4}.review-estimate-toggle{order:5}.review-caption{flex-direction:column;gap:5px}.review-tabs button{padding:11px 14px}.review-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.review-metrics .card{padding:16px 12px}.review-metrics strong{font-size:25px}.review-chart-foot{flex-direction:column}.review-calendar-grid{gap:4px}.calendar-day{min-height:80px;padding:6px;border-radius:6px}.calendar-day strong{font-size:12px;letter-spacing:-.5px}.calendar-day small{font-size:8px}.calendar-weekday{padding:4px;font-size:9px}.review-month-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.month-tile{padding:15px}.mistake-bar-row>div:first-child{flex-direction:column;gap:5px}.analytics-table td,.analytics-table th{padding:11px 9px}}
:root,html[data-theme="light"]{--accent:#17A57F;--green:#17A57F;--green-bg:rgba(23,165,127,.10);--green-line:rgba(23,165,127,.4)}.primary{color:#fff!important}.setup-tab.active{background:rgba(23,165,127,.06)!important}.equity-path{stroke:#17A57F}.final-chart-section{margin-top:20px}.final-chart-section legend{display:flex;justify-content:space-between;gap:10px}.final-chart-section .field{margin-top:14px}.final-chart-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.final-chart-preview img{width:100%;max-height:140px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
/* Keep the market workspace above the fold. */
@media(min-width:1001px){main{padding-left:20px;padding-right:20px}.topbar{height:56px;min-height:56px;padding:0;gap:16px;flex-wrap:nowrap}.mobile-brand img{max-height:30px;width:auto}.header-user{gap:8px}.workspace-status{padding:6px 0;gap:12px;flex-wrap:nowrap;min-height:40px}.session-strip{gap:10px;flex-wrap:nowrap}.session-selection select{min-height:30px;margin:0;padding:4px 8px;font-size:11px;width:108px}.test-mode-bar{width:auto;white-space:nowrap;font-size:10px}.test-mode-bar .text-button{padding:4px 7px}.session-light{font-size:10px}.session-info{display:none}.news-strip{margin:6px 0 8px;padding:7px 11px;gap:9px;min-height:34px;border-radius:8px}.news-strip>div{display:flex;align-items:center;gap:12px;overflow:hidden}.news-strip strong{font-size:11px;white-space:nowrap}.news-strip .small{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}.news-strip>a{font-size:10px}#overview .heading{margin:10px 0 9px;gap:12px;min-height:32px}#overview .heading .label,#overview .heading p{display:none}#overview .heading h1{font-size:21px;letter-spacing:-.6px}#overview .heading .primary{min-height:34px;padding:7px 14px;font-size:11px}.setup-workspaces{display:flex;gap:7px;margin-bottom:10px;overflow-x:auto;padding-bottom:1px}.trade-card{flex:0 0 230px;min-height:34px;border-radius:8px}.trade-card>select{min-height:32px;width:112px;padding:5px 7px;font-size:11px}.setup-tab{padding:6px 9px}.setup-name,.setup-status{font-size:9px}.setup-draft-note{display:none}.grid{gap:12px;grid-template-columns:minmax(0,1fr) 320px}.chart-controls{padding:10px 14px;min-height:51px}.chart-controls h3{font-size:18px}.chart-footer{padding:7px 14px;min-height:30px}.chart-frame{height:calc(100dvh - 302px);min-height:220px;max-height:none;resize:none}.desk-sidebar{position:static;grid-column:2;grid-row:1}.desk-sidebar #checklist{height:calc(100dvh - 220px);max-height:calc(100dvh - 220px);min-height:302px;padding:14px}.desk-sidebar #checklist>.small{display:none}.desk-sidebar #checks{min-height:90px;overflow-y:auto}.desk-sidebar .panel-title{margin-bottom:8px}.desk-sidebar .panel-title h3{font-size:15px}.desk-sidebar .confirmation-review-note{display:none}.desk-sidebar .daily-control{padding:7px 0;margin:0 0 5px}.desk-sidebar .daily-control .small{display:none}.desk-sidebar .progress{margin-top:8px}.desk-sidebar .status{margin-top:7px}.desk-sidebar .entry-gate{margin-top:8px;padding-top:8px}.desk-sidebar .entry-gate button{padding:8px;min-height:36px;font-size:12px}}
@media(max-width:1000px){.topbar{min-height:52px;padding:8px 0;gap:8px}.workspace-status{padding:6px 0;gap:6px}.news-strip{margin:6px 0 10px;padding:8px 10px}.news-strip .small{font-size:10px}#overview .heading{margin:12px 0 8px}#overview .heading .label,#overview .heading p{display:none}#overview .heading h1{font-size:21px}.setup-draft-note{display:none}.setup-workspaces{margin-bottom:9px}}
@media(max-width:760px){.news-strip>div{overflow:hidden}.news-strip .small{max-height:32px;overflow:auto}.news-strip strong{font-size:11px}.workspace-status{row-gap:5px}.test-mode-bar{font-size:9px!important}.session-light{font-size:9px}.session-info{display:none}.top-market .label{display:none}.heading .primary{font-size:10px;padding:7px 9px}.chart-controls{padding:10px}.chart-frame{height:55dvh;min-height:260px}.desk-sidebar #checklist{max-height:none}.header-user .cloud-status{display:none}}

@media(min-width:1001px){.chart-frame{height:calc(100dvh - 360px)}.desk-sidebar #checklist{height:calc(100dvh - 280px);max-height:calc(100dvh - 280px)}}

/* Reference direction: rounded typography, neutral surfaces and soft capsules. */
:root{--bg:#101112;--surface:#191b1d;--surface-alt:#151718;--hover:#25282a;--ink:#d4d8d7;--bright:#f5f7f6;--muted:#909996;--line:#2e3431;--accent:#17A57F;--green:#17A57F;--radius:18px;--green-bg:rgba(23,165,127,.10);--green-line:rgba(23,165,127,.4)}
html[data-theme="light"]{--bg:#f5f5f5;--surface:#fff;--surface-alt:#f7f7f7;--hover:#ededed;--ink:#414745;--bright:#171b19;--muted:#818884;--line:#e6eae8;--accent:#17A57F;--green:#17A57F;--green-bg:#edf8f4;--green-line:#c0e8da;--red:#c75059}
body{background:var(--bg);font-family:'Manrope',system-ui,sans-serif;letter-spacing:-.2px}h1,h2,h3,h4,.setup-name,.metric,.review-metrics strong,.review-priority strong,.month-tile strong{font-family:'Nunito Sans','Manrope',system-ui,sans-serif!important;font-weight:900!important;letter-spacing:-.6px}.heading h1{font-size:34px;letter-spacing:-1.1px}h3{font-size:18px}.panel,.card{border:1px solid var(--line);border-radius:18px;box-shadow:0 3px 15px rgba(0,0,0,.025)}.primary,.secondary,.theme-toggle,.running-badge,.user-chip,.sound-toggle{border-radius:999px!important}.primary{background:#17A57F!important;border-color:#17A57F!important;color:#fff!important;font-weight:800;box-shadow:none}.primary:hover{filter:brightness(.96)}.secondary,.theme-toggle{background:var(--surface-alt);border-color:var(--line);color:var(--ink)}.topbar{border-bottom-color:var(--line)}.top-market{border-left-color:var(--line)}.label{font-weight:700;letter-spacing:.7px}.page-navigation{border-radius:999px!important;border:1px solid var(--line)!important;background:var(--surface)!important;box-shadow:0 5px 25px rgba(0,0,0,.06)!important}.page-nav-item{border-radius:999px!important}.page-nav-item.active{background:var(--green-bg)!important;color:#17A57F!important}.trade-card{background:var(--surface)!important;border:1px solid var(--line);border-radius:11px!important}.trade-card:has(.active){border-color:#17A57F;background:var(--green-bg)!important}.setup-tab.active{background:transparent!important}.news-strip{background:var(--surface);border-radius:12px;border-color:var(--line)}.news-alert{background:rgba(199,80,89,.05);border-color:rgba(199,80,89,.3)}.news-unknown strong{color:#9a6a24}.news-unknown .news-dot{background:#b98131}.check{border-bottom-color:var(--line)}.check.confirmed{background:var(--green-bg)!important;border-color:var(--green-line)!important;border-radius:10px}.check strong{font-weight:700}.confirmation-value,input,select{border-radius:10px!important;background:var(--surface-alt)!important;border-color:var(--line)!important}.confirmation-value{font-weight:600}.condition-caution strong,.condition-caution .setup-condition-note{color:#9a6a24!important}.check.condition-caution{border-color:rgba(154,106,36,.3)!important;background:rgba(154,106,36,.05)!important}.pill{border-radius:999px;font-size:8px;font-weight:600;padding:4px 8px}.chart-controls,.chart-footer{background:var(--surface)}.chart-frame{border-radius:0}.chart-panel{border-radius:18px;overflow:hidden}.dialog-wide,dialog{border-radius:20px!important;border:1px solid var(--line)!important;box-shadow:0 28px 85px rgba(0,0,0,.18)!important}.dialog-actions{gap:10px}.dialog-actions button{border-radius:999px!important;padding:10px 20px}.entry-section,.entry-readiness{border-radius:13px}.paste-zone{border-radius:13px!important;background:var(--surface-alt);border-color:var(--line)}.paste-zone strong{font-family:'Nunito Sans',sans-serif;font-weight:800}.review-tabs{border:0;background:var(--surface);padding:5px;border-radius:999px;width:max-content;max-width:100%}.review-tabs button{border-radius:999px;padding:9px 18px}.review-tabs button.active{background:var(--green-bg);color:#17A57F;box-shadow:none}.review-metrics .card{border-radius:16px}.review-metrics strong{font-size:32px!important;letter-spacing:-1px}.review-toolbar{background:var(--surface);border-radius:16px}.review-date-nav button{border-radius:999px;min-width:35px}.review-two-col>.panel,.review-periods{border-radius:18px}.analytics-table th{font-weight:700;color:var(--muted)}.equity-grid{opacity:.65}.review-priority strong{font-size:18px}.calendar-day,.month-tile{border-radius:12px!important}.review-caption{font-size:10px}.sound-toggle{background:var(--surface);color:#17A57F}.text-button{font-weight:600}.header-user .user-chip{padding:7px 12px}.workspace-status{border-color:var(--line)}.test-mode-bar .text-button{border-radius:999px;background:var(--surface)}html[data-theme="light"] .news-alert strong,html[data-theme="light"] .news-alert .small{color:#b3444f}.strategy-panel{background:var(--surface)}
@media(min-width:1001px){#overview .heading h1{font-size:23px}.topbar{height:56px}.chart-controls h3{font-size:19px}.desk-sidebar .panel-title h3{font-size:16px}}
@media(max-width:760px){.heading h1{font-size:28px}.review-tabs{width:100%;border-radius:13px}.review-tabs button{font-size:11px;padding:9px 12px}.review-metrics strong{font-size:27px!important}.panel{border-radius:15px}#overview .heading h1{font-size:22px}.review-priority strong{font-size:16px}.news-unknown strong{color:#9a6a24}}

/* Trading workspace: precise typography, floating rail and quiet surfaces. */
:root{--bg:#0b1112;--surface:#121b1d;--surface-alt:#0f1719;--hover:#1c292a;--line:#253335;--bright:#edf5f2;--ink:#c2ceca;--muted:#869b93;--radius:14px}
html[data-theme="light"]{--bg:#f1f5f4;--surface:#ffffff;--surface-alt:#f7faf9;--hover:#edf3f0;--line:#e0e9e5;--bright:#132620;--ink:#42564d;--muted:#778d82}
h1,h2,h3,h4,.setup-name,.metric,.review-metrics strong,.review-priority strong,.month-tile strong{font-family:'Manrope',system-ui,sans-serif!important;font-weight:800!important;letter-spacing:-.65px}
body{background:radial-gradient(ellipse at 100% 0,rgba(23,165,127,.055),transparent 45%),var(--bg)}
.panel,.card{border-radius:14px;box-shadow:0 4px 18px rgba(13,38,28,.025)}
.page-navigation{border-radius:20px!important;box-shadow:0 12px 35px rgba(13,38,28,.045)!important}
.page-nav-item,.page-nav-item.active{border-radius:12px!important;box-shadow:none!important;border:1px solid transparent!important;position:relative}
.page-nav-item.active{background:var(--green-bg)!important;border-color:var(--green-line)!important;color:#17A57F!important}
.page-nav-item::before,.page-nav-item::after{content:none!important}
.page-nav-item svg{stroke-width:1.7}.page-nav-item span{font-weight:650}
.primary,.secondary{border-radius:10px!important}.primary{box-shadow:0 3px 9px rgba(23,165,127,.13)!important}
.trade-card{border-radius:10px!important}.trade-card:has(.active){box-shadow:0 0 0 1px rgba(23,165,127,.09)}
.chart-panel{border-radius:14px}.chart-controls h3{font-family:'Manrope',sans-serif;font-weight:800;letter-spacing:-.5px}
.review-tabs{border-radius:12px;border:1px solid var(--line);background:var(--surface-alt)}.review-tabs button{border-radius:8px}
.review-toolbar,.review-metrics .card,.review-two-col>.panel,.review-periods{border-radius:14px}
.review-metrics strong{font-variant-numeric:tabular-nums}.review-metrics .card{border-top:2px solid var(--green-line)}
.confirmation-value,input,select{border-radius:8px!important}.check.confirmed{border-radius:8px}.check strong{letter-spacing:0!important}
.dialog-wide,dialog{border-radius:16px!important}.dialog-actions button{border-radius:10px!important}
.supplementary-notes{margin-top:18px}.reference-notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.reference-note{border:1px solid var(--line);border-radius:10px;background:var(--surface-alt);overflow:hidden;align-self:start}.reference-note summary{padding:15px 17px;cursor:pointer;font-weight:700;color:var(--bright)}.reference-note[open] summary{border-bottom:1px solid var(--line);color:#17A57F}.reference-note-body{padding:4px 17px 17px;max-height:520px;overflow:auto}.reference-note-body p{font-size:12px;line-height:1.8;white-space:pre-wrap}.reference-note-body img{max-width:100%;max-height:250px;object-fit:contain;border:1px solid var(--line);border-radius:8px;margin:8px 0;background:#fff}
@media(min-width:761px){.page-navigation{left:10px;top:12px;bottom:12px;width:76px;padding:54px 7px 16px;gap:10px}main{margin-left:96px}.page-nav-item{min-height:62px}}
@media(max-width:760px){.page-navigation{left:8px;right:8px;bottom:8px;width:calc(100% - 16px);border-radius:16px!important;padding:5px 5px calc(5px + env(safe-area-inset-bottom,0px));height:calc(66px + env(safe-area-inset-bottom,0px));gap:4px}.page-nav-item,#profileLink{min-height:54px;border-radius:10px!important}.reference-notes-grid{grid-template-columns:1fr}.review-tabs{border-radius:10px}.panel{border-radius:12px}.heading h1{font-size:26px}}
.chart-footer{flex-wrap:wrap;gap:8px}.chart-size-control{display:flex;align-items:center;gap:8px;width:100%;font-size:10px}.chart-size-control label{white-space:nowrap}.chart-size-control input[type="range"]{width:110px;min-height:24px;height:24px;padding:0;border:0!important;accent-color:#17A57F;background:transparent!important}.chart-size-control output{min-width:40px;font-variant-numeric:tabular-nums}.chart-size-control button{font-size:10px;padding:3px 7px;min-height:24px}.chart-size-control button:disabled{opacity:.5;cursor:default}
@media(min-width:1001px){html.custom-chart-height .desk-sidebar #checklist{height:var(--custom-checklist-height);max-height:var(--custom-checklist-height)}}
/* Compact command bar: one header row and one session/news rail. */
.header-status-rail{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);margin-bottom:8px;min-width:0}.header-status-rail .workspace-status{flex:1;min-width:0;border:0;margin:0}.header-status-rail .news-strip{flex:0 1 420px;margin:0;border:0;background:transparent;padding:5px 0;min-height:30px;gap:7px}.header-status-rail .news-strip>div{min-width:0}.header-status-rail .news-strip strong{font-size:10px}.header-status-rail .news-strip .small{display:none}.header-status-rail .news-strip>a{font-size:10px;white-space:nowrap}.header-status-rail .news-alert{flex-basis:550px}.header-status-rail .news-alert .small{display:block;max-width:330px;font-size:9px}.header-status-rail .news-alert{color:var(--red)}.mt5-panel{margin-bottom:18px}.mt5-accounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.mt5-account-card{background:var(--surface-alt);border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:9px}.mt5-account-card>strong{color:var(--bright)}.mt5-account-metrics{display:flex;flex-wrap:wrap;gap:10px;font-size:12px}.mt5-card-actions{display:flex;gap:8px;flex-wrap:wrap}.mt5-card-actions button{font-size:11px;padding:7px 11px}.mt5-setup,.mt5-ledger details,.mt5-command-history{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.mt5-setup summary,.mt5-ledger summary,.mt5-command-history summary{cursor:pointer;font-size:12px;font-weight:700;color:var(--bright)}.mt5-setup li{font-size:12px;line-height:1.8;margin:9px 0}.mt5-setup a{color:#17A57F}.mt5-preview{border:1px solid var(--green-line);background:var(--green-bg);padding:15px;border-radius:10px;margin-top:18px;font-size:12px}.mt5-preview p{margin:8px 0}.mt5-ledger table,.mt5-command-history table{font-size:11px}.mt5-ledger h4{font-size:12px;margin:20px 0 10px}
@media(min-width:1001px){.topbar{height:46px;min-height:46px;gap:16px}.brand-logo{width:135px;max-width:135px}.top-market{display:flex;align-items:center;padding-left:16px}.top-market>.label{display:none}.top-market strong{font-size:13px}.header-user{gap:8px}.header-user .cloud-status{font-size:0;width:7px;padding:0}.header-user .cloud-status::before{content:'';display:block;width:6px;height:6px;border-radius:50%;background:#17A57F}.header-user .cloud-status.sync-error::before{background:var(--red)}.header-user .theme-toggle{font-size:0;width:30px;min-height:30px;padding:0}.header-user .theme-toggle::after{content:'◐';font-size:17px}.header-user .sound-toggle{min-height:30px;font-size:10px;padding:5px 8px}.header-user .running-badge,.header-user .user-chip{min-height:30px;font-size:10px;padding:5px 9px}.header-user .clock{font-size:0;gap:5px}.header-user .clock time{font-size:10px}.workspace-status{min-height:32px;padding:4px 0;gap:14px}.session-selection .small{display:none}.session-selection{gap:6px;padding-left:10px}.session-selection select{min-height:26px;width:100px;font-size:10px}.session-selection .text-button{font-size:9px;padding:3px}.test-mode-bar{font-size:9px}.session-light{font-size:9px}.header-status-rail .news-strip{flex-basis:330px}.header-status-rail .news-alert{flex-basis:460px}}
@media(min-width:1001px) and (max-width:1400px){.header-user #userShortName{display:none}.session-lights{gap:8px}.header-status-rail{gap:8px}.header-status-rail .news-strip{flex-basis:280px}.header-status-rail .news-alert .small{display:none}}
@media(max-width:1000px){.header-status-rail{flex-wrap:wrap;gap:0}.header-status-rail .workspace-status{width:100%;flex-basis:100%;min-height:30px}.header-status-rail .news-strip{flex:1 1 100%;min-height:26px;padding:3px 0;margin:0}.header-status-rail .news-alert .small{max-width:100%;font-size:9px}.header-status-rail .news-strip>div{flex:1}.session-selection .small{display:none}.session-selection select{min-height:28px}.news-strip strong{font-size:10px}.mt5-accounts{grid-template-columns:1fr}}
.mt5-journal-link{display:flex;align-items:flex-start;gap:11px;margin:14px 0;padding:13px 15px;border:1px solid rgba(23,165,127,.28);border-radius:12px;background:rgba(23,165,127,.055);cursor:pointer}.mt5-journal-link input{margin:3px 0 0;accent-color:#17A57F}.mt5-journal-link span{display:grid;gap:3px}.mt5-journal-link strong{font-size:13px;font-weight:650}.mt5-journal-link small{font-size:12px;color:var(--muted,#718078)}
.desk-mt5-link{margin:10px 0;padding:10px 12px}.desk-mt5-link strong{font-size:12px}.desk-mt5-link small{font-size:11px}
.mt5-order-summary{margin:0 0 16px;padding:12px 14px;border:1px solid rgba(23,165,127,.32);border-radius:10px;background:rgba(23,165,127,.08);color:var(--green,#17A57F);font:600 13px 'Space Grotesk',sans-serif;letter-spacing:.3px}.mt5-order-gate{margin:0 0 12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-alt)}.mt5-order-gate button{min-height:36px}.mt5-order-gate p{margin:8px 0 0;line-height:1.5}

/* Vector theme icons keep a fixed optical center at every header breakpoint. */
.header-user .theme-toggle{display:inline-flex;align-items:center;justify-content:center;align-self:center;flex:0 0 34px;width:34px;height:34px;min-width:34px;min-height:34px;max-height:34px;padding:0;line-height:0;vertical-align:middle;border-radius:50%!important;color:var(--ink)}
.header-user .theme-toggle::after{content:none;display:none}
.theme-toggle .theme-icon{display:block;width:18px;height:18px;flex:none;pointer-events:none}
.theme-toggle .theme-icon-moon{display:none}
[data-theme="light"] .theme-toggle .theme-icon-sun{display:none}
[data-theme="light"] .theme-toggle .theme-icon-moon{display:block}
.header-user .theme-toggle:hover{color:#17A57F;border-color:#17A57F}
.header-user .theme-toggle:focus-visible{outline:2px solid #17A57F;outline-offset:3px}

/* Compact account choice and a native checkbox with explicit dimensions. */
.mt5-journal-link{align-items:center;gap:10px;padding:11px 12px}
.mt5-journal-link input[type="checkbox"]{appearance:auto;flex:0 0 18px;width:18px;height:18px;min-width:18px;min-height:18px;max-width:18px;max-height:18px;margin:0;padding:0;align-self:center;border-radius:4px}
.mt5-journal-link>span{min-width:0;flex:1;line-height:1.45}
.mt5-journal-link strong{font-size:12px}.mt5-journal-link small{font-size:11px}
.desk-broker{padding:14px 0;border-top:1px solid var(--line);margin-top:12px}.desk-broker .field{margin:0}.desk-broker p{margin:8px 0;line-height:1.5}.desk-broker-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.desk-broker-actions button{font-size:11px;padding:7px 9px}.desk-broker select{width:100%;min-width:0}
.mt5-risk-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}.mt5-risk-settings label{display:grid;gap:5px;font-size:11px;color:var(--muted)}.mt5-risk-settings input{width:100%;min-width:0;padding:9px;border-radius:8px;font-size:13px}.mt5-risk-settings button,.mt5-risk-settings .risk-feedback{grid-column:1/-1}.mt5-risk-settings .risk-feedback{font-size:12px}.mt5-order-gate{margin-top:12px}.mt5-order-summary{line-height:1.5}
#mt5OrderForm .inputs{align-items:start;gap:14px}#mt5OrderForm .field{margin:0;min-width:0}#mt5OrderForm .dialog-actions{display:flex;flex-wrap:wrap;gap:8px}#mt5OrderForm .dialog-actions .primary{flex:1}#deskMT5Quote{overflow-wrap:anywhere;color:var(--ink)}
@media(max-width:480px){#mt5OrderForm .inputs{grid-template-columns:1fr}#mt5OrderForm .dialog-actions button{flex:1 1 auto}.mt5-risk-settings{grid-template-columns:1fr}}

.mt5-setup-dialog{width:min(640px,calc(100vw - 24px));max-height:90dvh;overflow:auto}.mt5-setup-steps{padding-left:24px;display:grid;gap:16px}.mt5-setup-steps li::marker{color:#17A57F;font-weight:700}.mt5-setup-steps p{font-size:13px;line-height:1.6;margin:8px 0}.mt5-setup-url{display:flex;gap:8px}.mt5-setup-url input{min-width:0;flex:1;font-size:12px}.mt5-setup-dialog details{margin-top:16px;font-size:13px;line-height:1.6}

.session-setting input[type="checkbox"]{appearance:auto;width:18px;height:18px;min-height:18px;margin:0 8px 0 0;vertical-align:middle;accent-color:#17A57F}#personalNotesList details{padding:12px 0;border-bottom:1px solid #8883}#personalNoteBody{width:100%;min-height:160px}
.chart-controls{flex-wrap:wrap;justify-content:flex-start;gap:10px}.chart-controls .chart-provider{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);margin-left:auto}.chart-provider select{width:auto;min-width:112px;padding:7px 9px}.chart-controls .timeframes{order:10;flex:0 0 100%;justify-content:flex-start;margin-left:0;overflow-x:auto}.chart-controls .timeframes button{flex:0 0 auto}@media(max-width:600px){.chart-controls .chart-provider{margin-left:0}.chart-controls .timeframes{flex-wrap:nowrap}}
.auto-session-status{font-size:10px;color:var(--green);max-width:230px;line-height:1.4}.mobile-running-trades{display:none}#entrySession[hidden]{display:none!important}@media(max-width:760px){.top-market .mobile-running-trades{display:flex;margin-left:auto;min-height:32px;padding:5px 10px;font-size:11px}.session-strip{flex-wrap:wrap}.session-lights{flex-wrap:wrap;gap:8px}.session-selection{border-left:0;padding-left:0}.auto-session-status{max-width:100%;font-size:10px}}

.manual-demo-note{padding:7px 18px;border-bottom:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:11px;text-align:center}.paste-zone strong{font-size:14px}@media(max-width:760px){.manual-demo-note{font-size:9px;padding:6px 10px}}
/* Clearer journal controls, genuine session states and edge resizing. */
.workspace-status{gap:20px;align-items:center;padding:13px 0;flex-wrap:wrap}.session-lights{gap:12px;flex-wrap:wrap}.session-light{font-size:13px!important;line-height:1.6;color:#aab2bf!important;letter-spacing:.01em;padding:6px 9px;background:var(--surface);border:1px solid var(--line);border-radius:7px}.session-light .dot{background:#808080!important;margin-right:6px}.session-light.open{color:var(--green)!important;border-color:var(--green)!important}.session-light.open .dot{background:var(--green)!important}.test-mode-bar,.test-mode-bar.enforced{color:#aab2bf!important;background:var(--surface)!important;border-color:var(--line)!important;font-size:12px!important}.test-mode-bar .text-button{color:var(--ink)!important;background:var(--surface)!important;font-size:12px!important}.auto-session-status{color:#aab2bf!important;font-size:13px!important;font-weight:600}.auto-session-status.active-session{color:var(--green)!important}.session-selection{gap:12px;flex-wrap:wrap}.session-selection .text-button{font-size:13px!important;padding:8px 10px!important}.news-strip{padding:13px 16px!important;min-width:0}.news-strip strong{font-size:14px!important;line-height:1.55!important}.news-strip .small{font-size:12px!important;line-height:1.8!important;white-space:normal!important;overflow-wrap:anywhere}.news-strip.news-alert{border-color:#b28d54!important}.news-strip.news-alert strong{color:#e4bc7f!important}.trade-draft-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.trade-draft-toolbar>span{font-size:10px;letter-spacing:.1em;color:var(--muted)}.trade-draft-toolbar>div{display:flex;gap:10px;align-items:center}.trade-draft-toolbar button{min-height:34px;font-size:12px}.draft-pair-search{font-size:11px!important;margin-top:4px}.pair-search-button{width:100%;margin:13px 0 4px;padding:11px;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--ink);font-size:13px;font-weight:600;text-align:left}.pair-search-result{display:block;width:100%;text-align:left;padding:13px;border:0;border-bottom:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:14px}.pair-search-result:hover{background:var(--green-bg);color:var(--green)}#pairSearchInput{width:100%;min-height:44px;margin:15px 0}#pairSearchResults{max-height:55vh;overflow:auto}.checklist-editor-row{padding:16px;margin:14px 0;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.checklist-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.checklist-editor-head>div{display:flex;gap:6px}.checklist-editor-head button{font-size:12px;min-height:32px}.checklist-editor-head label{font-size:13px}.checklist-editor-row .field{font-size:13px}.checklist-editor-row textarea{width:100%}.check textarea.confirmation-value{width:100%;min-height:58px;font-size:13px}.chart-frame{position:relative}.chart-edge{position:absolute;z-index:4;touch-action:none;background:transparent}.chart-edge:hover,.chart-edge:focus-visible{background:var(--green);opacity:.75}.chart-edge-right{right:-4px;top:0;bottom:0;width:8px;cursor:ew-resize}.chart-edge-bottom{left:0;right:0;bottom:-4px;height:8px;cursor:ns-resize}.chart-frame{overflow:visible!important}.chart-frame #chartHost{overflow:hidden;border-radius:10px}.chart-size-control{display:none!important}.pattern-insights{margin:18px 0;padding:20px}.pattern-insights p{font-size:12px;line-height:1.7}.pattern-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.pattern-summary>span{font-size:12px;color:var(--muted)}.pattern-summary strong{display:block;font-size:20px;color:var(--ink);margin-top:5px}.saved-confirmations{padding:15px 0;border-top:1px solid var(--line)}.saved-confirmations p{font-size:13px}.screenshot-text-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}#screenshotScanText{width:100%;margin:12px 0}#screenshotScanChoice{max-width:100%;margin:10px 0}.news-strip .news-dot{flex-shrink:0}
@media(max-width:760px){.workspace-status{gap:10px;padding:10px 0}.session-strip{display:flex;flex-direction:column;align-items:flex-start!important;gap:9px}.session-lights{gap:5px}.session-light{font-size:11px!important;padding:5px 6px;white-space:normal}.session-selection{border-left:0!important;padding-left:0!important}.auto-session-status{font-size:12px!important}.test-mode-bar{font-size:11px!important;white-space:normal}.test-mode-bar .text-button{font-size:11px!important}.news-strip strong{font-size:13px!important}.news-strip .small{font-size:11px!important}.trade-draft-toolbar{gap:6px}.trade-draft-toolbar>span{font-size:9px}.trade-draft-toolbar button{font-size:11px}.checklist-editor-head{align-items:flex-start;flex-wrap:wrap}.checklist-editor-head>div{margin-left:auto}.pattern-summary{grid-template-columns:1fr;gap:10px}.pattern-summary strong{display:inline;font-size:16px;margin-left:8px}.chart-edge-right{display:none}.chart-edge-bottom{height:12px;bottom:-6px}.pattern-insights{padding:15px}.checklist-editor-row{padding:13px}}
/* Compact overview: available sessions, one news headline, simple drafts. */
.workspace-status{padding:6px 0!important;gap:8px!important;min-height:35px}.session-strip{display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important}.session-lights[hidden]{display:none!important}.session-selection{border:0!important;padding:0!important;gap:4px!important}.compact-session-summary{border:0;background:var(--surface);color:var(--muted);font-size:12px;padding:6px 9px;border-radius:6px;white-space:nowrap;min-height:29px}.compact-session-summary.open{color:var(--green)}.session-selection #editSessions{padding:4px 7px!important;font-size:13px!important}.session-info{display:none!important}#sessionDialog .test-mode-bar{margin-bottom:14px;padding:8px;border-radius:7px;white-space:normal}.news-strip{padding:7px 12px!important;display:flex!important;align-items:center!important;gap:9px!important;min-height:36px}.news-strip>div{display:flex;align-items:center;gap:9px;min-width:0;flex:1}.news-strip #newsTitle{font-size:12px!important;line-height:1.4!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}.news-strip #newsEvents{display:none!important}.news-strip>a{font-size:10px!important;white-space:nowrap}.news-strip #compactNewsDetails{font-size:11px;padding:3px 6px;flex-shrink:0}.trade-draft-toolbar{margin:10px 0 7px}.trade-draft-toolbar button{min-height:30px;font-size:11px}.setup-workspaces{display:flex!important;gap:7px!important;overflow-x:auto;padding:1px 1px 5px!important;scrollbar-width:thin}.trade-card{flex:1 0 120px!important;min-width:120px!important;max-width:220px;display:block!important;background:none!important;border:0!important;padding:0!important}.trade-card .setup-tab{display:flex!important;flex-direction:column!important;align-items:stretch!important;text-align:left!important;gap:5px!important;width:100%!important;min-height:59px!important;padding:9px 11px!important;border:1px solid var(--line)!important;border-radius:8px!important;background:var(--surface)!important;color:var(--ink)!important;box-shadow:none!important}.trade-card .setup-tab.active{border-color:var(--ink)!important;background:var(--surface)!important;color:var(--ink)!important}.simple-trade-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.simple-trade-top strong{font-size:11px;font-weight:600}.simple-trade-count{font-size:10px;color:var(--muted)}.simple-trade-pair{font-size:12px;font-weight:600;color:var(--ink);white-space:nowrap}.trade-card .setup-tab.is-complete{background:var(--green-bg)!important;border-color:var(--green-line)!important}.trade-card .setup-tab.is-complete .simple-trade-count,.trade-card .setup-tab.is-complete .simple-trade-pair{color:var(--green)}.trade-card .setup-tab.is-complete.active{border-color:var(--green)!important}#compactNewsContent{line-height:1.8;white-space:pre-wrap}#compactNewsDialog>a{display:inline-block;margin:15px}#autoSessionStatus[hidden]{display:none!important}
@media(max-width:760px){.workspace-status{padding:4px 0!important;gap:5px!important}.compact-session-summary{font-size:11px;padding:4px 7px}.news-strip{padding:6px 9px!important;gap:6px!important}.news-strip #newsTitle{font-size:11px!important}.news-strip>a{display:none!important}.news-strip #compactNewsDetails{font-size:10px}.news-strip>div{gap:5px}.trade-draft-toolbar>span{font-size:8px}.trade-draft-toolbar>div{gap:5px}.trade-draft-toolbar button{font-size:10px;padding:5px 7px;min-height:29px}.trade-card{flex:0 0 120px!important;max-width:150px}.trade-card .setup-tab{min-height:54px!important;padding:7px 9px!important;gap:4px!important}.simple-trade-pair{font-size:11px}.simple-trade-top strong{font-size:10px}}

/* Single header row: brand left, session/news and utility controls right. */
.single-row-header{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px!important;min-height:52px;height:auto!important}.single-row-header .mobile-brand{flex:0 0 auto;margin-right:auto!important}.single-row-header .top-market{display:none!important}.single-row-header .header-status-rail{display:flex!important;align-items:center!important;gap:9px!important;flex:0 1 440px!important;min-width:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}.single-row-header .workspace-status{flex:0 0 auto!important;min-height:0!important;border:0!important;padding:0!important;margin:0!important;gap:3px!important}.single-row-header .session-strip{gap:2px!important}.single-row-header .compact-session-summary{font-size:11px;max-width:220px;overflow:hidden;text-overflow:ellipsis}.single-row-header .news-strip{flex:1!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;min-height:0!important;gap:5px!important}.single-row-header .news-strip #newsTitle{font-size:11px!important;max-width:180px!important}.single-row-header .news-strip>a{display:none!important}.single-row-header .news-strip #compactNewsDetails{font-size:10px;padding:4px}.single-row-header .header-user{flex:0 0 auto!important;margin-left:0!important;gap:7px!important;min-width:0}.single-row-header .clock{display:none!important}.single-row-header .brand-logo{max-width:140px;height:auto;object-fit:contain}.single-row-header .news-dot{flex-shrink:0}.single-row-header .top-market [hidden]{display:none!important}
@media(max-width:1100px){.single-row-header{gap:8px!important}.single-row-header .header-status-rail{flex-basis:320px!important}.single-row-header .news-strip #newsTitle{max-width:100px!important}.single-row-header .header-user{gap:5px!important}.single-row-header .user-chip #userShortName{display:none!important}}
@media(max-width:760px){.single-row-header{min-height:48px!important;padding:6px 10px!important;gap:6px!important}.single-row-header .brand-logo{max-width:105px!important}.single-row-header .header-status-rail{flex:1 1 auto!important;justify-content:flex-end;gap:4px!important}.single-row-header .compact-session-summary{font-size:9px!important;padding:4px 5px!important;max-width:125px!important}.single-row-header .session-selection{display:none!important}.single-row-header .news-strip{flex:0 0 auto!important;width:auto!important;gap:2px!important}.single-row-header .news-strip #newsTitle{display:none!important}.single-row-header .news-strip #compactNewsDetails{font-size:0!important;width:25px;height:27px;padding:3px!important}.single-row-header .news-strip #compactNewsDetails:after{content:'▦';font-size:18px}.single-row-header .news-strip .news-dot{width:5px;height:5px}.single-row-header .header-user{gap:4px!important}.single-row-header #soundToggle,.single-row-header #cloudStatus,.single-row-header #retryCloudSync,.single-row-header #activeTradeBadge{display:none!important}.single-row-header #themeToggle{width:26px;height:26px;padding:4px}.single-row-header .user-chip{padding:3px!important;min-width:25px!important}.single-row-header #userShortName{display:none!important}.single-row-header .theme-icon{width:16px;height:16px}}
@media(max-width:380px){.single-row-header{gap:3px!important;padding:6px 7px!important}.single-row-header .brand-logo{max-width:87px!important}.single-row-header .compact-session-summary{max-width:100px!important;font-size:8px!important}.single-row-header .header-user{gap:2px!important}}

.pair-search-button{display:flex;align-items:center;gap:10px}.pair-search-button>strong{margin-left:auto;font-size:13px;color:var(--ink);font-weight:600}.pair-search-button>span:first-child{font-size:12px;color:var(--muted)}#enterTrade:not(.manual-log-ready),#newTrade:not(.manual-log-ready),#mobileEnterTrade:not(.manual-log-ready){background:var(--surface-alt)!important;border-color:var(--line)!important;color:var(--muted)!important;box-shadow:none!important}#enterTrade.manual-log-ready,#newTrade.manual-log-ready,#mobileEnterTrade.manual-log-ready{background:var(--green)!important;border-color:var(--green)!important;color:var(--bg)!important}@media(max-width:760px){.pair-search-button>strong{font-size:13px}}

/* Checklist settings: small checkboxes, tidy fields, fixed actions. */
#checklistSettingsDialog{width:min(840px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:22px;border-radius:15px;background:var(--surface)}#checklistSettingsDialog>.panel-title{position:sticky;top:-22px;z-index:5;background:var(--surface);padding:18px 0 12px;margin-top:-12px;border-bottom:1px solid var(--line)}#checklistSettingsDialog>.panel-title h3{font-size:22px;letter-spacing:-.035em;margin-top:3px}#checklistSettingsDialog>p{font-size:12px;line-height:1.6;max-width:680px}#checklistSettingsDialog>.field{font-size:12px;margin:14px 0}#checklistSettingsDialog>.dialog-actions{position:sticky;bottom:-22px;z-index:5;background:var(--surface);border-top:1px solid var(--line);padding:14px 0;margin-bottom:-15px;gap:8px;justify-content:flex-end;flex-wrap:wrap}#checklistSettingsDialog>.dialog-actions button{min-height:37px;font-size:12px;border-radius:7px;padding:8px 12px}#checklistSettingsDialog #customChecklistStatus{position:relative;font-size:12px}.checklist-editor-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px 14px;padding:14px!important;margin:10px 0!important;border-radius:10px!important;background:var(--surface-alt)!important}.checklist-editor-head{grid-column:1/-1;display:flex;align-items:center!important;gap:10px;padding-bottom:8px;border-bottom:1px solid var(--line)}.checklist-editor-head>label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;margin:0!important;width:auto!important;font-size:12px!important;line-height:1.3!important}.checklist-editor-head input[type=checkbox]{appearance:auto!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;padding:0!important;margin:0!important;display:inline-block!important;accent-color:var(--green);flex:0 0 16px!important;border-radius:3px!important}.checklist-editor-head>div{margin-left:auto;gap:5px}.checklist-editor-head button{min-height:28px!important;font-size:11px!important;padding:4px 8px!important;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font-family:inherit;box-shadow:none}.checklist-editor-head button:disabled{opacity:.35}.checklist-editor-head button[data-rule-action=remove]{color:var(--muted)}.checklist-editor-row>.field{margin:0!important;font-size:11px!important;line-height:1.6}.checklist-editor-row>.field input,.checklist-editor-row>.field select,.checklist-editor-row>.field textarea{min-height:36px!important;padding:8px 10px!important;font-size:12px!important;border-radius:7px!important;width:100%}.checklist-editor-row>.field:nth-of-type(2){grid-column:1/-1;grid-row:3}.checklist-editor-row>.field:last-child{grid-column:1/-1}input[type=checkbox]{accent-color:var(--green)}button,input,select,textarea{font-family:inherit}#sessionDialog input[type=checkbox],.allowed-sessions input[type=checkbox]{width:16px!important;height:16px!important;min-height:16px!important;max-width:16px!important;padding:0!important;margin:0 6px 0 0!important}.panel,.journal-record{border-radius:12px}.panel-title h3{font-weight:650}.field{line-height:1.55}
@media(max-width:760px){#checklistSettingsDialog{width:calc(100vw - 16px);max-height:calc(100dvh - 20px);padding:16px;border-radius:12px}#checklistSettingsDialog>.panel-title{top:-16px;padding:13px 0 10px}#checklistSettingsDialog>.panel-title h3{font-size:20px}#checklistSettingsDialog>.dialog-actions{bottom:-16px;padding:11px 0;margin-bottom:-10px;gap:5px}#checklistSettingsDialog>.dialog-actions button{font-size:10px;padding:7px 9px;min-height:35px}.checklist-editor-row{grid-template-columns:minmax(0,1fr);gap:9px;padding:12px!important}.checklist-editor-row>.field{grid-column:1!important;grid-row:auto!important}.checklist-editor-head{flex-wrap:nowrap!important}.checklist-editor-head>div{flex-shrink:0}.checklist-editor-head button{font-size:10px!important;padding:4px 7px!important}.checklist-editor-head>label{font-size:11px!important}}

/* Compact draft controls beside tabs */
.trade-tabs-row{display:flex;align-items:center;gap:8px;margin:12px 0}.trade-tabs-row #setupTabs{display:flex!important;flex:0 1 auto;min-width:0;overflow-x:auto;gap:8px;margin:0;padding:2px}.trade-tabs-row .trade-card{position:relative;flex:0 0 128px}.trade-tabs-row .setup-tab.active{padding-right:24px}.trade-tabs-row .add-manual-trade{flex:0 0 34px;width:34px;height:34px;min-height:34px;padding:0;font-size:23px;line-height:1;border-radius:8px}.trade-tab-close{position:absolute;right:4px;top:5px;width:20px;height:20px;min-height:20px;padding:0;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:16px;line-height:20px}.trade-tab-close:hover,.trade-tab-close:focus-visible{background:var(--surface);color:var(--ink)}.simple-trade-count{font-size:10px!important}.simple-trade-top{min-width:0}@media(max-width:600px){.trade-tabs-row .trade-card{flex-basis:112px}.trade-tabs-row{gap:5px}.trade-tabs-row #setupTabs{gap:5px}}

/* Keep mobile session and calendar together; small icon, generous tap area */
.single-row-header .header-status-rail,.single-row-header .workspace-status,.single-row-header .session-strip,.single-row-header .news-strip>div{flex-wrap:nowrap!important;white-space:nowrap!important}.single-row-header .workspace-status{width:auto!important;max-width:none!important}.single-row-header .header-status-rail{width:auto!important}.single-row-header .session-info,.single-row-header #newsEvents{display:none!important}@media(max-width:760px){.single-row-header .header-status-rail{display:flex!important;flex-direction:row!important;grid-template-columns:none!important}.single-row-header .news-strip>div{display:flex!important;flex-direction:row!important}.trade-tab-close{width:32px;height:40px;min-height:40px;right:0;top:2px;font-size:16px;line-height:40px;touch-action:manipulation}.trade-tabs-row .setup-tab.active{padding-right:30px!important}.single-row-header .compact-session-summary{max-width:112px!important}.single-row-header .brand-logo{max-width:90px!important}}@media(max-width:350px){.single-row-header .brand-logo{max-width:74px!important}.single-row-header .compact-session-summary{max-width:86px!important}}

/* Journal direction and review signals */
.trade-long{color:var(--green)!important}.trade-short,.trade-mistake{color:var(--red)!important}.trade-direction{font-size:inherit;font-weight:inherit;white-space:nowrap}.record-mistake{font-size:12px;font-weight:600;line-height:1.5}.detail-mistake-label{display:inline-block;margin:7px 0 0;font-size:12px;font-weight:600;max-width:100%;overflow-wrap:anywhere}#tradeDetails .trade-mistake{overflow-wrap:anywhere}#journal .remove,#journalCards .record-actions .remove,#journalTable .remove{color:var(--muted)!important;background:transparent!important;border-color:transparent!important}#journal .remove:hover,#journal .remove:focus-visible{color:var(--ink)!important;background:var(--hover)!important}#journal .remove:focus-visible{outline:2px solid var(--muted);outline-offset:3px}@media(max-width:760px){.record-mistake{display:block;margin-top:4px}.detail-mistake-label{font-size:12px}}

/* Interactive journal bubble graph */
.journal-bubble-map{margin-top:14px;border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}.bubble-map-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px;background:var(--surface)}.bubble-map-toolbar>div:first-child{margin-right:auto}.bubble-map-toolbar h3{font-size:17px}.bubble-map-toolbar label{font-size:11px;color:var(--muted);display:block;margin:0}.bubble-map-toolbar select,.bubble-map-toolbar input{width:160px;margin-top:4px;min-height:34px;padding:6px 9px;font-size:12px}.map-search-label input{width:200px}.map-tools{display:flex;gap:5px}.map-tools button{min-height:34px;padding:5px 10px;background:var(--surface-alt);border:1px solid var(--line);color:var(--ink)}.bubble-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px}.bubble-map-stage{min-width:0;position:relative;background-color:var(--bg);background-image:radial-gradient(var(--line) .7px,transparent .7px);background-size:22px 22px}.bubble-map-stage svg{display:block;width:100%;height:580px;touch-action:none;cursor:grab}.bubble-map-stage svg:active{cursor:grabbing}.map-links line{stroke:var(--muted);stroke-width:.7;opacity:.35;pointer-events:none}.map-node{cursor:pointer;outline:none}.map-node circle{fill:var(--surface);stroke:var(--muted);stroke-width:1.2}.map-node text{fill:var(--ink);font-family:inherit;font-size:10px;font-weight:600;pointer-events:none}.map-node .map-node-count{font-size:10px;fill:var(--muted)}.map-root circle{fill:var(--surface-alt);stroke:var(--accent);stroke-width:2}.map-group circle{fill:var(--surface-alt);stroke:var(--muted);stroke-width:1.8}.map-group text{font-size:10px}.map-trade.trade-long circle{stroke:var(--green);fill:var(--green-bg)}.map-trade.trade-short circle{stroke:var(--red)}.map-trade.map-has-mistake circle{stroke-dasharray:3 2;stroke-width:2.5;stroke:var(--red)}.map-trade.selected circle,.map-node:focus-visible circle{stroke:var(--bright)!important;stroke-width:3;filter:drop-shadow(0 0 4px var(--muted))}.map-legend{display:flex;gap:12px;flex-wrap:wrap;padding:10px 14px;font-size:11px;color:var(--muted);border-top:1px solid var(--line)}#mapSelection{padding:18px;background:var(--surface);border-left:1px solid var(--line);min-width:0;max-height:630px;overflow:auto}#mapSelection h3{margin:10px 0;font-size:20px}#mapSelection p{font-size:12px;line-height:1.6;margin:13px 0}.map-direction{font-size:13px;font-weight:700}.map-result{display:block;font-size:23px;margin:12px 0}.map-photos{margin-top:16px;display:grid;gap:10px}.map-photo{padding:0;display:block;width:100%;background:var(--surface-alt);border:1px solid var(--line);border-radius:7px;overflow:hidden}.map-photo img{width:100%;height:140px;object-fit:contain;display:block}#mapEmpty{padding:80px 20px;text-align:center;font-size:14px}html[data-theme="light"] .map-trade.trade-short circle{fill:#fcecef}@media(max-width:900px){.bubble-map-layout{grid-template-columns:minmax(0,1fr) 220px}.bubble-map-stage svg{height:480px}}@media(max-width:600px){.bubble-map-layout{grid-template-columns:minmax(0,1fr)}.bubble-map-toolbar{gap:8px;padding:12px}.bubble-map-toolbar>div:first-child{flex:1 0 100%}.bubble-map-toolbar label{flex:1 1 120px}.bubble-map-toolbar select,.bubble-map-toolbar input{width:100%;font-size:13px;min-height:38px}.map-tools{flex:0 0 auto}.bubble-map-stage svg{height:400px}#mapSelection{border-left:0;border-top:1px solid var(--line);max-height:420px}.map-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.map-photo img{height:130px}.map-legend{font-size:10px;gap:8px}}
/* Smooth graph focus and review placement */
.map-node{cursor:grab}.map-node:active{cursor:grabbing}.map-node circle{transition:stroke .18s ease,stroke-width .18s ease,filter .18s ease}.map-node:hover circle{stroke-width:2.5;filter:drop-shadow(0 0 3px var(--line))}.map-links line{opacity:.24}#reviewView .journal-bubble-map{margin-top:14px}.review-tabs [data-review-view="map"]{white-space:nowrap}.bubble-map-stage svg{overscroll-behavior:contain}.map-legend span:last-child{flex:1 1 190px}@media(prefers-reduced-motion:reduce){.map-node circle{transition:none}}
/* Compact desk header and trade tabs */
#overview>.heading{display:none!important}#newTrade{display:none!important}.trade-tabs-row{margin:8px 0 10px!important}.trade-tabs-row .trade-card .setup-tab{min-height:42px!important;height:auto!important;padding:5px 10px!important;gap:2px!important}.trade-tabs-row .simple-trade-top{line-height:1.2!important}.trade-tabs-row .simple-trade-pair{font-size:11px!important;line-height:1.25!important}.trade-tabs-row .simple-trade-count{font-size:9px!important}.trade-tabs-row .setup-tab.active{padding-right:26px!important}@media(max-width:760px){.trade-tabs-row .trade-card .setup-tab{min-height:44px!important;padding:5px 9px!important}.trade-tabs-row .setup-tab.active{padding-right:32px!important}.trade-tab-close{top:2px!important}.trade-tabs-row{margin:7px 0 9px!important}}

/* Balanced coral red for loss and mistake states. */
:root,html[data-theme="dark"]{--red:#E15D68;--red-bg:#E15D680d;--red-line:#E15D6845}
html[data-theme="light"]{--red:#E15D68;--red-bg:#E15D680a;--red-line:#E15D6833}
