/* HEPCO v3.60: consistent raspberry palette and compact, stable layouts. */
:root{--ws-orange:#b00149;--orange:#b00149;--primary:#b00149;--ws-page:#f8f5ff;--brand-primary:#b00149;--ws-border:#e9e1ef;--ws-duration:220ms;color-scheme:light}
html{scrollbar-gutter:stable;overflow-anchor:none}body,.shell,.content,.main{background:#f8f5ff}body{overflow-x:clip}
.btn.primary,.auth-submit{background:#b00149!important;color:#fff!important;border-color:#b00149!important}.btn.primary:hover,.auth-submit:hover{background:#90013c!important;color:#fff!important}.btn:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline-color:#b00149}
.pill.green,.pill.blue,.pill.amber,.notice.success,.status-active{background:#fae8f1;color:#8e003b}.sidebar .nav-item.active,.sidebar .nav-item.active:hover{background:#fae8f1;border-color:#f1c7db;color:#111}.sidebar .nav-item svg,.sidebar .nav-item.active svg{color:#b00149}.ws-brand-row{height:96px;min-height:96px;flex:0 0 96px;box-sizing:border-box}.sidebar nav{height:0;min-height:0;overflow-y:auto;overflow-anchor:none;scroll-behavior:auto;scrollbar-gutter:stable;padding-block:16px!important}.sidebar .nav-item{height:46px;min-height:46px;max-height:46px;margin-block:3px;border-width:1px;transition:background 180ms,color 180ms}.ws-nav-group[open]>div{animation:none}.ws-sidebar-profile{display:none!important}.ws-compact .ws-brand-row{height:96px;min-height:96px;flex-basis:96px;padding:22px 8px}.ws-compact .ws-brand-row .institution-brand{display:none}.ws-compact .ws-nav-group summary,.ws-nav-group summary{height:38px;min-height:38px}.sidebar :focus{scroll-margin:0}
.ws-overview .ws-kpis,.ws-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ws-kpi{height:132px;min-height:132px;max-height:132px;overflow:hidden;padding:16px}.ws-kpi>small{line-height:1.8}.ws-kpi-title{font-size:12px}.ws-heading-actions{align-items:center}
.s49-section{padding:12px;margin-block:14px;background:transparent;border:0;box-shadow:none}.s49-section-title{margin-bottom:12px}.s49-section-title>span{background:#f6dfeb;color:#b00149}.s49-kpis{gap:10px;margin-bottom:12px}.s49-kpi{padding:12px;min-height:96px;height:96px}.s49-kpi strong{font-size:23px}.s49-kpi>span{font-size:10px;line-height:1.7}.s49-section .analytics-grid,.s49-section .analytics-grid:not(:has(>.s49-chart:nth-child(3))){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:308px;gap:12px}.s49-chart{height:308px;min-height:0;min-width:0;overflow:hidden;border:1px solid #e9e1ef;border-radius:12px;background:#fff;box-shadow:0 2px 4px #49234903}.s49-chart .card-head{height:56px;min-height:56px;max-height:56px;gap:6px;padding:10px 12px}.s49-chart .card-head h2{font-size:12px!important;line-height:1.8}.s49-chart .card-body{height:250px;min-height:0;overflow:visible;display:flex;gap:6px;padding:10px 12px}.s49-chart .column-chart{height:172px;min-height:0;max-height:172px}.s49-chart .s49-line{height:166px;max-height:166px;width:100%;flex-shrink:0}.s49-chart .s49-donut-layout{min-height:154px}.s49-chart .s49-empty{min-height:0;flex:1;justify-content:center}.s49-chart .s49-empty p{max-width:230px}.s49-chart .s53-chart-help{flex-shrink:0;font-size:10px;margin-top:auto}.s49-chart .s53-chart-help summary{min-height:26px}.s49-chart .s53-chart-help[open]{position:relative;z-index:3;background:white;padding:8px;box-shadow:0 2px 15px #49234919;border-radius:8px}.s49-chart:has(.s53-chart-help[open]),.s49-chart:has(.s53-data-details[open]){height:auto;min-height:308px;overflow:visible}.s49-section .analytics-grid:has(.s53-chart-help[open]),.s49-section .analytics-grid:has(.s53-data-details[open]){grid-auto-rows:minmax(308px,auto)}.s49-chart:has(.s53-chart-help[open]) .card-body{height:auto;min-height:250px}.s49-chart .s53-data-details summary{min-height:26px}.s49-chart .s49-legend{font-size:10px}.s53-chart-pagination{margin-top:auto;min-height:32px}.md-filters{padding:12px;margin-bottom:16px;background:white}
.auth-form-side{background:#f8f5ff;padding:28px}.auth-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.auth-card{width:min(100%,540px);max-width:540px;padding:28px 32px}.auth-logo{width:184px;height:184px;margin-bottom:20px}.auth-brand{background:radial-gradient(ellipse at 80% 10%,#b001491f,transparent 65%),#121826}.auth-brand h1{color:#fff!important}.auth-brand-kicker{color:#f7aacb}.auth-splash{position:fixed;inset:0;min-height:100dvh;background:#121826;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;padding:20px}.auth-splash img.auth-instant-logo{width:200px;height:200px;object-fit:contain;filter:drop-shadow(0 12px 30px #0004)}.auth-splash h1{color:white!important;text-align:center;font-size:22px!important;line-height:2}.auth-instant-logo{visibility:hidden;opacity:0!important}.auth-instant-logo.is-decoded{visibility:visible;opacity:1!important;animation:auth360-logo 550ms cubic-bezier(.2,.7,.2,1) both!important}.auth-splash img.auth-instant-logo.is-decoded{animation:auth360-logo 650ms cubic-bezier(.2,.7,.2,1) both!important}.auth-cubes{height:22px;gap:8px}.auth-cubes i{width:10px;height:10px;background:#e782b4}.auth-cubes i:nth-child(2),.auth-cubes i:nth-child(4){background:#fff}.auth-cubes i:nth-child(3){background:#f3b4d3}.auth-tabs>*[aria-current=page]{background:#fff;color:#b00149}.auth-security,.auth-legacy{display:none!important}.auth-card-top p{margin-bottom:12px}.auth-eyebrow,.auth-contact a{color:#b00149}.auth-registration{width:min(100%,600px);max-width:600px;padding:22px 28px}.auth-registration .form-grid{display:block}.registration-step{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}.registration-step[hidden],[hidden]{display:none!important}.auth-registration .form-actions{display:flex;gap:8px;margin-top:10px}.auth-registration .form-actions .btn{width:auto;flex:1;min-height:42px}.auth-registration .field{font-size:11px;gap:4px;min-width:0}.auth-registration .field input,.auth-registration .field select{min-height:40px;width:100%;padding:7px 10px}.auth-registration .auth-tabs{margin-bottom:8px}.auth-registration .auth-terms{margin-top:8px}.auth-registration>p{font-size:11px;margin-bottom:10px}.auth-registration .birth-input{gap:3px}.auth-registration .birth-input button{min-width:38px;padding:4px}.auth-registration #registration-error{min-height:22px;font-size:11px}.auth-registration .auth-card-top h2{font-size:21px}.auth-card .auth-error{font-size:12px;min-height:24px}.auth-brand-foot>span{background:#e782b4}
@keyframes auth360-logo{from{opacity:0;transform:translateY(8px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:1200px){.s49-section .analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-brand{padding:28px}.auth-card{padding:24px}.auth-logo{width:154px;height:154px}}
@media(max-width:767px){.auth-layout{display:flex;flex-direction:column;min-height:100dvh}.auth-brand{padding:14px 18px;flex:0 0 auto}.auth-brand-inner{display:flex;flex-direction:row;align-items:center;gap:16px;max-width:100%}.auth-logo{width:104px;height:104px;margin:0;flex-shrink:0}.auth-brand h1{font-size:18px!important;line-height:1.9;margin:0;max-width:240px}.auth-brand p,.auth-brand-kicker,.auth-brand-foot{display:none}.auth-form-side{flex:1;justify-content:flex-start;padding:0 14px calc(14px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0}.auth-card,.auth-registration{width:100%;max-width:550px;padding:18px;border-radius:18px;margin-top:14px}.auth-registration .field{font-size:11px}.auth-registration .registration-step{gap:8px}.auth-registration .field input,.auth-registration .field select{font-size:12px}.auth-registration .auth-card-top h2{font-size:19px}.auth-card-top p,.auth-registration>p{font-size:10px}.auth-tabs{margin-bottom:12px}.auth-card h2{font-size:22px}.auth-field{margin-bottom:9px}.auth-field input{height:44px}.auth-options{margin-block:8px}.auth-brand-copy{display:none}.auth-registration .form-actions{margin-top:8px}.ws-kpis,.ws-overview .ws-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ws-kpi{padding:12px}.ws-kpi-title{font-size:11px}.s49-section .analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.s49-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.s49-section .analytics-grid{grid-template-columns:1fr}.s49-section{padding:0}.auth-splash h1{font-size:18px!important}.auth-splash img.auth-instant-logo{width:180px;height:180px}.auth-brand h1{font-size:16px!important}.auth-registration .auth-tabs>*{padding:7px}}
@media(prefers-reduced-motion:reduce){.auth-instant-logo.is-decoded,.auth-splash img.auth-instant-logo.is-decoded,.auth-cubes i{animation:none!important;transform:none!important}}
.s49-section .s49-chart,.s49-section .s49-chart:last-child:nth-child(odd){grid-column:auto!important;grid-row:auto!important}
.s49-chart .column-chart-scroll{flex:0 1 auto;min-height:0;overflow:visible}.s49-chart .chart-column{gap:5px;min-height:0}.s49-chart .chart-column>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:36px;line-height:1.7}.s49-chart .s49-donut-layout{flex-wrap:nowrap;gap:10px}.s49-chart .s49-donut{flex-shrink:0}.s49-chart .s49-donut-layout p{font-size:10px}.s49-chart .s50-compare-controls{display:grid;grid-template-columns:1fr 1fr;gap:6px;flex-shrink:0;margin:0}.s49-chart .s50-compare-controls label{font-size:9px;line-height:1.7}.s49-chart .s53-chart-help:not([open]){height:29px;min-height:29px;max-height:29px;overflow:hidden}.s49-chart .s53-chart-help:not([open]) summary{white-space:nowrap;font-size:10px}.s49-chart .s53-paged{min-height:0}.s49-chart .s53-chart-total{font-size:9px;margin-top:2px}
.s49-section .analytics-grid{grid-auto-rows:328px}.s49-chart{height:328px}.s49-chart .card-body{height:270px}.s49-chart .s50-group-scroll{padding:0;overflow:visible}.s49-chart .s50-groups{padding:0;min-width:0;gap:6px;grid-template-columns:repeat(2,minmax(0,1fr))}.s49-chart .s50-pair,.s49-chart .s50-pair:only-child{height:64px}.s49-chart .s50-pair>div{gap:2px}.s49-chart .s50-group{gap:3px}.s49-chart .s50-group>strong{font-size:10px;line-height:1.7;max-height:34px}.s49-chart .s50-group small{font-size:9px;line-height:1.6}.s49-chart .s53-data-details{margin-top:3px}.s49-chart .s53-data-details:not([open]){height:23px;overflow:hidden}.s49-chart .s53-data-details summary{min-height:22px;padding:0;font-size:9px}.s49-chart .s53-chart-pagination{margin-top:4px;padding-top:3px;min-height:28px}.s49-chart .s53-chart-pagination button{min-height:26px;padding:2px 8px;font-size:9px}.s49-chart .s50-compare-controls .field{margin:0;gap:2px}.s49-chart .s50-compare-controls select{min-height:28px;padding:3px;font-size:10px}.s49-chart .s49-stacks{gap:8px}.s49-chart .s49-legend{gap:5px;font-size:9px;margin-block:2px}.s49-chart .s53-chart-total{font-size:8px}
.s49-chart .card-body{align-items:stretch;flex-direction:column;width:100%}.s49-chart .s53-paged,.s49-chart .s53-chart-pages,.s49-chart .s53-chart-page{width:100%;min-width:0}.s49-chart .s53-chart-pagination{width:100%;flex-direction:row;flex-wrap:nowrap}.s49-chart .s53-chart-total{white-space:nowrap}
@media(max-width:767px){.auth-brand{min-height:132px}.auth-registration #registration-error{margin:0;min-height:20px}.auth-registration .form-actions{padding-top:0}}
@media(max-width:767px) and (max-height:700px){.auth-brand{min-height:90px;padding-block:8px}.auth-brand .auth-logo{width:76px;height:76px}.auth-registration{padding:12px;margin-top:8px}.auth-registration>p{display:none}.auth-registration .field input,.auth-registration .field select{min-height:36px}.auth-registration .auth-card-top h2{font-size:17px;margin:0}.auth-registration .auth-card-top p{margin:4px 0}.auth-registration .auth-tabs{margin-bottom:3px}.auth-registration .auth-tabs>*{padding:5px}}
.s49-kpi.teal,.s49-kpi.green,.s49-kpi.orange{border-top-color:#b00149;color:#8e003b}.s49-kpi.blue{border-top-color:#8c6bba}.s49-kpi.pink{border-top-color:#df75a5}.avatar,.ws-avatar-button{background:#fae8f1;color:#b00149}.topbar time,.topbar .iran-clock{color:#8e3b60}.s49-section-title>span{border-color:#efbdd2}

/* v3.61: semantic states and consistent action/menu icon colors. */
.sidebar .nav-item svg,.sidebar .nav-item.active svg,.sidebar .nav-item:hover svg{color:#111827!important}
.pill.green,.status-active,.catalog-state.enabled,.slot-state:has(.dot),.notice.success{background:#e8f7ee!important;color:#137044!important;border-color:#b9e3c9!important}
.pill.green .dot,.catalog-state.enabled .dot,.slot-enabled .dot{background:#22a06b!important}
.catalog-state.disabled,.slot-disabled .slot-state,.status-inactive{background:#f1f3f5!important;color:#6b7280!important;border-color:#d9dde2!important}
.catalog-state.disabled .dot,.slot-disabled .dot{background:#9ca3af!important}
.pill.amber,.registration-pending,.status-pending,[data-status="pending"]{background:#fff4d6!important;color:#8a5b00!important;border-color:#f2d17a!important}
.registration-pending .dot,[data-status="pending"] .dot{background:#e3a008!important}
.teacher-action-icon.action-documents{color:#c58a00!important;fill:#fff2b8!important}
.teacher-action-icon.action-contact{color:#16804b!important;fill:#dff6e9!important}
.teacher-action-icon.action-edit,[data-edit] svg{color:#247fd1!important}
.teacher-action-icon.action-delete,[data-delete] svg,.btn.danger svg{color:#d43c49!important}
[data-teacher-documents]{background:#fffaf0!important;border-color:#f1d88e!important}
[data-teacher-contact]{background:#f0fbf5!important;border-color:#bfe6d0!important}
[data-edit]{background:#f1f7ff!important;border-color:#c9def7!important}
[data-delete],.btn.danger{background:#fff3f4!important;border-color:#f2c5ca!important;color:#bd2633!important}
