/* Results share the report's typography and Swiss red; chart colours identify themes. */
body:has(.results-head){background:#0d0f10;--panel:#17191d;--line:#30333a;--muted:#a9afb8;--text:#f4f5f7}
body:has(.results-head) .panel{background:#17191d;border-color:#30333a;border-radius:14px}
body:has(.results-head) .eyebrow{color:#ff0000;letter-spacing:1.8px}
body:has(.results-head) h1,body:has(.results-head) h2{font-family:var(--ui-font,Arial),sans-serif;letter-spacing:-1.4px}
body:has(.results-head) .status-note{background:#1c1e23;color:#b9bfc7;border-left:2px solid #ff0000;border-radius:0 8px 8px 0}
.results-head{align-items:flex-start;gap:32px}
.results-title{min-width:0;flex:1}
.results-title h1{font-size:clamp(34px,4.2vw,54px);line-height:1.08}
.report-actions{flex:0 1 350px;min-width:280px}
.report-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.report-actions-grid button{width:100%;min-width:0;min-height:50px;margin:0;padding:12px 10px;font-size:14px;line-height:1.3;font-weight:600;border:1px solid #484c54;border-radius:8px;background:#1e2025;color:#f4f5f7}
.report-actions-grid .primary{background:#ff0000;border-color:#ff0000;color:white}
.report-actions .fine,.report-view-note{font-size:12px;line-height:1.5;margin:10px 0 0;color:#a9afb8}
.report-view-note{color:#d3d7dd}
.profile-switch{display:flex;gap:8px;margin:22px 0 12px}
.profile-switch button{flex:1;min-width:0;min-height:48px;padding:10px;font-size:14px;font-weight:600;line-height:1.3;border:1px solid #464a52;border-radius:8px;background:#202329}
.profile-switch button[aria-pressed=true]{border-color:#ff0000;background:rgb(255 0 0 / .09);color:#fff;box-shadow:inset 0 -2px #ff0000}
.view-caption{font-size:13px;line-height:1.55;min-height:40px;margin-bottom:8px}
.profile-chart-button{display:block;width:100%;padding:0;border:0;border-radius:12px;background:transparent;color:inherit;text-align:left}
.profile-chart-button:hover{background:rgb(255 255 255 / .015)}
.profile-chart-button .wheel-wrap{padding:0}
.profile-chart-button .chart-wheel{max-height:340px}
.profile-chart-button .wheel-key{font-size:12px;line-height:1.6}
.profile-values{margin-top:18px}
.profile-values .metric{margin:16px 0}
body:has(.results-head) .metric-head{gap:8px;flex-wrap:wrap;font-size:14px;line-height:1.4}
body:has(.results-head) .metric-head>span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:12px;color:#d3d7dd}
body:has(.results-head) .bar{height:5px;background:#2e3239}
body:has(.results-head) .potential{border-left:2px solid #555b65;padding:14px 0 14px 18px;margin:18px 0}
body:has(.results-head) .potential .label{font-size:11px;letter-spacing:1.3px;color:#aeb5c0;margin-bottom:8px}
body:has(.results-head) .chosen-focus{border-color:#ff0000;background:linear-gradient(90deg,rgb(255 0 0 / .055),transparent);border-radius:0 8px 8px 0}
body:has(.results-head) .chosen-focus .label{color:#ff0000}
.focus-choice{margin-top:10px;border:1px solid #4b5059;background:#202329;min-height:44px;font-size:14px;padding:10px 14px}
.focus-choice[aria-pressed=true]{border-color:#ff0000;color:#fff;background:rgb(255 0 0 / .11)}
.results-plan{margin-top:25px}
@media(hover:hover){.profile-switch button:hover,.focus-choice:hover,.report-actions-grid button:hover{border-color:#ff0000}.report-actions-grid .primary:hover{background:#e00000}}
@media(prefers-reduced-motion:no-preference){
 .detail-invitation{animation:detail-glow 1.8s ease-in-out 3}
 .profile-turn .chart-wheel{animation:profile-reveal .38s ease-out}
 @keyframes detail-glow{0%,100%{box-shadow:0 0 0 0 rgb(255 0 0 / .0)}50%{box-shadow:0 0 18px 2px rgb(255 0 0 / .20);border-color:#ff0000}}
 @keyframes profile-reveal{from{opacity:.35;transform:perspective(700px) rotateY(-12deg)}to{opacity:1;transform:perspective(700px) rotateY(0)}}
}
@media(max-width:900px){.results-head{display:block}.report-actions{max-width:580px;min-width:0;margin-top:24px}.results-grid{grid-template-columns:1fr}}
@media(max-width:480px){.report-actions-grid{gap:8px}.report-actions-grid button{font-size:13px;min-height:50px}.profile-switch{gap:7px}.profile-switch button{font-size:12px;padding:9px 6px}.resources-panel,.priorities-panel{padding:20px}.profile-chart-button .chart-wheel{max-height:300px}}

.report-actions-grid .primary{grid-column:1/-1}
.backup-status{font-size:12px;line-height:1.5;color:#acb1ba;margin:14px 0}
.json-import{margin:15px 0;font-size:14px}
.login-panel{max-width:460px}.login-panel label{display:block;margin-bottom:20px}.login-panel input{display:block;width:100%;margin-top:8px;padding:12px;color:inherit;background:#111318;border:1px solid #454850;border-radius:6px;font:inherit}
.archive-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:22px 0}.archive-tools button,.archive-pdf{font-size:14px;min-height:44px;padding:12px 16px;border:1px solid #474b53;border-radius:8px;text-decoration:none}
.archive-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:15px 0}.archive-row h2{font-size:24px}.archive-row small{overflow-wrap:anywhere;color:#a9afb8}.archive-row p{margin:6px 0}.archive-row .archive-tools{max-width:240px}
@media(max-width:600px){.archive-row{display:block}.login-panel{padding:22px}}

.priority-edit-label{display:block;font-size:13px;color:#c1c5cd;margin:14px 0 8px}
.priority-note{display:block;box-sizing:border-box;width:100%;resize:vertical;min-height:100px;max-height:420px;padding:12px;border:1px solid #50545d;border-radius:8px;background:#101215;color:#f4f5f7;font:inherit;font-size:16px;line-height:1.5}
.priority-note:focus{outline:2px solid #ff0000;outline-offset:2px;border-color:transparent}
.priority-help{font-size:12px!important;line-height:1.5;color:#adb3bd;margin:8px 0}
.priority-preview{font-size:14px;margin:12px 0;overflow-wrap:anywhere}.priority-preview summary{cursor:pointer;color:#c4c8cf}.priority-preview>div{padding:10px 0;white-space:pre-wrap;line-height:1.5}
.profile-badges{display:flex;justify-content:flex-end;align-items:center;gap:8px;min-height:24px;margin-bottom:8px}
.focus-pill{display:inline-block;border-radius:99px;background:#ff0000;color:#fff;padding:3px 9px;font-size:11px;font-weight:700;line-height:1.3;vertical-align:middle}
.priority-mark{color:#ff0000;font-weight:900;font-size:20px;line-height:1}
.profile-legend{font-size:13px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
.copyright{display:none;font-size:11px;color:#9299a4;white-space:nowrap}body.start-page .copyright,body:has(.results-head) .copyright{display:inline}
.imprint{border-top:1px solid #41454c;margin-top:28px;padding-top:18px}.imprint h3{font-size:14px}.imprint p,.imprint small{font-size:12px;line-height:1.6;color:#adb3bd}

.personal-code{margin:6px 0 0;font-size:13px;color:#a8b7ad}.personal-code code{font-family:'JetBrains Mono',ui-monospace,monospace;color:#fff;background:#ffffff10;border:1px solid #ffffff20;border-radius:6px;padding:2px 8px;margin-left:4px}
