/* Elimu SMS platform styles — fully local, no CDN, no remote fonts */
:root {
  --bg: #F7F5F0;
  --ink: #3D3D3D;
  --header: #2D3A30;
  --header-fg: #EFEBE4;
  --accent: #8C9F7E;
  --panel: #3D4D40;
  --white: #fff;
  --border: #d6d3cd;
  --danger: #b91c1c;
  --ok: #166534;
  --glass-bg: rgba(253, 252, 251, 0.72);
  --glass-bg-strong: rgba(253, 252, 251, 0.88);
  --glass-border: rgba(230, 226, 216, 0.65);
  --glass-shadow: 0 8px 32px rgba(45, 58, 48, 0.08), 0 1px 2px rgba(45, 58, 48, 0.04);
  --glass-blur: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #666; }

@keyframes elimu-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes elimu-bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
@keyframes elimu-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes elimu-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes elimu-zoom-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }


.absolute { position: absolute; }
.align-middle { vertical-align: middle; }
.animate-bounce { animation: elimu-bounce 1s infinite; }
.animate-fade-in { animation: elimu-fade-in 0.3s ease-out; }
.animate-in { animation: elimu-fade-in 0.2s ease-out; }
.animate-ping { animation: elimu-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-pulse { animation: elimu-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-xs { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.bg-\[\#2D3A30\] { background-color: #2D3A30; }
.bg-\[\#2D3A30\]\/10 { background-color: rgba(45,58,48,0.1); }
.bg-\[\#2D3A30\]\/5 { background-color: rgba(45,58,48,0.05); }
.bg-\[\#2D3A30\]\/50 { background-color: rgba(45,58,48,0.5); }
.bg-\[\#2D3A30\]\/80 { background-color: rgba(45,58,48,0.8); }
.bg-\[\#3D4D40\] { background-color: #3D4D40; }
.bg-\[\#5C6E5E\] { background-color: #5C6E5E; }
.bg-\[\#8C9F7E\] { background-color: #8C9F7E; }
.bg-\[\#8C9F7E\]\/10 { background-color: rgba(140,159,126,0.1); }
.bg-\[\#8C9F7E\]\/15 { background-color: rgba(140,159,126,0.15); }
.bg-\[\#8C9F7E\]\/20 { background-color: rgba(140,159,126,0.2); }
.bg-\[\#8C9F7E\]\/5 { background-color: rgba(140,159,126,0.05); }
.bg-\[\#8C9F7E\]\/90 { background-color: rgba(140,159,126,0.9); }
.bg-\[\#A67C52\] { background-color: #A67C52; }
.bg-\[\#A67C52\]\/10 { background-color: rgba(166,124,82,0.1); }
.bg-\[\#A67C52\]\/5 { background-color: rgba(166,124,82,0.05); }
.bg-\[\#A67C52\]\/90 { background-color: rgba(166,124,82,0.9); }
.bg-\[\#E6E2D8\] { background-color: #E6E2D8; }
.bg-\[\#F2ECE0\] { background-color: #F2ECE0; }
.bg-\[\#F2ECE0\]\/30 { background-color: rgba(242,236,224,0.3); }
.bg-\[\#F2ECE0\]\/40 { background-color: rgba(242,236,224,0.4); }
.bg-\[\#F7F5F0\] { background-color: #F7F5F0; }
.bg-\[\#F7F5F0\]\/30 { background-color: rgba(247,245,240,0.3); }
.bg-\[\#FAF8F5\] { background-color: #FAF8F5; }
.bg-\[\#FAF8F5\]\/25 { background-color: rgba(250,248,245,0.25); }
.bg-\[\#FAF8F5\]\/30 { background-color: rgba(250,248,245,0.3); }
.bg-\[\#FAF8F5\]\/35 { background-color: rgba(250,248,245,0.35); }
.bg-\[\#FAF8F5\]\/50 { background-color: rgba(250,248,245,0.5); }
.bg-\[\#FAF8F5\]\/55 { background-color: rgba(250,248,245,0.55); }
.bg-\[\#FAF9F5\] { background-color: #FAF9F5; }
.bg-\[\#FAF9F5\]\/20 { background-color: rgba(250,249,245,0.2); }
.bg-\[\#FDFCFB\] { background-color: #FDFCFB; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-400 { background-color: #fbbf24; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-50\/70 { background-color: rgba(255,251,235,0.7); }
.bg-amber-500 { background-color: #f59e0b; }
.bg-black\/40 { background-color: #000; }
.bg-black\/60 { background-color: #000; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-50\/50 { background-color: rgba(239,246,255,0.5); }
.bg-blue-50\/70 { background-color: rgba(239,246,255,0.7); }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-50\/50 { background-color: rgba(236,253,245,0.5); }
.bg-emerald-50\/70 { background-color: rgba(236,253,245,0.7); }
.bg-emerald-700 { background-color: #047857; }
.bg-emerald-800 { background-color: #065f46; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-50\/50 { background-color: rgba(249,250,251,0.5); }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-15 { background-color: #ecfdf5; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-purple-50\/70 { background-color: rgba(250,245,255,0.7); }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-200 { background-color: #fecaca; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-500 { background-color: #ef4444; }
.bg-red-650 { background-color: #c53030; }
.bg-red-900\/40 { background-color: rgba(127,29,29,0.4); }
.bg-rose-100 { background-color: #ffe4e6; }
.bg-rose-50 { background-color: #fff1f2; }
.bg-rose-50\/50 { background-color: rgba(255,241,242,0.5); }
.bg-rose-700\/60 { background-color: rgba(190,18,60,0.6); }
.bg-rose-700\/80 { background-color: rgba(190,18,60,0.8); }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-stone-100 { background-color: #f5f5f4; }
.bg-stone-200 { background-color: #e7e5e4; }
.bg-stone-50 { background-color: #fafaf9; }
.bg-stone-850 { background-color: #1c1917; }
.bg-stone-900 { background-color: #1c1917; }
.bg-stone-900\/60 { background-color: rgba(28,25,23,0.6); }
.bg-stone-950 { background-color: #0c0a09; }
.bg-transparent { background-color: transparent; }
.bg-white { background-color: #fff; }
.bg-white\/5 { background-color: #fff; }
.bg-yellow-50 { background-color: #fefce8; }
.block { display: block; }
.border { border-width: 1px; border-style: solid; border-color: var(--border); }
.border-2 { border-width: 2px; border-style: solid; }
.border-\[\#2D3A30\] { border-color: #2D3A30; }
.border-\[\#8C9F7E\] { border-color: #8C9F7E; }
.border-\[\#8C9F7E\]\/10 { border-color: rgba(140,159,126,0.1); }
.border-\[\#8C9F7E\]\/20 { border-color: rgba(140,159,126,0.2); }
.border-\[\#8C9F7E\]\/30 { border-color: rgba(140,159,126,0.3); }
.border-\[\#A67C52\]\/20 { border-color: rgba(166,124,82,0.2); }
.border-\[\#A67C52\]\/30 { border-color: rgba(166,124,82,0.3); }
.border-\[\#D5D0C5\] { border-color: #D5D0C5; }
.border-\[\#E1DBCE\] { border-color: #E1DBCE; }
.border-\[\#E6E2D8\] { border-color: #E6E2D8; }
.border-\[\#E6E2D8\]\/35 { border-color: rgba(230,226,216,0.35); }
.border-\[\#E6E2D8\]\/45 { border-color: rgba(230,226,216,0.45); }
.border-\[\#E6E2D8\]\/50 { border-color: rgba(230,226,216,0.5); }
.border-\[\#F7F5F0\] { border-color: #F7F5F0; }
.border-amber-100 { border-color: #fef3c7; }
.border-amber-200 { border-color: #fde68a; }
.border-amber-300 { border-color: #fcd34d; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-color: var(--border); }
.border-blue-100 { border-color: #dbeafe; }
.border-blue-200 { border-color: #bfdbfe; }
.border-collapse { border-collapse: collapse; }
.border-dashed { border-style: dashed; }
.border-emerald-100 { border-color: #d1fae5; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-200\/50 { border-color: rgba(229,231,235,0.5); }
.border-gray-300 { border-color: #d1d5db; }
.border-green-200 { border-color: #bbf7d0; }
.border-green-300 { border-color: #86efac; }
.border-indigo-200 { border-color: #c7d2fe; }
.border-l { border-left-width: 1px; border-left-style: solid; border-color: var(--border); }
.border-l-0 { border-left-width: 0; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-none { border: none; }
.border-purple-100 { border-color: #f3e8ff; }
.border-r-0 { border-right-width: 0; }
.border-red-100 { border-color: #fee2e2; }
.border-red-200 { border-color: #fecaca; }
.border-red-300 { border-color: #fca5a5; }
.border-red-800 { border-color: #991b1b; }
.border-red-900\/30 { border-color: rgba(127,29,29,0.3); }
.border-rose-200 { border-color: #fecdd3; }
.border-slate-200 { border-color: #e2e8f0; }
.border-stone-100 { border-color: #f5f5f4; }
.border-stone-200 { border-color: #e7e5e4; }
.border-stone-800 { border-color: #292524; }
.border-stone-850 { border-color: #1c1917; }
.border-t { border-top-width: 1px; border-top-style: solid; border-color: var(--border); }
.border-white\/10 { border-color: #fff; }
.border-white\/5 { border-color: #fff; }
.border-yellow-100 { border-color: #fef9c3; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-full { grid-column: 1 / -1; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-pointer { cursor: pointer; }
.divide-\[\#E6E2D8\]\/40 > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-top-style: solid; border-color: rgba(230,226,216,0.4); }
.divide-\[\#F7F5F0\] > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-top-style: solid; border-color: #F7F5F0; }
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-top-style: solid; border-color: #f3f4f6; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.fade-in { animation: elimu-fade-in 0.3s ease-out; }
.fixed { position: fixed; }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.focus\:bg-white:focus { background-color: #fff; }
.focus\:border-\[\#8C9F7E\]:focus { border-color: #8C9F7E; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-0:focus { box-shadow: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--accent); }
.focus\:ring-\[\#8C9F7E\]:focus { box-shadow: 0 0 0 2px #8C9F7E; }
.focus\:ring-offset-2:focus { outline-offset: 2px; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-medium { font-weight: 500; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-sans { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif; }
.font-semibold { font-weight: 600; }
.font-serif { font-family: Georgia, "Times New Roman", serif; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-1\.5 { height: 0.375rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-2 { height: 0.5rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-28 { height: 7rem; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-32 { height: 8rem; }
.h-4 { height: 1rem; }
.h-4\.5 { height: 1.125rem; }
.h-40 { height: 10rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-fit { height: fit-content; }
.h-full { height: 100%; }
.hidden { display: none; }
.hover\:bg-\[\#2D3A30\]:hover { background-color: #2D3A30; }
.hover\:bg-\[\#2D3A30\]\/15:hover { background-color: rgba(45,58,48,0.15); }
.hover\:bg-\[\#3D4D40\]:hover { background-color: #3D4D40; }
.hover\:bg-\[\#728564\]:hover { background-color: #728564; }
.hover\:bg-\[\#85613c\]:hover { background-color: #85613c; }
.hover\:bg-\[\#8C9F7E\]\/10:hover { background-color: rgba(140,159,126,0.1); }
.hover\:bg-\[\#8d653d\]:hover { background-color: #8d653d; }
.hover\:bg-\[\#916b43\]:hover { background-color: #916b43; }
.hover\:bg-\[\#A67C52\]:hover { background-color: #A67C52; }
.hover\:bg-\[\#E3DCCE\]:hover { background-color: #E3DCCE; }
.hover\:bg-\[\#E6E2D8\]:hover { background-color: #E6E2D8; }
.hover\:bg-\[\#F2ECE0\]:hover { background-color: #F2ECE0; }
.hover\:bg-\[\#F2ECE0\]\/10:hover { background-color: rgba(242,236,224,0.1); }
.hover\:bg-\[\#F7F5F0\]:hover { background-color: #F7F5F0; }
.hover\:bg-\[\#FAF8F5\]:hover { background-color: #FAF8F5; }
.hover\:bg-\[\#FAF9F5\]:hover { background-color: #FAF9F5; }
.hover\:bg-\[\#FDFCFB\]:hover { background-color: #FDFCFB; }
.hover\:bg-amber-100:hover { background-color: #fef3c7; }
.hover\:bg-amber-50:hover { background-color: #fffbeb; }
.hover\:bg-black:hover { background-color: #000; }
.hover\:bg-blue-100:hover { background-color: #dbeafe; }
.hover\:bg-emerald-100:hover { background-color: #d1fae5; }
.hover\:bg-emerald-50:hover { background-color: #ecfdf5; }
.hover\:bg-emerald-800:hover { background-color: #065f46; }
.hover\:bg-emerald-950:hover { background-color: #022c22; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-green-100:hover { background-color: #dcfce7; }
.hover\:bg-red-100:hover { background-color: #fee2e2; }
.hover\:bg-red-900\/60:hover { background-color: rgba(127,29,29,0.6); }
.hover\:bg-rose-50:hover { background-color: #fff1f2; }
.hover\:bg-stone-300:hover { background-color: #d6d3d1; }
.hover\:bg-stone-50:hover { background-color: #fafaf9; }
.hover\:bg-white:hover { background-color: #fff; }
.hover\:border-\[\#8C9F7E\]:hover { border-color: #8C9F7E; }
.hover\:border-\[\#A67C52\]:hover { border-color: #A67C52; }
.hover\:shadow-xs:hover { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.hover\:text-\[\#2D3A30\]:hover { color: #2D3A30; }
.hover\:text-amber-800:hover { color: #92400e; }
.hover\:text-emerald-800:hover { color: #065f46; }
.hover\:text-rose-800:hover { color: #9f1239; }
.hover\:text-white:hover { color: #fff; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.inset-0 { inset: 0; }
.italic { font-style: italic; }
.items-baseline { align-items: baseline; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }
.leading-tight { line-height: 1.25; }
.lowercase { text-transform: lowercase; }
.max-h-\[140px\] { max-height: 140px; }
.max-h-\[160px\] { max-height: 160px; }
.max-h-\[220px\] { max-height: 220px; }
.max-h-\[380px\] { max-height: 380px; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-fit { max-width: fit-content; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-xs { max-width: 20rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.min-h-\[500px\] { min-height: 500px; }
.min-h-screen { min-height: 100vh; }
.ml-1\.5 { margin-left: 0.375rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3\.5 { margin-left: 0.875rem; }
.min-w-\[12rem\] { min-width: 12rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-12 { margin-top: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.object-cover { object-fit: cover; }
.opacity-75 { opacity: 0.75; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-12 { padding: 3rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-4\.5 { padding: 1.125rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-2\.5 { padding-bottom: 0.625rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-2 { padding-left: 0.5rem; }
.placeholder-\[\#8C9F7E\]\/50::placeholder { color: rgba(140,159,126,0.5); }
.placeholder-\[\#8C9F7E\]\/60::placeholder { color: rgba(140,159,126,0.6); }
.pr-1 { padding-right: 0.25rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-1\.5 { padding-top: 0.375rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-2\.5 { padding-top: 0.625rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.2 { padding-top: 0.05rem; padding-bottom: 0.05rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.relative { position: relative; }
.resize-none { resize: none; }
.right-4 { right: 1rem; }
.rounded { border-radius: 0.25rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-l-xl { border-top-left-radius: 0.75rem; border-bottom-left-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-r-xl { border-top-right-radius: 0.75rem; border-bottom-right-radius: 0.75rem; }
.rounded-t-md { border-top-left-radius: 0.375rem; border-top-right-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.select-all { user-select: all; }
.select-none { user-select: none; }
.self-start { align-self: flex-start; }
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-xs { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.space-x-1 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.25rem; }
.space-x-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.375rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.125rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.875rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.text-2xl { font-size: 1.5rem; }
.text-\[\#202922\] { color: #202922; }
.text-\[\#2D3A30\] { color: #2D3A30; }
.text-\[\#3D3D3D\] { color: #3D3D3D; }
.text-\[\#5A5A5A\] { color: #5A5A5A; }
.text-\[\#8C9F7E\] { color: #8C9F7E; }
.text-\[\#A67C52\] { color: #A67C52; }
.text-\[\#A67C52\]\/90 { color: rgba(166,124,82,0.9); }
.text-\[\#EFEBE4\] { color: #EFEBE4; }
.text-\[\#EFEBE4\]\/90 { color: rgba(239,235,228,0.9); }
.text-\[10\.5px\] { font-size: 10.5px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.text-\[13px\] { font-size: 13px; }
.text-\[8\.5px\] { font-size: 8.5px; }
.text-\[8px\] { font-size: 8px; }
.text-\[9\.5px\] { font-size: 9.5px; }
.text-\[9px\] { font-size: 9px; }
.text-amber-600 { color: #d97706; }
.text-amber-655 { color: #b45309; }
.text-amber-700 { color: #b45309; }
.text-amber-800 { color: #92400e; }
.text-amber-850 { color: #78350f; }
.text-amber-900 { color: #78350f; }
.text-balance { text-wrap: balance; }
.text-base { font-size: 1rem; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }
.text-blue-900 { color: #1e3a8a; }
.text-center { text-align: center; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-emerald-850 { color: #064e3b; }
.text-emerald-900 { color: #064e3b; }
.text-emerald-950 { color: #022c22; }
.text-gray-100 { color: #f3f4f6; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }
.text-green-500 { color: #22c55e; }
.text-green-700 { color: #15803d; }
.text-green-750 { color: #166534; }
.text-green-800 { color: #166534; }
.text-green-850 { color: #14532d; }
.text-indigo-700 { color: #4338ca; }
.text-left { text-align: left; }
.text-lg { font-size: 1.125rem; }
.text-purple-800 { color: #6b21a8; }
.text-purple-900 { color: #581c87; }
.text-red-500 { color: #ef4444; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }
.text-red-900 { color: #7f1d1d; }
.text-right { text-align: right; }
.text-rose-500 { color: #f43f5e; }
.text-rose-700 { color: #be123c; }
.text-rose-705 { color: #be123c; }
.text-rose-800 { color: #9f1239; }
.text-rose-850 { color: #881337; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-sm { font-size: 0.875rem; }
.text-stone-200 { color: #e7e5e4; }
.text-stone-300 { color: #d6d3d1; }
.text-stone-400 { color: #a8a29e; }
.text-stone-500 { color: #78716c; }
.text-stone-600 { color: #57534e; }
.text-stone-700 { color: #44403c; }
.text-stone-800 { color: #292524; }
.text-stone-900 { color: #1c1917; }
.text-stone-950 { color: #0c0a09; }
.text-white { color: #fff; }
.text-xl { font-size: 1.25rem; }
.text-xs { font-size: 0.75rem; }
.text-yellow-800 { color: #854d0e; }
.text-zinc-400 { color: #a1a1aa; }
.top-2 { top: 0.5rem; }
.top-4 { top: 1rem; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.underline { text-decoration: underline; }
.uppercase { text-transform: uppercase; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-2 { width: 0.5rem; }
.w-28 { width: 7rem; }
.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-4\.5 { width: 1.125rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-fit { width: fit-content; }
.w-full { width: 100%; }
.w-48 { width: 12rem; }
.max-w-full { max-width: 100%; }
.whitespace-nowrap { white-space: nowrap; }
.z-50 { z-index: 50; }
.zoom-in { animation: elimu-zoom-in 0.2s ease-out; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
button, [type="submit"] { cursor: pointer; }
.bg-opacity-75 { /* paired with bg-*; no-op stabilizer */ }

@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:col-span-1 { grid-column: span 1 / span 1; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:items-center { align-items: center; }
  .md\:max-w-md { max-width: 28rem; }
  .md\:mt-0 { margin-top: 0; }
  .md\:self-center { align-self: center; }
  .md\:w-64 { width: 16rem; }
}
@media (min-width: 1024px) {
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .xl\:col-span-3 { grid-column: span 3 / span 3; }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Patched utilities for full template coverage */
.accent-emerald-700 { accent-color: #047857; }
.bg-red-950\/30 { background-color: rgba(69, 10, 10, 0.3); }
.border-emerald-150 { border-color: #d1fae5; }
.border-gray-150 { border-color: #f3f4f6; }
.divide-y > :not([hidden]) ~ :not([hidden]) {
  border-top-width: 1px;
  border-top-style: solid;
  border-color: var(--elimu-divide-color, var(--border));
}
.gap-x-4 { column-gap: 1rem; }
.gap-y-1 { row-gap: 0.25rem; }
.hover\:bg-opacity-95:hover { opacity: 0.95; }
.hover\:bg-red-950\/50:hover { background-color: rgba(69, 10, 10, 0.5); }
.hover\:text-amber-950:hover { color: #451a03; }
.transform { transform: translateZ(0); }

/* Tab hooks: visibility is controlled via .hidden in templates/JS */

/* Coverage fill */
.bg-gray-500 { background-color: #6b7280; }
.bg-indigo-600 { background-color: #4f46e5; }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\:text-gray-500:hover { color: #6b7280; }
.hover\:text-gray-800:hover { color: #1f2937; }
.hover\:text-indigo-800:hover { color: #3730a3; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pt-6 { padding-top: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-indigo-600 { color: #4f46e5; }
.text-slate-300 { color: #cbd5e1; }

/* Operator console subtabs — explicit contrast (active = light on dark) */
.subtab-btn {
  color: #8C9F7E;
  background-color: transparent;
  border: 1px solid transparent;
}
.subtab-btn:hover {
  color: #2D3A30;
}
.subtab-btn.is-active,
.subtab-btn-active {
  background-color: #2D3A30 !important;
  color: #EFEBE4 !important;
  border-color: #2D3A30;
}
.subtab-btn.is-active:hover,
.subtab-btn-active:hover {
  color: #EFEBE4 !important;
}
.region-chip {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(140, 159, 126, 0.45);
  background: rgba(140, 159, 126, 0.18);
  color: #c5d4b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.region-chip--muted {
  background: rgba(239, 235, 228, 0.12);
  border-color: rgba(239, 235, 228, 0.25);
  color: #efebe4;
}
.money-figure {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* School portal sidebar nav (same visual language as operator workspace) */
.school-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  border: 1px solid transparent;
  box-sizing: border-box;
  line-height: 1.25;
  min-height: 2.5rem;
}
.school-nav-link:hover {
  background: #F7F5F0;
  color: #2D3A30;
}
.school-nav-link.is-active {
  background: #2D3A30;
  color: #EFEBE4;
  font-weight: 600;
  border-color: #2D3A30;
}

/* Permanent full-bleed school app shell — docked left rail (never a centered card) */
html:has(.school-shell),
body.school-shell {
  margin: 0;
  width: 100%;
  max-width: none;
}
.school-shell {
  height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #F7F5F0;
  color: #3D3D3D;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}
.school-shell-body {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
  justify-content: flex-start;
}
.school-rail {
  width: 100%;
  margin: 0;
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #E6E2D8;
  padding: 1rem;
  box-sizing: border-box;
}
.school-rail-inner {
  max-width: 100%;
  margin: 0;
}
.school-rail-label {
  display: block;
  font-size: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C9F7E;
  margin-bottom: 0.75rem;
}
.school-rail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.school-pane {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 1.25rem;
  box-sizing: border-box;
  background: #F7F5F0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.school-pane-card {
  background: #ffffff;
  border: 1px solid #E6E2D8;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  padding: 1.5rem;
  min-height: 28rem;
  max-width: 72rem;
}
@media (min-width: 768px) {
  .school-rail {
    width: 15.5rem;
    flex: 0 0 15.5rem;
    align-self: stretch;
    border-bottom: none;
    border-right: 1px solid #E6E2D8;
    padding: 1.25rem 0.85rem;
    position: relative;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .school-rail-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.3rem;
  }
  .school-pane {
    padding: 1.5rem 1.75rem 2rem;
  }
}

/* Weekly period × day timetable grid */
.tt-grid .tt-lesson {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  margin-bottom: 0.35rem;
}
.tt-grid .tt-tone-0 { background: #eff6ff; border-color: #bfdbfe; }
.tt-grid .tt-tone-1 { background: #ecfdf5; border-color: #a7f3d0; }
.tt-grid .tt-tone-2 { background: #faf5ff; border-color: #e9d5ff; }
.tt-grid .tt-tone-3 { background: #fffbeb; border-color: #fde68a; }
.tt-grid .tt-tone-4 { background: #fef2f2; border-color: #fecaca; }
.tt-lesson-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}
.tt-lesson-meta {
  display: block;
  font-size: 9px;
  color: #8C9F7E;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tt-lesson-chip {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(45, 58, 48, 0.08);
  color: #2D3A30;
  max-width: fit-content;
}
.tt-lesson-plans {
  font-size: 8px;
  font-weight: 700;
  color: #A67C52;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tt-lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.tt-btn {
  border: none;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: #2D3A30;
  color: #EFEBE4;
}
.tt-btn-muted {
  background: #F7F5F0;
  color: #8C9F7E;
  border: 1px solid #E6E2D8;
}
.tt-free {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px dashed #d6d3d1;
  background: #FAF8F5;
  color: #a8a29e;
  font-size: 10px;
  font-style: italic;
  font-weight: 500;
}

/* --- Missing arbitrary utilities (templates) --- */
.bg-\[\#2D3A30\]\/15 { background-color: rgba(45,58,48,0.15); }
.bg-\[\#728564\] { background-color: #728564; }
.bg-\[\#85613c\] { background-color: #85613c; }
.bg-\[\#8d653d\] { background-color: #8d653d; }
.bg-\[\#916b43\] { background-color: #916b43; }
.bg-\[\#E3DCCE\] { background-color: #E3DCCE; }
.bg-\[\#F0FDF4\] { background-color: #F0FDF4; }
.bg-\[\#F2ECE0\]\/10 { background-color: rgba(242,236,224,0.1); }
.bg-\[\#F7F5F0\]\/40 { background-color: rgba(247,245,240,0.4); }
.border-\[\#8C9F7E\]\/40 { border-color: rgba(140,159,126,0.4); }
.border-\[\#A67C52\] { border-color: #A67C52; }
.ring-\[\#8C9F7E\] { --tw-ring-color: #8C9F7E; box-shadow: 0 0 0 2px #8C9F7E; }
.text-\[\#202922\] { color: #202922; }
.text-\[\#3D3D3D\] { color: #3D3D3D; }
.text-\[\#5A5A5A\] { color: #5A5A5A; }
.text-\[\#EFEBE4\]\/80 { color: rgba(239,235,228,0.8); }
.placeholder-\[\#8C9F7E\]\/60::placeholder { color: rgba(140,159,126,0.6); }

/* --- Glass UI finish (cream / sage / ink, local-only) --- */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-panel {
    background: rgba(253, 252, 251, 0.55);
    -webkit-backdrop-filter: saturate(140%) blur(var(--glass-blur));
    backdrop-filter: saturate(140%) blur(var(--glass-blur));
  }
}
.school-header,
.glass-header {
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(45, 58, 48, 0.94), rgba(45, 58, 48, 0.88));
  color: var(--header-fg);
  border-bottom: 1px solid rgba(140, 159, 126, 0.28);
  box-shadow: 0 4px 24px rgba(45, 58, 48, 0.18);
}
#flash-messages,
#client-toast {
  flex-shrink: 0;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-header,
  .school-header {
    background: rgba(45, 58, 48, 0.82);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    backdrop-filter: saturate(150%) blur(12px);
  }
}
.glass-rail,
.school-rail.glass-rail {
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--glass-border);
  box-shadow: inset -1px 0 0 rgba(230, 226, 216, 0.5);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-rail,
  .school-rail.glass-rail {
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
.glass-footer,
.school-footer,
.platform-footer {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--glass-border);
  padding: 0.2rem 0.75rem;
  font-size: 0.625rem;
  line-height: 1.25;
  text-align: center;
  color: #8C9F7E;
  z-index: 40;
}
.school-footer p,
.platform-footer p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.school-footer .font-serif,
.platform-footer .font-serif {
  font-size: 0.6875rem;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-footer,
  .school-footer,
  .platform-footer {
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

/* Platform operator shell — platform.css only (no Bootstrap/Tabler weight) */
.platform-shell {
  min-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.platform-shell > main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Platform tenant workspace / branches — Tabler-inspired, Elimu palette */
.platform-workspace-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem;
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.platform-workspace-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .platform-workspace-layout { flex-direction: row; }
}
.platform-rail {
  width: 100%;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .platform-rail { width: 16rem; flex: 0 0 16rem; }
  .platform-rail.is-collapsed { width: 4.25rem; flex: 0 0 4.25rem; }
  .platform-rail.is-collapsed .sidebar-text,
  .platform-rail.is-collapsed #sidebar-title,
  .platform-rail.is-collapsed #quick-info-body,
  .platform-rail.is-collapsed #quick-info-arrow { display: none; }
}
.platform-rail-card {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: var(--glass-shadow);
}
.platform-pane-card {
  flex: 1 1 auto;
  min-width: 0;
  background: #fff;
  border: 1px solid #E6E2D8;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  min-height: 28rem;
}
.platform-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.platform-tab-btn:hover {
  background: #F7F5F0;
  color: #2D3A30;
}
.platform-tab-btn.is-active,
.platform-tab-btn.active {
  background: #2D3A30;
  color: #EFEBE4;
  font-weight: 700;
}
.platform-tab-btn.is-active .platform-tab-icon,
.platform-tab-btn.active .platform-tab-icon {
  filter: brightness(0) invert(0.93);
}
.platform-tab-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  opacity: 0.8;
}
.platform-quick-info {
  background: rgba(45, 58, 48, 0.05);
  border: 1px solid rgba(140, 159, 126, 0.2);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.6875rem;
  color: #64748b;
}
.platform-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.school-pane {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(140, 159, 126, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(166, 124, 82, 0.08), transparent 50%),
    var(--bg);
}
.school-pane-card.glass-panel {
  border-radius: 1rem;
  min-height: 28rem;
  max-width: 72rem;
  padding: 1.5rem;
}
.school-nav-link {
  background: rgba(255, 255, 255, 0.35);
  border-color: transparent;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.school-nav-link:hover {
  background: rgba(247, 245, 240, 0.85);
  border-color: rgba(230, 226, 216, 0.8);
  box-shadow: 0 1px 2px rgba(45, 58, 48, 0.05);
}
.school-nav-link.is-active {
  background: rgba(45, 58, 48, 0.92);
  box-shadow: 0 4px 14px rgba(45, 58, 48, 0.2);
  font-weight: 600;
}
.profile-field-sm {
  width: 12rem;
  max-width: 100%;
}
.platform-glass-card {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  box-shadow: var(--glass-shadow);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .platform-glass-card {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: saturate(140%) blur(var(--glass-blur));
    backdrop-filter: saturate(140%) blur(var(--glass-blur));
  }
}

/* ------------------------------------------------------------------
   Tabler-inspired components — Elimu palette, no Bootstrap/CDN
   ------------------------------------------------------------------ */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.page-pretitle {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.page-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  color: var(--header);
  line-height: 1.3;
}
.page-description {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--accent);
  max-width: 42rem;
}
.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.page-header-actions a {
  font-size: 0.75rem;
  font-weight: 700;
  color: #A67C52;
  text-decoration: underline;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
}
.stat-card {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 5.5rem;
}
.stat-card-label {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--header);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat-card-value--sm { font-size: 1.125rem; }
.stat-card-hint {
  font-size: 0.6875rem;
  color: #6b7280;
}

.elimu-card {
  background: #fff;
  border: 1px solid #E6E2D8;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.elimu-card-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #F7F5F0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--header);
  background: rgba(247, 245, 240, 0.35);
}
.elimu-card-body { padding: 0; }
.elimu-card-body--padded { padding: 1rem; }

.card-table-wrap { overflow-x: auto; }
.card-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.card-table thead th {
  background: rgba(247, 245, 240, 0.65);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #E6E2D8;
  white-space: nowrap;
}
.card-table tbody td {
  padding: 0.65rem 0.85rem;
  color: var(--header);
  border-bottom: 1px solid #F7F5F0;
  vertical-align: middle;
}
.card-table tbody tr:last-child td { border-bottom: none; }
.card-table tbody tr:hover td { background: rgba(247, 245, 240, 0.45); }

.elimu-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.elimu-badge--accent { background: rgba(140, 159, 126, 0.15); color: #2D3A30; }
.elimu-badge--warm { background: rgba(166, 124, 82, 0.12); color: #7a5a38; }
.elimu-badge--ok { background: #ecfdf5; color: #065f46; }
.elimu-badge--warn { background: #fffbeb; color: #92400e; }
.elimu-badge--muted { background: #f3f4f6; color: #6b7280; }

.elimu-pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.w-20 { width: 5rem; }

.empty-state {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--accent);
}
.empty-state-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  color: #c4cbb8;
}
.empty-state-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--header);
  margin: 0 0 0.35rem;
}
.empty-state-text {
  font-size: 0.75rem;
  margin: 0;
  color: #8C9F7E;
}

.elimu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.25;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.elimu-btn--primary {
  background: #A67C52;
  color: #fff;
  box-shadow: 0 1px 2px rgba(45, 58, 48, 0.12);
}
.elimu-btn--primary:hover { background: #916b43; }
.elimu-btn--dark {
  background: #2D3A30;
  color: #EFEBE4;
}
.elimu-btn--dark:hover { background: #3D4D40; }
.elimu-btn--ghost {
  background: rgba(247, 245, 240, 0.8);
  color: #2D3A30;
  border: 1px solid #E6E2D8;
}
.elimu-btn--ghost:hover { background: #fff; }

.elimu-form-panel {
  background: #FAF8F5;
  border: 1px solid #E6E2D8;
  border-radius: 0.75rem;
  padding: 1rem;
}
.elimu-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}
.elimu-alert--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.elimu-alert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.elimu-alert--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.elimu-alert-dismiss {
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.elimu-alert-dismiss:hover { opacity: 1; }

.feature-card {
  display: block;
  background: linear-gradient(135deg, #2D3A30 0%, #3D4D40 100%);
  color: #EFEBE4;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(140, 159, 126, 0.35);
  box-shadow: 0 4px 14px rgba(45, 58, 48, 0.15);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(45, 58, 48, 0.2);
}
.feature-card-kicker {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8C9F7E;
  font-family: ui-monospace, monospace;
}
.feature-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: ui-serif, Georgia, serif;
  color: #fff;
  margin: 0.35rem 0 0.25rem;
}
.feature-card-text {
  font-size: 0.6875rem;
  color: rgba(239, 235, 228, 0.82);
  margin: 0;
  line-height: 1.45;
}

/* Platform operator modals */
.elimu-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(45, 58, 48, 0.45);
  backdrop-filter: blur(4px);
}
.elimu-modal-backdrop.hidden { display: none; }
.elimu-modal {
  width: 100%;
  max-width: 28rem;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 0.75rem;
}
.elimu-modal--sm { max-width: 24rem; }
.elimu-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  background: #2D3A30;
  color: #fff;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(140, 159, 126, 0.25);
}
.elimu-modal-title {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: ui-serif, Georgia, serif;
  margin: 0;
  color: #fff;
}
.elimu-modal-subtitle {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8C9F7E;
  margin: 0.15rem 0 0;
}
.elimu-modal-body {
  overflow-y: auto;
  flex: 1;
}
.elimu-modal-body .elimu-form-panel {
  margin: 0;
  border: none;
  border-radius: 0;
  background: #FDFCFB;
}
.elimu-field { margin-bottom: 0.65rem; }
.elimu-field-label {
  display: block;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8C9F7E;
  margin-bottom: 0.25rem;
}
.elimu-field-input,
.elimu-field-select,
.elimu-field-textarea {
  width: 100%;
  border: 1px solid #E6E2D8;
  border-radius: 0.75rem;
  padding: 0.45rem 0.65rem;
  background: #fff;
  color: #2D3A30;
  font-size: 0.75rem;
  outline: none;
}
.elimu-field-input:focus,
.elimu-field-select:focus,
.elimu-field-textarea:focus {
  border-color: #8C9F7E;
}
.elimu-field-textarea { min-height: 4.5rem; resize: vertical; }
.elimu-field-input--mono { font-family: ui-monospace, monospace; }
.elimu-photo-panel {
  background: #FAF8F5;
  border: 1px solid #E6E2D8;
  border-radius: 0.75rem;
  padding: 0.65rem;
}
.elimu-photo-preview {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid #E6E2D8;
  background: #F7F5F0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 0.5rem;
  font-weight: 700;
  color: #8C9F7E;
  font-family: ui-monospace, monospace;
}
.elimu-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  border-top: 1px solid #E6E2D8;
}
.elimu-modal-actions .elimu-btn { min-width: 5.5rem; }

/* Sidebar nav — Tabler-style icon row + active accent */
.school-nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.school-nav-link-icon {
  flex: 0 0 1.125rem;
  width: 1.125rem;
  height: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.school-nav-link-icon-img {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
  opacity: 0.72;
}
.school-nav-link.is-active .school-nav-link-icon-img {
  opacity: 1;
  filter: brightness(0) invert(0.93);
}
@media (min-width: 768px) {
  .school-nav-link.is-active {
    border-left: 3px solid #8C9F7E;
    padding-left: calc(0.85rem - 3px);
  }
}
