:root{color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:#061019;color:#e9f2fb;font:14px/1.45 Inter,system-ui,sans-serif}a{color:#83caff;text-decoration:none}header{height:62px;border-bottom:1px solid #20384b;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;background:#081521;position:sticky;top:0;z-index:5}header b{font-size:15px;letter-spacing:.06em}header span{margin-left:12px;color:#7f9bb0;font-size:12px}main{max-width:1440px;margin:0 auto;padding:26px}.hero,.panel,.stats article{background:#0b1925;border:1px solid #203c50;border-radius:14px}.hero{display:flex;justify-content:space-between;gap:20px;padding:24px;margin-bottom:16px}.hero h1{margin:5px 0;font-size:28px}.eyebrow{color:#48b9ff;font-weight:800;font-size:11px;letter-spacing:.12em}.switchbox{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.green{color:#64e5a2}.amber{color:#ffd06c}button{background:#43a9ff;color:#04111b;border:0;border-radius:8px;padding:10px 14px;font-weight:800;cursor:pointer}.secondary{background:#152b3b;color:#cfe8f8;border:1px solid #31516a}.danger{background:#5b2631;color:#ffdce1}.small,.tiny{padding:6px 9px;font-size:11px}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:16px}.stats article{padding:15px}.stats span,.stats small{display:block;color:#7794a8;font-size:11px}.stats strong{font-size:23px}.grid.two{display:grid;grid-template-columns:1.3fr .7fr;gap:16px}.panel{padding:18px;margin-bottom:16px}.panel-title{display:flex;justify-content:space-between;align-items:center}.panel-title span{color:#7794a8}.candidate{padding:13px;border:1px solid #1c3548;border-radius:10px;margin:9px 0;background:#081722}.cand-head{display:flex;justify-content:space-between}.cand-head strong{font-size:16px}.state{font-size:10px;background:#16314a;padding:4px 7px;border-radius:12px}.gates{display:flex;gap:5px;flex-wrap:wrap;margin:9px 0}.gates span{font-size:10px;padding:4px 7px;border-radius:5px;background:#172532}.pass{color:#66e3a3!important;border:1px solid #245d47}.fail{color:#ff8c9d!important;border:1px solid #63313b}.unknown{color:#a4b8c6!important}.plan{color:#9fb8ca;font-size:12px;margin:7px 0}.cand-actions{display:flex;gap:5px}.order label,.settings label,.loginbox label{display:block;color:#90aabd;margin:10px 0}.order input,.order select,.settings input,.loginbox input{width:100%;background:#07131d;border:1px solid #2c4a60;color:#fff;border-radius:7px;padding:10px}.row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.check{display:flex!important;gap:8px;align-items:center}.check input{width:auto!important}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;border-bottom:1px solid #183246;padding:10px}.empty{padding:22px;color:#7590a3;text-align:center}.closed,.event{display:grid;grid-template-columns:1fr auto auto;gap:12px;border-bottom:1px solid #183246;padding:9px 0}.event{grid-template-columns:auto auto auto 1fr}.event p{margin:0}.error{color:#ff8c9d;margin:8px 0}#toast{position:fixed;right:24px;bottom:24px;background:#1a6f51;padding:12px 16px;border-radius:8px;transform:translateY(80px);opacity:0;transition:.2s}#toast.show{transform:none;opacity:1}#toast.bad{background:#7a2937}.login{display:grid;place-items:center;min-height:100vh}.loginbox{width:min(440px,92vw);background:#0b1925;border:1px solid #29465f;border-radius:16px;padding:28px}.loginbox h1{margin-bottom:0}.loginbox button{width:100%;margin:10px 0}.loginbox small{color:#7794a8}@media(max-width:900px){.grid.two{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.hero{flex-direction:column}}

.settings select{width:100%;background:#07131d;border:1px solid #2c4a60;color:#fff;border-radius:7px;padding:10px}.hunter-compact{color:#8faabd;font-size:11px;border-top:1px solid #183246;border-bottom:1px solid #183246;padding:7px 0;margin:6px 0 8px}
.expert-tuning{margin-top:14px;border-top:1px solid #183246;padding-top:12px}.expert-tuning summary{cursor:pointer;color:#83caff;font-weight:800;font-size:12px}.expert-field{border-bottom:1px solid #142c3d;padding-bottom:9px}.expert-field small{display:block;color:#7894a7;margin-top:4px;font-size:10px}.calibration-link{display:inline-block;margin-top:10px;font-weight:800}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-title h3{margin-bottom:0}.context-help{font-size:11px;font-weight:800;white-space:nowrap}.help-dot{display:inline-grid;place-items:center;width:18px;height:18px;margin-left:5px;border:1px solid #31516a;border-radius:50%;font-size:10px;font-weight:900;vertical-align:middle}.expert-help-link{display:inline-block;margin:12px 0 2px;font-size:11px;font-weight:800}
.calibration-page h2{margin-top:0}.cal-grid{display:grid;gap:16px}.cal-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.cal-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.calibration-page td small{display:block;color:#7894a7}.calibration-page td:nth-child(2){white-space:nowrap}.metric-list>div{display:flex;justify-content:space-between;border-bottom:1px solid #183246;padding:7px 0}.metric-list span{color:#8faabd}.metric-list.horizontal{display:flex;gap:10px;flex-wrap:wrap}.metric-list.horizontal>div{display:block;min-width:130px;border:1px solid #1c3548;border-radius:8px;padding:10px}.metric-list.horizontal span{display:block;font-size:10px}.window-form select,.whatif-form select,.whatif-form input{background:#07131d;border:1px solid #2c4a60;color:#fff;border-radius:7px;padding:9px}.whatif-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.whatif-form label{display:grid;gap:5px;color:#8faabd}@media(max-width:900px){.cal-grid.two,.cal-grid.three{grid-template-columns:1fr}.whatif-form>*{width:100%}}

/* 0.2.1: original 0.1.6/0.1.7 Trader Desk layout + Tiingo live helpers only */
header nav{display:flex;align-items:center;gap:9px;font-size:11px}header nav a{white-space:nowrap}.feed-badge{font-size:10px;font-weight:800;padding:5px 8px;border-radius:999px;border:1px solid #31516a;background:#102333;white-space:nowrap}.feed-live{color:#64e5a2;border-color:#245d47}.feed-wait{color:#ffd06c}.feed-off{color:#91a6b5}.feed-mini{font-size:10px}.positive{color:#64e5a2!important}.negative{color:#ff8c9d!important}.price-arrow{display:inline-block;min-width:13px;font-size:15px;font-weight:900}.price-arrow.mini{font-size:12px;min-width:10px}.price-arrow.up{color:#64e5a2}.price-arrow.down{color:#ff8c9d}.price-arrow.flat{color:#8ba3b4}.cand-symbol-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.candidate-live{display:inline-flex;align-items:center;gap:4px;color:#d9e8f3;font-size:11px}.candidate-live em{font-style:normal;font-size:10px}.candidate-live small{color:#7794a8;font-size:9px;min-width:25px}.fresh-dot{width:6px;height:6px;border-radius:50%;display:inline-block}.fresh-ok{background:#64e5a2;box-shadow:0 0 0 2px rgba(100,229,162,.12)}.fresh-stale{background:#ffd06c}.refresh-chip{display:inline-flex;align-items:center;gap:5px;color:#90aabd;font-size:11px;border:1px solid #2c4a60;border-radius:999px;padding:4px 8px}.pulse-dot{width:6px;height:6px;border-radius:50%;background:#64e5a2;box-shadow:0 0 0 2px rgba(100,229,162,.12)}.position-table{min-width:1160px}.position-table th,.position-table td{padding:8px 9px;white-space:nowrap}.position-table small{display:block;color:#7794a8;font-size:9px}.live-price-cell{font-size:13px}.protect{font-size:10px}.desk-links{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid #183246;margin-top:14px;padding-top:12px;font-size:11px}.closed{grid-template-columns:1fr auto auto auto}.panel>.closed:last-child{border-bottom:0}@media(max-width:1100px){header nav{gap:6px;font-size:10px}.hero{padding:19px}.hero h1{font-size:24px}main{padding:20px}.grid.two{grid-template-columns:1.22fr .78fr}}@media(max-width:900px){header nav a:nth-child(3),header nav a:nth-child(4),header nav span{display:none}.candidate-live{font-size:10px}}
.direction-badge{font-size:9px;font-weight:900;letter-spacing:.04em;padding:3px 6px;border-radius:999px;border:1px solid #31516a;background:#102333;white-space:nowrap}.direction-badge.short{color:#ff9aaa;border-color:#63313b}.direction-badge.long{color:#64e5a2;border-color:#245d47}.direction-badge.wait{color:#ffd06c;border-color:#66552b}.day-range{color:#c2d7e5}.day-range b{color:#f0f7fc}
.candidate-chart-link{display:inline-flex;align-items:center;background:#102a3d;color:#83caff;border:1px solid #31516a;border-radius:8px;font-weight:800;white-space:nowrap}.candidate-chart-link:hover,.candidate-chart-link:focus{background:#173a53;color:#b9e3ff}

/* 0.2.6: Hungarian feature and settings help */
.button-link{display:inline-flex;align-items:center;justify-content:center;background:#43a9ff;color:#04111b;border-radius:8px;padding:10px 14px;font-weight:800}.button-link.secondary{background:#152b3b;color:#cfe8f8;border:1px solid #31516a}.help-hero{align-items:center}.help-hero-actions{display:flex;gap:8px;flex-wrap:wrap}.help-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:16px;align-items:start}.help-layout,.help-content,.help-toc,.help-section{min-width:0}.help-toc{position:sticky;top:78px;display:grid;gap:4px;padding:14px}.help-toc b{padding:4px 8px 9px}.help-toc a{min-width:0;padding:7px 8px;border-radius:7px;font-size:12px;overflow-wrap:anywhere}.help-toc a:hover,.help-toc a:focus{background:#132b3d}.help-section{scroll-margin-top:78px}.help-section h2{margin-top:0}.help-section h3{margin-bottom:5px}.section-kicker{color:#48b9ff;font-weight:800;font-size:10px;letter-spacing:.12em;margin-bottom:6px}.help-steps{padding-left:21px}.help-steps li{padding:5px 0}.help-note{border-left:3px solid #48b9ff;background:#0a2232;padding:12px 14px;border-radius:0 8px 8px 0;margin-top:14px}.help-note.warning{border-color:#ffd06c;background:#292314}.help-muted{color:#8faabd}.flow-cards,.help-grid,.profile-help{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.flow-cards article,.help-grid article,.profile-help article{border:1px solid #1c3548;border-radius:10px;padding:13px;background:#081722}.flow-cards p,.help-grid p,.profile-help p{margin-bottom:0;color:#9fb8ca}.help-table th{color:#8faabd;font-size:11px}.help-table td{vertical-align:top}.help-defs{display:grid;gap:8px}.help-defs>div{display:grid;grid-template-columns:150px 1fr;gap:12px;border-bottom:1px solid #183246;padding:8px 0}.help-defs dt{font-weight:800}.help-defs dd{margin:0;color:#a9bfd0}.expert-help-list{display:grid;gap:10px}.expert-help-card{border:1px solid #1c3548;border-radius:10px;padding:14px;background:#081722;scroll-margin-top:78px}.expert-help-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.expert-help-head h3{margin:0}.expert-help-head code,.expert-help-card small{color:#7894a7}.expert-help-head strong{color:#64e5a2;white-space:nowrap}.expert-help-card p{margin:8px 0}.help-caution{color:#ffdba0}.help-section>details{border-bottom:1px solid #183246;padding:10px 0}.help-section>details summary{cursor:pointer;font-weight:800;color:#cfe8f8}.help-footer-link{margin-top:16px}.help-page code{background:#07131d;border:1px solid #1c3548;border-radius:5px;padding:2px 5px}@media(max-width:900px){.help-layout{grid-template-columns:minmax(0,1fr)}.help-toc{position:static;width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.help-toc b{grid-column:1/-1}.flow-cards,.help-grid,.profile-help{grid-template-columns:1fr}.help-defs>div{grid-template-columns:1fr;gap:3px}.expert-help-head{display:block}.expert-help-head strong{display:block;margin-top:8px}.help-hero-actions{width:100%}.help-hero-actions a{flex:1}}

/* 0.3.2: auditable candidate ranking and cost-aware profile preview */
button:disabled{cursor:not-allowed;opacity:.38;filter:saturate(.35)}.candidate-toolbar{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:12px 0;padding:10px;border:1px solid #1c3548;border-radius:10px;background:#07131d}.candidate-toolbar label{display:grid;gap:4px;color:#7894a7;font-size:10px}.candidate-toolbar select{min-width:155px;background:#0b1925;border:1px solid #31516a;border-radius:7px;color:#e9f2fb;padding:7px 9px}.candidate-toolbar small{margin-left:auto;color:#8faabd;padding:8px 2px}.candidate.low-volume{border-color:#663743;background:linear-gradient(90deg,rgba(255,100,120,.055),#081722 35%)}.candidate.small-liquidity{border-color:#5a4924;background:linear-gradient(90deg,rgba(255,208,108,.055),#081722 35%)}.low-volume-badge,.small-liquidity-badge{font-size:9px;font-weight:900;letter-spacing:.04em;border-radius:999px;padding:3px 6px}.low-volume-badge{color:#ff8c9d;border:1px solid #63313b}.small-liquidity-badge{color:#ffd06c;border:1px solid #705d2b}.gates span.liquidity-small{color:#ffd06c!important;border:1px solid #705d2b}.activity-line{color:#c5dbeb}.quality-preset{display:grid;gap:4px;margin:12px 0;padding:10px;border:1px solid #31516a;border-radius:9px;background:#0a2232}.quality-preset button{justify-self:start}.quality-preset small{color:#8faabd}.preset-preview{box-shadow:inset 0 0 0 1px #ffd06c}.preset-preview [data-edited-profile]{color:#ffd06c;font-weight:800}@media(max-width:700px){.candidate-toolbar{align-items:stretch}.candidate-toolbar label,.candidate-toolbar select{width:100%}.candidate-toolbar small{margin-left:0}.cand-actions{flex-wrap:wrap}}

/* 0.3.6: adaptive near-target Protect + audited one-shot re-entry */
.fast-status{color:#bce7ff;background:#0b2a3c;border:1px solid #2a6b8c;border-radius:7px;padding:7px 9px;margin:7px 0;font-size:11px}.fast-status b{color:#67d3ff;letter-spacing:.04em}
