:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #172033;
  --muted: #64748b;
  --border: #dbe3ef;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0f172a;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(37,99,235,.12), transparent 32rem), var(--bg);
  color: var(--text);
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 100vh;
}


.app-shell.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr) 0;
}

.app-shell.sidebar-collapsed .sidebar {
  width: 0;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  border-left: 0;
  opacity: 0;
  pointer-events: none;
}

.sidebar,
.content,
.app-shell {
  transition: grid-template-columns .24s ease, padding .24s ease, opacity .18s ease;
}

.layout-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .86);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.sidebar-toggle-btn:hover {
  border-color: rgba(37, 99, 235, .36);
  color: var(--primary);
  background: #fff;
}

.sidebar-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eaf0fb;
  color: #1e3a8a;
  font-size: 14px;
  line-height: 1;
}

.app-shell.sidebar-collapsed .content {
  padding-left: 32px;
  padding-right: 32px;
}

.sidebar {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  box-shadow: var(--shadow);
}

.brand h1 { margin: 0; font-size: 22px; }
.brand p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.panel h2 { margin: 0 0 14px; font-size: 16px; }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.collapse-link { border: 0; background: transparent; color: var(--primary); padding: 4px 0; font-weight: 800; }
.collapse-link:hover { color: var(--primary-dark); }
.period-upload-content { display: grid; gap: 14px; }
.upload-divider { height: 1px; background: var(--border); margin: 2px 0 0; }
.upload-panel-inline h2 { margin-top: 0; }
.period-upload-group.is-collapsed .period-upload-content { display: none; }
.period-upload-group.is-collapsed .periods-panel { padding-bottom: 14px; }

.field-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

input, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

.primary-btn, .secondary-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  margin-top: 12px;
  font-weight: 700;
}
.primary-btn { background: var(--primary); color: #fff; }
.primary-btn:hover { background: var(--primary-dark); }
.secondary-btn { background: #eaf0fb; color: #1e3a8a; }
.secondary-btn:hover { background: #dbeafe; }
.danger-link { border: 0; background: transparent; color: var(--danger); padding: 4px 0; font-weight: 700; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 12px 0 0; }

.period-list { display: grid; gap: 8px; }
.period-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}
.period-chip strong { font-size: 13px; }
.period-chip small { color: var(--muted); }
.period-chip button { border: 0; color: var(--danger); background: transparent; font-weight: 800; }
.empty-state { color: var(--muted); font-size: 13px; }

.content { grid-column: 1; grid-row: 1; padding: 28px; min-width: 0; }
.hero {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
  box-shadow: var(--shadow);
}
.hero-copy { min-width: 0; }
.hero h2 { margin: 0 0 6px; font-size: clamp(22px, 2.45vw, 34px); letter-spacing: -.03em; }
.hero p { margin: 0; max-width: 880px; color: rgba(255,255,255,.8); }
.hero-actions {
  position: relative;
  display: grid;
  gap: 8px;
  align-items: stretch;
  min-width: 360px;
  flex: 0 0 360px;
}
.hero .secondary-btn,
.hero .sidebar-toggle-btn {
  width: 100%;
  margin: 0;
  justify-content: center;
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: rgba(255,255,255,.22);
  box-shadow: none;
}
.hero .secondary-btn:hover,
.hero .sidebar-toggle-btn:hover,
.hero .scope-badge-button:hover {
  background: rgba(255,255,255,.24);
  color: #fff;
  border-color: rgba(255,255,255,.36);
}
.hero .sidebar-toggle-icon {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.hero-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr .72fr;
  gap: 8px;
}
.hero .compact-hero-btn {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.15;
}
.hero .compact-hero-btn .sidebar-toggle-icon {
  width: 18px;
  height: 18px;
  font-size: 12px;
}
.hero .scope-menu-wrap {
  width: 100%;
}
.eyebrow { color: rgba(255,255,255,.72); text-transform: uppercase; font-size: 12px; letter-spacing: .1em; font-weight: 800; }

.organization-overview { margin: 20px 0; }
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.section-heading .eyebrow { color: var(--primary); margin: 0 0 6px; }
.section-heading h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.45; }
.scope-menu-wrap { position: relative; }
.scope-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}
.scope-badge-button {
  width: 100%;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.16);
  color: #fff;
  box-shadow: none;
}
.scope-badge-button::after {
  content: '▾';
  font-size: 12px;
  opacity: .85;
}
.scope-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 80vw);
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 80;
}
.scope-menu-wrap.open .scope-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scope-menu-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 700;
}
.scope-menu-option:hover { background: var(--surface-soft); }
.scope-menu-option.active {
  background: #eaf0fb;
  color: #1e3a8a;
}
.scope-menu-option small {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.org-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.org-stat-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}
.org-stat-card.accent {
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(124,58,237,.10)), var(--surface);
  border-color: rgba(37,99,235,.25);
}
.org-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.org-stat-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.04em;
  word-break: break-word;
}
.org-stat-card small { color: var(--muted); line-height: 1.35; }
.org-chart-grid { margin-bottom: 20px; }
.card-control {
  min-width: 220px;
  display: grid;
  gap: 6px;
}
.card-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.card-control select { padding: 9px 10px; }
.metric-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.metric-detail .detail-cell {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-soft);
  min-height: 78px;
}
.metric-detail span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.metric-detail strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  line-height: 1.15;
}
.metric-detail .detail-cell.wide { grid-column: span 2; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.kpi-card, .teacher-spotlight, .chart-card, .table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}
.kpi-card { padding: 18px; min-height: 132px; }
.kpi-card span, .spotlight-metrics span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.kpi-card strong { display: block; margin: 10px 0 8px; font-size: 30px; line-height: 1.05; letter-spacing: -.04em; word-break: break-word; }
.kpi-card small { color: var(--muted); }

