/* Approved emerald direction, shared across the authenticated workspace. */
:root{--sb-forest:#043f30;--sb-green:#08734e;--sb-lime:#d0f36a;--sb-ink:#162c27;--sb-paper:#f5f7f3}
body,.layout,.main{background:var(--sb-paper);color:var(--sb-ink)}
.sidebar{background:linear-gradient(170deg,#034c37,#033b2e);border-right:0;padding:28px 16px 20px;scrollbar-color:#38876e #034632}
.sidebar .brand{margin-bottom:30px}.sidebar .brand img{content:url('/assets/simubase-logo-light.png')}
.sidebar .nav button,.sidebar .nav-more summary{color:#d6e9df;border-color:transparent;background:transparent;font-weight:600;min-height:45px;border-radius:12px}
.sidebar .nav button:hover,.sidebar .nav-more summary:hover{background:#ffffff14;color:#fff}
.sidebar .nav button.active{background:#0c8159;color:#fff;box-shadow:inset 3px 0 #d0f36a;border-color:#ffffff12}
.sidebar .nav button.guided-tour-nav{background:#ffffff0b;color:#d8efcd;border-color:#ffffff18}
.sidebar .nav button[data-page="ligas"]{background:#cdef7012;color:#e7f4bd;border-color:#d0f36a33}
.sidebar .sidefoot{color:#b7d4c7;border-color:#ffffff20}.sidebar .nav-extra{border-color:#ffffff25}
.topbar{height:76px;background:#ffffffed;border-color:#e1e8df;padding-inline:34px}.topbar-search input{background:#f5f7f3;border-color:#dce5dc;border-radius:12px}.avatar{background:#075c40}
.main{padding:32px 34px 80px}.shell{max-width:1320px}.head h1,.home-heading h1{color:#142a23;font-size:clamp(28px,2.7vw,38px);font-weight:850;letter-spacing:-.05em}.head p,.home-heading p{color:#63766b;font-size:14px}
.panel,.card,.kpi,.examcard,.topic,.area,.day{border-color:#dfe7dc;border-radius:18px;box-shadow:0 7px 25px #183d2410}.panel{padding:25px}.panel h2,.panel h3,.examcard h3{color:#19342a}
.btn{border-radius:11px;min-height:44px;padding:11px 16px;border-color:#d4e0d5;color:#193c2c}.btn.primary{background:#076e4c;border-color:#076e4c;box-shadow:0 4px 10px #075d4014}.btn.primary:hover{background:#05563c}.btn:focus-visible,.option:focus-visible{outline:3px solid #92b537;outline-offset:3px}
.home-emphasis{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,#034a35,#0c7952);border:0;padding:32px;color:#fff;box-shadow:0 12px 30px #07513819}
.home-emphasis:after{content:"";position:absolute;z-index:-1;width:300px;height:300px;right:-65px;top:-120px;border:1px solid #ffffff20;border-radius:50%;box-shadow:0 0 0 42px #ffffff07,0 0 0 84px #ffffff05;pointer-events:none}
.home-emphasis h2{color:#fff;font-size:clamp(22px,2.4vw,31px);line-height:1.2;max-width:850px}.home-emphasis p{color:#d6eade}.home-emphasis .eyebrow{color:#d0f36a;letter-spacing:.1em}.home-emphasis-icon{background:#ffffff18;color:#d0f36a;border:1px solid #ffffff25}.home-emphasis .btn{background:#ffffff0d;color:#fff;border-color:#ffffff45}.home-emphasis .btn.primary{background:#d0f36a;color:#173d24;border-color:#d0f36a}.home-emphasis .btn:hover{background:#fff;color:#064b35}.home-actions{margin-top:24px}
.home-kpis{gap:16px}.home-kpis .kpi{padding:23px;min-height:112px}.home-kpis .kpi b{color:#173b29;font-size:31px}.kpi-icon,.kpi-icon.blue,.home-section-icon,.home-section-icon.blue{background:#edf6db;color:#17703e;border-radius:13px}.home-next .panel{padding:25px;min-height:178px}.home-next .panel h2{font-size:21px}.home-performance-link{background:#eaf2e4;border-color:#d5e5ca;border-radius:14px}
.option{border-radius:12px;border-color:#dbe5dc;min-height:55px;padding:14px 16px;transition:background .12s,border-color .12s}.option:hover:not(:disabled){background:#f3f8ed;border-color:#a5c391}.option.selected{background:#edf6df;border-color:#78a84a;box-shadow:inset 3px 0 #53852d}.option .letter{color:#126344}.option.correct{background:#edf9ef;border-color:#84c49a}.option.wrong{background:#fff3f1;border-color:#e1a7a1}
.field input,.field select,.field textarea{border-color:#d6e1d5;border-radius:11px}.tabs button.active{color:#086641;border-color:#08734e}.tag{background:#edf5df;color:#346322}.notice{background:#edf6e9;border-color:#d1e4c7;color:#315d38}.notice.warn{background:#fff8e9;border-color:#eddcb4;color:#704e0e}
.profile-shell,.admin-section{border-radius:18px}.profile-tabs{background:#f8faf6}.admin-topic,.admin-overview-card{border-radius:13px}.admin-metric-card{border-color:#dce6d8;border-radius:15px}.admin-metric-card strong{color:#0b633f}.sim-builder-filters{background:#f4f8ed;border-color:#d7e6ca}.sim-builder-preview{background:#e9f2dc}
@media(min-width:1100px){.sidebar{width:246px}.nav button{font-size:14px}.home-heading{margin-bottom:26px}}
@media(max-width:850px){.topbar{height:64px;padding-inline:16px}.main{padding:23px 16px 90px}.sidebar{width:min(280px,86vw)}.home-emphasis{padding:24px}.home-emphasis h2{font-size:24px}.home-actions{margin-left:0;gap:8px}.home-actions .btn{min-width:0;flex:1}.panel{padding:20px}.home-kpis .kpi{padding:18px}.home-kpis .kpi b{font-size:26px}}
@media(prefers-reduced-motion:reduce){.option{transition:none}}

.study-overview{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,1fr);gap:18px;margin-bottom:18px}.study-overview>.panel{margin:0}.study-overview .home-emphasis strong{color:white}.study-goal{display:grid;align-content:center;gap:12px}.study-goal-body{display:flex;align-items:center;gap:20px}.study-ring{width:100px;aspect-ratio:1;flex:none;background:conic-gradient(#08734e var(--pct),#e3eade 0);border-radius:50%;display:grid;place-items:center}.study-ring b{background:white;width:78%;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;font-size:24px}.study-links ul{padding:0;list-style:none}.study-links li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #dce6d9}.study-links li span{color:#306343}@media(max-width:850px){.study-overview{grid-template-columns:1fr}.study-ring{width:72px}}

.dashboard-new{display:grid;gap:18px;margin-bottom:22px}.dashboard-new header,.dash-metrics{display:flex;align-items:center;justify-content:space-between;gap:14px}.dashboard-new header h1{margin:5px 0;font-size:clamp(28px,3vw,46px);line-height:1.08;letter-spacing:-.045em}.dashboard-new small{font-weight:700}.dash-pair{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:18px}.dash-box,.dash-main,.dash-metrics>div{padding:24px;border:1px solid #d9e4db;border-radius:17px;background:white}.dash-main{padding:32px;color:white;background:repeating-linear-gradient(135deg,transparent 0 60px,#ffffff05 61px 62px),linear-gradient(112deg,#053f30,#08774d)}.dash-main small{color:#d0f36a}.dash-main h2{font-size:clamp(27px,3vw,41px);line-height:1.1;margin:12px 0 4px;color:white}.dash-box h2{margin:0 0 16px}.dash-metrics>div{flex:1;display:grid;gap:4px;border-top:3px solid #b6db64}.dash-metrics b{font-size:29px}.dash-box button[data-act=dashSubject]{display:block;width:100%;text-align:left;margin-top:6px;background:#f5f9f1}.dash-exam{background:linear-gradient(135deg,#fff,#eff5df)}@media(max-width:760px){.dash-pair{grid-template-columns:1fr}.dashboard-new header{align-items:flex-start;flex-direction:column}.dash-metrics{align-items:stretch;gap:5px}.dash-metrics>div{padding:12px 6px;min-width:0}.dash-metrics small{font-size:10px}.dash-main,.dash-box{padding:20px}}
