/* A smaller Overview introduction; every main action stays directly accessible. */
body #page-overview .overview-compact-heading{align-items:center;padding:20px 0 12px;gap:16px}
.overview-heading-copy{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 14px;min-width:0}
body #page-overview .overview-compact-heading h1{order:-1;font-size:30px;line-height:1.15;margin:0}
body #page-overview .overview-greeting{font-size:14px;margin:0;line-height:1.5}
body #page-overview .heading-actions{gap:7px;flex-wrap:wrap}
body #page-overview .heading-actions .button{min-height:36px;padding:8px 12px;font-size:13px;flex:0 1 auto}
.overview-filter-area{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 12px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}
body .overview-filter-area .overview-filter-scope{flex:1 1 145px;min-width:0;font-size:12px;line-height:1.4;margin:0;overflow-wrap:anywhere}
body .overview-filter-area .filter-row{flex:2 1 550px;margin:0;padding:0;border:0;border-radius:0;gap:9px;background:transparent;justify-content:space-between}
body .overview-filter-area .filter-right{gap:6px}
body .overview-filter-area :is(.segmented button,.filter-right select){font-size:12px;min-height:32px;padding:6px 9px}
body .overview-filter-area .filter-right select{max-width:150px}
body #overview-layout-toolbar{margin:8px 0;gap:9px;flex-wrap:wrap;align-items:center;padding:0;min-height:38px}
body #overview-layout-toolbar>.daily-checkin{display:flex;flex:1 1 280px;flex-direction:row;gap:12px;background:transparent;padding:0;margin:0;border-radius:0;align-items:center;justify-content:flex-start;text-align:left}
body #overview-layout-toolbar .daily-checkin-copy{gap:0;min-width:0}
body #overview-layout-toolbar .daily-checkin-copy strong{font-size:13px;line-height:1.4}
body #overview-layout-toolbar .daily-checkin-copy small{font-size:10px;line-height:1.5;color:var(--canvas-muted,var(--muted))}
body #overview-layout-toolbar .daily-checkin-actions{gap:6px;width:auto}
body #overview-layout-toolbar [data-checkin-log]{display:none}
body #overview-layout-toolbar .daily-checkin-actions .button{font-size:12px;min-height:30px;padding:6px 9px}
body #overview-layout-toolbar [data-checkin-settings]{width:30px;padding:6px!important}
body #overview-layout-toolbar .overview-layout-caption{gap:6px;margin-left:auto;font-size:11px;color:var(--canvas-muted,var(--muted))}
body #overview-layout-toolbar .overview-layout-caption strong{font-weight:500}
body #overview-customize{min-height:32px;padding:6px 10px;font-size:12px}
body #overview-layout-toolbar.is-arranging{padding:13px 16px;background:var(--surface);border:1px solid var(--line);margin:10px 0}
body #overview-layout-toolbar.is-arranging>.daily-checkin{display:none}
body #loss-limit-alert{font-size:11px;line-height:1.5;padding:6px 10px;margin:0 0 9px;border-radius:10px}
body #loss-limit-alert:not(.limits-ok):not(.near-limit):not(.breached){display:none}
body .rhythm-panel .rhythm-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;box-sizing:border-box;padding:8px;border-radius:12px;line-height:1;font-size:0;overflow:visible}
body .rhythm-panel .rhythm-icon [data-icon],body .rhythm-panel .rhythm-icon .tf-icon{display:block;width:20px;height:20px;margin:0;padding:0;flex:none}
.sidebar{overflow-y:auto}
/* Step-by-step strategy library. */
.strategy-library-workspace{display:grid;grid-template-columns:minmax(230px,.75fr) minmax(0,1.7fr);gap:18px;align-items:start}
.strategy-library-sidebar{padding:18px}.strategy-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--field)}
.strategy-search input{min-width:0;width:100%;border:0;background:transparent;color:var(--ink);font-size:15px;outline:0}
.strategy-count{font-size:12px;line-height:1.5;color:var(--muted);margin:14px 0}
.strategy-library-list{display:grid;align-content:start;gap:7px;max-height:540px;overflow:auto;overscroll-behavior:contain;padding:2px}
.strategy-library-item{display:flex;align-items:center;gap:11px;text-align:left;padding:13px 10px;border:1px solid transparent;border-radius:13px;background:transparent;color:var(--ink);width:100%}
.strategy-library-item>span:first-child{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:11px;background:var(--decor-b);color:var(--accent-ink)}
.strategy-library-item>span:nth-child(2){min-width:0;flex:1}.strategy-library-item strong{display:block;font-size:15px;overflow-wrap:anywhere}.strategy-library-item small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.strategy-library-item.selected{background:var(--accent-soft);border-color:var(--accent)}.strategy-library-item>.tf-icon{width:16px;flex:none}
.strategy-library-detail{padding:26px;min-height:300px}.strategy-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.strategy-detail-heading h2{margin:8px 0;font-size:27px;overflow-wrap:anywhere}.strategy-detail-heading p,.strategy-count,.strategy-detail-footer small{font-size:13px;color:var(--muted);line-height:1.6}.strategy-detail-heading .button{flex:none}
.strategy-guide-summary{white-space:pre-wrap;line-height:1.7;margin:22px 0;color:var(--ink)}
.strategy-step-preview{list-style:none;padding:0;margin:22px 0;counter-reset:strategy-step;display:grid;gap:13px}
.strategy-step-preview li{counter-increment:strategy-step;position:relative;padding:15px 16px 15px 56px;background:var(--soft);border:1px solid var(--line);border-radius:13px;min-width:0;overflow-wrap:anywhere}
.strategy-step-preview li::before{content:counter(strategy-step);position:absolute;left:14px;top:13px;display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--accent-soft);color:var(--accent-ink);font-size:13px;font-weight:700}
.strategy-step-preview strong{font-size:15px;line-height:1.5}.strategy-step-preview p{margin:7px 0 0;white-space:pre-wrap;font-size:14px;line-height:1.7;color:var(--muted)}
.strategy-detail-footer{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding-top:18px;border-top:1px solid var(--line)}.strategy-empty{padding:20px 4px;line-height:1.7;color:var(--muted);font-size:14px}.strategy-welcome{padding:30px 10px;text-align:center}.strategy-welcome>span{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:17px;background:var(--decor-b);color:var(--accent-ink)}.strategy-welcome>span>.tf-icon{width:28px;height:28px}.strategy-welcome p{line-height:1.7;color:var(--muted)}
.strategy-guide-dialog,.trade-time-dialog{position:fixed;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);padding:24px;max-height:calc(100dvh - 32px);overflow:auto}
.strategy-guide-dialog{width:min(700px,calc(100vw - 32px))}.strategy-guide-dialog::backdrop,.trade-time-dialog::backdrop{background:#0c233b75;backdrop-filter:blur(5px)}
.strategy-editor-heading,.time-dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.strategy-editor-heading h2,.time-dialog-heading h2{margin:5px 0 8px;font-size:28px}.strategy-editor-heading p,.time-dialog-heading p{margin:0 0 16px;color:var(--muted);font-size:14px;line-height:1.6}
.strategy-guide-dialog label{display:grid;gap:7px;font-size:14px;margin:15px 0}.strategy-guide-dialog :is(input,textarea){width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:var(--field);color:var(--ink);font-size:16px;line-height:1.5}.strategy-guide-dialog textarea{resize:vertical}
.strategy-guide-steps{display:grid;gap:13px;margin:22px 0 16px}.strategy-step-editor{border:1px solid var(--line);border-radius:15px;padding:15px;background:var(--soft)}.strategy-step-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.strategy-step-heading strong{font-size:14px}.strategy-step-heading>div{display:flex;gap:5px}.strategy-step-heading button{display:grid;place-items:center;width:32px;height:32px;padding:6px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:var(--surface)}.strategy-step-heading button:disabled{opacity:.35;cursor:default}
.strategy-editor-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.strategy-editor-footer small{color:var(--muted);line-height:1.6;font-size:12px;max-width:390px}
.trade-strategy-reference{border:1px solid var(--line);background:var(--soft);padding:13px 15px;border-radius:12px}.trade-strategy-reference[hidden]{display:none!important}.trade-strategy-reference summary{font-size:14px;color:var(--accent-ink);font-weight:600;cursor:pointer}.trade-strategy-reference small{font-size:12px;line-height:1.6;color:var(--muted)}.trade-strategy-reference .strategy-step-preview{margin:13px 0}.trade-strategy-reference .strategy-step-preview li{background:var(--surface)}
/* Scrollable time selection, alongside the browser's ordinary time field. */
.trade-time-field{display:flex;align-items:stretch;min-width:0;width:100%;position:relative;gap:6px}
body #trade-form .trade-time-field input{flex:1;width:0;min-width:0;max-width:100%;font-size:16px}
.trade-time-open{display:grid;place-items:center;flex:none;width:38px;min-height:38px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--accent-soft);color:var(--accent-ink)}.trade-time-open .tf-icon{width:19px;height:19px}
.trade-time-dialog{width:min(430px,calc(100vw - 28px))}.trade-time-dialog output{display:block;text-align:center;font-size:32px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:1px;margin:8px 0 20px}
.time-wheel-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.time-wheel-columns>div>span{display:block;text-align:center;font-size:12px;color:var(--muted);margin-bottom:8px}
.time-wheel{height:190px;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y proximity;border:1px solid var(--line);background:var(--soft);border-radius:14px;padding:6px;scrollbar-width:thin}
.time-wheel button{display:block;width:100%;height:38px;border:0;border-radius:9px;margin:2px 0;background:transparent;color:var(--muted);font-size:19px;scroll-snap-align:center;font-variant-numeric:tabular-nums}.time-wheel button[aria-selected="true"]{background:var(--accent-soft);color:var(--accent-ink);font-weight:700}.time-picker-hint{font-size:12px;line-height:1.6;color:var(--muted);margin:17px 0}.time-picker-actions{display:flex;justify-content:flex-end;gap:7px}
@media(max-width:760px){body #page-overview .overview-compact-heading{padding:18px 0 10px;align-items:flex-start;flex-wrap:wrap;gap:12px}body #page-overview .overview-compact-heading h1{font-size:28px}body #page-overview .heading-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}body #page-overview .heading-actions .button{font-size:12px;padding:8px;min-width:0}body #page-overview #new-trade{grid-column:1/-1;grid-row:1;justify-self:stretch}body .overview-filter-area{gap:8px;padding:10px}.overview-filter-area .overview-filter-scope{flex-basis:100%!important}body .overview-filter-area .filter-row{flex-basis:100%}body .overview-filter-area .filter-right{display:grid;grid-template-columns:85px minmax(0,1fr) minmax(0,1fr);gap:5px;width:100%}body .overview-filter-area .filter-right select{font-size:11px;padding:6px 5px;max-width:none}body .overview-filter-area #style-filter{grid-column:auto}body #overview-layout-toolbar{gap:8px;justify-content:space-between}body #overview-layout-toolbar>.daily-checkin{flex-basis:100%;justify-content:space-between}body #overview-layout-toolbar .overview-layout-caption{margin-left:0}.strategy-library-workspace{grid-template-columns:1fr}.strategy-library-list{max-height:220px}.strategy-library-detail{padding:20px}.strategy-detail-heading{flex-wrap:wrap}.strategy-detail-heading h2{font-size:25px}.strategy-guide-dialog,.trade-time-dialog{padding:20px;border-radius:20px}.strategy-editor-footer{align-items:flex-start;flex-direction:column}.strategy-editor-footer .button{width:100%}.time-wheel{height:170px}}
