:root {
  color-scheme: dark;
  --ink: #e8eef5;
  --muted: #91a1b5;
  --faint: #718198;
  --navy-950: #0c1522;
  --navy-900: #101b2b;
  --navy-850: #132235;
  --navy-800: #17283c;
  --navy-700: #23364b;
  --line: rgba(159, 181, 207, 0.13);
  --teal: #45c7b5;
  --blue: #70aaff;
  --gold: #f0b968;
  --coral: #e8838d;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 360px; min-height: 100%; background: var(--navy-950); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font-body); font-size: 14px; background: radial-gradient(ellipse at 87% 0%, rgba(52, 94, 120, 0.15), transparent 34%), var(--navy-950); }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 246px; flex-direction: column; padding: 25px 16px 18px; border-right: 1px solid var(--line); background: rgba(13, 23, 36, 0.96); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 7px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(69, 199, 181, 0.23); border-radius: 11px; color: var(--teal); background: linear-gradient(145deg, rgba(69, 199, 181, 0.17), rgba(69, 199, 181, 0.04)); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark-large { width: 52px; height: 52px; border-radius: 15px; }
.brand-mark-large svg { width: 28px; height: 28px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-family: var(--font-display); font-size: 17px; letter-spacing: 0; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.workspace-label, .eyebrow, .sidebar-caption, .lab-sidebar-heading, .section-explanation > span { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: 0; }
.workspace-label { margin: 42px 10px 12px; }
.side-nav { display: grid; gap: 5px; }
.nav-item { display: flex; min-height: 43px; align-items: center; gap: 12px; padding: 0 11px; border: 1px solid transparent; border-radius: 7px; color: #a7b5c6; background: transparent; cursor: pointer; text-align: left; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.nav-item svg { width: 17px; height: 17px; color: #8394aa; }
.nav-item:hover { color: var(--ink); background: rgba(132, 160, 190, 0.08); }
.nav-item.is-active { border-color: rgba(69, 199, 181, 0.14); color: #e7f5f2; background: rgba(69, 199, 181, 0.1); }
.nav-item.is-active svg { color: var(--teal); }
.sidebar-bottom { margin-top: auto; }
.runtime-card { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(27, 44, 64, 0.55); }
.runtime-card > span:last-child { display: grid; gap: 3px; }
.runtime-card strong { font-size: 11px; font-weight: 600; }
.runtime-card small { color: var(--muted); font-size: 10px; }
.runtime-dot, .status-pulse { position: relative; display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--teal); }
.runtime-dot::after, .status-pulse::after { position: absolute; inset: -4px; border: 1px solid rgba(69, 199, 181, 0.35); border-radius: inherit; content: ""; }
.sidebar-caption { margin: 16px 3px 0; font-size: 9px; }
.sidebar-caption span { padding: 0 4px; color: var(--teal); }
.main-area { width: calc(100% - 246px); min-width: 0; min-height: 100vh; margin-left: 246px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; height: 68px; align-items: center; justify-content: space-between; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgba(12, 21, 34, 0.87); backdrop-filter: blur(16px); }
.breadcrumb, .topbar-actions { display: flex; align-items: center; }
.breadcrumb { gap: 11px; color: var(--muted); font-size: 12px; }
.breadcrumb svg { width: 14px; height: 14px; color: var(--faint); }
.breadcrumb strong { color: #dce5ef; font-weight: 600; }
.topbar-actions { gap: 15px; }
.topbar-date { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.topbar-date svg { width: 15px; height: 15px; }
.avatar { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(112, 170, 255, 0.22); border-radius: 50%; color: #b6d2fb; background: rgba(112, 170, 255, 0.13); font-size: 10px; font-weight: 700; }
.icon-button { display: inline-grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: #a9b8cb; background: rgba(24, 40, 59, 0.58); cursor: pointer; transition: color 150ms ease, border-color 150ms ease, background 150ms ease; }
.icon-button:hover { border-color: rgba(69, 199, 181, 0.35); color: var(--teal); background: rgba(69, 199, 181, 0.08); }
.icon-button svg { width: 16px; height: 16px; }
.menu-button { display: none; }
.button { display: inline-flex; min-height: 35px; align-items: center; justify-content: center; gap: 8px; padding: 0 11px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 600; transition: background 150ms ease, border-color 150ms ease, transform 150ms ease; }
.button svg { width: 15px; height: 15px; }
.button:active { transform: translateY(1px); }
.button-quiet { border-color: var(--line); color: #c2cede; background: rgba(23, 40, 60, 0.68); }
.button-quiet:hover { border-color: rgba(112, 170, 255, 0.35); background: rgba(112, 170, 255, 0.1); }
.button-primary { border-color: rgba(69, 199, 181, 0.45); color: #08251f; background: var(--teal); }
.button-primary:hover { background: #64d5c4; }
.button:disabled { opacity: 0.55; cursor: wait; }
.view-container { max-width: 1560px; margin: 0 auto; padding: 31px 36px 36px; }
.view { animation: view-enter 250ms ease both; }
.view[hidden] { display: none; }
@keyframes view-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 9px; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--font-display); letter-spacing: 0; }
.page-heading h1 { margin: 0; font-size: 27px; line-height: 1.2; }
.page-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.data-badge, .record-count { display: inline-flex; min-height: 29px; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; color: #b9c7d7; background: rgba(24, 39, 57, 0.63); font-size: 10px; white-space: nowrap; }
.data-badge > svg { width: 14px; height: 14px; color: var(--teal); }
.status-pulse { width: 6px; height: 6px; }
.status-pulse::after { inset: -3px; }
.record-count { color: var(--teal); }
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi-card { position: relative; min-width: 0; min-height: 118px; overflow: hidden; padding: 16px 17px 14px; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(145deg, rgba(26, 43, 62, 0.94), rgba(18, 31, 47, 0.96)); }
.kpi-card::after { position: absolute; right: -24px; bottom: -44px; width: 100px; height: 100px; border: 1px solid currentColor; border-radius: 50%; color: var(--accent); opacity: 0.08; box-shadow: 0 0 0 12px currentColor, 0 0 0 25px currentColor; content: ""; }
.accent-teal { --accent: var(--teal); }
.accent-blue { --accent: var(--blue); }
.accent-gold { --accent: var(--gold); }
.accent-coral { --accent: var(--coral); }
.kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #afbdcd; font-size: 11px; }
.kpi-label svg { width: 16px; height: 16px; color: var(--accent); }
.kpi-value { overflow: hidden; margin-top: 13px; color: #eef4fa; font-family: var(--font-display); font-size: 25px; font-weight: 600; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.kpi-value-text { font-size: 19px; }
.kpi-foot { margin-top: 7px; color: var(--muted); font-size: 10px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.panel { min-width: 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(155deg, rgba(21, 36, 54, 0.95), rgba(16, 29, 45, 0.97)); }
.panel-heading { display: flex; min-height: 35px; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-heading .eyebrow { margin-bottom: 5px; font-size: 8px; }
.panel-heading h2 { margin: 0; font-size: 15px; font-weight: 600; }
.panel-note { padding-top: 8px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.chart-panel { overflow: hidden; }
.chart-image { display: block; max-width: 100%; object-fit: contain; }
.chart-wide-image { width: 100%; height: auto; min-height: 160px; }
.chart-donut-image { width: min(100%, 340px); height: auto; margin: 1px auto -3px; }
.chart-wide { grid-column: span 1; }
.overview-grid > .chart-panel:first-child { grid-column: span 1; }
.text-link { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; border: 0; color: var(--teal); background: transparent; cursor: pointer; font-size: 10px; }
.text-link:hover { color: #8ce3d6; }
.text-link svg { width: 13px; height: 13px; }
.finance-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 20px 0 13px; }
.finance-total span { color: var(--muted); font-size: 11px; }
.finance-total strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.payment-track { display: flex; height: 7px; overflow: hidden; gap: 3px; border-radius: 6px; background: var(--navy-700); }
.payment-track span { display: block; width: 0; transition: width 350ms ease; }
#payment-track-paid { border-radius: 6px; background: var(--teal); }
#payment-track-pending { border-radius: 6px; background: var(--gold); }
.payment-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 11px; margin-top: 14px; }
.payment-legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.payment-legend strong { color: #dce7f1; font-weight: 600; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-teal { background: var(--teal); }
.dot-gold { background: var(--gold); }
.admissions-panel { grid-column: 1 / -1; }
.table-scroll { width: 100%; overflow: auto; scrollbar-color: #31455b transparent; scrollbar-width: thin; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: #8192a8; font-size: 9px; font-weight: 600; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid rgba(159, 181, 207, 0.08); color: #c7d2df; font-size: 10px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(126, 158, 191, 0.045); }
.compact-table { margin-top: 8px; }
.compact-table th:first-child, .compact-table td:first-child { padding-left: 0; }
.patient-cell { display: grid; gap: 3px; }
.patient-cell strong { color: #e3ebf4; font-size: 10px; font-weight: 600; }
.patient-cell span { color: var(--muted); font-size: 9px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid transparent; border-radius: 4px; font-size: 9px; }
.status-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-paid { border-color: rgba(69, 199, 181, 0.15); color: #73d5c7; background: rgba(69, 199, 181, 0.08); }
.status-pending { border-color: rgba(240, 185, 104, 0.16); color: #e9bd7a; background: rgba(240, 185, 104, 0.08); }
.view-footer { margin-top: 20px; color: var(--faint); font-size: 10px; }
.view-footer span { padding: 0 5px; color: var(--teal); }

.records-panel { padding: 0; }
.table-toolbar { display: flex; min-height: 68px; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.search-field { display: flex; min-width: 205px; max-width: 325px; height: 35px; flex: 1; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: rgba(10, 20, 32, 0.62); }
.search-field svg { width: 15px; height: 15px; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.search-field input::placeholder { color: #75859a; }
.filter-field { display: flex; height: 35px; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: rgba(10, 20, 32, 0.62); }
.filter-field span { font-size: 9px; white-space: nowrap; }
.filter-field select { max-width: 150px; border: 0; outline: 0; color: #d5deea; background: transparent; font-size: 10px; }
.filter-field option { color: var(--ink); background: var(--navy-850); }
.clear-filters { width: 35px; }
.records-scroll { min-height: 300px; }
.records-table { min-width: 1280px; }
.records-table th { padding: 12px 11px; }
.records-table td { padding: 12px 11px; }
.records-table th button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; font-size: inherit; font-weight: inherit; }
.records-table th button:hover { color: var(--teal); }
.records-table th button svg { width: 12px; height: 12px; }
.table-pagination { display: flex; min-height: 55px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.table-pagination > div { display: flex; align-items: center; gap: 9px; }
.table-pagination .icon-button { width: 29px; height: 29px; }
.page-indicator { min-width: 38px; color: #d5e0eb; text-align: center; }
.empty-state { padding: 30px !important; color: var(--muted) !important; text-align: center; }

.department-grid { grid-template-columns: minmax(0, 1.6fr) minmax(210px, 0.65fr); }
.department-grid .chart-wide { grid-column: auto; }
.department-leader { display: flex; flex-direction: column; justify-content: center; min-height: 180px; background: radial-gradient(ellipse at 100% 100%, rgba(69, 199, 181, 0.12), transparent 68%), linear-gradient(145deg, #172b3e, #122033); }
.department-leader .eyebrow { color: var(--teal); }
.leader-number { margin: 10px 0 4px; color: #f0f5fa; font-family: var(--font-display); font-size: 40px; font-weight: 600; }
.department-leader h2 { margin: 0 0 6px; color: #dce9f2; font-size: 17px; }
.department-leader p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.department-table-panel { grid-column: 1 / -1; }
.department-table-panel .data-table { margin-top: 9px; }
.department-table-panel th:first-child, .department-table-panel td:first-child { padding-left: 0; }
.department-table-panel td:nth-child(2) { color: var(--teal); font-weight: 600; }

.finance-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.finance-kpis .kpi-value { font-size: 21px; }
.finance-grid { grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.75fr); }
.collection-summary { display: grid; gap: 17px; margin-top: 20px; }
.collection-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px 12px; }
.collection-row > span { display: flex; align-items: center; gap: 7px; color: #b5c2d1; font-size: 11px; }
.collection-row > strong { color: #e3ebf3; font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.collection-row > small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.collection-meter { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 4px; background: rgba(130, 151, 175, 0.13); }
.collection-meter span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.collection-meter.dot-gold span { background: var(--gold); }

.visualization-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.visualization-grid .chart-panel { min-height: 257px; }
.visualization-grid .chart-image { margin-top: 10px; }

.lab-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: 13px; }
.lab-sidebar { position: sticky; top: 84px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(155deg, rgba(21, 36, 54, 0.95), rgba(16, 29, 45, 0.97)); }
.lab-sidebar-heading { display: flex; align-items: center; gap: 8px; padding: 14px 13px 11px; border-bottom: 1px solid var(--line); }
.lab-sidebar-heading svg { width: 14px; height: 14px; color: var(--teal); }
#code-section-nav { display: grid; gap: 2px; padding: 8px; }
#code-section-nav button { display: flex; min-height: 34px; align-items: center; gap: 9px; padding: 0 8px; border: 1px solid transparent; border-radius: 4px; color: #8fa0b4; background: transparent; cursor: pointer; font-size: 9px; text-align: left; }
#code-section-nav button span { color: #bdc9d7; font-size: 10px; }
#code-section-nav button:hover, #code-section-nav button.is-selected { border-color: rgba(69, 199, 181, 0.13); color: var(--teal); background: rgba(69, 199, 181, 0.08); }
#code-section-nav button.is-selected span { color: #e0eceb; }
.section-explanation { margin: 5px 10px 11px; padding: 11px; border-top: 1px solid var(--line); }
.section-explanation > span { font-size: 8px; }
.section-explanation p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.lab-main { display: grid; min-width: 0; gap: 12px; }
.code-panel { overflow: hidden; padding: 0; }
.code-toolbar { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.code-file, .code-actions { display: flex; align-items: center; gap: 9px; }
.code-file { color: #c8d3df; font-size: 10px; }
.python-file-icon { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid rgba(112, 170, 255, 0.2); border-radius: 4px; color: #9dc5ff; background: rgba(112, 170, 255, 0.1); font-family: var(--font-display); font-size: 9px; font-weight: 700; }
.code-file-badge { padding: 3px 5px; border: 1px solid var(--line); border-radius: 3px; color: var(--faint); font-size: 7px; }
.code-actions { gap: 7px; }
.code-actions .button { min-height: 32px; }
.code-editor { position: relative; height: min(66vh, 680px); min-height: 400px; overflow: hidden; background: #101a28; }
.code-editor pre, .code-editor textarea { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 17px 18px; border: 0; border-radius: 0; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 11px; font-weight: 400; line-height: 1.62; letter-spacing: 0; tab-size: 4; white-space: pre; overflow-wrap: normal; }
.code-editor pre { overflow: hidden; color: #d3deeb; pointer-events: none; }
.code-editor code { display: block; min-height: 100%; padding: 0; color: inherit; background: transparent; text-shadow: none; }
.code-editor textarea { z-index: 1; resize: none; overflow: auto; color: transparent; caret-color: #dbe8f5; background: transparent; -webkit-text-fill-color: transparent; }
.code-editor textarea::selection { color: transparent; background: rgba(69, 199, 181, 0.25); }
.code-editor textarea:focus-visible { outline: 0; }
.code-editor .token.comment { color: #72849b; }
.code-editor .token.keyword { color: #79b7ff; }
.code-editor .token.string { color: #9bd39a; }
.code-editor .token.function { color: #f0bd78; }
.code-editor .token.number, .code-editor .token.boolean { color: #db9bf4; }
.editor-status { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.editor-status span:first-child { display: flex; align-items: center; gap: 6px; }
.editor-status svg { width: 12px; height: 12px; color: var(--teal); }
.output-panel { overflow: hidden; padding: 0; }
.output-heading { display: flex; height: 39px; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid var(--line); color: #b8c5d3; font-size: 9px; font-weight: 700; }
.output-heading > div { display: flex; align-items: center; gap: 8px; }
.terminal-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 9px rgba(69, 199, 181, 0.35); }
#execution-status { color: var(--muted); font-size: 9px; font-weight: 400; }
#execution-status.is-error { color: var(--coral); }
#python-output { min-height: 110px; max-height: 310px; overflow: auto; margin: 0; padding: 14px; color: #b9c8d8; background: #0e1825; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 10px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }

.about-layout { display: grid; grid-template-columns: minmax(230px, 0.76fr) minmax(0, 1.6fr); align-items: start; gap: 13px; }
.project-identity { position: sticky; top: 86px; padding: 23px; background: radial-gradient(ellipse at 100% 0%, rgba(69, 199, 181, 0.12), transparent 55%), linear-gradient(155deg, #172a3d, #122033); }
.project-identity > .brand-mark { margin-bottom: 22px; }
.project-identity h2 { margin: 0 0 10px; font-size: 21px; }
.project-identity > p:not(.eyebrow) { margin: 0; color: #a8b7c8; font-size: 11px; line-height: 1.7; }
.identity-divider { height: 1px; margin: 19px 0; background: var(--line); }
.project-facts { display: grid; gap: 13px; margin: 0; }
.project-facts > div { display: flex; justify-content: space-between; gap: 14px; }
.project-facts dt { color: var(--muted); font-size: 10px; }
.project-facts dd { margin: 0; color: #dce6ef; font-size: 10px; font-weight: 600; text-align: right; }
.about-details { display: grid; gap: 12px; }
.about-details > .panel { padding: 17px 18px; }
.about-details .panel-heading { align-items: center; }
.about-icon { width: 18px; height: 18px; color: var(--teal); }
.objective-list { display: grid; gap: 10px; margin: 14px 0 0; padding-left: 17px; color: #aebccd; font-size: 10px; line-height: 1.55; }
.objective-list li::marker { color: var(--teal); }
.method-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }
.method-steps > div { display: flex; gap: 9px; }
.method-steps > div > span { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(69, 199, 181, 0.2); border-radius: 5px; color: var(--teal); background: rgba(69, 199, 181, 0.07); font-size: 8px; font-weight: 700; }
.method-steps p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.method-steps strong { color: #dbe5ed; }
.technology-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.technology-list span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 4px; color: #c3cfdb; background: rgba(10, 22, 35, 0.48); font-size: 9px; }
.conclusion-copy { margin: 12px 0 0; color: #aebccd; font-size: 10px; line-height: 1.7; }
.editable-hint { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.editable-hint svg { width: 12px; height: 12px; }
.student-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 15px; }
.student-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 9px; }
.student-fields input { min-width: 0; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; color: #e1eaf2; background: rgba(10, 20, 32, 0.56); font-size: 10px; }
.student-fields input::placeholder { color: #738399; }

.loading-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 35%, rgba(38, 101, 111, 0.18), transparent 43%), var(--navy-950); }
.loading-screen[hidden] { display: none; }
.loading-panel { width: min(100%, 390px); text-align: center; animation: load-enter 500ms ease both; }
@keyframes load-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.loading-panel .brand-mark { margin: 0 auto 22px; }
.loading-panel .eyebrow { margin-bottom: 9px; }
.loading-panel h1 { margin: 0; font-size: 23px; }
.loading-copy { min-height: 20px; margin: 9px 0 20px; color: var(--muted); font-size: 11px; }
.loading-track { height: 3px; overflow: hidden; border-radius: 4px; background: rgba(118, 148, 178, 0.15); }
.loading-track span { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--teal); animation: loading-progress 1.4s ease-in-out infinite; }
@keyframes loading-progress { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.loading-error { margin-top: 20px; }
.loading-error p { color: #e8a4a8; font-size: 11px; line-height: 1.6; }
.loading-error .button { margin: 0 auto; }
.sidebar-scrim { display: none; }

@media (min-width: 1500px) {
  .view-container { padding-right: 48px; padding-left: 48px; }
  .kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr); }
  .overview-grid > .chart-panel:first-child { grid-column: auto; }
  .overview-grid > .chart-panel:nth-child(2) { grid-row: span 2; }
  .overview-grid > .admissions-panel { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .main-area { width: calc(100% - 220px); margin-left: 220px; }
  .topbar { padding-right: 24px; padding-left: 24px; }
  .view-container { padding-right: 24px; padding-left: 24px; }
  .finance-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .department-grid { grid-template-columns: minmax(0, 1.3fr) minmax(190px, 0.7fr); }
}
@media (max-width: 800px) {
  .sidebar { z-index: 40; width: 260px; transform: translateX(-101%); transition: transform 220ms ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim.is-visible { position: fixed; inset: 0; z-index: 30; display: block; border: 0; background: rgba(3, 9, 15, 0.66); }
  .main-area { width: 100%; margin-left: 0; }
  .menu-button { display: inline-grid; margin-right: 11px; }
  .topbar { height: 60px; justify-content: flex-start; padding: 0 17px; }
  .breadcrumb { flex: 1; }
  .topbar-actions { gap: 9px; }
  .topbar-date { display: none; }
  .topbar-actions .button { width: 35px; padding: 0; }
  .topbar-actions .button span { display: none; }
  .avatar { display: none; }
  .view-container { padding: 24px 18px 30px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .overview-grid > .chart-panel:first-child, .overview-grid > .admissions-panel { grid-column: auto; }
  .department-grid { grid-template-columns: minmax(0, 1fr); }
  .department-grid .department-table-panel { grid-column: auto; }
  .department-leader { min-height: 150px; }
  .finance-grid { grid-template-columns: minmax(0, 1fr); }
  .visualization-grid { grid-template-columns: minmax(0, 1fr); }
  .lab-layout { grid-template-columns: minmax(0, 1fr); }
  .lab-sidebar { position: static; }
  #code-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-explanation { margin-bottom: 8px; }
  .about-layout { grid-template-columns: minmax(0, 1fr); }
  .project-identity { position: static; }
}
@media (max-width: 520px) {
  .topbar { padding: 0 12px; }
  .breadcrumb { gap: 6px; font-size: 10px; }
  .breadcrumb svg { width: 12px; }
  .view-container { padding: 21px 12px 26px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .page-heading h1 { font-size: 23px; }
  .page-subtitle { max-width: 300px; font-size: 10px; line-height: 1.6; }
  .page-heading > .data-badge { align-self: flex-start; gap: 6px; padding: 0 7px; font-size: 8px; }
  .kpi-grid { gap: 8px; }
  .kpi-card { min-height: 107px; padding: 12px 11px; }
  .kpi-label { font-size: 9px; }
  .kpi-label svg { width: 14px; height: 14px; }
  .kpi-value { margin-top: 13px; font-size: 20px; }
  .kpi-value-text { font-size: 15px; }
  .kpi-foot { font-size: 8px; }
  .panel { padding: 14px 12px; }
  .records-panel { padding: 0; }
  .panel-heading h2 { font-size: 14px; }
  .panel-note { font-size: 8px; }
  .finance-total strong { font-size: 18px; }
  .table-toolbar { flex-wrap: wrap; gap: 7px; padding: 10px; }
  .search-field { min-width: calc(100% - 44px); max-width: none; }
  .filter-field { flex: 1; justify-content: space-between; }
  .filter-field select { max-width: 125px; }
  .filter-field span { font-size: 8px; }
  .records-table { min-width: 1280px; }
  .department-table-panel { overflow: hidden; }
  .department-table-panel .table-scroll { margin-right: -12px; }
  .method-steps { grid-template-columns: minmax(0, 1fr); }
  .student-fields { grid-template-columns: minmax(0, 1fr); }
  .code-toolbar { align-items: flex-start; flex-direction: column; padding: 9px; }
  .code-actions { width: 100%; }
  .code-actions .button { flex: 1; }
  .code-editor { height: 57vh; min-height: 330px; }
  .code-editor pre, .code-editor textarea { padding: 13px 11px; font-size: 10px; }
  #code-section-nav { grid-template-columns: minmax(0, 1fr); max-height: 180px; overflow: auto; }
  .data-badge { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}