:root{--navy:#10153f;--navy-2:#171e55;--gold:#d5aa42;--gold-light:#f2d787;--ivory:#fbf8ef;--ink:#17182a;--muted:#6c6e7d;--line:rgb(16 21 63/.12);--white:#fff;--success:#1d7a58;--danger:#a63c45;--radius:22px;--shadow:0 18px 50px rgb(16 21 63/.10)}*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--ivory)}body{margin:0;min-height:100vh;min-height:100dvh}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.85rem,3vw,2.8rem);letter-spacing:-.045em;line-height:1.04}h2{letter-spacing:-.025em}.invite-form{display:flex;gap:.65rem;align-items:end}.invite-form input{min-width:190px}.muted{color:var(--muted)}.eyebrow{display:block;margin-bottom:12px;font-size:.72rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.gold{color:#9a6d08}.auth-body{background:var(--navy);padding:24px}.auth-shell{display:grid;grid-template-columns:1.08fr .92fr;max-width:1120px;min-height:calc(100svh - 48px);margin:auto;overflow:hidden;border:1px solid rgb(255 255 255/.14);border-radius:32px;background:var(--ivory)}.brand-panel{display:flex;flex-direction:column;justify-content:center;padding:clamp(34px,7vw,86px);color:#fff;background:linear-gradient(140deg in oklch,var(--navy),var(--navy-2) 58%,#283173)}.brand-panel .brand-logo{width:146px;height:146px;object-fit:contain;margin:18px 0 30px;filter:drop-shadow(0 12px 24px rgb(0 0 0/.28))}.brand-panel h1{max-width:470px;font-size:clamp(2.4rem,5vw,4.6rem)}.brand-panel p{max-width:480px;color:rgb(255 255 255/.72);font-size:1.12rem;line-height:1.65}.brand-panel small{margin-top:auto;color:rgb(255 255 255/.52)}.auth-card{display:flex;flex-direction:column;justify-content:center;gap:34px;padding:clamp(34px,7vw,86px);background:var(--ivory)}.stack{display:grid;gap:20px}label{display:grid;gap:8px;font-size:.86rem;font-weight:750}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);padding:13px 14px;outline:none;transition:.18s ease}input:focus,select:focus,textarea:focus{border-color:var(--gold);box-shadow:0 0 0 4px rgb(213 170 66/.15)}textarea{resize:vertical}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:0;border-radius:12px;font-weight:800;cursor:pointer;transition:transform .18s ease,background .18s ease}.button:hover{transform:translateY(-1px)}.primary{background:var(--gold);color:#241b05}.primary:hover{background:var(--gold-light)}.secondary{border:1px solid var(--line);background:#fff;color:var(--navy)}.ghost{background:transparent;color:rgb(255 255 255/.72);border:1px solid rgb(255 255 255/.14)}.draft-note{font-size:.75rem;color:var(--muted);line-height:1.5}.form-message{min-height:20px;margin:0;color:var(--danger);font-size:.86rem}.app-shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh;min-height:100dvh;background:#f6f5f1}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;height:100dvh;padding:26px 18px;color:#fff;background:var(--navy)}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 8px 28px;border-bottom:1px solid rgb(255 255 255/.11)}.sidebar-brand img{width:48px;height:48px;object-fit:contain}.sidebar-brand span{display:grid}.sidebar-brand small{color:rgb(255 255 255/.55)}.sidebar nav{display:grid;gap:8px;margin-top:28px}.sidebar nav a{padding:12px 14px;border-radius:12px;color:rgb(255 255 255/.66);font-weight:650}.sidebar nav a:hover,.sidebar nav a.active{background:rgb(255 255 255/.10);color:#fff}.sidebar>.button{margin-top:auto}.main{min-width:0;padding:38px clamp(24px,4vw,58px) 64px}.topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:34px}.topbar h1{margin-bottom:8px}.topbar p{margin:0}.back{display:inline-block;margin-bottom:16px;color:var(--muted);font-size:.88rem;font-weight:700}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.metric{padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff}.metric strong{display:block;font-size:2rem;color:var(--navy)}.metric span{color:var(--muted);font-size:.85rem}.panel{padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 1px 0 rgb(255 255 255/.8)}.panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.panel-head h2{margin-bottom:6px}.panel-head p{margin:0}.filter{width:min(260px,100%)}.form-list{display:grid;gap:10px}.form-row{display:grid;grid-template-columns:minmax(240px,1.6fr) .75fr .75fr auto;align-items:center;gap:18px;padding:17px;border:1px solid var(--line);border-radius:16px}.form-row:hover{border-color:rgb(213 170 66/.55);background:#fffdf7}.form-title strong{display:block;margin-bottom:5px}.form-title small{color:var(--muted)}.badge{display:inline-flex;width:max-content;padding:6px 9px;border-radius:999px;background:#eef0f8;color:var(--navy);font-size:.72rem;font-weight:800}.badge.published{background:#e9f5ef;color:var(--success)}.actions{display:flex;gap:6px}.icon-button{display:inline-grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--navy);cursor:pointer}.builder-grid{display:grid;gap:20px;max-width:1080px}.section-title{display:flex;align-items:center;gap:14px}.section-title>span{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:50%;background:var(--navy);color:var(--gold);font-weight:900}.section-title h2,.section-title p{margin:0}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}.questions{display:grid;gap:14px}.question-card{padding:18px;border:1px solid var(--line);border-radius:18px;background:#fbfaf6}.question-head{display:flex;align-items:center;gap:10px;margin-bottom:16px}.question-head .remove-question{margin-left:auto}.drag{color:#aaa}.question-grid{display:grid;grid-template-columns:1.4fr 1fr .65fr;align-items:end;gap:14px;margin-top:14px}.check-row{display:flex;align-items:flex-start;gap:12px;min-height:44px;cursor:pointer;line-height:1.45}.check-row input{width:18px;height:18px;flex:0 0 18px;margin:2px 0 0}.check-row span{min-width:0}.options-field,.answer-field{margin-top:14px}.hidden{display:none!important}.status-tabs{display:flex;gap:8px}.tab{padding:9px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}.tab.active{background:var(--navy);color:#fff}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:14px 12px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}th{font-size:.73rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}td{font-size:.88rem}.drawer{position:fixed;inset:0 0 0 auto;width:min(540px,100%);overflow:auto;padding:30px;background:#fff;box-shadow:-20px 0 60px rgb(16 21 63/.18);z-index:5}.drawer-close{float:right}.answer-block{padding:14px;margin:12px 0;border-radius:14px;background:#f5f4ef}.student-body{display:flex;flex-direction:column;background:linear-gradient(180deg,var(--navy) 0 250px,var(--ivory) 250px)}.student-header{display:flex;align-items:center;gap:12px;max-width:900px;width:100%;margin:0 auto;padding:24px;color:#fff}.student-header img{width:54px;height:54px;object-fit:contain}.student-header span{font-weight:750}.student-shell{flex:1;width:min(900px,calc(100% - 32px));margin:12px auto 40px}.student-card{min-height:540px;padding:clamp(24px,5vw,54px);border:1px solid rgb(255 255 255/.2);border-radius:28px;background:#fff;box-shadow:var(--shadow)}.student-card h1{max-width:680px}.student-footer{display:flex;justify-content:space-between;gap:20px;padding:20px max(18px,calc((100% - 900px)/2));color:var(--muted);font-size:.75rem}.student-intro{display:grid;gap:28px}.choice-tabs{display:flex;gap:8px}.progress-track{height:8px;margin-bottom:28px;overflow:hidden;border-radius:99px;background:#ecebe6}.progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--gold),var(--gold-light))}.question-stage{min-height:300px}.question-stage h2{font-size:clamp(1.35rem,3vw,2rem);line-height:1.3}.choice-list{display:grid;gap:10px;margin:22px 0}.choice{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;font-weight:650;cursor:pointer}.choice input{width:20px}.student-actions{display:flex;justify-content:space-between;gap:12px;margin-top:28px}.resume-code{padding:16px;border:1px dashed var(--gold);border-radius:14px;background:#fffbef;text-align:center}.resume-code strong{display:block;font-size:1.7rem;letter-spacing:.12em;color:var(--navy)}.result-box{display:grid;place-items:center;text-align:center;min-height:360px}.result-score{display:grid;place-items:center;width:160px;height:160px;margin:20px;border-radius:50%;background:var(--navy);color:#fff}.result-score strong{font-size:2.5rem;color:var(--gold)}@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.brand-panel{display:none}.app-shell{grid-template-columns:1fr}.sidebar{position:static;display:flex;flex-direction:row;align-items:center;height:auto;padding:12px 18px}.sidebar-brand{padding:0;border:0}.sidebar-brand img{width:40px;height:40px}.sidebar nav{display:none}.sidebar>.button{margin:0 0 0 auto}.main{padding:26px 18px 54px}.form-row{grid-template-columns:1fr auto}.form-row>:nth-child(2),.form-row>:nth-child(3){display:none}}@media(max-width:620px){.auth-body{padding:0}.auth-shell{min-height:100dvh;border:0;border-radius:0}.auth-card{padding:30px 22px}.topbar{align-items:flex-start;flex-direction:column}.topbar>.button{width:100%}.metrics{grid-template-columns:1fr 1fr}.metrics .metric:last-child{grid-column:1/-1}.panel{padding:18px;border-radius:18px}.panel-head{align-items:stretch;flex-direction:column}.invite-form{align-items:stretch;flex-direction:column}.invite-form input{min-width:0}.filter{width:100%}.two-cols,.question-grid{grid-template-columns:1fr}.student-header{padding:16px 20px}.student-shell{width:calc(100% - 20px);margin-top:4px}.student-card{min-height:calc(100svh - 150px);padding:24px 18px;border-radius:22px}.student-footer{flex-direction:column;padding:16px 18px}.student-actions{flex-direction:column-reverse}.student-actions .button{width:100%}.drawer{padding:20px}.choice-tabs{overflow:auto}.form-row{padding:14px}.form-row .actions{grid-column:1/-1}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}