: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}}

/* Questionnaire reset: clearly separate from forward navigation */
.btn-reset{border-color:#dbc2bd;color:#96524b;background:#fffaf9;}
.btn-reset:hover{background:#faece8;border-color:#ba7972;}

/* ------------------------------------------------------------------------
   Female Led Relationship Assessment — approved mid-century modern design
   Vintage Wine #693B43 | Muted Olive #73785A | Warm Ivory #F3EBDD
   ------------------------------------------------------------------------ */
:root{
  --wine:#693B43; --wine-deep:#542b33; --olive:#73785A; --olive-dark:#555B38;
  --ivory:#F3EBDD; --ivory-light:#FBF7F0; --ink:#38282b; --muted:#70645e;
  --blue:#693B43; --navy:#693B43; --gold:#73785A; --gold-light:#DBDEC9;
  --card:#fffdf8; --bg:#F3EBDD; --line:#dbd1c5; --good:#566a4a;
  --soft:#ede3d6; --focus:#73785A;
}
html{font-family:Arial,Helvetica,system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--ink)}
body{background:var(--bg)}
h1,h2,.serif,.brand{font-family:Georgia,'Times New Roman',serif}
a{color:var(--wine)}
*:focus-visible{outline:3px solid var(--olive);outline-offset:3px}
.eyebrow{color:var(--olive-dark);font-size:11px;letter-spacing:.19em}
.muted,.help,.rank-info,.category-meta,.q-index{color:var(--muted)}
.pill{background:#eae2d8;color:var(--wine)}
.pill.done{background:#e5eadc;color:var(--olive-dark)}
.pill.pending{background:#eae2d8;color:var(--wine)}
.btn{border-radius:11px;border-color:#c7b9ae;color:var(--wine);background:var(--ivory-light)}
.btn.primary{background:var(--olive-dark);border-color:var(--olive-dark);color:var(--ivory-light)}
.btn.primary:hover:not(:disabled){background:#41482e;border-color:#41482e}
.btn.quiet{color:var(--ivory-light);border:1px solid rgba(243,235,221,.65);background:transparent}
.btn.quiet:hover:not(:disabled){background:rgba(243,235,221,.1);border-color:var(--ivory)}
.field{background:var(--ivory-light);border-color:#bfaea4;color:var(--ink)}
.field:focus{border-color:var(--olive);outline:2px solid #c5cbb3}
.callout{background:#efeadc;border-left-color:var(--olive);color:#544e43}
.q-id{color:var(--wine);letter-spacing:.08em;font-weight:800}
.question{background:#fffdf9;border-color:#ded1c5;box-shadow:0 5px 20px rgba(74,52,50,.025)}
.question h3{font-family:Georgia,'Times New Roman',serif;font-weight:500;font-size:18px;color:#38272c;line-height:1.5}
.choice span{background:#fffaf2;border-color:#cdbeb0;color:#5b3f3f;border-radius:8px}
.choice:hover span{border-color:var(--olive-dark)}
.choice input:checked+span{background:var(--olive-dark);border-color:var(--olive-dark);color:#fffaf2}
.choice input:focus-visible+span{outline:3px solid var(--olive);outline-offset:3px}
.matrix-row{border-color:#e6dbd1}
.matrix-row label{color:#4d4140}
.matrix-row select{background:#fffaf2;color:#46353a;border-color:#cdbeb0}
.q-note summary{color:var(--wine)}
.miniwarning{background:#efe9dd;border-color:#d3c6b5;color:#625247}
.error{color:#8e3638;background:#fff1ef}

/* Login / landing: user-provided illustration on the left, copy on the right */
.auth-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100vh;background:var(--wine)}
.auth-visual{background:#d7c1a3;min-height:100vh;display:flex;justify-content:center;align-items:center;overflow:hidden}
.auth-visual img{display:block;object-fit:contain;object-position:center center;width:100%;height:100vh;max-height:none}
.auth-panel{background:var(--wine);color:var(--ivory);padding:38px clamp(24px,4vw,70px);min-height:100vh}
.auth-content{width:min(100%,570px);margin:auto;text-align:center}
.auth-brand{color:var(--ivory);display:flex;align-items:center;flex-direction:column;gap:10px}
.key-icon{width:58px;height:38px;flex:none;color:currentColor}
.auth-brand .key-icon{width:86px;height:57px}
.auth-site-name{font-family:Georgia,'Times New Roman',serif;text-transform:uppercase;letter-spacing:.13em;font-size:clamp(17px,1.7vw,24px);line-height:1.4}
.auth-site-name span{display:block;font-family:Arial,Helvetica,sans-serif;font-size:.66em;letter-spacing:.36em;margin-top:7px}
.brand-accent{height:2px;width:86px;margin:20px auto 24px;background:var(--olive)}
.welcome-tagline{color:var(--ivory);font-size:clamp(39px,4vw,65px);line-height:1.03;font-weight:400;margin:0 auto 19px;letter-spacing:-.04em}
.welcome-description{color:#f4e8dc;font-size:clamp(13px,1.3vw,17px);line-height:1.6;max-width:500px;margin:0 auto 27px}
.auth-card{background:var(--ivory);color:var(--wine-deep);width:min(100%,530px);margin:0 auto;padding:24px clamp(20px,3vw,36px) 25px;border-radius:17px;box-shadow:0 10px 38px rgba(23,8,13,.11)}
.auth-card h2{font-size:clamp(27px,3vw,40px);color:var(--wine);margin:0 0 3px}
.auth-subcopy{color:var(--wine);font-size:13px;line-height:1.5;margin:0 0 10px}
.auth-card form{margin-top:12px;text-align:left}
.auth-card .field-label{font-size:11px;margin:11px 0 5px;color:var(--wine)}
.auth-card .field{padding:11px 13px;border-radius:8px;min-height:42px}
.auth-card .btn.sign-in{margin-top:17px;padding:14px;text-transform:uppercase;letter-spacing:.13em}
.roles-caption{color:var(--wine);font-size:9px;letter-spacing:.17em;font-weight:800;margin:22px 0 12px}
.role-tags{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap}
.role-tags span{font-size:11px;color:var(--wine);font-weight:700;padding:11px 13px;border:1px solid #b69b9b;border-radius:11px}
.role-tags span:first-child{background:var(--wine);color:var(--ivory);border-color:var(--wine)}
.auth-privacy{font-size:10px;letter-spacing:.025em;color:#e3d2ca;margin:17px 0 0}

/* Assessment workspace: wine header, olive sidebar, ivory canvas */
.topbar{background:var(--wine);color:var(--ivory);min-height:82px;padding:12px clamp(18px,3.1vw,56px);border-bottom:0}
.topbar .brand{display:flex;gap:16px;align-items:center;color:var(--ivory);font-size:clamp(15px,1.5vw,22px);letter-spacing:.1em;font-weight:400}
.topbar .brand .key-icon{width:52px;height:39px;color:var(--ivory)}
.brand-copy{display:flex;flex-direction:column;gap:5px}
.brand-copy span{font-family:Georgia,'Times New Roman',serif;line-height:1.15}
.brand-copy small{font-family:Arial,Helvetica,sans-serif;font-size:9px;font-weight:600;letter-spacing:.22em;color:#e6d5cf}
.top-right{gap:18px}
.identity{display:flex;flex-direction:column;align-items:flex-end;gap:4px;color:var(--ivory);white-space:nowrap}
.identity strong{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:20px}
.identity span{font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:#e6d5cf}
.layout{max-width:none;grid-template-columns:minmax(245px,295px) minmax(0,1fr);min-height:calc(100vh - 82px)}
.sidebar{background:var(--olive-dark);color:var(--ivory);border-right:0;padding:28px 18px 45px}
.sidebar-sticky{position:sticky;top:18px}
.sidebar .eyebrow{color:#e5e9d7}
.sidebar h3{font-family:Georgia,'Times New Roman',serif;font-size:20px;font-weight:400;color:var(--ivory)}
.progress-track{height:7px;background:rgba(243,235,221,.27)}
.progress-fill{background:#f0e8d8}
.progress-number{color:#e4dfcf;margin:10px 0 24px;font-size:11px}
.nav-link{color:#f2ece0;font-family:Georgia,'Times New Roman',serif;font-size:15px;font-weight:400;border-radius:11px;padding:12px 10px}
.nav-link:hover{background:rgba(243,235,221,.15);color:#fff}
.nav-link.active{background:var(--ivory);color:var(--wine);font-weight:700}
.nav-link .number{font-size:16px;color:#e8e3d4}
.nav-link.active .number{color:var(--wine)}
.nav-count{color:#e0dacb;font-family:Arial,Helvetica,sans-serif}
.nav-link.active .nav-count{color:var(--wine)}
.sidebar-footer{color:#ece5d9;border-color:rgba(243,235,221,.33);margin-top:23px}
.assessment-tools{margin-top:28px;border-top:1px solid rgba(243,235,221,.42);padding:17px 0 0}
.tools-title{font-size:10px;letter-spacing:.14em;color:#eee9df;font-weight:700;margin:0 0 11px}
.reset-link{background:none;border:0;padding:6px 0;color:inherit;text-decoration:underline;text-underline-offset:3px;font-size:12px;opacity:.83;text-align:left}
.reset-link:hover{opacity:1}
.workspace{max-width:1250px;padding:34px clamp(18px,4vw,65px) 90px}
.assessment-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}
.assessment-heading .eyebrow{margin-bottom:8px}
.assessment-heading h1{font-size:clamp(29px,3vw,44px);color:var(--wine);margin:0}
.assessment-progress{color:var(--olive-dark);font-size:13px;margin:0;white-space:nowrap}
.category-heading{background:var(--ivory-light);border:1px solid var(--line);border-radius:18px;padding:26px clamp(18px,3vw,32px);margin-bottom:24px}
.category-heading .eyebrow{color:var(--olive-dark);margin-bottom:10px}
.category-heading h2{font-size:clamp(31px,3.3vw,48px);color:var(--wine);margin:0 0 12px}
.category-heading .intro{color:#4e403d;max-width:990px;font-family:Georgia,'Times New Roman',serif;font-size:15px;line-height:1.67;margin:0 0 8px}
.category-heading .callout{margin-top:18px}
.category-intro{border-color:#d9c9bf}
.q-tools{display:flex;align-items:center;gap:14px}
.clear-answer{font-size:12px;color:var(--wine);background:none;border:0;text-decoration:underline;text-underline-offset:3px;padding:4px}
.clear-answer:disabled{visibility:hidden}
.sticky-actions{margin-top:25px}
.save-status{color:var(--olive-dark)}
.results-tools{text-align:right;color:var(--wine);border-top:1px solid var(--line);margin-top:35px;padding-top:18px}
.results-tools .reset-link{color:var(--wine)}
.center-panel .large-card{background:var(--ivory-light)}

/* Confirmation appears only when Reset Assessment is deliberately selected */
.modal-backdrop{position:fixed;inset:0;background:rgba(35,19,25,.63);z-index:1000;display:flex;align-items:center;justify-content:center;padding:18px}
.modal-card{width:min(100%,490px);background:var(--ivory-light);color:var(--ink);border-radius:18px;padding:30px;box-shadow:0 30px 95px rgba(17,9,11,.26)}
.modal-card h2{color:var(--wine);margin-bottom:12px}
.modal-card p{font-size:14px;line-height:1.7}
.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}

@media(max-width:1050px){
  .auth-layout{grid-template-columns:44% minmax(0,56%)}
  .auth-panel{padding:28px 25px}
  .welcome-tagline{font-size:clamp(35px,4vw,53px)}
  .topbar .brand{font-size:14px}
  .brand-copy small{font-size:7px;letter-spacing:.09em}
  .top-right{gap:9px}
}
@media(max-width:760px){
  .auth-layout{grid-template-columns:minmax(0,1fr)}
  .auth-visual{min-height:0;max-height:360px;height:360px}
  .auth-visual img{width:100%;height:100%;object-fit:contain;object-position:center 37%}
  .auth-panel{min-height:unset;padding:26px 22px 35px}
  .auth-content{max-width:500px}
  .auth-brand .key-icon{width:62px;height:42px}
  .brand-accent{margin:15px auto 17px}
  .welcome-tagline{font-size:42px}
  .welcome-description{font-size:14px}
  .layout{grid-template-columns:minmax(0,1fr)}
  .sidebar{padding:16px 18px 14px}
  .sidebar-sticky{position:static}
  .sidebar .eyebrow,.sidebar h3{display:block;margin:0 0 7px}
  .sidebar h3{font-size:19px}
  .sidebar .sidebar-footer{display:none}
  .assessment-tools{margin:13px 0 0;padding:8px 0 0}
  .nav-group{display:flex;overflow-x:auto;gap:6px;margin-top:10px;padding-bottom:6px}
  .nav-link{white-space:nowrap;min-width:max-content;width:auto;padding:9px 12px;font-size:13px}
  .topbar{padding:11px 15px;gap:10px}
  .topbar .brand .key-icon{width:37px;height:26px}
  .topbar .brand{gap:6px;font-size:12px}
  .brand-copy small{display:none}
  .top-right .identity{display:flex}
  .identity strong{font-size:15px}
  .identity span{font-size:9px}
  .topbar .btn.quiet{width:auto;padding:9px 10px;font-size:11px}
  .workspace{padding:24px 18px 65px}
}
@media(max-width:480px){
  .auth-visual{height:295px}
  .auth-panel{padding:25px 16px 30px}
  .welcome-tagline{font-size:36px}
  .auth-card{padding:24px 18px}
  .role-tags{gap:7px}.role-tags span{font-size:10px;padding:9px}
  .auth-site-name{font-size:17px}
  .topbar .brand{font-size:10px;letter-spacing:0}
  .topbar .brand .key-icon{width:31px;height:22px}
  .identity strong{font-size:14px}
  .identity span{display:none}
  .topbar .btn.quiet{font-size:10px;padding:8px 6px}
  .assessment-heading{align-items:flex-start;flex-direction:column;gap:10px}
  .assessment-progress{font-size:12px}
  .category-heading{padding:20px 16px}
  .category-heading .intro{font-size:14px}
  .question h3{font-size:17px}
  .q-tools{gap:6px}.q-index{font-size:10px}.clear-answer{font-size:11px}
  .modal-card{padding:24px 18px}.modal-actions .btn{width:auto}
}
/* Keep the account action visible without horizontal overflow on narrow phones. */
@media(max-width:480px){
  .topbar{width:100%;max-width:100%;gap:6px;padding:9px 11px}
  .topbar .brand{flex:1 1 auto;min-width:0;white-space:normal;gap:4px;font-size:9px}
  .brand-copy{min-width:0}
  .brand-copy span{white-space:normal;line-height:1.25;overflow-wrap:normal}
  .topbar .brand .key-icon{width:23px;height:20px}
  .top-right{flex:0 0 auto;gap:5px}
  .topbar .btn.quiet{white-space:nowrap;font-size:9px;padding:7px 6px}
  .identity strong{font-size:13px}
  .sidebar{overflow:hidden}
}


/* v5: Original 3:4 artwork, maximized without cropping or distortion.
   Variable ivory margins preserve the entire photo on every viewport. */
.auth-layout{grid-template-columns:minmax(0,43%) minmax(0,57%)}
.auth-visual{background:var(--ivory);padding:12px;min-width:0;min-height:100dvh;overflow:hidden}
.auth-photo-frame{
  width:min(100%,calc((100dvh - 24px) * 0.75));
  aspect-ratio:3 / 4;
  max-height:calc(100dvh - 24px);
  border:1px solid rgba(105,59,67,.2);
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 2px 15px rgba(37,26,25,.045);
  background:var(--ivory);
}
.auth-photo-frame img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
@media(max-width:760px){
  .auth-layout{grid-template-columns:minmax(0,1fr)}
  .auth-visual{height:auto;max-height:none;min-height:0;padding:12px 12px 0;overflow:visible}
  .auth-photo-frame{width:min(100%,410px);max-height:none}
}

/* V6 desktop viewport fit: keep photo uncropped and show entire sign-in page at 100% zoom. */
@media (min-width:1000px) {
  .auth-layout {
    grid-template-columns:minmax(0,45%) minmax(0,55%);
    height:100dvh;
    min-height:100dvh;
    overflow:hidden;
  }
  .auth-visual {
    height:100dvh;
    min-height:0;
    padding:10px;
  }
  .auth-photo-frame {
    width:min(100%,calc((100dvh - 20px) * .75));
    max-height:calc(100dvh - 20px);
  }
  .auth-panel {
    display:flex;
    align-items:center;
    justify-content:center;
    height:100dvh;
    min-height:0;
    padding:clamp(14px,2.3dvh,28px) clamp(24px,3.5vw,58px);
    overflow-y:auto;
  }
  .auth-content {width:min(100%,550px);margin:0 auto}
  .auth-brand {gap:5px}
  .auth-brand .key-icon {width:70px;height:46px}
  .auth-site-name {font-size:clamp(17px,1.65vw,22px);line-height:1.23}
  .auth-site-name span {margin-top:3px}
  .brand-accent {margin:10px auto 12px}
  .welcome-tagline {
    font-size:clamp(39px,min(3.6vw,5.25dvh),58px);
    line-height:1.02;
    margin-bottom:12px;
  }
  .welcome-description {font-size:14px;line-height:1.4;margin-bottom:16px}
  .auth-card {padding:19px 28px 19px}
  .auth-card h2 {font-size:clamp(28px,2.7vw,35px)}
  .auth-subcopy {font-size:12px;line-height:1.35;margin-bottom:6px}
  .auth-card form {margin-top:6px}
  .auth-card .field-label {margin:8px 0 4px}
  .auth-card .field {min-height:37px;padding:8px 12px}
  .auth-card .btn.sign-in {margin-top:12px;padding:11px}
  .roles-caption {margin:14px 0 8px}
  .role-tags span {padding:8px 11px}
  .auth-privacy {margin:9px 0 0}
}
/* Narrow screens retain a vertical layout and natural scrolling rather than shrinking forms. */
@media (min-width:761px) and (max-width:999px) {
  .auth-layout {display:flex;flex-direction:column;min-height:100dvh;height:auto;overflow:visible}
  .auth-visual {height:auto;min-height:0;padding:12px;max-height:none}
  .auth-photo-frame {width:min(100%,330px);max-height:none}
  .auth-panel {height:auto;min-height:0;overflow:visible;padding:24px}
}
/* On unusually short landscape displays, allow honest scrolling instead of clipping controls. */
@media (min-width:1000px) and (max-height:690px) {
  .auth-layout {height:auto;min-height:100dvh;overflow:visible}
  .auth-panel {height:auto;min-height:100dvh;overflow:visible}
}

/* V7: framework branding and revised headline, preserving V6's viewport fit. */
.auth-site-name{font-size:clamp(23px,2.35vw,31px);line-height:1.10;letter-spacing:.045em;font-weight:400}
.auth-site-name span{font-family:Arial,Helvetica,sans-serif;font-size:10px;line-height:1.3;letter-spacing:.22em;margin-top:7px;font-weight:600}
.welcome-tagline{letter-spacing:-.035em}
.topbar .brand{letter-spacing:.045em}
@media (min-width:1000px){
  .auth-brand .key-icon{width:73px;height:47px}
  .auth-brand{gap:4px}
  .auth-site-name{font-size:clamp(23px,2.35vw,30px);line-height:1.08}
  .auth-site-name span{margin-top:5px}
  .brand-accent{margin:8px auto 11px}
  .welcome-tagline{font-size:clamp(29px,min(2.9vw,4.15dvh),48px);line-height:1.02;margin-bottom:11px}
  .welcome-description{font-size:13px;line-height:1.35;margin-bottom:12px}
  .auth-card{padding:17px 28px}
  .auth-privacy{margin-top:7px}
}
@media (min-width:1000px) and (max-height:840px){
  .auth-panel{padding-block:10px}
  .auth-brand .key-icon{width:60px;height:39px}
  .auth-site-name{font-size:clamp(21px,2.2vw,27px)}
  .auth-site-name span{font-size:9px;margin-top:4px}
  .brand-accent{margin:7px auto 9px}
  .welcome-tagline{font-size:clamp(28px,min(2.8vw,4dvh),40px);margin-bottom:10px}
  .welcome-description{margin-bottom:10px}
  .auth-card{padding:14px 24px}
  .auth-card h2{font-size:29px}
  .roles-caption{margin:11px 0 6px}
  .role-tags span{padding:7px 10px}
  .auth-privacy{margin-top:6px}
}
@media (max-width:760px){
  .auth-site-name{font-size:clamp(21px,5vw,28px)}
  .welcome-tagline{font-size:clamp(31px,7.6vw,40px);line-height:1.08}
}
@media (max-width:480px){
  .auth-site-name{font-size:22px}
  .welcome-tagline{font-size:clamp(29px,7.5vw,36px)}
}

/* V8: the original serif and styling are preserved; resize only the tagline.
   Make the third sentence one unbroken desktop line while retaining natural
   wrapping on narrow mobile screens. */
.tagline-line { display: block; }
@media (min-width: 1000px) {
  .welcome-tagline {
    font-size: clamp(25px, min(2.25vw, 3.7dvh), 37px);
    line-height: 1.08;
    margin-bottom: 11px;
  }
  .tagline-last { white-space: nowrap; }
}
@media (min-width: 1000px) and (max-height: 840px) {
  .welcome-tagline {
    font-size: clamp(23px, min(2.15vw, 3.6dvh), 33px);
  }
}
@media (max-width: 999px) {
  .tagline-last { white-space: normal; }
}
