:root {
  --ink: #17243a;
  --muted: #67748a;
  --muted-2: #8d98a9;
  --line: #e4eaf0;
  --surface: #ffffff;
  --canvas: #f3f6f8;
  --green-950: #073d36;
  --green-900: #075347;
  --green-800: #0b6b57;
  --green-700: #11836b;
  --green-100: #daf3eb;
  --blue: #3867d6;
  --blue-soft: #e7eeff;
  --amber: #e89c28;
  --amber-soft: #fff0d7;
  --violet: #7257c7;
  --violet-soft: #eee9ff;
  --danger: #c04c4c;
  --danger-soft: #ffe9e7;
  --shadow-sm: 0 1px 2px rgba(22, 34, 55, .04), 0 8px 22px rgba(22, 34, 55, .045);
  --shadow-lg: 0 24px 65px rgba(11, 38, 50, .18);
  --radius: 18px;
  --sidebar-width: 268px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(56, 103, 214, .35);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, .95fr) minmax(460px, 1.05fr);
  background: #fff;
}

.login-showcase {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: clamp(34px, 5vw, 72px);
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 14%, rgba(119, 221, 190, .26), transparent 23%),
    radial-gradient(circle at 88% 80%, rgba(92, 193, 170, .15), transparent 28%),
    linear-gradient(145deg, #0b6b57 0%, #06483f 58%, #062f32 100%);
}

.login-showcase::before, .login-showcase::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
}

