:root {
  --bg:#f5f6fa;--paper:#fff;--ink:#181a32;--muted:#585b72;--line:#dfe1ed;
  --primary:#4e39b8;--primary-deep:#3c289e;--soft:#efecff;--mint:#bdf5d9;
  font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--ink);background:var(--bg);font-size:16px;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:0}
button,input,textarea,select{font:inherit}
button,summary{cursor:pointer}
button:disabled{opacity:.48;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #846af4;outline-offset:3px}
h1:focus{outline:none}
a{color:inherit}
p{line-height:1.6}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(2rem,5vw,3rem);letter-spacing:-.052em;line-height:1.08;margin-bottom:14px}
h2{font-size:1.27rem;letter-spacing:-.027em;margin-bottom:12px}
h3{font-size:1rem;margin-bottom:8px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.muted{color:var(--muted)}
.caption{font-size:.875rem}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border:1px solid transparent;border-radius:11px;font-weight:720;text-decoration:none;text-align:center}
.primary{background:var(--primary);color:white}
.primary:hover:not(:disabled){background:var(--primary-deep)}
.secondary{background:white;color:var(--ink);border-color:var(--line)}
.secondary:hover:not(:disabled){background:var(--soft);border-color:#c9bdfb}
.danger{background:#fff2f5;color:#98324b;border-color:#f4c8d3}
.text-btn,.quiet-link{font-weight:680;font-size:.9rem;color:var(--primary-deep);text-decoration:none;background:none;border:0;padding:0}
.text-btn:hover,.quiet-link:hover{text-decoration:underline}
.eyebrow{font-size:.84rem;letter-spacing:.105em;text-transform:uppercase;font-weight:800;color:var(--primary-deep);margin-bottom:13px}
.eyebrow span{display:inline-block;background:var(--mint);width:.55rem;height:.55rem;border-radius:50%;margin-right:7px}
.paper{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:clamp(17px,3vw,29px)}
.site-head{border-bottom:1px solid var(--line);background:white}
.site-inner{width:min(1152px,calc(100% - 40px));margin:auto;display:flex;justify-content:space-between;align-items:center;gap:16px}
.site-head .site-inner{min-height:72px}
.brand{display:inline-flex;align-items:center;gap:11px;font-size:1.21rem;font-weight:840;letter-spacing:-.035em;text-decoration:none;white-space:nowrap}
.brand-icon{font-size:1.35rem;color:white;width:38px;height:38px;display:grid;place-items:center;background:var(--primary);border-radius:11px}
.brand-small{font-size:.66rem;letter-spacing:.09em;font-weight:800;color:var(--muted);margin-left:3px}
.student-main{width:min(1152px,calc(100% - 40px));margin:38px auto 55px;min-height:65vh}
.hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;min-height:445px;
  padding:clamp(26px,6vw,72px);border-radius:29px;color:#fff;background:radial-gradient(ellipse at 79% 48%,#533cbb 0%,#38277e 44%,#231c52 79%)}
.hero-copy{z-index:1}
.hero .eyebrow,.result-banner .eyebrow{color:#d8ccff}
.hero h1{font-size:clamp(2.55rem,6.45vw,5.1rem);line-height:1;letter-spacing:-.07em;margin-bottom:22px}
.hero h1 em{font-family:Georgia,serif;font-weight:400;color:var(--mint);letter-spacing:-.075em}
.hero-copy>p:not(.eyebrow){max-width:455px;color:#eeebfb;margin-bottom:25px;font-size:1.05rem}
.hero .btn{background:var(--mint);color:#15273a;min-height:49px;padding:11px 22px}
.hero .btn:hover{background:#d7ffeb}
.compass-art{position:relative;margin:auto;width:min(100%,345px);aspect-ratio:1;border-radius:50%;border:1px solid #a897f370;
  background:linear-gradient(90deg,transparent calc(50% - .5px),#d5caf45e 50%,transparent calc(50% + .5px)),
  linear-gradient(transparent calc(50% - .5px),#d5caf45e 50%,transparent calc(50% + .5px)),
  repeating-radial-gradient(circle,transparent 0 22%,#dbcfff38 22.2% 22.5%,transparent 22.7% 35%);
  box-shadow:0 0 0 16px #ad99fa19,0 0 0 41px #ad99fa0e}
.dial{position:absolute;inset:12%;border:1px dashed #bfb0fa9e;border-radius:50%;
  background:repeating-conic-gradient(#d4c8ff6b 0deg .45deg,transparent .45deg 15deg);mask-image:radial-gradient(circle,black 0 100%)}
.dial-center{position:absolute;inset:6%;background:#4935a2;border-radius:50%;border:1px solid #b7aaf67c}
.needle{position:absolute;inset:9%;rotate:32deg;filter:drop-shadow(0 0 13px #a0f7d587);background:linear-gradient(90deg,#d8ffe9 50%,#87e1ba 50%);
  clip-path:polygon(50% 0,63% 42%,100% 50%,63% 58%,50% 100%,37% 58%,0 50%,37% 42%)}
.coordinate,.star{position:absolute;color:#e2d8ff;font-size:.85rem;font-weight:750}
.north{top:4%;left:50%;transform:translateX(-50%)}.south{bottom:4%;left:50%;transform:translateX(-50%)}.west{left:4%;top:47%}.east{right:4%;top:47%}
.star.a{top:12%;right:-9%;color:var(--mint);font-size:1.55rem}
.star.b{bottom:10%;left:-11%;font-size:2rem}
.star.c{top:3%;left:3%;font-size:1.1rem}
.facts{display:grid;grid-template-columns:repeat(3,1fr);margin:20px 0 45px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px 0}
.facts div{padding:5px 22px;display:flex;gap:11px;align-items:center;justify-content:center;color:var(--muted)}
.facts div+div{border-left:1px solid var(--line)}
.facts strong{font-size:1.7rem;line-height:1;color:var(--primary);letter-spacing:-.05em}
.workflow h2{font-size:1.68rem;margin-bottom:19px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.steps article{border:1px solid var(--line);border-radius:16px;padding:22px;background:white}
.steps p{margin:0;color:var(--muted)}
.step-icon{display:grid;place-items:center;color:var(--primary-deep);border-radius:10px;background:var(--soft);width:36px;height:36px;margin-bottom:15px}
.site-footer{background:white;border-top:1px solid var(--line);color:var(--muted);font-size:.875rem}
.site-footer .site-inner{min-height:70px}.site-footer .site-inner div{display:flex;gap:16px}
.narrow{max-width:700px;margin:auto;padding:clamp(22px,5vw,43px)}
.back{margin-bottom:23px}
label{font-weight:680;font-size:.9rem}
input:not([type=radio],[type=checkbox]),textarea,select{display:block;width:100%;min-width:0;margin-top:7px;padding:10px 12px;border:1px solid #c9ccdc;border-radius:9px;background:#fff;color:var(--ink);min-height:43px}
textarea{resize:vertical}
input[type=checkbox],input[type=radio]{accent-color:var(--primary);height:18px;width:18px}
.reg-form{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:24px}
.full{grid-column:1/-1}
.checks{display:grid;gap:10px}
.checks label{display:flex;align-items:flex-start;gap:8px;font-weight:520;line-height:1.5;color:var(--muted)}
.checks input{margin:2px 0 0;flex:none}
.error,.notice{border-radius:9px;margin:9px 0;padding:9px 12px;background:#fff1f4;color:#8d263c}
.notice{background:#e8faf1;color:#17523d}.error:empty{display:none}
.quiz{max-width:700px;margin:auto;padding:clamp(21px,5vw,39px)}
.quiz-meta,.quiz-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--muted);font-size:.9rem}
.timer{background:var(--soft);color:var(--primary-deep);font-weight:750;padding:5px 10px;border-radius:7px;font-variant-numeric:tabular-nums}
progress{display:block;width:100%;height:8px;margin-top:12px;appearance:none;border:0;border-radius:20px;background:var(--soft);overflow:hidden}
progress::-webkit-progress-bar{background:var(--soft)}
progress::-webkit-progress-value{background:var(--primary);border-radius:20px}
progress::-moz-progress-bar{background:var(--primary)}
.quiz-copy{margin:26px 0 22px}
.quiz h1{font-size:clamp(1.7rem,4vw,2.4rem);line-height:1.19}
.options{border:0;padding:0;margin:0 0 24px;display:grid;gap:8px}
.choice{position:relative;display:flex;align-items:center;gap:11px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;cursor:pointer}
.choice:hover,.choice:has(input:checked){border-color:#8f7ae8;background:var(--soft)}
.choice:has(input:focus-visible){outline:3px solid #846af4;outline-offset:2px}
.choice input{position:absolute;opacity:0}
.choice-marker{width:18px;height:18px;border:1px solid #a8a5bc;background:white;border-radius:50%;display:inline-grid;place-items:center;flex:none}
.choice:has(input:checked) .choice-marker{border-color:var(--primary)}
.choice:has(input:checked) .choice-marker::after{content:'';width:10px;height:10px;border-radius:50%;background:var(--primary)}
.result-banner{background:linear-gradient(125deg,#262057,#5139ad);color:#fff;padding:clamp(24px,5vw,46px);border-radius:22px;margin-bottom:18px}
.result-banner p:not(.eyebrow){color:#eeebfb;max-width:680px}
.result-meta{display:flex;gap:10px;flex-wrap:wrap}.result-meta span{padding:7px 12px;border:1px solid #b8a5f78c;border-radius:8px;font-size:.9rem}
.result-meta strong{color:var(--mint);padding-left:5px}
.result-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:17px;align-items:start;margin-bottom:18px}
.degree{border:1px solid var(--line);border-radius:11px;margin:8px 0;overflow:hidden}
.degree summary{list-style:none;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:12px}
.degree summary::-webkit-details-marker{display:none}
.degree summary:hover{background:#faf9ff}
.degree summary small,td small{display:block;margin-top:4px;color:var(--muted);font-size:.83rem}
.rank{display:grid;place-items:center;background:var(--soft);color:var(--primary-deep);border-radius:8px;width:31px;height:31px;font-weight:800}
.degree summary b{color:var(--primary-deep)}
.degree-detail{border-top:1px solid var(--line);padding:14px;color:var(--muted)}
.degree-detail ul{margin:0 0 14px;padding-left:18px}.degree-detail p{margin-bottom:0}
.bar-row{margin:12px 0}
.bar-row div{display:flex;justify-content:space-between;gap:10px;font-size:.9rem}
meter{width:100%;height:12px;appearance:none;background:transparent}
meter::-webkit-meter-bar{background:var(--soft);border:0}
meter::-webkit-meter-optimum-value{background:#6d56d3}
meter::-moz-meter-bar{background:#6d56d3}
.subsection{margin:22px 0 8px;padding-top:15px;border-top:1px solid var(--line)}
dialog{width:min(640px,calc(100% - 26px));max-height:87vh;overflow:auto;border:1px solid var(--line);border-radius:17px;padding:24px;color:var(--ink)}
dialog::backdrop{background:#16132b9e}
.dialog-top,.section-head{display:flex;justify-content:space-between;align-items:center;gap:13px;margin-bottom:13px;flex-wrap:wrap}
.dialog-top h2,.section-head h2,.config-bar p{margin:0}
.admin-shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}
.sidebar{background:#211b49;color:#f9f8ff;padding:23px 15px;position:sticky;top:0;height:100vh}
.sidebar .brand{margin:0 5px 31px}.sidebar .brand-small{color:#cec1ff}.sidebar .brand-icon{background:#765bd5}
.sidebar nav{display:grid;gap:5px}
.sidebar nav button{background:none;color:#f2eeff;min-height:44px;border:1px solid transparent;text-align:left;padding:10px;border-radius:8px;font-size:.89rem;font-weight:680}
.sidebar nav button span{margin-right:6px;color:#c8bafa}
.sidebar nav button[aria-current],.sidebar nav button:hover{background:#3e316d;border-color:#66549d}
.back-site{display:inline-block;color:#ddd3ff;font-size:.85rem;margin:25px 10px;text-decoration:none}
.back-site:hover{text-decoration:underline}
.admin-main{width:100%;max-width:1500px;margin:auto;padding:clamp(15px,3.5vw,38px);align-self:start}
.admin-head h1{font-size:clamp(1.8rem,4vw,2.65rem);margin-bottom:22px}
.filters{padding:14px;display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:15px}
.filters label{min-width:125px}.filters .grow{flex:1;min-width:min(220px,100%)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(137px,1fr));gap:10px;margin-bottom:15px}
.stat{padding:15px;display:grid;align-content:space-between;gap:8px}
.stat span{font-size:.88rem;color:var(--muted)}.stat strong{font-size:1.85rem;letter-spacing:-.06em}
.trend{margin-bottom:15px}.legend{display:flex;gap:14px;font-size:.84rem;color:var(--muted)}
.legend span::before{content:'';display:inline-block;width:8px;height:8px;background:#7254da;border-radius:2px;margin-right:6px}
.legend span:nth-child(2)::before{background:#55bc9b}
.chart-scroll,.table-wrap{overflow:auto}
.columns{display:flex;gap:3px;align-items:stretch;padding-top:8px}
.column{flex:1;min-width:5px;text-align:center}
.towers{height:135px;display:flex;align-items:end;gap:1px;background:repeating-linear-gradient(to top,#e7e7ef 0 1px,transparent 1px 25%)}
.towers span{width:50%;background:#7254da;border-radius:3px 3px 0 0}.towers span:nth-child(2){background:#55bc9b}
.column small{font-size:.72rem;color:var(--muted)}.chart-empty{padding:32px 0;text-align:center;background:#faf9ff;border:1px dashed var(--line);border-radius:10px;margin:0}
.table-trend{margin-top:12px;font-size:.85rem}.table-trend .table-wrap{max-height:250px}
.report-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.report-block h2{font-size:1.08rem}.report-block p:last-child{margin:0}
table{border-collapse:collapse;width:100%;font-size:.9rem}
th,td{padding:11px 10px;text-align:left;border-bottom:1px solid #eaebf2;vertical-align:top}
th{font-weight:760;background:#f3f1fb;white-space:nowrap}tbody tr:last-child td{border:0}td:first-child{min-width:48px}
.status{display:inline-block;background:#f0edff;border-radius:20px;padding:4px 8px;color:var(--primary-deep);font-size:.78rem;white-space:nowrap}
.status.complete{background:#e2f7ee;color:#20654c}
.pagination{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;margin-top:15px;color:var(--muted);font-size:.88rem}
.contact{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
.contact div{padding:9px;border-radius:8px;background:var(--bg);overflow-wrap:anywhere}.contact dt{font-size:.82rem;color:var(--muted)}.contact dd{margin:4px 0 0;font-weight:650}
.answer-list{padding-left:22px}.answer-list li{margin-bottom:8px}.answer-list strong{display:block}
#delete-attempt{margin-top:17px}
.config-bar{position:sticky;top:6px;z-index:1;padding:12px 15px}.config-bar p{margin-top:4px}
.actions{display:flex;flex-wrap:wrap;gap:8px}
.field-stack{display:grid;gap:13px}.field-stack .btn{justify-self:start}.field-stack h3,.field-stack p{margin:0}
.settings form{max-width:470px}.weight-list{max-height:285px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.weight-list label{display:grid;grid-template-columns:1fr 63px;gap:9px;align-items:center;padding:6px 9px;border-bottom:1px solid #ebecf3}.weight-list select{margin:0;padding:4px 7px;min-height:34px}
@media(max-width:870px){
  .admin-shell{grid-template-columns:1fr}.sidebar{height:auto;position:static;padding:12px 16px}.sidebar .brand{margin:0 0 9px}.sidebar nav{display:flex;gap:4px;flex-wrap:wrap}.sidebar nav button{min-height:38px;padding:6px}.back-site{margin:8px 0 0}
  .compass-art{width:min(90%,265px)}.hero{min-height:375px}
}
@media(max-width:640px){
  .site-inner,.student-main{width:calc(100% - 26px)}.site-head .site-inner{min-height:60px}.brand-small{display:none}.site-head .quiet-link{font-size:.82rem}.student-main{margin:17px auto 35px}
  .hero{grid-template-columns:1fr;min-height:initial;gap:27px}.hero h1{font-size:clamp(2.5rem,10vw,3.9rem)}
  .compass-art{width:150px;margin:0 auto 6px}.hero-copy>p:not(.eyebrow){font-size:1rem}
  .facts{margin:14px 0 24px;padding:12px 0}.facts div{display:grid;justify-items:center;text-align:center;padding:4px 7px;gap:5px;font-size:.78rem}.facts strong{font-size:1.35rem}
  .steps,.result-grid,.report-grid{grid-template-columns:1fr}.steps{gap:9px}.steps article{padding:15px}
  .reg-form{grid-template-columns:1fr}.quiz-actions{flex-wrap:wrap}.quiz-actions>span{font-size:.8rem}
  .config-bar{position:static}.stat strong{font-size:1.55rem}.site-footer .site-inner{gap:5px;flex-wrap:wrap;padding:10px 0}
  .site-footer .site-inner div{gap:10px}.contact{grid-template-columns:1fr}
}
