/* QAYEM control room — shared academy shell, browser-local preview. */
.is-admin{--paper:#f5f5f7;--radius:16px}
.admin-site-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#6e6c77;white-space:nowrap}
.admin-site-link svg{width:15px;height:15px}
.is-admin .sidebar-top{padding-bottom:20px;margin-bottom:16px}
.is-admin .sidebar-tip{background:linear-gradient(145deg,#302026,#221e24);border-color:#62404a}
.admin-home-link{border-bottom:1px solid #ffffff13;padding-bottom:13px;margin-bottom:12px}
.admin-home-link .nav-link{background:#ffffff08}
.dashboard-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:25px}
.dashboard-heading h1{font-size:31px;letter-spacing:-.7px}
.dashboard-heading p{color:var(--muted);font-size:12px;margin-top:6px}
.dashboard-date{font-size:11px;color:#7b7883;white-space:nowrap;display:flex;align-items:center;gap:8px}
.dashboard-date svg{width:15px;height:15px}
.dashboard-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:32px;padding:32px 35px;background:#19191d;color:white;border:1px solid #343039;border-radius:18px;margin-bottom:22px}
.dashboard-hero:before{content:"";position:absolute;width:340px;height:340px;border-radius:50%;background:#c7273c;filter:blur(110px);opacity:.18;left:0;top:-150px;pointer-events:none}
.dashboard-hero-copy{position:relative;z-index:1}
.dashboard-hero .eyebrow{font-size:9px;letter-spacing:2px;color:#c49ba4;margin-bottom:13px}
.dashboard-hero h2{font-size:36px;letter-spacing:-.9px;line-height:1.4}
.dashboard-hero h2 em{font-style:normal;color:#fb6676}
.dashboard-hero p{max-width:550px;font-size:13px;color:#b2adb8;line-height:1.9;margin:12px 0 22px}
.dashboard-hero-actions{display:flex;flex-wrap:wrap;gap:10px}
.dashboard-hero-actions .btn{font-size:12px;min-height:41px}
.dashboard-hero-actions .hero-secondary{background:#ffffff08;border-color:#ffffff25;color:white}
.dashboard-art{position:relative;min-height:190px;display:flex;align-items:center;justify-content:center;direction:ltr;isolation:isolate}
.dashboard-art-orbit{position:absolute;inset:12px 0;border:1px solid #ffffff13;border-radius:50%;transform:rotate(-24deg)}
.dashboard-art-orbit:after{content:"";position:absolute;inset:19px;border:1px dashed #ffffff13;border-radius:50%}
.dashboard-art-mark{font:100px/1 Arial;color:#f65365;transform:rotate(-13deg);text-shadow:0 8px 60px #f24d6355}
.dashboard-art-label{position:absolute;padding:8px 13px;background:#ffffff0a;backdrop-filter:blur(8px);border:1px solid #ffffff1b;border-radius:9px;font:9px Arial;letter-spacing:1px;color:#ddd1d7}
.dashboard-art-label.top{top:18px;right:0;transform:rotate(7deg)}
.dashboard-art-label.bottom{bottom:20px;left:-7px;transform:rotate(-6deg)}
.dashboard-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:29px}
.dashboard-metric{display:flex;flex-direction:column;gap:17px;min-width:0;background:white;border:1px solid var(--line);padding:17px 18px;border-radius:12px;transition:border-color .15s,transform .15s}
.dashboard-metric:hover{border-color:#dcabb4;transform:translateY(-2px)}
.metric-top{display:flex;align-items:center;justify-content:space-between;gap:7px}
.metric-top>.stat-icon{width:31px;height:31px;border-radius:9px;background:#fff0f2;color:#d63349}
.metric-top>.stat-icon svg{width:16px;height:16px}
.metric-top>svg{width:12px;height:12px;color:#bab7c1}
.dashboard-metric strong{font:700 29px/1 Arial;display:block;font-variant-numeric:tabular-nums;letter-spacing:-.8px}
.dashboard-metric p{color:#787480;font-size:11px;margin-top:9px}
.dashboard-section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}
.dashboard-section-heading h2{font-size:19px}
.dashboard-section-heading>a{font-size:11px;color:#a64a5a}
.dashboard-section-heading>span{color:#aaa2af;font:9px Arial;letter-spacing:1px}
.dashboard-departments{gap:16px;margin-bottom:29px}
.dashboard-departments .quick-card{position:relative;align-items:flex-start;flex-direction:column;gap:20px;min-height:194px;padding:23px;border-radius:14px;background:#fff;overflow:hidden;transition:border-color .15s,transform .15s}
.dashboard-departments .quick-card:hover{border-color:#d88b9b;transform:translateY(-2px)}
.department-top{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px}
.department-top .stat-icon{width:40px;height:40px;border:1px solid #f2dce0;border-radius:11px}
.department-index{font:10px Arial;letter-spacing:1px;color:#a9a2ae}
.dashboard-departments .quick-card h3{font-size:19px}
.dashboard-departments .quick-card p{font-size:11px;margin-top:7px;max-width:230px;line-height:1.8}
.department-bottom{width:100%;margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;color:#9b6671;padding-top:15px;border-top:1px solid #f0ecee}
.department-bottom svg{width:16px;height:16px}
.dashboard-two-columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:20px;margin-bottom:22px;align-items:start}
.dashboard-two-columns>.panel{min-width:0;margin:0;padding:23px;border-radius:14px}
.dashboard-two-columns .panel-heading{margin-bottom:20px}
.dashboard-two-columns .panel-heading h2{font-size:19px}
.dashboard-two-columns .panel-heading p{font-size:10px;margin-top:5px;color:var(--muted)}
.dashboard-two-columns .panel-heading>a{font-size:10px;color:#a64a5a;white-space:nowrap}
.dashboard-course-row{display:flex;align-items:center;gap:13px;padding:17px 0;border-bottom:1px solid #efedf0}
.dashboard-course-row:last-child{border-bottom:0;padding-bottom:4px}
.dashboard-course-monogram{flex-shrink:0;display:grid;place-items:center;width:46px;height:48px;background:#30242c;border:1px solid #5f3442;color:#f5b2be;border-radius:10px;font:700 18px Arial}
.dashboard-course-row:nth-child(2n) .dashboard-course-monogram{background:#262e38;border-color:#3f4e60;color:#b0c4e5}
.dashboard-course-info{flex:1;min-width:0}
.dashboard-course-info h3{font-size:14px;overflow-wrap:anywhere}
.dashboard-course-info p{font-size:10px;color:#96909d;margin-top:5px}
.dashboard-course-trailing{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex-shrink:0}
.dashboard-course-trailing>a{font-size:11px;color:#b24457}
.dashboard-code-visual{display:flex;justify-content:center;padding:4px 0 22px}
.dashboard-donut{width:138px;height:138px;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(#e54258 0 var(--available-end),#25252c var(--available-end) var(--used-end),#d9d6de var(--used-end) 100%)}
.dashboard-donut:before{position:absolute;content:"";inset:13px;border-radius:50%;background:white}
.dashboard-donut-center{position:relative;text-align:center;z-index:1}
.dashboard-donut strong{display:block;font:700 33px/1.2 Arial;letter-spacing:-1px}
.dashboard-donut small{color:#8c8593;font-size:10px}
.dashboard-code-legend{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:12px}
.dashboard-code-legend li{display:flex;align-items:center;gap:9px;font-size:12px;color:#6d6774}
.dashboard-code-legend i{width:8px;height:8px;border-radius:3px;background:#e54258}
.dashboard-code-legend li:nth-child(2) i{background:#25252c}
.dashboard-code-legend li:nth-child(3) i{background:#d9d6de}
.dashboard-code-legend strong{margin-inline-start:auto;font:700 13px Arial;color:#2c2930}
.dashboard-code-panel>.btn{width:100%}
.dashboard-code-panel .form-note{font-size:10px;text-align:center;margin:12px 0 0}
.dashboard-student-row{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #eeecf0}
.dashboard-student-row:last-child{border:0;padding-bottom:0}
.dashboard-student-row>div{flex:1;min-width:0}
.dashboard-student-row h3{font-size:12px;overflow-wrap:anywhere}
.dashboard-student-row small{display:block;font-size:9px;color:#96909c;margin-top:3px;overflow-wrap:anywhere}
.dashboard-student-row .btn{font-size:10px;padding:7px 10px;min-height:32px}
.dashboard-two-columns .activity-list li{gap:10px}
.dashboard-two-columns .activity-list p{font-size:11px;overflow-wrap:anywhere}
.dashboard-two-columns .activity-list time{font-size:9px}
.dashboard-tip{display:flex;align-items:center;gap:13px;background:#f0edef;border:1px solid #e6dfe5;border-radius:11px;padding:15px 20px;color:#77606d;font-size:11px}
.dashboard-tip svg{flex-shrink:0;color:#ad6679;width:18px;height:18px}
.admin-course-filters{display:flex;align-items:end;gap:15px;padding:18px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:20px}
.admin-course-filters label:first-child{flex:1}
.admin-course-filters label:nth-child(2){min-width:155px}
.admin-course-filters input,.admin-course-filters select{font-size:12px}
.admin-course-count{font-size:11px;color:var(--muted);margin-bottom:16px}
.dashboard-empty{font-size:12px;color:var(--muted);padding:25px 0;line-height:1.9}
@media(min-width:1600px){.dashboard-hero{padding:38px 42px;grid-template-columns:minmax(0,1fr) 280px}.dashboard-hero h2{font-size:43px}.dashboard-metric{padding:22px}.dashboard-metric strong{font-size:35px}.dashboard-departments .quick-card{min-height:210px}}
@media(max-width:1250px){.dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-metric{flex-direction:row;align-items:center;gap:13px}.metric-top{order:1;margin-inline-start:auto}.metric-top>svg{display:none}.dashboard-metric strong{font-size:27px}.dashboard-two-columns{grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr)}.dashboard-departments .quick-card{padding:19px}.dashboard-hero{grid-template-columns:minmax(0,1fr) 150px;padding:29px}.dashboard-art-mark{font-size:90px}.dashboard-art-label{font-size:7px;padding:8px 9px}.dashboard-art-label.bottom{left:0}.dashboard-hero h2{font-size:31px}}
@media(max-width:1050px){.dashboard-two-columns{grid-template-columns:1fr}.dashboard-departments{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-departments .quick-card h3{font-size:16px}.dashboard-departments .quick-card p{font-size:10px}.department-bottom{font-size:9px}.dashboard-heading{align-items:flex-start;flex-direction:column;gap:8px}.dashboard-date{font-size:10px}.dashboard-art{display:none}.dashboard-hero{grid-template-columns:1fr}.dashboard-code-panel{display:grid;grid-template-columns:150px 1fr;column-gap:20px;align-items:center}.dashboard-code-panel>.panel-heading{grid-column:1/-1}.dashboard-code-visual{grid-row:2/4;padding:0}.dashboard-code-panel>.btn{grid-column:2}.dashboard-code-panel>.form-note{grid-column:1/-1}.dashboard-code-legend{margin-bottom:17px}.admin-site-link{font-size:11px}}
@media(max-width:800px){.dashboard-departments{grid-template-columns:1fr}.dashboard-departments .quick-card{display:grid;grid-template-columns:42px 1fr;gap:17px;min-height:0;padding:20px}.department-top{align-self:start}.department-index{display:none}.department-bottom{grid-column:1/-1;padding-top:12px;margin-top:0}.dashboard-departments .quick-card h3{font-size:18px}.dashboard-departments .quick-card p{max-width:none;font-size:11px}.dashboard-metrics{gap:10px}.dashboard-metric{padding:16px 13px}.dashboard-metric p{font-size:10px}.metric-top>.stat-icon{width:27px;height:27px}.dashboard-metric strong{font-size:25px}.admin-site-link{display:none}}
@media(max-width:530px){.dashboard-heading h1{font-size:28px}.dashboard-heading{margin-bottom:21px}.dashboard-hero{padding:25px 23px;border-radius:13px}.dashboard-hero h2{font-size:29px}.dashboard-hero p{font-size:12px;margin-bottom:20px}.dashboard-hero .eyebrow{font-size:8px}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:25px}.dashboard-metric{padding:17px 14px}.dashboard-metric strong{font-size:27px}.dashboard-metric p{font-size:10px}.dashboard-two-columns{gap:17px;margin-bottom:17px}.dashboard-two-columns>.panel{padding:20px}.dashboard-code-panel{grid-template-columns:120px 1fr;gap:13px}.dashboard-donut{width:112px;height:112px}.dashboard-donut strong{font-size:28px}.dashboard-code-legend li{font-size:11px}.dashboard-code-panel>.btn{font-size:10px;padding:9px}.dashboard-course-row{gap:10px}.dashboard-course-monogram{width:38px;height:43px;font-size:15px}.dashboard-course-info h3{font-size:12px}.dashboard-course-info p{font-size:9px}.dashboard-course-trailing .tag{font-size:9px;padding:3px 7px}.dashboard-course-trailing>a{font-size:10px}.dashboard-tip{padding:15px;font-size:10px;align-items:flex-start}.dashboard-two-columns .activity-list{max-height:270px;overflow-y:auto}.dashboard-two-columns .activity-list time{font-size:8px}.admin-course-filters{flex-wrap:wrap;gap:13px}.admin-course-filters label:first-child{flex-basis:100%}.admin-course-filters label:nth-child(2){width:100%}.dashboard-departments{margin-bottom:25px}.dashboard-hero-actions .btn{font-size:11px}.dashboard-student-row .btn{font-size:9px}.dashboard-section-heading>span{font-size:8px}}
@media(prefers-reduced-motion:reduce){.dashboard-metric:hover,.dashboard-departments .quick-card:hover{transform:none}}

.sidebar-bottom>#refreshData,.sidebar-bottom>#logoutButton{background:#ffffff08;color:#d2c5ce;border:1px solid #ffffff16;min-height:38px;font-size:11px;width:100%;margin-bottom:9px}.sidebar-bottom>#logoutButton{color:#e7a0af}.is-admin .sidebar-tip{margin-top:10px}