.login-showcase::before { right: -170px; top: 18%; width: 410px; height: 410px; }
.login-showcase::after { right: 8%; bottom: -180px; width: 360px; height: 360px; background: rgba(255,255,255,.025); }
.login-showcase > * { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 13px; }
.login-brand-mark { display: grid; width: 49px; height: 49px; place-items: center; color: var(--green-950); background: #d9f4ec; border-radius: 15px 15px 15px 5px; font-size: 13px; font-weight: 900; box-shadow: inset 0 -5px 14px rgba(11, 107, 87, .12); }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 19px; line-height: 1.15; }
.login-brand small { margin-top: 4px; color: #add6cc; font-size: 12px; }
.login-message { max-width: 630px; margin: auto 0 34px; }
.login-kicker { display: block; margin-bottom: 12px; color: #8fe4ce; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-message h1 { margin: 0; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.07; letter-spacing: -.055em; }
.login-message p { max-width: 560px; margin: 20px 0 0; color: #cce8e1; font-size: 16px; line-height: 1.7; }
.login-points { display: flex; max-width: 650px; padding-top: 24px; flex-wrap: wrap; gap: 13px 23px; border-top: 1px solid rgba(255,255,255,.13); }
.login-points span { display: inline-flex; align-items: center; gap: 8px; color: #d5ebe6; font-size: 12px; }
.login-points svg { width: 16px; height: 16px; color: #7ee0c5; }
.login-copyright { margin-top: 44px; color: #8ebeb4; font-size: 11px; }

.login-form-panel { display: grid; min-height: 100vh; padding: 38px clamp(28px, 7vw, 110px); place-items: center; background: linear-gradient(145deg, #fff 0%, #f7faf9 100%); }
.login-form-wrap { width: min(100%, 420px); }
.login-lock { display: grid; width: 51px; height: 51px; margin-bottom: 22px; place-items: center; color: var(--green-800); background: #e1f4ee; border-radius: 15px; }
.login-lock svg { width: 23px; height: 23px; }
.login-heading > span { color: var(--green-700); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.login-heading h2 { margin: 5px 0 0; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -.04em; }
.login-heading p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.login-form { display: flex; margin-top: 28px; flex-direction: column; gap: 16px; }
.login-form label > span { display: block; margin-bottom: 7px; color: #35435a; font-size: 13px; font-weight: 700; }
.login-form input { width: 100%; min-height: 50px; padding: 0 15px; color: var(--ink); background: #fff; border: 1px solid #dce4e9; border-radius: 12px; outline: none; font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease; }
.login-form input::placeholder { color: #9ba5b2; }
.login-form input:focus { border-color: #62a898; box-shadow: 0 0 0 4px rgba(11,107,87,.09); }
.login-error { margin: -5px 0 0; padding: 9px 11px; color: #a54040; background: var(--danger-soft); border-radius: 9px; font-size: 12px; }
.login-submit { display: flex; min-height: 51px; margin-top: 3px; padding: 0 17px; align-items: center; justify-content: center; gap: 10px; color: #fff; background: linear-gradient(110deg, var(--green-800), var(--green-700)); border: 0; border-radius: 12px; box-shadow: 0 10px 25px rgba(11,107,87,.18); cursor: pointer; font-size: 14px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease; }
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 13px 30px rgba(11,107,87,.24); }
.login-submit svg { width: 17px; height: 17px; }
.demo-account { margin-top: 22px; padding: 12px 14px; color: #5b6780; background: #f0f5f4; border: 1px dashed #cadbd7; border-radius: 11px; }
.demo-account span { display: block; color: var(--green-700); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.demo-account p { margin: 4px 0 0; font-size: 12px; }
.demo-account b { color: var(--ink); }
.login-config-note { margin-top: 20px; padding: 12px 14px; color: #8b611a; background: #fff5df; border: 1px solid #f1dab0; border-radius: 11px; }
.login-config-note strong, .login-config-note span { display: block; }
.login-config-note strong { font-size: 12px; }
.login-config-note span { margin-top: 2px; font-size: 11px; }
.login-help { margin: 22px 0 0; color: var(--muted-2); font-size: 11px; text-align: center; }
.server-authenticated .login-screen { display: none; }
.server-authenticated .demo-account { display: none; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  padding: 24px 18px 20px;
  flex-direction: column;
  color: #dbece8;
  background:
    radial-gradient(circle at 20% 8%, rgba(71, 184, 151, .22), transparent 24%),
    linear-gradient(165deg, #0b5a4d 0%, #073f38 55%, #062f2f 100%);
  box-shadow: 5px 0 24px rgba(7, 44, 40, .08);
}

.brand { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 8px 24px; }
.brand-mark { display: grid; width: 48px; height: 48px; place-items: center; color: var(--green-950); background: #d5f1e8; border: 1px solid rgba(255, 255, 255, .45); border-radius: 15px 15px 15px 5px; box-shadow: inset 0 -5px 12px rgba(11, 107, 87, .1); }
.brand-mark span { font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.brand strong { display: block; color: #fff; font-size: 19px; line-height: 1.15; }
.brand small { display: block; margin-top: 4px; color: #a9cec5; font-size: 12px; }

.main-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-label { margin: 10px 12px 8px; color: #81b2a7; font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.nav-link { position: relative; display: flex; min-height: 48px; padding: 0 13px; align-items: center; gap: 12px; color: #bcdbd4; text-decoration: none; border-radius: 12px; font-size: 14px; font-weight: 600; transition: color .18s ease, background .18s ease, transform .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.075); transform: translateX(2px); }
.nav-link.active { color: #fff; background: rgba(214, 246, 237, .14); box-shadow: inset 3px 0 #70dbc0; }
.nav-link svg { width: 19px; height: 19px; }
.nav-count { margin-left: auto; min-width: 24px; padding: 2px 7px; color: #d8f4ec; background: rgba(255,255,255,.12); border-radius: 99px; font-size: 12px; line-height: 20px; text-align: center; }

.source-card { display: flex; margin-top: auto; padding: 14px; align-items: flex-start; gap: 11px; background: rgba(221, 250, 242, .09); border: 1px solid rgba(222, 248, 241, .12); border-radius: 14px; }
.source-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: #a9e7d5; background: rgba(255,255,255,.08); border-radius: 10px; }
.source-icon svg { width: 17px; height: 17px; }
.source-card strong, .source-card small, .source-state { display: block; }
.source-state { margin-bottom: 1px; color: #7cd8bf; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.source-card strong { color: #fff; font-size: 14px; }
.source-card small { margin-top: 2px; color: #a5c9c1; font-size: 11px; }
.school-year { display: flex; margin: 16px 5px 0; justify-content: space-between; color: #8ebdb2; font-size: 12px; }
.school-year strong { color: #d8eee9; font-size: 12px; }

.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 35; top: 0; display: flex; min-height: 86px; padding: 15px clamp(22px, 3.3vw, 52px); align-items: center; gap: 18px; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(220, 227, 235, .9); backdrop-filter: blur(14px); }
.topbar-context { min-width: 0; }
.eyebrow { display: block; color: var(--green-700); font-size: 12px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.topbar h1 { margin: 2px 0 0; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.topbar-actions { display: flex; margin-left: auto; align-items: center; gap: 10px; }
.icon-button, .sync-button { display: inline-grid; min-height: 42px; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.icon-button:hover, .sync-button:hover { border-color: #c5d2dc; box-shadow: 0 5px 16px rgba(20, 41, 60, .08); transform: translateY(-1px); }
.icon-button { position: relative; width: 42px; }
.sync-button { display: flex; padding: 0 15px; align-items: center; gap: 8px; color: var(--green-800); font-size: 14px; font-weight: 700; }
.sync-button svg { width: 17px; height: 17px; }
.sync-button.loading svg { animation: spin .8s linear infinite; }
.notification-dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; background: #e35d58; border: 2px solid #fff; border-radius: 50%; }
.profile-chip { display: flex; margin-left: 5px; align-items: center; gap: 10px; }
.profile-chip .avatar { display: grid; width: 41px; height: 41px; place-items: center; color: #fff; background: linear-gradient(145deg, var(--green-700), var(--green-950)); border-radius: 12px; font-size: 12px; font-weight: 800; }
.profile-chip strong, .profile-chip small { display: block; white-space: nowrap; }
.profile-chip strong { font-size: 13px; }
.profile-chip small { color: var(--muted); font-size: 11px; }
.logout-button { color: #7c8797; }
.menu-button { display: none; }

.main-content { width: 100%; max-width: 1660px; margin: 0 auto; padding: 32px clamp(22px, 3.3vw, 52px) 56px; }
.page-view { display: none; animation: fade-in .22s ease; }
.page-view.active { display: block; }

.welcome-panel { position: relative; display: flex; min-height: 170px; padding: 30px 34px; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; color: #fff; background: linear-gradient(110deg, #0a5d4d, #0d7560 58%, #1b8f77); border-radius: 24px; box-shadow: 0 16px 42px rgba(9, 96, 79, .17); }
.welcome-panel::before, .welcome-panel::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.welcome-panel::before { right: 14%; width: 210px; height: 210px; }
.welcome-panel::after { right: -45px; bottom: -130px; width: 310px; height: 310px; background: rgba(255,255,255,.035); }
.welcome-panel > * { position: relative; z-index: 1; }
.welcome-kicker { display: block; margin-bottom: 7px; color: #bdebe0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.welcome-panel h2 { max-width: 650px; margin: 0; font-size: clamp(25px, 3vw, 38px); line-height: 1.18; letter-spacing: -.035em; }
.welcome-panel p { max-width: 650px; margin: 10px 0 0; color: #d8f1eb; font-size: 15px; }
.sync-summary { min-width: 230px; padding: 18px 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; backdrop-filter: blur(7px); }
.sync-summary span, .sync-summary strong, .sync-summary small { display: block; }
.sync-summary span { color: #abe0d3; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.sync-summary strong { margin-top: 5px; font-size: 15px; }
.sync-summary small { margin-top: 4px; color: #c4e6de; font-size: 11px; line-height: 1.45; }

.stats-grid { display: grid; margin-top: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card { display: flex; min-height: 126px; padding: 20px; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-icon { display: grid; width: 49px; height: 49px; flex: 0 0 auto; place-items: center; border-radius: 15px; }
.stat-card.green .stat-icon { color: var(--green-800); background: var(--green-100); }
.stat-card.blue .stat-icon { color: var(--blue); background: var(--blue-soft); }
.stat-card.amber .stat-icon { color: #b67512; background: var(--amber-soft); }
.stat-card.violet .stat-icon { color: var(--violet); background: var(--violet-soft); }
.stat-card span, .stat-card strong, .stat-card small { display: block; }
.stat-card span { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-card strong { margin: 1px 0; color: var(--ink); font-size: 29px; line-height: 1.2; letter-spacing: -.04em; }
.stat-card small { color: var(--muted-2); font-size: 11px; }
.stat-card small b { color: var(--green-700); }

.dashboard-grid { display: grid; margin-top: 18px; grid-template-columns: minmax(0, 1.16fr) minmax(350px, .84fr); gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-header { display: flex; min-height: 78px; padding: 19px 22px 15px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.section-kicker { display: block; color: var(--green-700); font-size: 11px; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; }
.panel h3 { margin: 2px 0 0; font-size: 18px; line-height: 1.25; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-size: 12px; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 15px; height: 15px; }

.placement-content { display: flex; min-height: 250px; padding: 26px 30px; align-items: center; justify-content: center; gap: clamp(28px, 4vw, 60px); }
.donut-wrap { position: relative; }
.donut { display: grid; width: 164px; height: 164px; place-items: center; border-radius: 50%; background: conic-gradient(var(--green-700) var(--progress, 0%), #e9eef2 0); }
.donut::before { content: ""; position: absolute; width: 120px; height: 120px; background: #fff; border-radius: 50%; box-shadow: inset 0 0 0 1px #edf1f4; }
.donut span { position: relative; z-index: 1; text-align: center; }
.donut strong, .donut small { display: block; }
.donut strong { font-size: 27px; letter-spacing: -.04em; }
.donut small { color: var(--muted); font-size: 11px; }
.legend-list { min-width: 240px; }
.legend-list > div { display: grid; padding: 9px 0; grid-template-columns: 12px 1fr auto; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; border-bottom: 1px solid #edf1f4; }
.legend-list strong { color: var(--ink); font-size: 15px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.legend-dot.placed { background: var(--green-700); }
.legend-dot.pending { background: #dde4ea; }
.legend-list .legend-note { margin-top: 11px; padding: 10px 12px; grid-template-columns: 20px 1fr; color: #8a6b23; background: #fff8e9; border: 0; border-radius: 10px; font-size: 11px; line-height: 1.45; }
.legend-note svg { width: 16px; height: 16px; }

.agenda-list { padding: 10px 22px 16px; }
.agenda-item { display: grid; padding: 13px 0; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf1f4; }
.agenda-item:last-child { border-bottom: 0; }
.agenda-date { display: grid; width: 45px; height: 48px; place-items: center; align-content: center; color: var(--green-800); background: #edf8f5; border-radius: 12px; line-height: 1; }
.agenda-date strong { font-size: 18px; }
.agenda-date span { margin-top: 3px; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.agenda-copy strong, .agenda-copy span { display: block; }
.agenda-copy strong { font-size: 13px; }
.agenda-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.agenda-status { padding: 5px 8px; color: #356e61; background: #e5f5f0; border-radius: 99px; font-size: 10px; font-weight: 750; }

.recent-panel { margin-top: 18px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 18px; color: #768297; background: #f9fbfc; font-size: 11px; font-weight: 750; letter-spacing: .045em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px 18px; color: #415067; font-size: 13px; border-top: 1px solid #edf1f4; vertical-align: middle; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #fbfcfd; }
.person-cell { display: flex; min-width: 195px; align-items: center; gap: 10px; }
.mini-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: var(--green-800); background: #e4f3ef; border-radius: 10px; font-size: 11px; font-weight: 800; }
.person-cell strong, .person-cell span { display: block; }
.person-cell strong { color: var(--ink); font-size: 13px; }
.person-cell span { margin-top: 1px; color: var(--muted-2); font-size: 11px; }
.status { display: inline-flex; padding: 5px 9px; align-items: center; gap: 5px; border-radius: 99px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status.active, .status.good { color: #16705b; background: #e1f4ee; }
.status.pending, .status.follow-up { color: #a66c12; background: #fff1d8; }
.status.scheduled { color: #4c62a7; background: #e9eeff; }

.page-intro { display: flex; margin-bottom: 20px; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-intro h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.page-intro p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.data-safety { display: inline-flex; padding: 8px 11px; align-items: center; gap: 7px; color: var(--green-800); background: var(--green-100); border-radius: 10px; font-size: 12px; font-weight: 700; }
.data-safety svg { width: 15px; height: 15px; }
.toolbar { display: flex; min-height: 72px; padding: 14px 18px; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.search-box { display: flex; width: min(390px, 100%); min-height: 42px; padding: 0 12px; align-items: center; gap: 8px; background: #f7f9fb; border: 1px solid #dfe6ec; border-radius: 11px; }
.search-box:focus-within { border-color: #75a99e; box-shadow: 0 0 0 3px rgba(11, 107, 87, .09); }
.search-box svg { width: 17px; height: 17px; color: var(--muted-2); }
.search-box input { width: 100%; color: var(--ink); background: transparent; border: 0; outline: none; font-size: 13px; }
.search-box input::placeholder { color: #97a2b0; }
.select-field select { min-height: 42px; padding: 0 34px 0 12px; color: #536176; background: #fff; border: 1px solid #dfe6ec; border-radius: 11px; font-size: 13px; cursor: pointer; }
.result-count { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.data-table td { padding-top: 16px; padding-bottom: 16px; }
.data-table tbody tr { cursor: pointer; }
.row-action { display: grid; width: 31px; height: 31px; place-items: center; color: var(--muted); background: #f5f7f9; border: 0; border-radius: 9px; cursor: pointer; }
.row-action svg { width: 15px; height: 15px; }
.empty-state { padding: 60px 20px; color: var(--muted); text-align: center; }
.empty-state svg { display: block; width: 34px; height: 34px; margin: 0 auto 12px; color: #96a3b4; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { color: var(--ink); }
.empty-state span { margin-top: 4px; font-size: 13px; }

.supervisor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.supervisor-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.supervisor-head { display: flex; align-items: center; gap: 13px; }
.supervisor-avatar { display: grid; width: 49px; height: 49px; place-items: center; color: #fff; background: linear-gradient(145deg, #15806b, #084c42); border-radius: 15px; font-size: 13px; font-weight: 800; }
.supervisor-head h3 { margin: 0; font-size: 16px; }
.supervisor-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.supervisor-stats { display: grid; margin-top: 20px; grid-template-columns: 1fr 1fr; gap: 10px; }
.supervisor-stats div { padding: 12px 14px; background: #f6f9fa; border-radius: 11px; }
.supervisor-stats span, .supervisor-stats strong { display: block; }
.supervisor-stats span { color: var(--muted); font-size: 11px; }
.supervisor-stats strong { margin-top: 2px; font-size: 17px; }
.supervisor-locations { margin: 17px 0 0; padding-top: 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.supervisor-locations b { color: var(--ink); }

.location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.location-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.location-accent { height: 6px; background: linear-gradient(90deg, var(--green-800), #62cdb1); }
.location-body { padding: 21px; }
.location-title { display: flex; align-items: flex-start; gap: 12px; }
.location-title .stat-icon { width: 42px; height: 42px; color: var(--green-800); background: #e6f5f1; border-radius: 12px; }
.location-title h3 { margin: 0; font-size: 15px; }
.location-title p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.quota-row { display: flex; margin-top: 21px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.quota-row strong { color: var(--ink); }
.progress-track { height: 7px; margin-top: 8px; overflow: hidden; background: #e8eef1; border-radius: 99px; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-800), #38b897); border-radius: inherit; }
.location-meta { display: flex; margin-top: 17px; padding-top: 14px; justify-content: space-between; gap: 10px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }

.monitoring-list { padding: 4px 20px 14px; }
.monitoring-item { display: grid; padding: 18px 4px; grid-template-columns: 56px minmax(0, 1fr) 150px 116px; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.monitoring-item:last-child { border-bottom: 0; }
.monitoring-date { color: var(--green-800); text-align: center; }
.monitoring-date strong, .monitoring-date span { display: block; }
.monitoring-date strong { font-size: 20px; }
.monitoring-date span { font-size: 10px; font-weight: 750; text-transform: uppercase; }
.monitoring-main strong, .monitoring-main span, .monitoring-side strong, .monitoring-side span { display: block; }
.monitoring-main strong { font-size: 14px; }
.monitoring-main span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.monitoring-note { margin: 7px 0 0; color: #566579; font-size: 12px; }
.monitoring-side span { color: var(--muted-2); font-size: 10px; text-transform: uppercase; }
.monitoring-side strong { margin-top: 3px; font-size: 12px; }
.monitoring-empty { padding: 45px 10px; color: var(--muted); text-align: center; font-size: 13px; }

.score-legend { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 12px; }
.score-legend span { display: inline-flex; align-items: center; gap: 6px; }
.score-dot { width: 8px; height: 8px; border-radius: 50%; }
.score-dot.complete { background: var(--green-700); }
.score-dot.waiting { background: var(--amber); }
.score-table td:not(:first-child):not(:nth-child(2)) { text-align: center; }
.score-table th:not(:first-child):not(:nth-child(2)) { text-align: center; }
.score-value { font-weight: 700; }
.score-final { display: inline-grid; width: 39px; height: 39px; place-items: center; color: #fff; background: var(--green-700); border-radius: 11px; font-size: 13px; font-weight: 800; }
.score-final.waiting { color: #a36b17; background: var(--amber-soft); }
.grade { display: inline-flex; min-width: 34px; height: 29px; align-items: center; justify-content: center; color: var(--green-800); background: var(--green-100); border-radius: 8px; font-weight: 800; }

.student-dialog { width: min(560px, calc(100% - 30px)); padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 22px; box-shadow: var(--shadow-lg); }
.student-dialog::backdrop { background: rgba(7, 28, 34, .56); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; z-index: 2; top: 16px; right: 16px; display: grid; width: 36px; height: 36px; place-items: center; color: #fff; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; cursor: pointer; }
.dialog-close svg { width: 17px; height: 17px; }
.dialog-hero { display: flex; padding: 27px 28px; align-items: center; gap: 14px; color: #fff; background: linear-gradient(120deg, var(--green-900), var(--green-700)); }
.dialog-avatar { display: grid; width: 54px; height: 54px; place-items: center; color: var(--green-900); background: #d8f2eb; border-radius: 16px; font-weight: 900; }
.dialog-hero h2 { margin: 0; padding-right: 40px; font-size: 20px; }
.dialog-hero p { margin: 3px 0 0; color: #c5e9e0; font-size: 12px; }
.dialog-body { padding: 24px 28px 28px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.detail-grid div { padding: 12px 13px; background: #f6f8fa; border-radius: 11px; }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.detail-grid strong { margin-top: 3px; font-size: 13px; }
.dialog-score { display: flex; margin-top: 16px; padding: 15px; align-items: center; justify-content: space-between; background: #edf8f5; border-radius: 12px; }
.dialog-score span { color: var(--muted); font-size: 12px; }
.dialog-score strong { color: var(--green-800); font-size: 20px; }

.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: flex; max-width: 380px; min-height: 54px; padding: 13px 17px; align-items: center; gap: 10px; color: #fff; background: #173d37; border-radius: 13px; box-shadow: var(--shadow-lg); font-size: 13px; }
.toast svg { width: 18px; height: 18px; color: #80e0c6; }

@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .login-screen { grid-template-columns: minmax(310px, .8fr) minmax(400px, 1.2fr); }
  .login-showcase { padding: 35px; }
  .login-message h1 { font-size: 39px; }
  .login-points { display: none; }
  .sidebar { transform: translateX(-104%); transition: transform .24s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; z-index: 45; inset: 0; display: block; background: rgba(6, 32, 36, .48); }
  .workspace { margin-left: 0; }
  .menu-button { display: inline-grid; flex: 0 0 auto; }
  .topbar { min-height: 76px; }
  .profile-chip > span:last-child, .sync-button span { display: none; }
  .sync-button { width: 42px; padding: 0; justify-content: center; }
  .main-content { padding-top: 25px; }
  .welcome-panel { align-items: flex-start; flex-direction: column; }
  .sync-summary { width: 100%; }
  .supervisor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .login-screen { display: block; min-height: 100vh; background: #f7faf9; }
  .login-showcase { min-height: 235px; padding: 24px 22px; }
  .login-message { margin: auto 0 0; }
  .login-message h1 { font-size: 29px; }
  .login-message p, .login-copyright { display: none; }
  .login-form-panel { min-height: calc(100vh - 235px); padding: 30px 21px 40px; place-items: start center; }
  .login-lock { display: none; }
  .login-heading h2 { font-size: 27px; }
  .topbar { padding: 12px 16px; gap: 11px; }
  .topbar h1 { font-size: 19px; }
  .eyebrow { max-width: 180px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .notification-button { display: none; }
  .profile-chip { margin-left: 0; }
  .profile-chip .avatar { width: 38px; height: 38px; }
  .main-content { padding: 20px 15px 42px; }
  .welcome-panel { min-height: auto; padding: 24px 21px; border-radius: 18px; }
  .welcome-panel h2 { font-size: 25px; }
  .stats-grid { grid-template-columns: 1fr; gap: 11px; }
  .stat-card { min-height: 105px; }
  .placement-content { padding: 24px 18px; flex-direction: column; }
  .legend-list { width: 100%; min-width: 0; }
  .panel-header { padding-right: 16px; padding-left: 16px; }
  .toolbar { padding: 13px; align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .select-field select { width: 100%; }
  .result-count { margin: 3px 2px 0; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .page-intro h2 { font-size: 25px; }
  .location-grid { grid-template-columns: 1fr; }
  .monitoring-item { grid-template-columns: 48px 1fr auto; }
  .monitoring-side { display: none; }
  .monitoring-item .status { grid-column: 2; justify-self: start; }
  .score-legend { align-self: flex-start; }
  .detail-grid { grid-template-columns: 1fr; }
  .toast { right: 15px; bottom: 15px; left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
