:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#152238;background:#f4f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}.shell{min-height:100vh}.topbar{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px clamp(18px,4vw,56px);background:#102a43;color:#fff}.brand{display:flex;align-items:center;gap:12px;font-weight:780}.brand-mark{width:32px;height:32px;border-radius:7px;display:grid;place-items:center;background:#21b6a8;color:#062c3a;font-weight:900}.top-actions{display:flex;align-items:center;gap:10px}.identity{font-size:13px}.top-actions button,.lang button{border:1px solid rgba(255,255,255,.34);background:transparent;color:#fff;padding:8px 11px;border-radius:6px}.lang{display:flex;gap:4px}.lang button.active{background:#fff;color:#102a43}.login-wrap{width:min(1180px,calc(100% - 32px));margin:9vh auto}.login-panel{max-width:620px}.content{width:min(1320px,calc(100% - 32px));margin:22px auto 52px}.panel{background:#fff;border:1px solid #d9e2ec;border-radius:8px;padding:22px;box-shadow:0 4px 16px #102a430d}h1,h2{margin:0;color:#102a43}h1{font-size:clamp(28px,4vw,42px)}h2{font-size:21px}.muted,.section-head p,.student-title p{color:#627d98;line-height:1.55}.eyebrow{display:block;margin-bottom:8px;color:#0b7a75;font-size:11px;font-weight:850;text-transform:uppercase}.status{display:inline-flex;align-items:center;gap:7px;font-weight:750;color:#0b7a75}.status:before{content:"";width:9px;height:9px;border-radius:50%;background:currentColor}.status.blocked{color:#a15c00}.form,.compact-form{display:grid;gap:13px;margin-top:22px}.form{max-width:480px}.field,.profile-form label{display:grid;gap:6px}.field label,.profile-form label{font-size:13px;font-weight:750;color:#486581}.field input,.profile-form input,.profile-form select,.compact-form input,.compact-form select{width:100%;border:1px solid #bcccdc;border-radius:6px;padding:10px 11px;background:#fff;color:#102a43}.primary,.secondary,.icon-text{border-radius:6px;padding:10px 13px;font-weight:750}.primary{border:0;background:#0b7a75;color:#fff}.secondary,.icon-text{border:1px solid #bcccdc;background:#fff;color:#102a43}.primary:disabled,.secondary:disabled{opacity:.5;cursor:not-allowed}.danger{color:#b42318;border-color:#e6b8b4}.error,.flash.error{color:#b42318}.tabs{display:flex;gap:4px;padding:0 clamp(18px,4vw,56px);background:#fff;border-bottom:1px solid #d9e2ec}.tabs button{border:0;border-bottom:3px solid transparent;background:transparent;padding:13px 15px;color:#627d98;font-weight:750}.tabs button.active{border-color:#0b7a75;color:#102a43}.server-banner{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:#486581}.server-banner>span{width:10px;height:10px;border-radius:50%;background:#21b6a8}.server-banner b,.server-banner small{display:block}.server-banner small{margin-top:2px}.flash{padding:11px 13px;margin-bottom:12px;border:1px solid;border-radius:6px;background:#fff}.flash.ok{color:#0b7a75;border-color:#96ded5}.flash.error{border-color:#e6b8b4}.loading{position:fixed;z-index:20;right:18px;bottom:18px;padding:9px 12px;background:#102a43;color:#fff;border-radius:6px}.workspace{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:18px}.workspace-panel{min-width:0}.section-head,.student-title,.engine-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.section-head p,.student-title p{margin:4px 0 0}.student-list,.session-list,.report-grid{display:grid;gap:9px;margin-top:18px}.student-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;border:1px solid #d9e2ec;background:#fff;border-radius:6px;padding:12px}.student-row.active{border-color:#0b7a75;background:#effcf9}.student-row b,.student-row small{display:block}.student-row small{margin-top:4px;color:#627d98}.creator{margin-top:18px;border-top:1px solid #e5edf5;padding-top:14px}.creator summary{font-weight:800;cursor:pointer}.check{display:flex;gap:8px;align-items:center;font-size:13px;color:#486581}.check input{width:auto}.empty{padding:24px;border:1px dashed #bcccdc;border-radius:6px;text-align:center;color:#627d98}.consent{min-width:120px;padding:10px 12px;border-radius:6px;background:#f4f7fb;text-align:right}.consent span,.consent b{display:block}.consent span{font-size:11px;color:#627d98}.consent.consented{background:#e6fffa;color:#0b7a75}.consent.withdrawn{background:#fff1f0;color:#b42318}.consent-actions{display:flex;justify-content:flex-end;margin:12px 0}.profile-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:12px}.form-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.session-row,.result{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #d9e2ec;border-radius:6px;padding:13px}.session-row b,.session-row small,.result b,.result small{display:block}.session-row small,.result small{margin-top:4px;color:#627d98}.session-row>div:last-child{display:flex;gap:6px}.version{padding:5px 8px;border-radius:999px;background:#e6fffa;color:#0b7a75;font-size:12px;font-weight:800}.result{justify-content:flex-start}.result>span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#102a43;color:#fff;font-weight:800}.engine-panel{grid-column:1/-1;min-width:0;background:#fff;border:1px solid #d9e2ec;border-radius:8px;overflow:hidden}.engine-toolbar{align-items:center;padding:12px 14px;border-bottom:1px solid #d9e2ec}.engine-toolbar b,.engine-toolbar span{display:block}.engine-toolbar span{font-size:12px;color:#627d98;margin-top:2px}.engine-toolbar>div:last-child{display:flex;gap:8px}#legacy-engine{display:block;width:100%;height:calc(100vh - 210px);min-height:620px;border:0;background:#f4f7fb}@media(max-width:900px){.workspace{grid-template-columns:1fr}.workspace>.workspace-panel:first-child{order:0}.engine-panel{grid-column:1}.top-actions{flex-wrap:wrap;justify-content:flex-end}.identity{width:100%;text-align:right}}@media(max-width:600px){.topbar{align-items:flex-start;flex-direction:column}.top-actions{width:100%;justify-content:space-between}.identity{width:100%;text-align:left}.content,.login-wrap{width:calc(100% - 20px);margin-top:16px}.panel{padding:16px}.tabs{padding:0 10px;overflow-x:auto}.tabs button{white-space:nowrap}.profile-form{grid-template-columns:1fr}.section-head,.student-title,.engine-toolbar{flex-direction:column}.consent{width:100%;text-align:left}.session-row{align-items:flex-start;flex-direction:column}.engine-toolbar>div:last-child{width:100%;flex-direction:column}.engine-toolbar button{width:100%}#legacy-engine{height:720px;min-height:720px}.server-banner small{font-size:12px}}

/* v2.4.1 mobile shell width guard: prevent 1px subpixel overflow without redesign */
html,body,#root,.shell{width:100%;max-width:100%;overflow-x:hidden}
.shell,.content,.login-wrap,.workspace,.workspace-panel,.engine-panel{min-width:0;max-width:100%}
#legacy-engine{max-width:100%}
@media(max-width:600px){
  .topbar,.tabs,.workspace,.workspace-panel,.panel,.engine-panel{max-width:100%}
  .content,.login-wrap{width:calc(100% - 20px);max-width:calc(100vw - 20px);margin-left:auto;margin-right:auto}
  #legacy-engine{width:100%;max-width:100%}
}

.approved-dashboard-host{position:fixed;inset:0;z-index:9999;width:100vw;height:100vh;background:#fff;overflow:hidden}.approved-dashboard-frame{display:block!important;width:100vw!important;height:100vh!important;min-height:100vh!important;max-width:none!important;border:0!important;background:#f4f7fb}
