/* Original palette and geometric motifs; all question surfaces stay light. */
.header-search{background:var(--soft)!important;border:1px solid var(--green,var(--accent,#176b52))!important}
.header-search:focus-within{background:var(--paper,#fff)!important;border-color:var(--green,var(--accent,#176b52))!important;box-shadow:0 0 0 1px var(--green,var(--accent,#176b52)),0 5px 18px #172b2c12!important}
.sidebar-account-row{gap:6px!important}
.sidebar-identity{display:grid;gap:0!important;line-height:1.1}
.sidebar-identity strong,.sidebar-identity small{display:block;line-height:1.1}
.account-controls{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap}.account-controls .muted{font-size:11px}.security-panel{margin-bottom:25px}#sign-in{max-width:650px}#sign-in .eyebrow{margin-bottom:12px}#auth-error:empty{display:none}
[data-theme=builder]{--green:#87500a;--ink:#2d2922;--muted:#73634d;--line:#e7dbc7;--bg:#faf7ef;--soft:#f8eacc;--accent:#f5b640;--secondary:#3b6384;--motif:repeating-linear-gradient(90deg,transparent 0 23px,#87500a0d 23px 24px),repeating-linear-gradient(0deg,transparent 0 23px,#87500a0d 23px 24px)}
[data-theme=panda]{--green:#32633f;--ink:#213b2b;--muted:#586d5f;--line:#d7e4d7;--bg:#f3f7ef;--soft:#e2edda;--accent:#91b65d;--secondary:#373b32;--motif:repeating-linear-gradient(100deg,transparent 0 38px,#32633f08 38px 44px,transparent 44px 80px)}
[data-theme=spider]{--green:#a12d3b;--ink:#172e4a;--muted:#5b687a;--line:#dce2ee;--bg:#f4f6fc;--soft:#fbe8eb;--accent:#d54552;--secondary:#2f5b95;--motif:repeating-conic-gradient(from 15deg at 100% 0,#2f5b950a 0deg 1deg,transparent 1deg 20deg)}
[data-theme=avengers]{--green:#655092;--ink:#2b2440;--muted:#70667e;--line:#e2dceb;--bg:#f7f4fb;--soft:#ede6f7;--accent:#ba9450;--secondary:#655092;--motif:radial-gradient(circle at 85% 30%,#ba945022 0 2px,transparent 3px),radial-gradient(ellipse at top right,#65509218,transparent 65%)}
[data-theme=captain]{--green:#2b527e;--ink:#21324d;--muted:#5d6d83;--line:#d9e1eb;--bg:#f3f6fa;--soft:#e4edf7;--accent:#b54148;--secondary:#2b527e;--motif:repeating-radial-gradient(circle at 110% 50%,transparent 0 25px,#b541480a 25px 28px,transparent 28px 45px)}
.sidebar{border-top:1px solid var(--accent);background:linear-gradient(180deg,var(--soft),#fff 240px);overflow-y:auto}
.brand{font-size:32px;letter-spacing:-1.2px}.brand span{font-size:10px;letter-spacing:1.1px;line-height:1.5}.sidebar-label{margin-top:36px}
header{border-bottom:2px solid var(--line)}
.motivation{display:flex;align-items:center;gap:18px;position:relative;background-color:var(--soft);background-image:var(--motif);border:1px solid var(--line);border-radius:10px;padding:18px 22px;margin:-7px 0 26px;overflow-wrap:anywhere}
.motivation-symbol{font-size:30px;color:var(--green);flex-shrink:0;width:42px;text-align:center}.motivation .eyebrow{color:var(--green);font-size:10px}.motivation p{margin:4px 0;font-size:16px;font-weight:600;line-height:1.5}.motivation small{display:block;color:var(--muted);font-size:12px;line-height:1.6}
body:has(#questions:not([hidden])) main>.motivation{gap:10px;margin:0 0 12px;padding:9px 14px}
body:has(#questions:not([hidden])) main>.motivation .eyebrow,body:has(#questions:not([hidden])) main>.motivation small{display:none}
body:has(#questions:not([hidden])) main>.motivation .motivation-symbol{width:24px;font-size:22px}
body:has(#questions:not([hidden])) main>.motivation p{margin:0;font-size:14px;line-height:1.35}
.theme-panel{margin:0;min-width:0}.theme-panel legend{font-size:20px;font-weight:650;padding:0 8px}.theme-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.theme-choice{position:relative;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px;border:2px solid var(--line);border-radius:10px;cursor:pointer;color:var(--ink);background:#fff;min-width:0}.theme-choice:has(input:checked){border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.theme-choice:has(input:focus-visible){outline:3px solid var(--green);outline-offset:3px}.theme-choice input{position:absolute;top:14px;right:14px;width:18px;height:18px;margin:0;accent-color:var(--green)}.theme-choice strong{font-size:15px}.theme-description{font-size:12px;color:var(--muted);font-weight:400;line-height:1.6}.theme-spirit{font-size:11px;color:var(--green);margin-top:auto;padding-top:7px}.theme-swatch{height:85px;border-radius:6px;background-color:var(--soft);background-image:var(--motif);display:flex;align-items:end;gap:6px;padding:12px}.theme-swatch>span{font-size:30px;line-height:1;color:var(--green);margin-right:auto;align-self:center}.theme-swatch i{height:12px;width:12px;border-radius:50%;background:var(--accent)}.theme-swatch i:nth-of-type(2){background:var(--secondary)}.theme-swatch i:nth-of-type(3){background:var(--ink)}.personal-panel{margin-top:24px}.preference-toggles{display:flex;flex-wrap:wrap;gap:12px 28px}.preference-toggles label{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--ink);font-weight:400}.preference-toggles input{width:18px;height:18px;margin:0;accent-color:var(--green)}#preferences-form .form-footer{flex-wrap:wrap}#preferences-form input{border-color:var(--line)}.concept-chip{border-color:var(--line)}.option-cell{background:var(--bg)}
[data-density=comfortable] .rendered-question{padding:clamp(22px,3vw,34px)}
[data-density=comfortable] .question-body,[data-density=comfortable] .option-body,[data-density=comfortable] .stimulus-body{line-height:1.9}
[data-density=comfortable] .option-cell{padding:20px}
[data-density=compact] .rendered-question{padding:18px 22px}
[data-density=compact] .rendered-question .question-heading{gap:6px 9px;margin-bottom:12px}
[data-density=compact] .rendered-question .question-heading .badge{padding:3px 6px}
[data-density=compact] .rendered-question .option-grid{margin:12px 0}
[data-density=compact] .rendered-question .option-cell{padding:11px 13px}
[data-density=compact] .rendered-question details:not(.help-row),[data-density=compact] .rendered-question .question-footer{display:none}
[data-density=compact] .rendered-question .concept-chips{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;margin:12px 0 0;padding-bottom:3px;scrollbar-width:thin}
[data-density=compact] .rendered-question .concept-chip{flex:none;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:999px}
[data-density=compact] .rendered-question .concept-chip small{display:none}
.density-panel{margin-bottom:20px}.density-panel legend{font-size:20px;font-weight:650;padding:0 8px}.density-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.density-choice{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:86px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);cursor:pointer}
.density-choice:has(input:checked){border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.density-choice:has(input:focus-visible){outline:2px solid var(--green);outline-offset:3px}
.density-choice input{position:absolute;right:10px;top:10px;width:18px;height:18px;margin:0;accent-color:var(--green)}
.density-choice>span:last-child{display:grid;gap:3px;padding-right:18px}.density-choice strong{font-size:14px}.density-choice small{font-size:11px;line-height:1.35;color:var(--muted)}
.density-mini{display:grid;align-content:start;gap:4px;width:60px;height:48px;flex:none;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--bg)}
.density-mini i{display:block;height:4px;border-radius:3px;background:var(--green);opacity:.55}.density-mini i:nth-child(2){width:77%}.density-mini i:nth-child(n+3){background:var(--accent)}
[data-preview-density=comfortable] .density-mini i{height:6px}[data-preview-density=compact] .density-mini{gap:3px}[data-preview-density=compact] .density-mini i{height:3px}
.theme-choice .theme-swatch{position:relative;display:block;height:100px;padding:0;overflow:hidden;border:1px solid var(--preview-line);background:var(--preview-soft)}
.theme-choice .theme-swatch>span{position:absolute;display:block;margin:0;align-self:auto;font-size:inherit}
.theme-choice .theme-swatch .preview-top{inset:0 0 auto;height:20px;background:var(--preview-main)}
.theme-choice .theme-swatch .preview-card{inset:28px 16px 10px;display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:5px;padding:10px;border-radius:7px;background:#fff;box-shadow:0 5px 12px #172b2c18}
.theme-choice .theme-swatch i{display:block;height:6px;width:auto;border-radius:3px;background:var(--preview-main)}
.theme-choice .theme-swatch .preview-line{grid-column:1/-1;opacity:.65}.theme-choice .theme-swatch .preview-line.short{width:66%;background:var(--preview-secondary)}
.theme-choice .theme-swatch .preview-option{height:15px;border-radius:4px;background:var(--preview-soft);border:1px solid var(--preview-line)}
.theme-choice .theme-swatch .preview-accent{top:31px;right:20px;width:7px;height:7px;border-radius:50%;background:var(--preview-accent)}
.theme-choice[data-theme=builder]{--preview-soft:#f8eacc;--preview-main:#87500a;--preview-accent:#f5b640;--preview-secondary:#3b6384;--preview-line:#d9bc87}
.theme-choice[data-theme=panda]{--preview-soft:#e2edda;--preview-main:#32633f;--preview-accent:#91b65d;--preview-secondary:#373b32;--preview-line:#b4d0b5}
.theme-choice[data-theme=spider]{--preview-soft:#fbe8eb;--preview-main:#a12d3b;--preview-accent:#d54552;--preview-secondary:#2f5b95;--preview-line:#e3b8c2}
.theme-choice[data-theme=avengers]{--preview-soft:#ede6f7;--preview-main:#655092;--preview-accent:#ba9450;--preview-secondary:#2b2440;--preview-line:#cdbde0}
.theme-choice[data-theme=captain]{--preview-soft:#e4edf7;--preview-main:#2b527e;--preview-accent:#b54148;--preview-secondary:#21324d;--preview-line:#b7cce2}
@media(max-width:1100px){.brand{font-size:28px}.theme-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.brand{font-size:27px}.brand span{display:block;margin-left:0;margin-top:5px;font-size:10px}.theme-choices{grid-template-columns:1fr}.theme-choice{display:grid;grid-template-columns:65px 1fr;column-gap:14px}.theme-swatch{grid-row:1/4;height:90px;padding:8px;display:grid;place-items:center}.theme-swatch>span{margin:0}.theme-swatch i{display:none}.theme-choice input{top:12px;right:12px}.theme-choice strong{padding-right:26px}.theme-spirit{padding-top:0}.motivation{gap:10px;padding:15px 12px}.motivation-symbol{width:26px;font-size:24px}.motivation p{font-size:14px}.motivation .eyebrow{letter-spacing:1px}.personal-panel .form-footer .button{font-size:12px}}
@media(max-width:900px){.density-choices{grid-template-columns:1fr}}
@media(max-width:650px){.theme-choice{grid-template-columns:86px 1fr}.theme-choice .theme-swatch{grid-row:1/4;height:90px}.theme-choice .theme-swatch i{display:block}[data-density=comfortable] .rendered-question{padding:20px}[data-density=compact] .rendered-question{padding:14px}}