.teacher-spotlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  padding: 22px;
  margin-bottom: 20px;
}
.teacher-spotlight .eyebrow { color: var(--primary); margin: 0 0 4px; }
.teacher-spotlight h3 { margin: 0 0 8px; font-size: 24px; }
.teacher-spotlight p { color: var(--muted); margin: 0; line-height: 1.5; }
.spotlight-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.spotlight-metrics div {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface-soft);
}
.spotlight-metrics strong { display: block; margin-top: 8px; font-size: 20px; }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.chart-card { padding: 18px; min-height: 390px; }
.chart-card.wide { grid-column: 1 / -1; min-height: 420px; }
.school-completion-card { min-height: 390px; }
.school-pies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.mini-pie-panel {
  display: grid;
  grid-template-rows: auto minmax(210px, 1fr);
  gap: 8px;
  min-height: 292px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}
.mini-pie-title h4 { margin: 0 0 4px; font-size: 14px; }
.mini-pie-title p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.school-pies-grid canvas { height: 220px !important; max-height: 220px; }
.metric-explanations {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.metric-explanations h4 {
  margin: 0 0 10px;
  font-size: 14px;
}
.metric-explanation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.metric-explanation-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: baseline;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.metric-explanation-item:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.metric-explanation-item strong {
  font-size: 13px;
  color: var(--accent);
}
.metric-explanation-item span {
  font-size: 13px;
  line-height: 1.35;
}
.metric-explanation-item em {
  grid-column: 2;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.recommendation-card { min-height: 420px; }
.teacher-recommendations {
  display: grid;
  gap: 12px;
}
.recommendation-summary {
  padding: 13px 14px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(124,58,237,.08));
}
.recommendation-summary strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.recommendation-summary span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.recommendation-list {
  display: grid;
  gap: 10px;
  max-height: 285px;
  overflow: auto;
  padding-right: 4px;
}
.recommendation-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}
.recommendation-item.good {
  border-color: rgba(22, 101, 52, .18);
  background: #f0fdf4;
}
.recommendation-item.warning {
  border-color: rgba(217, 119, 6, .24);
  background: #fffbeb;
}
.recommendation-item.danger {
  border-color: rgba(153, 27, 27, .20);
  background: #fef2f2;
}
.recommendation-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.recommendation-title strong { font-size: 14px; }
.recommendation-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.recommendation-badge.good { color: #166534; background: #dcfce7; }
.recommendation-badge.warning { color: #92400e; background: #fef3c7; }
.recommendation-badge.danger { color: #991b1b; background: #fee2e2; }
.recommendation-item p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.recommendation-item ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.recommendation-action {
  margin-top: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}
.recommendation-empty {
  min-height: 250px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  background: var(--surface-soft);
}

.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.card-header h3 { margin: 0 0 6px; font-size: 18px; }
.card-header p { margin: 0; color: var(--muted); line-height: 1.4; }
canvas { width: 100% !important; max-height: 330px; }
.chart-card.wide canvas { max-height: 360px; }

.table-card { margin-top: 18px; overflow: hidden; }
.table-header { padding: 18px 18px 0; }
.table-hint { color: var(--muted); font-size: 13px; }
.table-wrap { overflow: auto; max-height: 620px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1060px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
th { position: sticky; top: 0; background: #f8fafc; z-index: 1; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover { background: #f8fbff; }
.status-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.status-pill { padding: 4px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.status-ok { color: #166534; background: #dcfce7; }
.status-bad { color: #991b1b; background: #fee2e2; }
.status-empty { color: #475569; background: #e2e8f0; }


.app-footer {
  padding: 10px 28px 22px;
  color: var(--muted);
  font-size: 12px;
}

.app-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.app-footer__inner span:not(:last-child)::after {
  content: "";
}

.app-footer strong {
  color: var(--text);
}

.app-footer a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

.hero .hero-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(circle at top left, rgba(37,99,235,.16), transparent 34rem), var(--bg);
}

.login-shell {
  width: min(100%, 480px);
}

.login-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.login-brand h1 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: -.03em;
}

.login-card .eyebrow {
  color: var(--muted);
  margin: 0;
}

.login-description {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 8px;
}

.login-submit {
  margin-top: 14px;
}

.login-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(220, 38, 38, .1);
  color: #991b1b;
  font-weight: 700;
}

.login-hint {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(245, 158, 11, .12);
  color: #78350f;
  font-size: 12px;
  line-height: 1.5;
}

.login-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .2s ease;
  z-index: 10;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1240px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-shell.sidebar-collapsed { grid-template-columns: 1fr; }
  .app-shell.sidebar-collapsed .sidebar { display: none; }
  .app-shell.sidebar-collapsed .content { padding-left: 28px; padding-right: 28px; }
  .sidebar { grid-column: 1; grid-row: 2; position: static; height: auto; border-left: 0; border-top: 1px solid var(--border); }
  .content { grid-column: 1; grid-row: 1; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .teacher-spotlight { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .content, .sidebar { padding: 16px; }
  .app-footer { padding: 10px 16px 18px; }
  .app-footer__inner { align-items: flex-start; }
  .app-shell.sidebar-collapsed .content { padding: 16px; }
  .hero, .section-heading, .card-header { flex-direction: column; border-radius: 22px; }
  .hero { top: 8px; padding: 14px 16px; }
  .hero-actions { width: 100%; min-width: 0; flex-basis: auto; }
  .hero-action-buttons { grid-template-columns: 1fr; }
  .scope-badge { align-self: flex-start; }
  .scope-badge-button { align-self: stretch; }
  .kpi-grid, .chart-grid, .spotlight-metrics, .org-summary-grid, .metric-detail, .school-pies-grid, .metric-explanation-list { grid-template-columns: 1fr; }
  .metric-detail .detail-cell.wide { grid-column: auto; }
  .chart-card.wide { grid-column: auto; }
}

@media print {
  .sidebar, .hero-actions, .toast { display: none !important; }
  .hero { position: static; box-shadow: none; }
  .app-shell { display: block; }
  .content { padding: 0; }
  .chart-card, .table-card, .kpi-card, .org-stat-card, .teacher-spotlight { break-inside: avoid; box-shadow: none; }
  .table-wrap { max-height: none; }
}

.storage-status {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, .12);
  color: #065f46;
  font-size: 12px;
  line-height: 1.45;
}

.storage-status.offline {
  background: rgba(245, 158, 11, .14);
  color: #92400e;
}
