:root{color-scheme:light;--bg: #f6f5f2;--surface: #fcfcfb;--surface-2: #efeee9;--border: #dedcd5;--text: #0b0b0b;--text-2: #52514e;--text-3: #7a7973;--accent: #2a78d6;--accent-ink: #ffffff;--grid: #e4e2dc;--axis: #b9b7ae;--g0: #2a78d6;--g1: #eb6834;--g2: #1baf7a;--g3: #6250d6;--g4: #e87ba4;--g5: #eda100;--disagree: #e34948;--neutral: #d8d6cf;--agree: #2a78d6;--seq-0: #cde2fb;--seq-1: #9ec5f4;--seq-2: #6da7ec;--seq-3: #3987e5;--seq-4: #256abf;--seq-5: #184f95;--me: #0b0b0b;--radius: 10px;--shadow: 0 1px 2px rgb(0 0 0 / .05), 0 4px 16px rgb(0 0 0 / .04);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg: #121211;--surface: #1a1a19;--surface-2: #242422;--border: #34342f;--text: #f0efec;--text-2: #c3c2b7;--text-3: #8f8e86;--accent: #3987e5;--grid: #2a2a27;--axis: #55554f;--g0: #3987e5;--g1: #d95926;--g2: #199e70;--g3: #9085e9;--g4: #d55181;--g5: #c98500;--disagree: #e66767;--neutral: #4a4a45;--agree: #3987e5;--seq-0: #1d2c3f;--seq-1: #104281;--seq-2: #184f95;--seq-3: #256abf;--seq-4: #3987e5;--seq-5: #86b6ef;--me: #f0efec}}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button{font:inherit;cursor:pointer}h1,h2,h3{line-height:1.2;margin:0 0 .5rem}h1{font-size:1.9rem;letter-spacing:-.02em}h2{font-size:1.3rem}h3{font-size:1.05rem}p{margin:0 0 .75rem}.muted{color:var(--text-2)}.small{font-size:.85rem}.app-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1rem;border-bottom:1px solid var(--border);background:var(--surface)}.brand{font-weight:700;letter-spacing:-.01em;display:flex;align-items:center;gap:.5rem}.brand-dot{width:14px;height:14px;border-radius:50%;background:conic-gradient(var(--g0) 0 33%,var(--g1) 0 66%,var(--g2) 0)}.steps{display:flex;gap:.35rem;font-size:.8rem;color:var(--text-3);flex-wrap:wrap}.steps span.active{color:var(--text);font-weight:600}main{max-width:1180px;margin:0 auto;padding:1.5rem 1rem 4rem}.narrow{max-width:720px;margin:0 auto}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;box-shadow:var(--shadow)}.stack>*+*{margin-top:1rem}.row{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.spread{justify-content:space-between}.btn{border:1px solid var(--border);background:var(--surface);color:var(--text);padding:.55rem 1rem;border-radius:8px}.btn:hover{background:var(--surface-2)}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}.btn.primary:hover{filter:brightness(1.08)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.ghost{border-color:transparent;background:transparent;color:var(--text-2)}.btn.link{border:none;background:none;color:var(--accent);padding:0;text-decoration:underline}input[type=number]{font:inherit;padding:.4rem .5rem;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);width:6rem}label.field{display:flex;flex-direction:column;gap:.25rem;font-size:.85rem;color:var(--text-2)}.callout{border-left:3px solid var(--accent);background:var(--surface-2);padding:.75rem 1rem;border-radius:0 8px 8px 0;font-size:.92rem}.error{color:var(--disagree)}.compass{width:100%;max-width:440px;aspect-ratio:1;display:block;margin:0 auto;touch-action:none}.compass .quad-label{font-size:11px;fill:var(--text-3)}.compass .axis-label{font-size:12px;fill:var(--text-2);font-weight:600}.question-text{font-size:1.15rem;font-weight:600;margin-bottom:.9rem}.likert{display:grid;grid-template-columns:repeat(5,1fr);gap:.4rem}.likert button{border:1px solid var(--border);background:var(--surface);color:var(--text-2);border-radius:8px;padding:.55rem .25rem;font-size:.8rem;min-height:3rem}.likert button:hover{border-color:var(--accent);color:var(--text)}.likert button.selected{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}.sub-questions{border-left:2px solid var(--border);padding-left:1rem;margin-left:.25rem}.sub-questions .question-text{font-size:1rem;font-weight:500}.progress{height:6px;background:var(--surface-2);border-radius:3px;overflow:hidden}.progress>div{height:100%;background:var(--accent);transition:width .25s}.results-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:1.25rem;align-items:start}@media(max-width:900px){.results-grid{grid-template-columns:minmax(0,1fr)}}.value-map{width:100%;height:auto;display:block}.value-map .grid-line{stroke:var(--grid)}.value-map .axis-line{stroke:var(--axis)}.value-map text{font-size:11px;fill:var(--text-3)}.value-map .axis-label{fill:var(--text-2);font-weight:600;font-size:12px}.legend{display:flex;flex-wrap:wrap;gap:.4rem 1rem;font-size:.82rem;color:var(--text-2);margin-top:.5rem}.legend-item{display:inline-flex;align-items:center;gap:.35rem}.tooltip{position:absolute;pointer-events:none;background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:.35rem .55rem;font-size:.78rem;box-shadow:var(--shadow);white-space:nowrap;color:var(--text)}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.75rem}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.75rem 1rem}.stat .v{font-size:1.5rem;font-weight:700}.stat .l{font-size:.78rem;color:var(--text-2)}.topic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:.6rem}.topic-tile{text-align:left;border:1px solid var(--border);border-radius:var(--radius);padding:.75rem;background:var(--surface);display:flex;flex-direction:column;gap:.4rem;position:relative;overflow:hidden;color:var(--text)}.topic-tile:hover{border-color:var(--accent)}.topic-tile.active{outline:2px solid var(--accent);outline-offset:1px}.topic-tile .swatch{position:absolute;inset:0 auto 0 0;width:6px}.topic-tile .t{font-weight:600;font-size:.9rem;padding-left:.3rem}.topic-tile .pct{font-size:1.35rem;font-weight:700;padding-left:.3rem}.topic-tile .sub{font-size:.72rem;color:var(--text-3);padding-left:.3rem}.meter{height:4px;border-radius:2px;background:var(--surface-2);margin-left:.3rem}.meter>div{height:100%;border-radius:2px;background:var(--text-3)}.seq-legend{display:flex;align-items:center;gap:.4rem;font-size:.75rem;color:var(--text-3)}.seq-legend .bar{display:flex;height:8px;width:120px;border-radius:4px;overflow:hidden}.seq-legend .bar span{flex:1}.q-detail{border:1px solid var(--border);border-radius:var(--radius);padding:.9rem 1rem;background:var(--surface)}.q-detail.child{margin-left:1rem}.q-detail.grandchild{margin-left:2rem}.q-head{display:flex;gap:.75rem;justify-content:space-between;align-items:flex-start}.q-head .q-text{font-weight:600}.badge{font-size:.72rem;border-radius:999px;padding:.15rem .55rem;white-space:nowrap;border:1px solid var(--border);color:var(--text-2)}.badge.common{border-color:var(--agree);color:var(--text);background:color-mix(in srgb,var(--agree) 14%,transparent)}.badge.split{border-color:var(--disagree);color:var(--text);background:color-mix(in srgb,var(--disagree) 12%,transparent)}.group-bars{display:grid;grid-template-columns:auto 1fr auto;gap:.3rem .6rem;align-items:center;margin-top:.6rem;font-size:.78rem}.group-bars .gname{display:inline-flex;align-items:center;gap:.3rem;color:var(--text-2);white-space:nowrap}.stacked{display:flex;height:14px;gap:2px}.stacked span{height:100%}.stacked span:first-child{border-radius:4px 0 0 4px}.stacked span:last-child{border-radius:0 4px 4px 0}.my-answer{font-size:.78rem;color:var(--text-2);margin-top:.4rem}.common-list{list-style:none;padding:0;margin:0}.common-list li{padding:.55rem 0;border-bottom:1px solid var(--border);display:flex;gap:.75rem;align-items:baseline}.common-list li:last-child{border-bottom:none}.common-list .pct{font-weight:700;min-width:3rem}.admin{font-size:.85rem}details summary{cursor:pointer;color:var(--text-2)}.compass:focus{outline:none}.compass:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:8px}@media(max-width:600px){.q-head{flex-direction:column;gap:.35rem}.q-detail.child{margin-left:.5rem}.q-detail.grandchild{margin-left:1rem}.likert{grid-template-columns:1fr}.likert button{min-height:2.5rem}h1{font-size:1.5rem}}
