:root{
  --ink:#16161A;--ink2:#3D3B35;--muted:#5A5850;--paper:#F5F4EF;--card:#FFFFFF;--line:#DEDBD2;--soft:#ECEAE3;
  --blue:#2F5BEA;--blue-d:#1E3FB0;--blue-l:#E3EAFD;--green:#2F7A55;--green-l:#E2F0E8;--amber:#9E6A00;--amber-l:#FDF4DD;--orange:#D9622B;--red:#B3261E;--red-l:#FBE4E2;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--paper);color:var(--ink);font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:16px;line-height:1.5}
a{color:var(--blue)}a:hover{color:var(--blue-d)}
.disp{font-family:'Bricolage Grotesque',system-ui,sans-serif;letter-spacing:-0.03em}
h1,h2,h3{margin:0;line-height:1.15}
h1{font-size:clamp(32px,5vw,44px)}
h2{font-size:24px}
h3{font-size:19px}
p{margin:0}
.hint{font-size:14px;color:var(--muted);line-height:1.45}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:999px;font:600 16px/1 'Schibsted Grotesk',system-ui,sans-serif;text-decoration:none;border:0;cursor:pointer;background:var(--ink);color:#fff}
.btn:hover{background:var(--blue);color:#fff}
.btn:disabled{background:#B9B6AC;cursor:not-allowed}
.btn-blue{background:var(--blue)}.btn-blue:hover{background:var(--blue-d)}
.btn-ghost{background:transparent;color:var(--ink);border:1.5px solid var(--ink)}
.btn-ghost:hover{background:var(--ink);color:#fff}
.btn-sm{min-height:38px;padding:0 16px;font-size:14px}
.linkbtn{background:none;border:0;padding:0;color:var(--blue);font:inherit;cursor:pointer;text-decoration:underline}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px}
.pad{padding:22px 24px}
.stack{display:flex;flex-direction:column;gap:16px}
.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px 18px}
.tag{display:inline-flex;align-items:center;padding:4px 11px;border-radius:999px;font-size:13px;font-weight:600;background:var(--soft);color:var(--ink2)}
.tag.blue{background:var(--blue-l);color:var(--blue-d)}.tag.green{background:var(--green-l);color:#1F5A3D}.tag.amber{background:var(--amber-l);color:#6B4E00}.tag.red{background:var(--red-l);color:var(--red)}

/* top bar */
.topbar{background:#fff;border-bottom:1px solid var(--line)}
.topbar .wrap{display:flex;flex-wrap:wrap;gap:10px 28px;align-items:center;justify-content:space-between;padding-top:14px;padding-bottom:14px}
.logo{font-family:'Bricolage Grotesque',system-ui,sans-serif;font-size:28px;font-weight:800;color:var(--ink);text-decoration:none;letter-spacing:-0.03em}
.nav{display:flex;flex-wrap:wrap;gap:6px 22px;align-items:center;font-size:15px}
.nav a{color:var(--ink);text-decoration:none;font-weight:500;padding:6px 0;border-bottom:2px solid transparent}
.nav a:hover{color:var(--blue)}
.nav a[aria-current="page"]{color:var(--blue);border-bottom-color:var(--blue)}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--orange);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}

/* forms */
label.f{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:15px}
label.f .hint{font-weight:400}
input:not([type]),input[type=text],input[type=file],input[type=email],input[type=password],input[type=tel],input[type=url],input[type=number],select,textarea{font:400 16px/1.4 'Schibsted Grotesk',system-ui,sans-serif;color:var(--ink);background:#fff;border:1.5px solid #CFCBC0;border-radius:12px;padding:12px 14px;width:100%;min-height:48px}
textarea{min-height:96px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:3px solid var(--blue-l);border-color:var(--blue)}
fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
legend{font-weight:600;font-size:15px;margin-bottom:6px;padding:0}
.choices{display:flex;flex-wrap:wrap;gap:8px}
.choice{position:relative}
.choice input{position:absolute;opacity:0;width:1px;height:1px}
.choice span{display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border:1.5px solid #CFCBC0;border-radius:999px;background:#fff;cursor:pointer;font-weight:500;font-size:15px}
.choice input:checked+span{background:var(--ink);border-color:var(--ink);color:#fff}
.choice input:focus-visible+span{outline:3px solid var(--blue)}
.req{color:var(--orange)}
.err{color:var(--red);font-size:14px;font-weight:600}
.notice{padding:12px 16px;border-radius:12px;background:var(--blue-l);color:var(--blue-d);font-weight:500}
.notice.ok{background:var(--green-l);color:#1F5A3D}
.notice.bad{background:var(--red-l);color:var(--red)}

/* auth pages */
.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}
.auth-art{background:var(--ink);color:#F5F4EF;padding:48px;display:flex;flex-direction:column;justify-content:space-between;gap:32px}
.auth-art .logo{color:#F5F4EF}
.auth-art h1{font-size:clamp(36px,4.5vw,56px)}
.auth-art ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:14px}
.auth-art li{display:flex;gap:14px;align-items:flex-start;color:#D6D3CA}
.auth-art li b{color:#fff}
.dot{flex:0 0 34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700;background:#F2B632;color:var(--ink)}
.auth-form{display:flex;align-items:center;justify-content:center;padding:40px 20px}
.auth-form form{width:100%;max-width:420px;display:flex;flex-direction:column;gap:16px}
@media (max-width:820px){.auth{grid-template-columns:1fr}.auth-art{padding:28px 20px}}

/* dashboard */
main.dash{padding-top:28px;padding-bottom:64px}
.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;list-style:none;margin:0;padding:0}
.steps li{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600;color:var(--muted)}
.steps .bar{height:8px;border-radius:4px;background:var(--soft)}
.steps li.done .bar{background:var(--green)}.steps li.done{color:var(--green)}
.steps li.now .bar{background:var(--blue)}.steps li.now{color:var(--blue-d)}
@media (max-width:640px){.steps{grid-template-columns:1fr}}
.next{border:2px solid var(--blue);background:#fff}
.check{display:flex;gap:10px;align-items:center;min-height:34px}
.check b{width:22px;text-align:center}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.gallery figure{margin:0;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:var(--soft)}
.gallery figcaption{padding:10px 14px;font-size:14px}

/* application wizard */
.wizard{display:grid;grid-template-columns:240px 1fr;gap:28px;align-items:start}
.wizard nav ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;position:sticky;top:16px}
.wizard nav button{width:100%;text-align:left;background:none;border:0;padding:10px 12px;border-radius:10px;font:500 15px/1.3 'Schibsted Grotesk',system-ui,sans-serif;color:var(--ink2);cursor:pointer;display:flex;gap:10px;align-items:center}
.wizard nav button[aria-current="step"]{background:#fff;color:var(--ink);font-weight:700;box-shadow:0 0 0 1px var(--line)}
.wizard nav .n{width:26px;height:26px;border-radius:50%;background:var(--soft);display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex:0 0 26px}
.wizard nav .ok .n{background:var(--green);color:#fff}
@media (max-width:820px){.wizard{grid-template-columns:1fr}.wizard nav ol{position:static;flex-direction:row;overflow-x:auto}.wizard nav button span.t{display:none}}
.piece{display:grid;grid-template-columns:200px 1fr;gap:18px;align-items:start}
@media (max-width:640px){.piece{grid-template-columns:1fr}}
.drop{border:2px dashed #CFCBC0;border-radius:14px;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;cursor:pointer;background:#FBFAF7;overflow:hidden;position:relative;font-size:14px;color:var(--muted)}
.drop img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.drop:focus-within{outline:3px solid var(--blue)}
.promise{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}
.promise div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
.promise b{display:block;font-size:17px;margin-bottom:4px}

/* modal */
dialog{border:0;border-radius:20px;padding:0;width:min(720px,94vw);max-height:90vh;box-shadow:0 24px 80px rgba(0,0,0,.35)}
dialog::backdrop{background:rgba(22,22,26,.55)}
.modal-head{padding:22px 24px 12px;border-bottom:1px solid var(--line)}
.modal-body{padding:20px 24px;overflow-y:auto;max-height:58vh}
.modal-body h3{margin:18px 0 6px;font-size:19px}
.modal-body p,.modal-body li{color:var(--ink2)}
.modal-foot{padding:16px 24px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:999px;font-weight:600;z-index:50}
table.t{width:100%;border-collapse:collapse;font-size:15px}
table.t th,table.t td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
table.t tr:hover td{background:#FBFAF7}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* one-question-at-a-time application */
.q-wrap{max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.q-title{font-size:clamp(30px,4.6vw,42px);line-height:1.1}
.q-bar{height:6px;background:var(--soft);border-radius:3px;overflow:hidden}
.q-bar span{display:block;height:100%;background:var(--blue);border-radius:3px;transition:width .35s ease}
.q-list{display:flex;flex-direction:column;gap:10px}
.q-list .choice span{width:100%;min-height:58px;border-radius:14px;font-size:17px;padding:0 20px;justify-content:space-between}
.q-list .choice span::after{content:'';width:22px;height:22px;border-radius:50%;border:2px solid #CFCBC0;flex:0 0 22px;margin-left:12px}
.q-list .choice input:checked+span::after{border-color:#fff;background:#fff;box-shadow:inset 0 0 0 5px var(--ink)}
.q-list .choice span:hover{border-color:var(--ink)}
.q-chips .choice span{min-height:50px;font-size:16px;padding:0 18px}
.q-anim{animation:qin .28s ease}
@keyframes qin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.q-anim{animation:none}.q-bar span{transition:none}}
.q-list.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}

.linktile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;aspect-ratio:1;border-radius:12px;background:var(--ink);color:#fff;text-decoration:none;font-weight:600}
.linktile span{font-size:34px;line-height:1}
.linktile:hover{background:var(--blue);color:#fff}

.auth-art.photo{background:linear-gradient(180deg,rgba(22,22,26,.55) 0%,rgba(22,22,26,.9) 70%),var(--bg) center/cover no-repeat,var(--ink)}

/* v2: match the public site's editorial look */
:root{--ink:#141413;--paper:#F3F0E9;--line:#DCD6C8;--soft:#E6E1D5}
.disp,h1,.logo{font-family:'Instrument Serif',Georgia,serif!important;font-weight:400!important;letter-spacing:-0.01em}
h1.disp,.q-title{font-size:clamp(36px,4.4vw,56px)!important;line-height:1.02}
.logo{font-size:32px!important}
.btn{font-weight:500;letter-spacing:.01em}
.btn-blue{background:var(--ink)}.btn-blue:hover{background:#2C2B28}
.card{border-radius:6px}
[hidden]{display:none!important}

.newhere{display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid var(--line,#DCD6C8);border-radius:14px;background:#FBFAF6;margin-bottom:8px}
.newhere p{font-size:15px;margin:0}
.nh-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.nh-row a{display:flex;flex-direction:column;gap:4px;padding:14px;border-radius:12px;background:#24091F;color:#fff;text-decoration:none;font-weight:600;font-size:15px}
.nh-row a span{font-weight:400;font-size:13px;color:#D9C68E}
.nh-row a:hover{background:#3B003B}
@media (max-width:420px){.nh-row{grid-template-columns:1fr}}

.planbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 20px;padding:12px 18px;margin-bottom:22px;border-radius:12px;background:#24091F;color:#F3EEE4;font-size:15px;border:1px solid rgba(181,158,90,.5)}
.planbar a{color:#D9C68E;font-weight:600}
.planbar.end{border-color:#D9C68E}
.studio{border:1px solid rgba(181,158,90,.6)}

/* beta badge */
.logo .beta{display:inline-block;margin-left:8px;vertical-align:middle;font-family:Inter,system-ui,sans-serif;font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--brass-l,#D9C68E);border:1px solid rgba(181,158,90,.6);border-radius:999px;padding:3px 8px 2px;line-height:1;transform:translateY(-1px);font-style:normal}
.logo .beta{color:#8C773A;border-color:rgba(140,119,58,.55)}
.auth-art .logo .beta{color:#D9C68E;border-color:rgba(217,198,142,.6)}
