:root{--ink:#162238;--muted:#617087;--blue:#243954;--navy:#121b2a;--gold:#bd9864;--gold-light:#e9ddc8;--card:#fff;--bg:#f6f5f2;--line:#e4e3df;--good:#39725e;--soft:#f1efeb;--focus:#a47c4e}
*{box-sizing:border-box}html{font-family:'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg)}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:#2d607d}*:focus-visible{outline:3px solid var(--gold);outline-offset:3px}h1,h2,h3,p{margin-top:0}.serif,h1,h2{font-family:'Playfair Display',Georgia,serif;letter-spacing:-.025em}h1{font-size:clamp(34px,4vw,55px);line-height:1.1}h2{font-size:clamp(25px,2vw,32px);line-height:1.2}h3{font-size:18px}.eyebrow{text-transform:uppercase;letter-spacing:.2em;font-weight:700;font-size:10px;color:var(--gold)}.muted{color:var(--muted)}.small{font-size:13px}.tiny{font-size:11px}.gold{color:var(--gold)}.normal{font-family:'DM Sans',sans-serif}.brand{font-family:'Playfair Display',Georgia,serif;letter-spacing:.03em;font-size:20px;font-weight:600}.brand-mark{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--gold);color:var(--gold);font-family:Georgia,serif;width:36px;height:36px;border-radius:50%;margin-right:11px;font-size:19px}.pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:99px;background:#eee9df;color:#756246;font-size:11px;font-weight:700;white-space:nowrap}.pill.done{color:#27674e;background:#e6f2eb}.pill.pending{color:#695936;background:#f3ebd9}.pill.dark{background:rgba(208,181,140,.13);color:#d0b58c}.btn{border:1px solid var(--line);background:var(--card);border-radius:10px;padding:13px 19px;font-weight:700;font-size:13px;color:var(--ink);transition:.15s}.btn:hover:not(:disabled){transform:translateY(-1px);border-color:#a79a87}.btn.primary{background:var(--navy);color:white;border-color:var(--navy)}.btn.primary:hover:not(:disabled){background:#2b3e58}.btn.gold-btn{background:var(--gold);border-color:var(--gold);color:#fff}.btn.quiet{background:transparent;border-color:transparent;color:var(--muted);padding:10px}.btn.danger{color:#a53e45}.field{width:100%;border:1px solid #d8dade;border-radius:10px;padding:13px 14px;background:white;color:var(--ink);font-size:14px}.field:focus{border-color:var(--focus);outline:2px solid #d9c39d}textarea.field{line-height:1.6;min-height:110px;resize:vertical}label.field-label{display:block;font-size:12px;font-weight:700;margin:18px 0 8px}.line{height:1px;background:var(--line);margin:22px 0}.callout{border-left:3px solid var(--gold);background:#f5efe3;padding:14px 16px;border-radius:0 8px 8px 0;color:#574d42;font-size:13px;line-height:1.6}.loading{display:flex;min-height:100vh;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:var(--muted)}.spinner{width:24px;height:24px;border:3px solid #ddd;border-top-color:var(--gold);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
/* Login */
.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(410px,1fr)}.auth-art{background:radial-gradient(ellipse at 75% 18%,#394158 0%,#151d2e 60%,#101827 100%);color:#fff;padding:45px clamp(25px,5vw,90px);position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:600px;overflow:hidden}.auth-art:before,.auth-art:after{content:'';position:absolute;pointer-events:none;border:1px solid rgba(201,174,135,.25);width:470px;height:470px;border-radius:50%;right:-180px;top:20%}.auth-art:after{right:-75px;top:25%;width:470px;height:470px}.auth-art h1{font-size:clamp(50px,5vw,86px);font-weight:500;margin-bottom:26px;max-width:680px}.auth-art p{color:#c1c5cd;font-size:15px;max-width:440px;line-height:1.7}.auth-art .brand{color:#e6d0ab}.auth-footer{font-size:12px;color:#adb7c3}.auth-panel{display:flex;align-items:center;justify-content:center;padding:50px 30px}.auth-card{width:min(100%,435px)}.auth-card h2{font-size:36px}.auth-card p{line-height:1.65}.auth-card .btn{width:100%;margin-top:18px}.auth-sigil{width:55px;height:55px;border:1px solid var(--gold-light);border-radius:16px;color:var(--gold);display:flex;align-items:center;justify-content:center;font-size:28px;margin-bottom:30px}.error{margin:13px 0;color:#b14246;background:#fcf0ee;padding:11px;border-radius:8px;font-size:13px}.success{margin:13px 0;color:#2d7756;background:#e7f4e9;padding:11px;border-radius:8px;font-size:13px}.preview-banner{background:#fdf2cd;color:#78641d;padding:10px 20px;text-align:center;font-size:12px;position:sticky;top:0;z-index:99}
/* App */
.topbar{min-height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:12px clamp(20px,4.2vw,70px);gap:20px}.topbar .brand{color:var(--ink);font-size:21px}.top-right{display:flex;gap:15px;align-items:center}.avatar{width:31px;height:31px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#ede6d9;color:#7f633d;font-weight:800;font-size:12px}.username{font-size:12px;font-weight:700}.layout{display:grid;grid-template-columns:280px minmax(0,1fr);max-width:1540px;margin:0 auto;min-height:calc(100vh - 76px)}.sidebar{border-right:1px solid var(--line);padding:40px 22px;background:#faf9f7;align-self:stretch}.sidebar-sticky{position:sticky;top:35px}.sidebar .eyebrow{margin-bottom:10px}.sidebar h3{font-size:15px;margin:0 0 20px}.progress-track{height:6px;border-radius:5px;background:#e5e5e1;overflow:hidden}.progress-fill{height:100%;background:#bb9864;border-radius:5px;transition:width .2s}.progress-number{display:flex;justify-content:space-between;margin:8px 0 27px;font-size:11px;color:var(--muted)}.nav-group{margin-top:3px}.nav-link{padding:13px 15px;display:flex;align-items:center;gap:13px;justify-content:space-between;width:100%;text-align:left;border:0;background:transparent;border-radius:8px;font-size:13px;font-weight:600;color:#677487;line-height:1.4}.nav-link:hover{background:#ecebe7;color:#2b3548}.nav-link.active{background:#eae6e0;color:#1a2b40}.nav-link .number{font-family:Georgia,serif;font-size:15px;color:#b3a48e;margin-right:4px}.nav-link.active .number{color:#a78b64}.nav-count{font-size:10px;font-variant-numeric:tabular-nums;color:#8d958f;white-space:nowrap}.sidebar-footer{border-top:1px solid var(--line);margin-top:30px;padding-top:22px;color:#718095;font-size:12px;line-height:1.65}.workspace{padding:42px clamp(20px,5vw,78px) 90px;max-width:1150px;width:100%;margin:0 auto}.workspace .eyebrow{margin-bottom:15px}.workspace h1{margin-bottom:14px;font-size:clamp(34px,3.7vw,50px)}.intro{color:var(--muted);line-height:1.8;max-width:740px;font-size:14px;margin-bottom:26px}.category-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:28px}.category-meta{font-size:12px;color:#6f7a8a}.question{background:var(--card);border:1px solid #e8e6e1;border-radius:15px;padding:25px clamp(20px,2.5vw,32px);margin-bottom:18px;box-shadow:0 3px 12px rgba(31,39,56,.02)}.q-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.q-id{letter-spacing:.15em;color:#aa8b5e;font-size:11px;font-weight:800}.q-index{font-size:11px;color:#a0a5ad}.question h3{font-weight:600;font-size:16px;line-height:1.6;margin-bottom:20px;font-family:'DM Sans',sans-serif;letter-spacing:0}.help{font-size:12px;color:#68778a;line-height:1.55;margin-top:-7px;margin-bottom:14px}.chips{display:flex;flex-wrap:wrap;gap:7px}.choice{position:relative;cursor:pointer;user-select:none}.choice input{position:absolute;opacity:0;pointer-events:none}.choice span{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid #e2e2df;padding:10px 13px;background:#fafafa;color:#516174;font-size:12px;line-height:1.35;min-height:39px}.choice:hover span{border-color:#baa37e}.choice input:checked+span{background:#25364b;color:#fff;border-color:#25364b}.choice.scale span{width:41px;padding:10px 0}.choice-row{display:flex;flex-direction:column;align-items:stretch;max-width:740px;gap:8px}.choice-row .choice span{display:flex;justify-content:flex-start;min-height:44px;padding:12px 15px;text-align:left}.scale-labels{display:flex;justify-content:space-between;font-size:11px;color:#82909c;margin:10px 0 0;max-width:480px}.q-note{margin-top:17px}.q-note summary{cursor:pointer;font-size:12px;color:#897151;font-weight:700;padding:5px 0}.q-note textarea{margin-top:10px}.matrix-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(100px,220px);gap:20px;align-items:center;padding:12px 0;border-bottom:1px solid #ecece9}.matrix-row:last-child{border-bottom:0}.matrix-row label{font-size:13px;line-height:1.55;color:#405169}.matrix-row select{width:100%;border:1px solid #dedfdd;border-radius:8px;padding:10px;background:#fbfbfb;font-size:12px;color:#3e4e62}.rank-info{font-size:11px;color:#75808e;margin-bottom:10px}.sticky-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:15px;margin:28px 0 0}.actions-right{display:flex;gap:9px;flex-wrap:wrap}.save-status{font-size:12px;color:#7b857b}.center-panel{max-width:850px;margin:80px auto;text-align:center}.large-card{background:white;border:1px solid var(--line);border-radius:20px;padding:45px;box-shadow:0 20px 60px rgba(28,38,56,.035)}.large-card h1{font-size:42px}.status-mark{font-size:40px;color:#b89868;margin-bottom:12px}.result-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-top:28px;text-align:left}.result-box{border:1px solid var(--line);border-radius:12px;padding:20px;background:#fff}.result-box h3{margin-bottom:10px}.result-box p{margin:0;font-size:13px;color:var(--muted);line-height:1.6}.comparison{margin-top:30px}.compare-row{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:14px}.compare-cell{padding:16px;border:1px solid var(--line);border-radius:10px;background:white;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.compare-head{font-size:11px;text-transform:uppercase;font-weight:800;color:#8f795a;letter-spacing:.1em;margin:12px 0}.res-scroll{max-height:460px;overflow-y:auto}.placeholder{padding:12px 18px;background:#f0efeb;border-radius:10px;color:var(--muted);font-size:12px}.button-link{border:0;background:none;padding:7px 0;color:#526477;font-size:12px;text-decoration:underline}.miniwarning{background:#faf0e3;border:1px solid #e8d5b6;border-radius:10px;padding:14px;font-size:12px;color:#756145;line-height:1.65;margin-bottom:22px}
@media(max-width:900px){.auth-layout{grid-template-columns:1fr}.auth-art{min-height:280px;padding:25px 28px}.auth-art h1{font-size:50px;margin-top:25px;margin-bottom:13px}.auth-footer{display:none}.auth-panel{padding:40px 24px 70px}.layout{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line);padding:18px 18px 12px}.sidebar-sticky{position:static}.sidebar .sidebar-footer,.sidebar .eyebrow,.sidebar h3{display:none}.progress-number{margin-bottom:12px}.nav-group{display:flex;overflow-x:auto;gap:5px;padding-bottom:8px}.nav-link{min-width:max-content;width:auto;font-size:12px;padding:10px 13px}.nav-count{display:none}.workspace{padding:28px 20px 80px}.topbar{padding:13px 19px}.top-right .username{display:none}.large-card{padding:30px 22px}}@media(max-width:600px){.topbar .brand{font-size:16px}.brand-mark{width:29px;height:29px;font-size:15px;margin-right:5px}.top-right{gap:7px}.top-right .pill{font-size:9px;padding:5px 7px}.workspace h1{font-size:35px}.question{padding:20px 17px}.question h3{font-size:15px}.scale .choice span{width:34px}.choice span{font-size:11px}.matrix-row{grid-template-columns:1fr;gap:8px}.sticky-actions{align-items:stretch}.sticky-actions>*{width:100%}.actions-right{flex-direction:column}.btn{width:100%}.category-intro{align-items:flex-start;flex-direction:column}.result-grid,.compare-row{grid-template-columns:1fr}.auth-art h1{font-size:40px}.auth-art{min-height:280px}.auth-card h2{font-size:31px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Prevent narrow screens from inheriting the min-content width of long question text/nav. */
.layout,.sidebar,.workspace,.question,.category-intro{min-width:0}
.workspace,.question{overflow-wrap:break-word}
@media(max-width:900px){.layout{grid-template-columns:minmax(0,1fr)}.sidebar,.workspace{max-width:100%;min-width:0}.nav-group{width:100%;max-width:100%;min-width:0;overflow-x:auto}}
@media(max-width:600px){.category-intro,.intro,.callout,.question h3{overflow-wrap:anywhere}.matrix-row{min-width:0}}

@media(max-width:600px){.topbar .brand{white-space:nowrap;font-size:15px}.top-right .pill,.top-right .avatar{display:none}.topbar .btn.quiet{padding:7px 3px;white-space:nowrap}.nav-group{scrollbar-width:thin}}
