*{box-sizing:border-box}body{margin:0;background:#0b1118;color:#eaf0f6;font:15px/1.5 Inter,system-ui,Arial,sans-serif}header{height:76px;border-bottom:1px solid #263442;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,20px);background:#101923;position:sticky;top:0;z-index:5}.brand,.status,.exchange-tabs,.panel-title,.cat-head,.intro{display:flex;align-items:center}.brand{gap:12px}.mark{width:38px;height:38px;display:grid;place-items:center;background:#284d70;border:1px solid #5486b4;font-weight:900;font-size:21px}.brand strong,.brand small{display:block;letter-spacing:1.5px}.brand small{font-size:10px;color:#8fa3b6}.status{gap:10px;font-size:12px;color:#9fb0bf}.status i{width:8px;height:8px;border-radius:50%;background:#e0a84c}.status i.live{background:#42c98b;box-shadow:0 0 10px #42c98b}button{font:inherit;cursor:pointer}.status button{background:#1d2c3b;color:#dce8f3;border:1px solid #344b60;padding:9px 13px;font-size:11px;letter-spacing:1px}main{max-width:1400px;margin:auto;padding:35px max(5vw,20px) 55px}.intro{justify-content:space-between;gap:20px;margin-bottom:30px}.eyebrow{color:#79a8d4;font-size:10px;letter-spacing:2px;font-weight:800;margin:0 0 7px}h1{font-size:clamp(28px,4vw,46px);line-height:1.1;margin:0 0 10px}h1 em{color:#79a8d4;font-style:normal}.muted{color:#91a2b2;margin:0}.updated{font-size:10px;letter-spacing:1px;color:#8195a7;text-align:right}.updated strong{display:block;color:#e4edf5;font-size:14px;margin-top:5px}.exchange-tabs{gap:8px;margin-bottom:15px}.exchange{background:#245b91;color:#fff;border:1px solid #3679b8;padding:12px 27px;font-weight:800;letter-spacing:1px;opacity:.55}.exchange{transition:opacity .15s ease,box-shadow .15s ease,transform .15s ease}.exchange.active{opacity:1;box-shadow:inset 0 0 0 2px currentColor,0 0 0 2px #ffffff55;transform:translateY(-2px);font-weight:900}.exchange:not(.active){opacity:.48}.exchange.okx{background:#090c10;border-color:#606b76;color:white}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.stats>div{background:#121d28;border:1px solid #263747;padding:14px 17px}.stats span{display:block;color:#8195a7;font-size:9px;letter-spacing:1.5px}.stats strong{display:block;font-size:17px;margin-top:4px}.cost-settings{background:#111b25;border:1px solid #293a49;padding:15px 17px;margin-bottom:32px}.cost-settings>div{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.cost-settings>div>div{flex:1;min-width:220px}.cost-settings p:not(.eyebrow){font-size:10px;color:#91a2b2;margin:4px 0}.cost-settings label{display:grid;gap:5px;color:#91a2b2;font-size:10px}.cost-settings input{width:115px;background:#0b141d;color:#f1f5f8;border:1px solid #35495a;padding:8px;font:inherit}.cost-settings>small{display:block;color:#74889a;font-size:9px;margin-top:10px}.cat-head{justify-content:space-between;margin-bottom:15px}.cat-head h2{margin:0;font-size:24px}.basis{font-size:11px;color:#91a2b2}.cat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.panel{background:#111b25;border:1px solid #293a49;min-width:0}.panel-title{justify-content:space-between;padding:15px;border-bottom:1px solid #293a49}.panel-title h3{font-size:12px;letter-spacing:1.2px;margin:0}.panel-title>span{font-size:11px;color:#8ea5b9;background:#1b2b39;padding:3px 8px}.results{padding:8px 13px;min-height:125px}.empty{color:#74889a;font-size:12px;padding:20px 5px}.coin{padding:11px 3px;border-bottom:1px solid #263542}.trade-grid{display:grid;grid-template-columns:1fr;gap:7px;background:#0c151e;border:1px solid #253746;padding:9px;margin-top:9px}.trade-grid>div{display:grid;grid-template-columns:1fr auto;gap:5px;align-items:center}.trade-grid small{color:#8297a9;font-size:9px;letter-spacing:.7px}.trade-grid b{font-size:11px;text-align:right}.trade-grid i{grid-column:2;font-size:10px;text-align:right;font-style:normal}.warning{color:#e3b96e;font-size:10px}.security-flags{font-size:9px;color:#e3b96e;margin-top:4px}.coin:last-child{border:0}.coin-top,.coin-meta{display:flex;justify-content:space-between;gap:8px}.symbol{font-weight:800;font-size:13px}.score{color:#8dc2ee;font-size:11px}.coin-meta{font-size:10px;color:#91a2b2;margin-top:4px}.positive{color:#50d49a}.negative{color:#f07878}.rule{display:block;color:#8499ab;font-size:10px;padding:0 15px 14px}footer{border-top:1px solid #263442;margin-top:28px;padding-top:16px;color:#74889a;font-size:10px;line-height:1.6}@media(max-width:900px){.cat-grid{grid-template-columns:1fr}.intro{align-items:flex-start}.basis{max-width:150px;text-align:right}}@media(max-width:620px){.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){header{padding:0 14px}.status{gap:6px}.status button{padding:8px;font-size:9px}.brand small{font-size:8px}main{padding:25px 14px 40px}.stats{gap:6px}.stats>div{padding:10px}.stats span{font-size:8px}.stats strong{font-size:13px}.intro{display:block}.updated{text-align:left;margin-top:15px}.exchange{flex:1}.cat-head{align-items:flex-end}}
/* Expandable category panels and compact candidate cards */
.panel>summary{list-style:none;cursor:pointer}.panel>summary::-webkit-details-marker{display:none}.panel-title i{font-style:normal;color:#8297a9;font-size:9px;margin-left:8px}.panel:not([open])>.results,.panel:not([open])>.rule{display:none}.coin{padding:0;border-bottom:1px solid #263542}.coin>summary{list-style:none;cursor:pointer;padding:12px 3px}.coin>summary::-webkit-details-marker{display:none}.coin-summary{display:flex;flex-direction:column;gap:5px}.coin-summary-meta{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;font-size:10px;color:#91a2b2}.coin-summary-meta .score{font-weight:700}.expand-hint{color:#79a8d4;font-size:9px}.coin[open] .expand-hint{font-size:0}.coin[open] .expand-hint:after{content:"Details zuklappen ▴";font-size:9px}.coin-body{padding:0 3px 12px}.panel-title h3{flex:1}.panel-title>i{white-space:nowrap}@media(max-width:520px){.coin-summary-meta{justify-content:flex-start}.coin-summary-meta .expand-hint{margin-left:auto}}

.tp-note{font-size:9px;line-height:1.45;color:#8ea5b9;margin:8px 0 4px;padding:0 2px}

/* Compact settings menu */
.settings-open{width:36px;height:36px;border:1px solid #40596e;background:#182735;color:#c5d9e9;font-size:20px;line-height:1}
.settings-dialog{width:min(420px,calc(100% - 28px));padding:0;background:#111b25;color:#eaf0f6;border:1px solid #3a5368;box-shadow:0 18px 60px #0009}
.settings-dialog::backdrop{background:#02070dcc;backdrop-filter:blur(3px)}
.settings-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #293a49}
.settings-head h2{margin:0;font-size:22px}
.settings-close{width:32px;height:32px;border:1px solid #40596e;background:#182735;color:#dce8f3;font-size:22px}
.settings-section{padding:17px 20px;border-bottom:1px solid #293a49}
.settings-section:last-child{border:0}
.settings-section h3{margin:0 0 8px;color:#79a8d4;font-size:10px;letter-spacing:1.5px}
.settings-section p{margin:0 0 12px;color:#9aabba;font-size:12px}
.theme-choice{display:flex;gap:8px}
.theme-option{flex:1;padding:10px;border:1px solid #40596e;background:#172635;color:#dce8f3}
.theme-option.active{border-color:#79a8d4;box-shadow:inset 0 0 0 1px #79a8d4;color:#fff}
.setting-toggle{display:flex;align-items:center;justify-content:space-between;gap:15px}
.setting-toggle strong,.setting-toggle small{display:block}
.setting-toggle strong{font-size:13px}
.setting-toggle small{margin-top:4px;color:#9aabba;font-size:10px;line-height:1.4}
.setting-toggle input{width:20px;height:20px;accent-color:#5486b4;flex-shrink:0}
.settings-section .settings-note{margin:10px 0 0;font-size:10px;color:#8ea5b9}
html[data-theme="light"] body{background:#edf2f6;color:#182735}
html[data-theme="light"] header{background:#f8fafc;border-color:#c8d4df}
html[data-theme="light"] .brand small,html[data-theme="light"] .status,html[data-theme="light"] .muted,html[data-theme="light"] .updated,html[data-theme="light"] .basis,html[data-theme="light"] .coin-meta,html[data-theme="light"] footer{color:#53697c}
html[data-theme="light"] .updated strong{color:#182735}
html[data-theme="light"] .stats>div,html[data-theme="light"] .cost-settings,html[data-theme="light"] .panel{background:#fff;border-color:#c8d4df}
html[data-theme="light"] .stats span,html[data-theme="light"] .cost-settings p:not(.eyebrow),html[data-theme="light"] .cost-settings label,html[data-theme="light"] .cost-settings>small,html[data-theme="light"] .empty,html[data-theme="light"] .rule,html[data-theme="light"] .tp-note{color:#53697c}
html[data-theme="light"] .cost-settings input{background:#f6f9fb;color:#182735;border-color:#bdcbd7}
html[data-theme="light"] .panel-title,html[data-theme="light"] .coin{border-color:#d6e0e8}
html[data-theme="light"] .panel-title>span{background:#e7eef4;color:#36536c}
html[data-theme="light"] .coin-summary-meta{color:#53697c}
html[data-theme="light"] .trade-grid{background:#f2f6f9;border-color:#d2dde6}
html[data-theme="light"] .trade-grid small{color:#53697c}
html[data-theme="light"] footer{border-color:#c8d4df}
html[data-theme="light"] .settings-dialog{background:#fff;color:#182735;border-color:#9eb2c3}
html[data-theme="light"] .settings-head,html[data-theme="light"] .settings-section{border-color:#d6e0e8}
html[data-theme="light"] .settings-section p,html[data-theme="light"] .setting-toggle small,html[data-theme="light"] .settings-section .settings-note{color:#53697c}
html[data-theme="light"] .theme-option{background:#edf3f7;color:#28465f;border-color:#bdcbd7}
html[data-theme="light"] .theme-option.active{border-color:#477da8;color:#183d5c}
html[data-theme="light"] .settings-open,html[data-theme="light"] .settings-close{background:#e8eff5;color:#28465f;border-color:#bdcbd7}

/* Hide scan mode and historical hit-rate display; keep underlying logic active */
.stats>div:nth-child(3),.stats>div:nth-child(4){display:none}

/* Collapsible cost model panel */
.cost-settings{padding:0}
.cost-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 17px;cursor:pointer;list-style:none}
.cost-summary::-webkit-details-marker{display:none}
.cost-summary>span{display:grid;gap:3px}
.cost-summary strong{font-size:11px;letter-spacing:1.4px;color:#79a8d4}
.cost-summary small{font-size:12px;color:#eaf0f6}
.cost-summary i{font-style:normal;font-size:9px;color:#8297a9;white-space:nowrap}
.cost-settings[open]>.cost-summary{border-bottom:1px solid #293a49}
.cost-settings>div,.cost-settings>small{margin-left:17px;margin-right:17px}
.cost-settings>div{padding-top:13px}
.cost-settings>small{margin-bottom:14px}
.cost-settings:not([open])>div,.cost-settings:not([open])>small{display:none}


/* Readability refinement: preserve the existing visual design, improve contrast and small text */
body{font-size:16px;line-height:1.55}
.muted{color:#b0bfcc}
.updated,.status{color:#b0bfcc}
.updated{font-size:11px}
.stats span{font-size:10px;color:#a6b7c6;letter-spacing:1.2px}
.basis,.coin-meta,.coin-summary-meta{color:#b0bfcc}
.coin-meta,.coin-summary-meta{font-size:11px}
.panel-title h3{font-size:13px}
.panel-title>span{font-size:12px}
.empty{font-size:13px;color:#a3b4c2}
.rule,.tp-note{font-size:11px;color:#a6b7c6}
.trade-grid small{font-size:10px;color:#a6b7c6}
.trade-grid b{font-size:12px}
.trade-grid i{font-size:11px}
.security-flags,.warning{font-size:11px}
.cost-settings label,.cost-settings p:not(.eyebrow){font-size:11px;color:#b0bfcc}
.cost-settings>small{font-size:10px;color:#9eafbd}
button:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid #8fc7f4;outline-offset:3px}
html[data-theme="light"] .muted,
html[data-theme="light"] .updated,
html[data-theme="light"] .status,
html[data-theme="light"] .basis,
html[data-theme="light"] .coin-meta,
html[data-theme="light"] .coin-summary-meta,
html[data-theme="light"] .stats span,
html[data-theme="light"] .cost-settings label,
html[data-theme="light"] .cost-settings p:not(.eyebrow),
html[data-theme="light"] .empty,
html[data-theme="light"] .rule,
html[data-theme="light"] .tp-note,
html[data-theme="light"] .trade-grid small,
html[data-theme="light"] .cost-settings>small{color:#40576a}
@media(max-width:520px){
  body{font-size:15px;line-height:1.55}
  .stats span{font-size:9px}
  .coin-meta,.coin-summary-meta{font-size:11px}
  .trade-grid small{font-size:10px}
  .rule,.tp-note{font-size:11px}
}

/* Dedicated single-coin analysis */
.single-scan{background:#111b25;border:1px solid #344b60;padding:18px;margin:0 0 24px}
.single-scan-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.single-scan-head h2{font-size:21px;margin:0;letter-spacing:1px}
.single-scan-head>span{font-size:11px;color:#b0bfcc}
.single-scan-controls{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(160px,1.4fr) auto;gap:10px;align-items:end}
.single-scan-controls label{display:grid;gap:5px;color:#a6b7c6;font-size:10px;letter-spacing:1px;font-weight:700}
.single-scan-controls select,.single-scan-controls input{width:100%;min-width:0;height:44px;padding:0 12px;background:#0b141d;color:#f1f5f8;border:1px solid #40596e;font:inherit;font-size:14px}
.single-scan-controls button{height:44px;padding:0 18px;background:#245b91;border:1px solid #3679b8;color:#fff;font-size:11px;font-weight:800;letter-spacing:1px}
.single-scan-controls button:disabled{opacity:.55;cursor:wait}
.single-result{margin-top:13px}
.single-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#0c151e;border:1px solid #293a49}
.single-result-head strong{font-size:16px}.single-result-head span{font-size:10px;color:#b0bfcc}
.single-trade-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#293a49;border:1px solid #293a49;border-top:0}
.single-trade-grid>div{display:grid;gap:4px;padding:11px;background:#0c151e;min-width:0}
.single-trade-grid small{font-size:9px;color:#a6b7c6;letter-spacing:.6px}
.single-trade-grid b{font-size:13px;overflow-wrap:anywhere}
.single-trade-grid i{font-style:normal;font-size:11px}
.single-note{font-size:11px;color:#a6b7c6;line-height:1.5;margin:10px 2px 0}
.single-error{color:#f07878;font-size:13px;padding:12px;background:#241719;border:1px solid #61383b}
html[data-theme="light"] .single-scan{background:#fff;border-color:#c8d4df}
html[data-theme="light"] .single-scan-head>span,html[data-theme="light"] .single-scan-controls label,html[data-theme="light"] .single-note{color:#40576a}
html[data-theme="light"] .single-scan-controls select,html[data-theme="light"] .single-scan-controls input{background:#f6f9fb;color:#182735;border-color:#bdcbd7}
html[data-theme="light"] .single-result-head,html[data-theme="light"] .single-trade-grid>div{background:#f2f6f9}
html[data-theme="light"] .single-result-head span,html[data-theme="light"] .single-trade-grid small{color:#40576a}
@media(max-width:620px){.single-scan-controls{grid-template-columns:1fr 1fr}.single-scan-controls button{grid-column:1/-1;width:100%}}

/* EinzelScan compact, collapsed by default */
.single-scan{padding:0;margin:0 0 14px;border-radius:10px;overflow:hidden}.single-scan-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:12px 15px;min-height:54px}.single-scan-toggle::-webkit-details-marker{display:none}.single-scan-toggle>span:first-child{display:grid;gap:3px}.single-scan-toggle strong{font-size:14px;letter-spacing:1px;color:#f1f5f8}.single-scan-toggle small{font-size:10px;color:#a6b7c6}.single-scan-chevron{display:flex;align-items:center;gap:8px;font-size:9px;font-weight:800;letter-spacing:.7px;color:#b9c8d5;white-space:nowrap}.single-scan-chevron b{font-size:18px;line-height:1}.single-scan[open] .single-scan-chevron b{transform:rotate(45deg)}.single-scan-body{padding:0 15px 15px}.single-scan-body .single-scan-controls{margin-top:2px}html[data-theme="light"] .single-scan-toggle strong{color:#182735}html[data-theme="light"] .single-scan-toggle small,html[data-theme="light"] .single-scan-chevron{color:#40576a}

/* Visual grouping: top three and remaining positions, without changing ranking or list order */
.rank-group-label{font-size:10px;font-weight:800;letter-spacing:1.3px;padding:9px 10px;margin:0 0 4px;color:#9fc9eb;background:#172b3b;border:1px solid #34536b;border-radius:5px}
.top-three{padding:4px 7px 7px;margin:0 -7px 12px;background:linear-gradient(135deg,#172635 0%,#111b25 75%);border:1px solid #42627b;border-radius:7px;box-shadow:inset 0 0 0 1px #263f52}
.top-three .coin{border-bottom-color:#38556c}
.rest-seven{padding:0 2px}
.rest-seven .rank-group-label{margin-top:2px;background:transparent;border:0;border-bottom:1px solid #293a49;border-radius:0;color:#91a2b2;padding-left:3px}
html[data-theme="light"] .top-three{background:#f1f6fa;border-color:#9db8cc;box-shadow:inset 0 0 0 1px #d3e0e9}
html[data-theme="light"] .rank-group-label{background:#e5eef5;color:#315570;border-color:#b8ccdc}
html[data-theme="light"] .rest-seven .rank-group-label{background:transparent;border-color:#d6e0e8;color:#53697c}


/* Brighter default dark theme: lift surfaces while preserving exchange button colors */
html:not([data-theme="light"]) body{background:#18232e}
html:not([data-theme="light"]) header{background:#202d39;border-color:#3b4b5a}
html:not([data-theme="light"]) .stats>div{background:#263542;border-color:#405363}
html:not([data-theme="light"]) .cost-settings,html:not([data-theme="light"]) .panel,html:not([data-theme="light"]) .single-scan{background:#222f3b;border-color:#405363}
html:not([data-theme="light"]) .panel-title{border-color:#405363}
html:not([data-theme="light"]) .panel-title>span{background:#344655;color:#c2d2df}
html:not([data-theme="light"]) .trade-grid{background:#1a2732;border-color:#405363}
html:not([data-theme="light"]) .single-result-head,html:not([data-theme="light"]) .single-trade-grid>div{background:#1a2732}
html:not([data-theme="light"]) .single-trade-grid{background:#405363;border-color:#405363}
html:not([data-theme="light"]) .settings-dialog{background:#222f3b;border-color:#526779}
html:not([data-theme="light"]) .settings-head,html:not([data-theme="light"]) .settings-section{border-color:#405363}
html:not([data-theme="light"]) .theme-option{background:#2b3b49;border-color:#526779}
html:not([data-theme="light"]) .settings-open,html:not([data-theme="light"]) .settings-close{background:#2b3b49;border-color:#526779}
html:not([data-theme="light"]) .top-three{background:linear-gradient(135deg,#2b3d4c 0%,#222f3b 75%);border-color:#58748a;box-shadow:inset 0 0 0 1px #3a5367}
html:not([data-theme="light"]) .rank-group-label{background:#304657;border-color:#526f84;color:#c3def2}
html:not([data-theme="light"]) .rest-seven .rank-group-label{background:transparent;border-color:#405363;color:#b0bfcc}
html:not([data-theme="light"]) .coin{border-bottom-color:#3b4d5c}
html:not([data-theme="light"]) .coin-meta,html:not([data-theme="light"]) .coin-summary-meta,html:not([data-theme="light"]) .muted,html:not([data-theme="light"]) .updated,html:not([data-theme="light"]) .status,html:not([data-theme="light"]) .basis{color:#c0ccd6}
html:not([data-theme="light"]) .empty,html:not([data-theme="light"]) .rule,html:not([data-theme="light"]) .tp-note,html:not([data-theme="light"]) .trade-grid small{color:#afbfcc}

/* Simulated test positions */
.test-area{margin:0 0 18px;padding:15px;background:#222f3b;border:1px solid #58748a;border-radius:9px}
.test-head,.test-position-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.test-head h2{margin:0;font-size:17px;letter-spacing:1px}.test-head>strong{font-size:13px;color:#c3def2}
.test-selected{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.test-chip{display:inline-flex;align-items:center;gap:7px;padding:5px 8px;background:#304657;border:1px solid #58748a;border-radius:5px;font-size:11px}
.test-chip button{width:22px;height:22px;padding:0;background:#6b3940;color:#fff;border:0;border-radius:4px;font-size:17px;line-height:1}
.test-empty,.test-message{font-size:11px;color:#b0bfcc}.test-message{min-height:16px;margin:7px 0}
.test-start{width:100%;height:42px;background:#245b91;border:1px solid #5486b4;color:#fff;font-weight:900;letter-spacing:2px}
.test-select{width:100%;margin:0 0 10px;padding:8px;background:#263f52;border:1px solid #58748a;color:#eaf0f6;font-size:10px;font-weight:800;letter-spacing:.7px}
.test-select[aria-pressed="true"]{background:#285d48;border-color:#42c98b;color:#fff}
.test-select:disabled{opacity:.65}
.test-position{margin-top:9px;padding:10px;background:#182735;border:1px solid #40596e;border-radius:6px}
.test-position-head strong{font-size:13px}.test-position-head span{margin-left:auto;font-size:10px;color:#b0bfcc}
.test-position-head button{padding:6px 8px;background:#65363b;color:#fff;border:1px solid #9b555d;font-size:9px;font-weight:800}
.test-position-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px}
.test-position-grid span{display:flex;justify-content:space-between;gap:6px;font-size:10px;color:#b0bfcc}
.test-position-grid b{color:#eaf0f6;text-align:right}.test-position-grid b.positive{color:#42c98b}.test-position-grid b.negative{color:#f07878}
.test-position.closed{opacity:.88}
html[data-theme="light"] .test-area{background:#fff;border-color:#9db8cc}
html[data-theme="light"] .test-chip{background:#e5eef5;color:#28465f;border-color:#b8ccdc}
html[data-theme="light"] .test-empty,html[data-theme="light"] .test-message,html[data-theme="light"] .test-position-head span,html[data-theme="light"] .test-position-grid span{color:#53697c}
html[data-theme="light"] .test-position{background:#f2f6f9;border-color:#c8d4df}
html[data-theme="light"] .test-position-grid b{color:#182735}
html[data-theme="light"] .test-position-grid b.positive{color:#168451}
html[data-theme="light"] .test-position-grid b.negative{color:#c33d48}


/* Testbereich standardmäßig kompakt; Inhalte erst nach Öffnen anzeigen */
.test-area{padding:0;overflow:hidden}
.test-area>.test-toggle{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 16px;cursor:pointer;list-style:none;color:#fff;font-size:13px;font-weight:900;letter-spacing:1.6px}
.test-area>.test-toggle::-webkit-details-marker{display:none}
.test-area>.test-toggle span{font-size:19px;line-height:1;color:#c3def2}
.test-area[open]>.test-toggle{border-bottom:1px solid #58748a}
.test-area[open]>.test-toggle span{transform:rotate(45deg)}
.test-content{padding:15px}
html[data-theme="light"] .test-area>.test-toggle{color:#28465f}
html[data-theme="light"] .test-area[open]>.test-toggle{border-color:#b8ccdc}

/* Explain completed simulation outcomes */
.test-position.closed .test-position-grid{grid-template-columns:1fr}
.test-position.closed .test-position-grid>span{align-items:flex-start;flex-wrap:wrap}
.test-position.closed .test-reason{display:block;padding:8px;margin-top:3px;background:#243746;border-left:3px solid #79a8d4;line-height:1.5}
.test-position.closed .test-reason b{display:block;color:#c3def2;margin-bottom:3px}
html[data-theme="light"] .test-position.closed .test-reason{background:#e8f0f6}
html[data-theme="light"] .test-position.closed .test-reason b{color:#315570}

/* Test history controls and three simultaneous slots */
.test-history-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.test-history-head .rank-group-label{flex:1;margin:0}
.test-delete,.test-delete-all{border:1px solid #8c555b;background:#512f35;color:#fff;padding:7px 9px;font-size:9px;font-weight:900;letter-spacing:.4px;white-space:nowrap}
.test-delete-all{background:#35495a;border-color:#627d91}
.test-position-head .test-delete{margin-left:0}
html[data-theme="light"] .test-delete-all{background:#e8eff5;color:#28465f;border-color:#9db8cc}

/* Hide the live market overview text block; keep its DOM and update logic intact. */
.intro{display:none!important;}


/* Stronger dark-theme separation: page background, panels and input/data fields */
html:not([data-theme="light"]) body{background:#0d151e}
html:not([data-theme="light"]) header{background:#1b2936;border-bottom-color:#405466}
html:not([data-theme="light"]) .stats>div,
html:not([data-theme="light"]) .cost-settings,
html:not([data-theme="light"]) .panel,
html:not([data-theme="light"]) .single-scan,
html:not([data-theme="light"]) .test-area{background:#263746;border-color:#526b7f}
html:not([data-theme="light"]) .panel-title{background:#304657;border-color:#526b7f}
html:not([data-theme="light"]) .results{background:#263746}
html:not([data-theme="light"]) .trade-grid,
html:not([data-theme="light"]) .single-result-head,
html:not([data-theme="light"]) .single-trade-grid>div,
html:not([data-theme="light"]) .test-position{background:#111d28;border-color:#40596e}
html:not([data-theme="light"]) .single-trade-grid{background:#40596e;border-color:#40596e}
html:not([data-theme="light"]) .cost-settings input,
html:not([data-theme="light"]) .single-scan-controls select,
html:not([data-theme="light"]) .single-scan-controls input{background:#101b25;border-color:#587187}
html:not([data-theme="light"]) .top-three{background:linear-gradient(135deg,#344b5d 0%,#293b4a 100%);border-color:#66839a}
html:not([data-theme="light"]) .rank-group-label{background:#3a5367;border-color:#66839a}
html:not([data-theme="light"]) .test-area>.test-toggle{background:#304657}
html:not([data-theme="light"]) .test-position.closed .test-reason{background:#263b4b}


/* Softer, less minty green for selected test fields and positive values */
html:not([data-theme="light"]) .test-select[aria-pressed="true"]{background:#315247;border-color:#6b927e;color:#f1f6f2}
html:not([data-theme="light"]) .test-position-grid b.positive{color:#78b89a}


/* Compact two-line TEST heading matching the single-scan subtitle hierarchy */
.test-area>.test-toggle .test-toggle-label{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.test-area>.test-toggle .test-toggle-label strong{font-size:13px;font-weight:900;letter-spacing:1.6px}
.test-area>.test-toggle .test-toggle-label small{font-size:10px;font-weight:600;letter-spacing:.2px;color:#a6b7c6}
.test-area>.test-toggle .test-toggle-plus{font-size:19px;line-height:1;color:#c3def2}
html[data-theme="light"] .test-area>.test-toggle .test-toggle-label small{color:#53697c}


/* Match TEST header geometry and typography to the EINZELSCAN header */
.test-area>.test-toggle{min-height:54px;padding:12px 15px;gap:12px}
.test-area>.test-toggle .test-toggle-label{display:grid;gap:3px}
.test-area>.test-toggle .test-toggle-label strong{font-size:14px;font-weight:900;letter-spacing:1px;color:#f1f5f8}
.test-area>.test-toggle .test-toggle-label small{font-size:10px;font-weight:400;letter-spacing:0;color:#a6b7c6}
.test-area>.test-toggle .test-toggle-plus{font-size:18px;line-height:1;color:#b9c8d5}
.test-area[open]>.test-toggle .test-toggle-plus{transform:rotate(45deg)}
.test-area[open]>.test-toggle .test-toggle-label{transform:none}
html[data-theme="light"] .test-area>.test-toggle .test-toggle-label strong{color:#182735}
html[data-theme="light"] .test-area>.test-toggle .test-toggle-label small{color:#40576a}
html:not([data-theme="light"]) .test-area>.test-toggle{background:#263746}


/* Keep the TEST title/subtitle line spacing identical to the single-scan heading */
.test-area>.test-toggle .test-toggle-label{line-height:1.5;gap:3px}


/* Copy the candidate's full analysis for independent review */
.copy-analysis{width:100%;margin:0 0 10px;padding:8px;background:#263746;border:1px solid #66839a;color:#eaf0f6;font-size:10px;font-weight:800;letter-spacing:.7px}.copy-analysis.copied{background:#315247;border-color:#6b927e;color:#f1f6f2}.copy-analysis:focus-visible{outline:2px solid #9fc9eb;outline-offset:2px}
html[data-theme="light"] .copy-analysis{background:#e5eef5;border-color:#9db8cc;color:#28465f}

/* Clearly distinguish the isolated TEST-EBENE from the normal app */
html:not([data-theme="light"]) body{background:#101321}
html:not([data-theme="light"]) header{background:#191a2b;border-bottom:1px solid #5b4b78}
.test-mode-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px max(5vw,20px);background:linear-gradient(100deg,#302047 0%,#18394a 100%);border-bottom:2px solid #a78bfa;color:#fff}
.test-mode-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.test-mode-copy strong{font-size:13px;letter-spacing:2px;color:#d8c7ff}
.test-mode-copy span{font-size:9px;letter-spacing:.8px;color:#c5d3e2}
.back-to-live{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid #9c87c8;background:#211b32;color:#fff;text-decoration:none;font-size:10px;font-weight:900;letter-spacing:.6px;white-space:nowrap}
.back-to-live:active{background:#3d3155}
@media(max-width:520px){.test-mode-banner{padding:9px 12px;gap:8px}.test-mode-copy span{font-size:8px;letter-spacing:.2px}.back-to-live{font-size:9px;padding:7px 8px}}

/* Embedded in the normal app: parent toolbar provides the return control. */
.embedded-test-frame .test-mode-banner{display:none!important}


/* LAVA RED developer identity — only active in the embedded developer environment */
html.embedded-test-frame body{background:#170b0d;color:#fff0ec}
html.embedded-test-frame header{background:linear-gradient(100deg,#2b0b10 0%,#451016 55%,#211014 100%);border-bottom:1px solid #a52c32}
html.embedded-test-frame .mark{background:#64171c;border-color:#ff5b52;color:#fff}
html.embedded-test-frame .eyebrow,
html.embedded-test-frame h1 em{color:#ff7568}
html.embedded-test-frame .score{color:#ff9a8f}
html.embedded-test-frame .expand-hint{color:#ff887c}
html.embedded-test-frame .panel,
html.embedded-test-frame .cost-settings,
html.embedded-test-frame .single-scan,
html.embedded-test-frame .stats>div{background:#291316;border-color:#713039}
html.embedded-test-frame .panel-title,
html.embedded-test-frame .panel-title>span{background:#40191e;border-color:#87343b;color:#ffe2dc}
html.embedded-test-frame .results,
html.embedded-test-frame .trade-grid,
html.embedded-test-frame .single-result-head,
html.embedded-test-frame .single-trade-grid>div{background:#1d0e11;border-color:#713039}
html.embedded-test-frame .top-three{background:linear-gradient(135deg,#4a171d 0%,#291316 80%);border-color:#c13d43;box-shadow:inset 0 0 0 1px #6e222b}
html.embedded-test-frame .rank-group-label{background:#4a171d;border-color:#a63840;color:#ffd0c8}
html.embedded-test-frame .single-scan-toggle{background:#40191e}
html.embedded-test-frame .single-scan-toggle strong,
html.embedded-test-frame .single-scan-chevron{color:#ffe2dc}
html.embedded-test-frame .single-scan-controls button,
html.embedded-test-frame .test-start{background:linear-gradient(110deg,#a51f2b,#e3423c);border:1px solid #ff786a;color:#fff;box-shadow:0 0 14px #d92c3733}
html.embedded-test-frame .test-area{background:#351419;border-color:#d0444b;box-shadow:inset 0 0 0 1px #61212a}
html.embedded-test-frame .test-area>.test-toggle,
html.embedded-test-frame .test-chip,
html.embedded-test-frame .test-select,
html.embedded-test-frame .test-position{background:#4a1b22;border-color:#a63b45;color:#fff0ec}
html.embedded-test-frame .test-area>.test-toggle .test-toggle-label strong,
html.embedded-test-frame .test-select{color:#fff0ec}
html.embedded-test-frame .test-select[aria-pressed="true"]{background:#315247;border-color:#42c98b}
html.embedded-test-frame .test-position.closed .test-reason{background:#451b20;border-left-color:#ff7568}
html.embedded-test-frame .copy-analysis{background:#4a1b22;border-color:#c1434b;color:#fff0ec}
html.embedded-test-frame .copy-analysis:focus-visible{outline-color:#ff8b7d}
html.embedded-test-frame .settings-dialog{background:#291316;border-color:#a63b45}
html.embedded-test-frame .settings-head,
html.embedded-test-frame .settings-section{border-color:#713039}
html.embedded-test-frame .settings-open,
html.embedded-test-frame .settings-close,
html.embedded-test-frame .theme-option{background:#40191e;border-color:#a63b45;color:#fff0ec}
html.embedded-test-frame .test-mode-banner{background:linear-gradient(100deg,#6e111b 0%,#b32631 55%,#451016 100%);border-bottom-color:#ff7568}
html.embedded-test-frame .test-mode-copy strong{color:#ffe0dc}
html.embedded-test-frame .back-to-live{background:#351116;border-color:#ff7568}
