:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20243a;
  background: #f5f6fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #20243a;
  --muted: #798094;
  --purple: #6846d8;
  --blue: #3173eb;
  --line: #eceef4;
  --shadow: 0 4px 16px rgba(36, 43, 76, .065), 0 1px 3px rgba(36,43,76,.035);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f6fb; }
button { font: inherit; }
.app-shell { display: flex; align-items: flex-start; min-height: 100vh; gap: 14px; padding: 8px 9px 0; }
.sidebar { position: sticky; top: 8px; z-index: 10; flex: 0 0 165px; height: calc(100vh - 58px); min-height: 580px; max-height: 760px; overflow: hidden; border-radius: 11px; color: #fff; background: linear-gradient(157deg,#7155e8 0%,#5543d0 48%,#2949ca 100%); box-shadow: 0 5px 16px rgba(73,66,197,.19); padding: 13px 8px 10px; display: flex; flex-direction: column; }
.brand { display:flex; align-items:center; justify-content:center; gap:7px; height:37px; border-bottom:1px solid rgba(255,255,255,.19); margin:0 1px 9px; font-weight:700; font-size:14px; letter-spacing:-.35px; white-space:nowrap; }
.brand svg { width:22px; height:22px; flex:none; }
.side-nav { display:flex; flex-direction:column; gap:2px; }
.nav-item { min-height:32px; width:100%; display:flex; align-items:center; gap:9px; padding:0 10px; color:rgba(255,255,255,.91); background:transparent; border:0; border-radius:7px; text-align:left; font-size:10.6px; font-weight:500; cursor:pointer; transition:background .18s,transform .18s; }
.nav-item:hover { background:rgba(255,255,255,.13); transform:translateX(1px); }
.nav-item.active { background:rgba(166,145,255,.45); box-shadow:inset 0 1px 7px rgba(255,255,255,.08); color:#fff; }
.nav-icon { width:14px; height:14px; display:grid; place-items:center; flex:none; }
.nav-icon svg { width:13px; height:13px; }
.nav-label { margin:11px 0 4px 10px; color:rgba(255,255,255,.57); font-size:8px; letter-spacing:.08em; text-transform:uppercase; font-weight:600; }
.sidebar-art { position:relative; margin:auto 0 0; height:115px; flex:none; overflow:hidden; border-radius:9px; background:linear-gradient(180deg,rgba(30,70,210,.02),rgba(17,55,206,.2)); }
.laptop { position:absolute; left:19px; right:18px; bottom:16px; height:72px; }
.laptop-screen { position:absolute; width:74%; height:57px; left:13%; top:2px; padding:6px; border:3px solid #9ab2ff; border-radius:6px 6px 3px 3px; background:linear-gradient(145deg,#172e8d,#2f53cf 75%); box-shadow:0 4px 12px rgba(15,27,109,.25); }
.laptop-base { position:absolute; height:8px; left:0; right:0; bottom:0; clip-path:polygon(11% 0,89% 0,100% 100%,0 100%); background:linear-gradient(90deg,#c7d0ff,#fff 45%,#a7b7f8); border-radius:0 0 7px 7px; }
.shield { width:37px; height:43px; margin:-1px auto 0; display:grid; place-items:center; color:white; font-size:18px; font-weight:800; clip-path:polygon(50% 0,94% 17%,87% 67%,50% 100%,13% 67%,6% 17%); background:linear-gradient(140deg,#50e4a2,#0da477); filter:drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.art-spark,.art-plant { position:absolute; color:#92aaff; }
.spark-one { left:16px; top:18px; font-size:15px; }.spark-two { right:18px; top:23px; font-size:12px; }
.art-plant { bottom:26px; font-size:39px; line-height:1; color:#32d0cf; }.plant-left { left:2px; transform:rotate(-25deg); }.plant-right { right:1px; transform:scaleX(-1) rotate(-25deg); }
.sidebar-bottom { flex:none; padding:8px 2px 0; font-size:8px; color:rgba(255,255,255,.72); text-align:center; }
.status-dot { display:inline-block; width:6px; height:6px; background:#51e3a3; border-radius:50%; margin-right:4px; box-shadow:0 0 7px rgba(81,227,163,.8); }
.main-content { flex:1; min-width:0; padding:3px 0 10px; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.84fr) minmax(286px,1fr); gap:15px; align-items:start; }
.left-column,.right-column { min-width:0; display:flex; flex-direction:column; gap:13px; }
.stats-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.stat-card,.panel,.feature-strip { background:rgba(255,255,255,.94); border:1px solid rgba(235,237,245,.9); border-radius:10px; box-shadow:var(--shadow); }
.stat-card { height:122px; min-width:0; padding:13px 12px 0; overflow:hidden; position:relative; }
.stat-top { display:flex; gap:9px; align-items:flex-start; }
.stat-icon { width:35px; height:35px; display:grid; place-items:center; border-radius:9px; flex:none; }
.stat-icon svg { width:21px; height:21px; }
.stat-blue .stat-icon { background:#e8f2ff;color:#2283e5; }.stat-green .stat-icon { background:#e3f8ed;color:#18a778; }.stat-orange .stat-icon { background:#fff0df;color:#ed922e; }
.stat-title { font-size:9px; font-weight:600; color:#31354a; margin:0 0 1px; white-space:nowrap; }
.stat-number { font-size:21px; line-height:1.12; font-weight:800; letter-spacing:-.8px; }
.stat-number small { font-size:8px; font-weight:500; letter-spacing:0; color:#778092; }
.stat-blue .stat-number { color:#3478e7; }.stat-green .stat-number { color:#18a774; }.stat-orange .stat-number { color:#ed9131; }
.stat-sub { font-size:8px; color:#7b8293; margin-top:1px; }.stat-sub b { font-weight:600; color:#31a47b; }.stat-orange .stat-sub b { color:#e36e5a; }
.sparkline { position:absolute; bottom:0; left:0; width:100%; height:42px; }
.sparkline .area { fill:currentColor; opacity:.105; }.sparkline .line { fill:none; stroke:currentColor; stroke-width:1.5; vector-effect:non-scaling-stroke; }
.stat-blue .sparkline { color:#3988dc; }.stat-green .sparkline { color:#41b782; }.stat-orange .sparkline { color:#eca261; }
.panel { overflow:hidden; }
.panel-heading { height:41px; display:flex; align-items:center; justify-content:space-between; padding:0 13px; border-bottom:1px solid #f0f1f5; }
.panel-heading h2 { margin:0; display:flex; align-items:center; gap:7px; font-size:11px; letter-spacing:-.25px; font-weight:700; color:#272b41; }
.heading-icon { display:grid; place-items:center; width:15px;height:15px; }.heading-icon svg { width:14px;height:14px; }
.heading-icon.blue {color:#2361c6}.heading-icon.muted {color:#788397}
.text-button { border:1px solid #e9e8f0; border-radius:6px; color:#4c3fb0; background:#fff; padding:4px 8px; font-size:8px; font-weight:600; cursor:pointer; }
.text-button:hover {background:#f5f2ff;}
.teachers-panel { padding-bottom:1px; }
.teacher-row { height:48px; display:flex; align-items:center; padding:0 13px; gap:10px; }
.teacher-row + .teacher-row { border-top:1px solid #f0f1f5; }
.teacher-avatar { width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex:none;color:white;background:linear-gradient(145deg,#588cff,#2860df); box-shadow:0 2px 5px rgba(55,104,221,.18); }
.teacher-avatar svg { width:18px;height:18px; }
.teacher-info { display:flex; flex-direction:column; gap:2px; min-width:0; }.teacher-info strong {font-size:9px;color:#25293c;font-weight:700}.teacher-info span {font-size:7.5px;color:#8c91a0}
.badge { display:inline-flex; align-items:center; justify-content:center; width:max-content; border-radius:4px; padding:3px 7px; font-size:7px; line-height:1; font-weight:600; font-style:normal; }
.badge-green { color:#fff;background:#19966c; box-shadow:0 1px 3px rgba(17,122,81,.14); }.teacher-row .badge { margin-left:auto; }
.badge-purple { color:white;background:#7145c8; padding:4px 9px; }.system-cell .badge-green { padding:4px 8px; }
.system-heading { height:40px; }
.system-table { display:grid; grid-template-columns:1fr 1fr; padding:1px 12px 0; }
.system-cell { height:28px; display:flex; align-items:center; justify-content:space-between; gap:6px; min-width:0; border-bottom:1px solid #f0f1f4; padding:0 7px; }
.system-cell:nth-child(2n) { border-left:1px solid #f1f2f5; padding-left:14px; }
.system-cell span { color:#777d8d; font-size:8px; white-space:nowrap; }.system-cell strong { font-size:8px; font-weight:500; color:#2b2f3b; text-align:right; white-space:nowrap; }.system-cell .small-value {font-size:7px;letter-spacing:-.15px}
.token-box { margin:8px 11px 10px; min-height:68px; padding:9px 11px 6px; display:grid; grid-template-columns:auto auto auto 1fr; grid-template-rows:26px 17px; align-items:center; column-gap:8px; row-gap:1px; background:linear-gradient(105deg,#fff8e8,#fff9ef 55%,#fff7ed); border-radius:7px; }
.token-title { display:flex; align-items:center; gap:5px; color:#65501d; white-space:nowrap; font-size:8px; }.token-title svg {width:14px;height:14px;color:#78601a}.token-title b {font-size:8px}
.token-value { padding:2px 5px 3px; color:#553b97; background:#fff; border:1px solid #ece3d5; border-radius:4px; font-size:18px; line-height:1; font-weight:700; letter-spacing:5px; white-space:nowrap; }
.copy-button { height:25px; display:flex; align-items:center; gap:4px; border:0; border-radius:6px; padding:0 8px; color:#fff; background:linear-gradient(110deg,#7656e6,#633fd0); font-size:8px; font-weight:600; cursor:pointer; box-shadow:0 2px 5px rgba(99,63,208,.2); }.copy-button:hover {filter:brightness(1.07)}.copy-button svg {width:12px;height:12px}
.token-note { grid-column:1/3; display:flex; gap:4px; align-items:center; color:#767c8b; font-size:7.5px; white-space:nowrap; }.token-note svg {width:10px;height:10px;flex:none}
.token-expiry { grid-column:4; grid-row:1/3; align-self:end; padding-bottom:1px; }.expiry-label {display:flex;align-items:center;justify-content:flex-end;gap:4px;font-size:7px;color:#73798a;white-space:nowrap;margin-bottom:9px}.expiry-dot {width:8px;height:8px;border-radius:50%;background:#a6abb7;box-shadow:inset 0 0 0 2px #e0e2e8}.progress-track {height:6px;border-radius:10px;background:#e3e5ea;overflow:hidden}.progress-track span {display:block;width:62%;height:100%;border-radius:10px;background:linear-gradient(90deg,#6e47d9,#b642d0)}
.quick-panel { padding-bottom:8px; }.quick-panel .panel-heading {height:38px;border-bottom:0}.quick-links {display:flex;flex-direction:column;gap:5px;padding:0 12px}.quick-link {display:flex;align-items:center;gap:8px;height:31px;padding:0 9px;border:1px solid;border-radius:7px;background:#fff;font-size:8px;text-align:left;cursor:pointer;transition:transform .15s,box-shadow .15s}.quick-link:hover {transform:translateY(-1px);box-shadow:0 3px 8px rgba(32,40,66,.1)}.quick-link svg {width:13px;height:13px}.quick-link b {font-weight:600}.quick-link .chevron {margin-left:auto;font-size:20px;line-height:12px;font-family:Arial,sans-serif}
.quick-green {color:#299671;border-color:#8ac9b4;background:#fcfffd}.quick-blue {color:#3789d3;border-color:#94c4e8;background:#fcfeff}.quick-orange {color:#df9b39;border-color:#edd09a;background:#fffefd}.quick-purple {color:#7653ba;border-color:#c2addf;background:#fff}
.updates-panel { overflow:hidden; border:1px solid #5237b5; border-radius:10px; background:#fff; box-shadow:0 4px 13px rgba(66,48,160,.13); }
.updates-title {height:37px;display:flex;align-items:center;gap:9px;padding:0 14px;color:white;background:linear-gradient(100deg,#7440cd 0%,#5044ca 60%,#214dc5 100%)}.updates-title h2 {margin:0;font-size:14px;letter-spacing:-.35px;font-weight:800}.flame {font-size:18px;color:#ffb932;text-shadow:0 1px 4px rgba(255,154,38,.3);transform:rotate(180deg)}
.update-list {padding:0 11px 3px}.update-item {min-height:52px;display:grid;grid-template-columns:27px 22px minmax(0,1fr) 18px;align-items:center;gap:8px;border-bottom:1px solid #eef0f4}.update-item:last-child {border-bottom:0}.update-number {width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#8054d5,#254fcb);font-size:10px;font-weight:700;box-shadow:0 2px 5px rgba(74,64,179,.19)}.update-icon {display:grid;place-items:center;color:#48418f}.update-icon svg {width:17px;height:17px;stroke-width:2.2}.update-copy {min-width:0}.update-copy h3 {margin:0 0 3px;font-size:8px;line-height:1.2;font-weight:700;color:#36334d;letter-spacing:-.2px}.update-copy p {margin:0;color:#85899a;font-size:7px;line-height:1.35}.check-mark {width:16px;height:16px;border-radius:50%;display:grid;place-items:center;color:#fff;background:#199e75;font-size:10px;font-weight:800;box-shadow:0 1px 3px rgba(23,151,109,.22)}
.feature-strip { margin-top:13px; min-height:67px; padding:9px 11px; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; }
.feature-item {display:flex;align-items:center;gap:8px;min-width:0}.feature-icon {width:43px;height:43px;display:grid;place-items:center;flex:none;border-radius:10px}.feature-icon svg {width:22px;height:22px}.feature-purple {color:#6643d7;background:#eeebff}.feature-blue {color:#3585e8;background:#e7f2ff}.feature-sky {color:#247ddd;background:#e9f5ff}.feature-green {color:#29aa89;background:#e7f8f2}.feature-mint {color:#2bad7a;background:#e6f8ef}.feature-navy {color:#4065b4;background:#e9efff}.feature-item h3 {margin:0 0 4px;font-size:8px;line-height:1.22;font-weight:700;color:#282c40;letter-spacing:-.2px}.feature-item p {margin:0;font-size:6.7px;line-height:1.35;color:#7f8493}
.page-footer { display:flex;flex-direction:column;align-items:center;gap:4px;margin:12px 0 0;color:#33408f;text-align:center}.page-footer strong {font-size:10px;font-weight:600;letter-spacing:-.15px}.page-footer>span {font-size:8px;color:#8990a4}.footer-cap {display:inline-block;transform:rotate(-10deg);font-size:13px;margin-right:3px;color:#424eb2}
.mobile-topbar {display:none}.sidebar-backdrop {display:none}.toast {position:fixed;z-index:40;right:22px;bottom:22px;max-width:calc(100vw - 36px);padding:11px 16px;border-radius:9px;background:#242342;color:white;box-shadow:0 8px 28px rgba(30,30,70,.23);font-size:12px;opacity:0;transform:translateY(8px);pointer-events:none;transition:all .2s}.toast.show {opacity:1;transform:translateY(0)}

@media (min-width: 1440px) { .app-shell {max-width:1600px;margin:0 auto}.sidebar {flex-basis:185px}.dashboard-grid {grid-template-columns:minmax(0,1.9fr) minmax(320px,1fr)}.stat-card {height:140px;padding:16px}.stat-icon {width:42px;height:42px}.stat-number {font-size:26px}.panel-heading h2 {font-size:13px}.teacher-row {height:54px}.update-item {min-height:62px}.feature-strip {min-height:77px}.feature-icon {width:49px;height:49px} }
@media (max-width: 1060px) { .app-shell {gap:10px;padding-left:7px;padding-right:7px}.sidebar {flex-basis:150px}.dashboard-grid {grid-template-columns:minmax(0,1.6fr) minmax(260px,.95fr);gap:10px}.stats-grid {gap:7px}.stat-card {padding-left:9px;padding-right:8px}.stat-top {gap:6px}.stat-icon {width:30px;height:30px}.feature-strip {padding-left:8px;padding-right:8px;gap:4px}.feature-icon {width:35px;height:37px}.feature-item {gap:5px}.feature-item h3 {font-size:7.4px}.feature-item p {font-size:6px} }
@media (max-width: 820px) { .dashboard-grid {grid-template-columns:minmax(0,1fr)}.right-column {display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr);align-items:start}.quick-panel {height:100%}.feature-strip {grid-template-columns:repeat(3,minmax(0,1fr));row-gap:10px}.feature-item {padding:2px 5px}.feature-icon {width:39px;height:39px}.feature-item h3 {font-size:8px}.feature-item p {font-size:7px}.sidebar {flex-basis:135px}.system-cell {padding:0 5px}.token-box {margin-left:8px;margin-right:8px} }
@media (max-width: 620px) {
  body {background:#f3f4fa}.mobile-topbar {height:53px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:12;padding:0 14px;background:rgba(255,255,255,.95);border-bottom:1px solid #ebedf3;box-shadow:0 2px 7px rgba(34,40,70,.04);backdrop-filter:blur(10px)}
  .mobile-brand {display:flex;align-items:center;gap:7px;margin-right:auto;margin-left:13px;color:#33316f;font-size:14px;font-weight:700}.brand-cap {color:#5b4bd1}.icon-button {width:34px;height:34px;border:0;border-radius:8px;background:#f1efff;display:grid;place-items:center;color:#5945cc;cursor:pointer}.hamburger,.hamburger:before,.hamburger:after {display:block;width:16px;height:2px;border-radius:2px;background:currentColor;position:relative}.hamburger:before,.hamburger:after {content:"";position:absolute;left:0}.hamburger:before {top:-5px}.hamburger:after {top:5px}.topbar-avatar {width:29px;height:29px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#7257e8,#3f48c4);border-radius:50%;font-size:11px;font-weight:700}
  .app-shell {display:block;padding:10px 10px 0}.sidebar {position:fixed;top:0;left:0;bottom:0;z-index:20;width:250px;height:100dvh;max-height:none;min-height:0;border-radius:0 14px 14px 0;padding:14px 12px 12px;transform:translateX(-105%);transition:transform .25s ease}.sidebar.open {transform:translateX(0)}.sidebar-backdrop {position:fixed;inset:0;z-index:19;background:rgba(21,23,44,.35);backdrop-filter:blur(2px)}.sidebar-backdrop.show {display:block}.brand {font-size:15px;height:44px}.nav-item {height:38px;font-size:12px}.nav-icon {width:16px;height:16px}.nav-icon svg {width:15px;height:15px}.nav-label {font-size:9px;margin-top:14px}.sidebar-art {height:150px}.laptop {left:37px;right:36px;height:94px}.laptop-screen {height:70px}.shield {width:44px;height:51px}.sidebar-bottom {font-size:9px;padding:10px 0}
  .main-content {padding:0 0 12px}.dashboard-grid {grid-template-columns:minmax(0,1fr);gap:11px}.left-column,.right-column {gap:11px}.stats-grid {gap:7px}.stat-card {height:106px;padding:11px 8px 0;border-radius:9px}.stat-top {gap:6px}.stat-icon {width:29px;height:29px;border-radius:7px}.stat-icon svg {width:18px;height:18px}.stat-title {font-size:8px}.stat-number {font-size:19px}.stat-number small {font-size:7px}.stat-sub {font-size:7px}.sparkline {height:35px}.right-column {display:flex}.panel-heading {height:42px}.panel-heading h2 {font-size:12px}.teacher-row {height:51px}.teacher-info strong {font-size:10px}.teacher-info span {font-size:8px}.teacher-row .badge {font-size:8px}.system-table {padding-left:7px;padding-right:7px}.system-cell {height:32px;padding:0 5px}.system-cell:nth-child(2n) {padding-left:8px}.system-cell span {font-size:7.5px}.system-cell strong {font-size:7.5px}.system-cell .small-value {font-size:6.2px}.token-box {grid-template-columns:auto auto auto 1fr;column-gap:6px;margin:8px;padding:8px 7px}.token-title,.token-title b {font-size:7px}.token-title svg {width:12px;height:12px}.token-value {font-size:16px;letter-spacing:4px;padding:3px 4px}.copy-button {padding:0 6px}.copy-button span:last-child {font-size:7px}.token-note {font-size:6.5px}.expiry-label {font-size:6px}.updates-title {height:41px}.updates-title h2 {font-size:15px}.update-list {padding:0 9px}.update-item {min-height:59px;grid-template-columns:29px 23px minmax(0,1fr) 17px;gap:7px}.update-number {width:27px;height:27px}.update-copy h3 {font-size:9px}.update-copy p {font-size:7.5px}.update-icon svg {width:18px;height:18px}.quick-panel {padding-bottom:9px}.quick-panel .panel-heading {height:42px}.quick-links {gap:6px;padding:0 10px}.quick-link {height:36px;font-size:9px}.feature-strip {margin-top:11px;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 9px;gap:10px 5px}.feature-icon {width:39px;height:39px}.feature-item h3 {font-size:8px}.feature-item p {font-size:7px}.page-footer {margin-top:12px;padding:0 6px}.page-footer strong {font-size:9px;line-height:1.4}.page-footer>span {font-size:8px}
}
@media (max-width: 375px) { .app-shell {padding-left:7px;padding-right:7px}.stat-card {padding-left:6px;padding-right:4px}.stat-icon {width:26px;height:26px}.stat-top {gap:5px}.stat-title {font-size:7.4px}.stat-number {font-size:17px}.system-cell span {font-size:7px}.token-box {grid-template-columns:auto auto auto;}.token-expiry {grid-column:1/4;grid-row:3;padding-top:5px}.expiry-label {justify-content:flex-start;margin-bottom:4px}.token-note {grid-column:1/3}.feature-item {gap:4px}.feature-icon {width:33px;height:35px}.feature-item p {font-size:6.5px} }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after {scroll-behavior:auto !important;transition:none !important;animation:none !important} }

/* ===== Header Desktop ===== */
.top-header { display:flex; align-items:center; justify-content:space-between; gap:12px; height:54px; padding:0 8px 0 15px; margin-bottom:13px; background:rgba(255,255,255,.94); border:1px solid rgba(235,237,245,.9); border-radius:10px; box-shadow:var(--shadow); position:relative; z-index:15; }
.header-left { display:flex; align-items:baseline; gap:10px; min-width:0; }
.header-left h1 { margin:0; font-size:15px; font-weight:800; letter-spacing:-.3px; color:#272b41; white-space:nowrap; }
.header-crumb { font-size:9px; color:#8b90a0; white-space:nowrap; }
.header-actions { display:flex; align-items:center; gap:8px; }
.header-dropdown { position:relative; }
.header-icon-button { position:relative; width:36px; height:36px; border:1px solid #e9e8f0; border-radius:9px; background:#fff; color:#5945cc; display:grid; place-items:center; cursor:pointer; transition:background .15s; }
.header-icon-button:hover { background:#f5f2ff; }
.header-icon-button svg { width:17px; height:17px; }
.notif-badge { position:absolute; top:-6px; right:-6px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:#e35454; color:#fff; font-size:9px; font-weight:700; display:grid; place-items:center; border:2px solid #fff; }
.user-button { display:flex; align-items:center; gap:9px; height:40px; padding:0 11px 0 4px; border:1px solid #e9e8f0; border-radius:10px; background:#fff; cursor:pointer; transition:background .15s; }
.user-button:hover { background:#f8f7fd; }
.header-avatar { width:32px; height:32px; display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,#7257e8,#3f48c4); border-radius:50%; font-size:12px; font-weight:700; flex:none; }
.user-meta { display:flex; flex-direction:column; align-items:flex-start; gap:1px; }
.user-meta b { font-size:10px; color:#2b2f3b; font-weight:700; white-space:nowrap; max-width:140px; overflow:hidden; text-overflow:ellipsis; }
.user-meta small { font-size:8px; color:#8b90a0; }
.user-button .chev { color:#9aa0b2; display:grid; place-items:center; transition:transform .18s; }
.user-button .chev svg { width:13px; height:13px; }
.header-dropdown.open .user-button .chev { transform:rotate(180deg); }
.dropdown-panel { position:absolute; top:calc(100% + 8px); right:0; z-index:30; width:250px; background:#fff; border:1px solid #eceef4; border-radius:11px; box-shadow:0 12px 30px rgba(36,43,76,.16); opacity:0; visibility:hidden; transform:translateY(-6px); transition:opacity .18s, transform .18s, visibility .18s; overflow:hidden; }
.header-dropdown.open .dropdown-panel { opacity:1; visibility:visible; transform:translateY(0); }
.dropdown-heading { display:flex; align-items:center; justify-content:space-between; height:38px; padding:0 13px; border-bottom:1px solid #f0f1f5; font-size:10px; font-weight:700; color:#272b41; }
.mark-read { border:0; background:none; color:#4c3fb0; font-size:8px; font-weight:600; cursor:pointer; padding:0; }
.mark-read:hover { text-decoration:underline; }
.notif-item { display:flex; gap:9px; padding:9px 13px; border-bottom:1px solid #f0f1f5; cursor:pointer; align-items:flex-start; }
.notif-item:hover { background:#f8f8fc; }
.notif-item:last-of-type { border-bottom:0; }
.notif-dot { width:7px; height:7px; border-radius:50%; background:#3173eb; flex:none; margin-top:4px; }
.notif-item.read .notif-dot { background:#d4d7e0; }
.notif-icon { width:27px; height:27px; border-radius:7px; display:grid; place-items:center; flex:none; }
.notif-icon svg { width:14px; height:14px; }
.notif-icon.blue { color:#3173eb; background:#e8f2ff; }
.notif-icon.green { color:#18a778; background:#e3f8ed; }
.notif-icon.orange { color:#ed922e; background:#fff0df; }
.notif-copy { min-width:0; }
.notif-copy b { display:block; font-size:9px; color:#2b2f3b; margin-bottom:2px; }
.notif-copy span { font-size:8px; color:#8b90a0; display:block; }
.dropdown-footer { display:block; text-align:center; padding:9px; font-size:9px; font-weight:600; color:#4c3fb0; border-top:1px solid #f0f1f5; background:#fafaff; cursor:pointer; }
.dropdown-footer:hover { background:#f5f2ff; }
.user-panel { width:225px; }
.user-card { display:flex; align-items:center; gap:10px; padding:12px 13px; border-bottom:1px solid #f0f1f5; background:linear-gradient(105deg,#f7f5ff,#f3f6ff); }
.user-card .header-avatar { width:36px; height:36px; font-size:14px; }
.user-card-meta { display:flex; flex-direction:column; gap:2px; min-width:0; }
.user-card-meta b { font-size:11px; color:#2b2f3b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-card-meta .role-line { display:flex; align-items:center; gap:5px; font-size:8.5px; color:#71789a; }
.dropdown-item { display:flex; align-items:center; gap:9px; height:34px; padding:0 13px; font-size:9.5px; font-weight:500; color:#3a3f52; cursor:pointer; border:0; background:none; width:100%; text-align:left; font-family:inherit; }
.dropdown-item svg { width:13px; height:13px; color:#8a8fa5; flex:none; }
.dropdown-item:hover { background:#f8f8fc; color:#4c3fb0; }
.dropdown-item.danger, .dropdown-item.danger svg { color:#c0392b; }
.dropdown-item.danger:hover { background:#fdf1f0; }
.dropdown-sep { height:1px; background:#f0f1f5; margin:3px 0; }
@media (max-width: 820px) { .user-meta { display:none; } .user-button { padding-right:8px; } .dropdown-panel { width:240px; } }
@media (max-width: 620px) { .top-header { display:none; } }

/* ===== Halaman Kelola Guru ===== */
.table-scroll { overflow-x:auto; }
.data-table { width:100%; border-collapse:collapse; }
.data-table th { text-align:left; font-size:8.5px; letter-spacing:.05em; text-transform:uppercase; color:#8b90a0; font-weight:600; padding:10px 13px; border-bottom:1px solid #f0f1f5; background:#fafafd; white-space:nowrap; }
.data-table td { padding:10px 13px; border-bottom:1px solid #f0f1f5; font-size:10px; color:#2b2f3b; vertical-align:middle; }
.data-table tr:last-child td { border-bottom:0; }
.data-table tbody tr:hover td { background:#fafafd; }
.data-table .empty-row { text-align:center; color:#9298a8; padding:22px 13px; }
.cell-user { display:flex; align-items:center; gap:9px; min-width:0; }
.cell-user .header-avatar { width:30px; height:30px; font-size:11px; }
.cell-user b { display:block; font-size:10px; color:#25293c; font-weight:700; white-space:nowrap; }
.cell-user small { font-size:8px; color:#8b90a0; }
.badge-red { color:#fff; background:#d64545; }
.btn-reset { height:28px; padding:0 11px; border:1px solid #c9baf0; border-radius:7px; background:#f6f2ff; color:#5b3fd1; font-size:8.5px; font-weight:600; cursor:pointer; transition:background .15s, transform .1s; white-space:nowrap; }
.btn-reset:hover { background:#eee6ff; }
.btn-reset:active { transform:translateY(1px); }
.table-note { display:flex; align-items:center; gap:6px; padding:9px 13px; font-size:8.5px; color:#8b90a0; border-top:1px solid #f0f1f5; background:#fafafd; }
.table-note svg { width:11px; height:11px; flex:none; }

/* ===== Popup Reset Password (auto-close) ===== */
.modal-overlay { position:fixed; inset:0; z-index:60; background:rgba(24,26,48,.55); display:grid; place-items:center; padding:18px; }
.reset-modal { width:100%; max-width:360px; background:#fff; border-radius:14px; box-shadow:0 24px 60px rgba(20,20,60,.35); padding:20px 20px 16px; animation:modalIn .25s ease; }
@keyframes modalIn { from { opacity:0; transform:translateY(10px) scale(.97); } to { opacity:1; transform:none; } }
.reset-modal-head { display:flex; align-items:center; gap:9px; }
.reset-badge { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; background:#e3f8ed; color:#18a778; flex:none; }
.reset-badge svg { width:18px; height:18px; }
.reset-modal-head h3 { margin:0; font-size:13px; font-weight:800; color:#272b41; letter-spacing:-.2px; }
.reset-modal-head small { font-size:8.5px; color:#8b90a0; }
.reset-modal-note { margin:12px 0 0; font-size:9px; color:#71789a; line-height:1.5; }
.reset-modal-note b { color:#b4432f; }
.cred-box { margin:12px 0; border:1px solid #ece3d5; border-radius:9px; overflow:hidden; }
.cred-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 12px; background:linear-gradient(105deg,#fff8e8,#fff9ef); }
.cred-row + .cred-row { border-top:1px solid #ece3d5; }
.cred-row span { font-size:9px; color:#65501d; font-weight:600; white-space:nowrap; }
.cred-row b { font-size:14px; color:#553b97; letter-spacing:.5px; white-space:nowrap; }
.cred-row b.mono { font-family:Consolas,'Courier New',monospace; font-size:16px; font-weight:700; }
.countdown-wrap { text-align:center; }
#countdownNum { display:block; font-size:27px; font-weight:800; color:#6846d8; line-height:1.1; font-variant-numeric:tabular-nums; }
.countdown-text { display:block; font-size:9px; color:#8b90a0; margin:2px 0 8px; }
.countdown-track { height:7px; border-radius:8px; background:#e9e6f7; overflow:hidden; }
.countdown-track span { display:block; height:100%; width:100%; border-radius:8px; background:linear-gradient(90deg,#6e47d9,#b642d0); transition:width 1s linear; }

/* ===== Form Tambah Guru ===== */
.form-error { display:flex; gap:8px; align-items:flex-start; margin:12px 13px 0; background:#fdecec; border:1px solid #f5c9cb; color:#b4232a; border-radius:8px; font-size:9.5px; padding:9px 11px; line-height:1.5; }
.form-error svg { width:14px; height:14px; flex:none; margin-top:1px; }
.guru-form { padding:13px; display:flex; flex-direction:column; gap:11px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.form-field label { display:block; font-size:9px; font-weight:600; color:#454a60; margin-bottom:5px; }
.form-field label small { color:#9aa0b2; font-weight:500; }
.form-field input, .form-field select { width:100%; height:36px; border:1.5px solid #e4e6ef; border-radius:8px; padding:0 10px; font:inherit; font-size:11px; color:#20243a; background:#fbfbfd; outline:none; transition:border-color .18s, box-shadow .18s; }
.form-field input:focus, .form-field select:focus { border-color:#6846d8; box-shadow:0 0 0 3px rgba(104,70,216,.12); background:#fff; }
.form-hint { display:block; font-size:8px; color:#9aa0b2; margin-top:4px; line-height:1.4; }
.btn-submit-guru { display:flex; align-items:center; justify-content:center; gap:7px; height:38px; margin-top:2px; border:0; border-radius:8px; color:#fff; font:inherit; font-size:11px; font-weight:700; cursor:pointer; background:linear-gradient(110deg,#7656e6,#5543d0 55%,#3f48c4); box-shadow:0 4px 12px rgba(85,67,208,.3); transition:filter .18s, transform .1s; }
.btn-submit-guru:hover { filter:brightness(1.07); }
.btn-submit-guru:active { transform:translateY(1px); }
.btn-submit-guru svg { width:14px; height:14px; }
@media (max-width: 620px) { .form-row { grid-template-columns:1fr; } }

/* ===== SweetAlert2 — selaras tema ===== */
.swal2-popup { font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important; border-radius:14px !important; }
.swal2-title { font-size:15px !important; letter-spacing:-.3px !important; }
.swal2-styled.swal2-confirm { border-radius:9px !important; font-size:12px !important; font-weight:600 !important; }
.swal2-styled.swal2-cancel { border-radius:9px !important; font-size:12px !important; font-weight:600 !important; }

/* ===== Footer statis — kartu biasa di akhir konten, seperti header ===== */
.page-footer { position:static; margin:13px 0 0; flex-direction:row; align-items:center; justify-content:space-between; gap:8px; padding:10px 14px; background:rgba(255,255,255,.94); border:1px solid rgba(235,237,245,.9); border-radius:10px; box-shadow:var(--shadow); }
.main-content { padding-bottom:10px; }
@media (max-width: 620px) { .page-footer { flex-direction:column; gap:3px; padding:8px 10px; } .page-footer strong { font-size:8.5px; line-height:1.4; } .page-footer>span { font-size:7.5px; } }

/* Dialog konfirmasi (logout, hapus user) */
.confirm-dialog{border:0;border-radius:14px;padding:24px 22px 18px;width:min(92vw,360px);text-align:center;box-shadow:0 18px 50px rgba(30,30,70,.28);color:var(--ink);font:inherit}
.confirm-dialog::backdrop{background:rgba(24,26,48,.45)}
.confirm-dialog .cd-icon{width:44px;height:44px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:700;background:#efeafc;color:var(--purple)}
.confirm-dialog.warning .cd-icon{background:#fdeaea;color:#d64545}
.confirm-dialog .cd-title{margin:0 0 6px;font-size:16px;font-weight:700;letter-spacing:-.3px}
.confirm-dialog .cd-text{margin:0 0 18px;font-size:12.5px;line-height:1.5;color:var(--muted)}
.confirm-dialog .cd-actions{display:flex;gap:10px}
.confirm-dialog .cd-actions button{flex:1;border:0;border-radius:9px;padding:10px 12px;font:inherit;font-size:12px;font-weight:600;color:#fff;cursor:pointer}

/* Layar lebar: isi penuh lebar layar & sidebar setinggi layar */
@media (min-width: 621px) {
  .app-shell { max-width: none; margin: 0; }
  .sidebar { height: calc(100vh - 16px); max-height: none; }
}
