@font-face {
  font-family: Vazirmatn;
  src: url("./fonts/vazirmatn-arabic-v16.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  size-adjust: 104%;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("./fonts/noto-sans-arabic-v33.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+204F, U+2E41,
    U+FB50-FDFF, U+FE70-FEFC, U+102E0-102FB, U+10E60-10EFF, U+1EE00-1EEFF;
}

@font-face {
  font-family: Geist;
  src: url("./fonts/geist-latin-ext-v5.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist;
  src: url("./fonts/geist-latin-v5.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --font-ui: Vazirmatn, "Noto Sans Arabic", Geist, "Segoe UI", Tahoma, system-ui, sans-serif;
  --ink: #211b37;
  --muted: #686279;
  --faint: #f1eef7;
  --line: #e7e1ed;
  --paper: #fff;
  --canvas: #f8f7fb;
  --nav: #19132e;
  --primary: #5839b8;
  --primary-dark: #442797;
  --primary-light: #eee8fb;
  --teal: #127866;
  --teal-light: #e5f5ef;
  --amber: #8d500a;
  --amber-light: #fff3df;
  --red: #a22e46;
  --red-light: #fcebf0;
  --blue: #2f559b;
  --blue-light: #eaf0fd;
  --shadow: 0 12px 36px #2416440b;
  --radius: 16px;
  font: 100%/1.5 var(--font-ui);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button:disabled { cursor: not-allowed; opacity: .52; }
:focus-visible { outline: 3px solid #8e6eeb; outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { width: 21px; height: 21px; flex: none; vertical-align: middle; }
.icon-sm .icon, .button .icon { width: 17px; height: 17px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 10px 15px; background: white; border-radius: 8px; }
.muted, .subtle { color: var(--muted); }
.subtle, .caption { font-size: .83rem; }
.wrap-anywhere { overflow-wrap: anywhere; }
.coordination-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.coordination-tabs span { background: #7260ad26; padding: 1px 7px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.coordination-row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 8px; max-width: 47%; }
.coordination-row-actions .chip { white-space: normal; text-align: right; }
.coordination-row .list-info { min-width: 0; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.loading-screen { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }

.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(340px, 1fr) minmax(390px, 1fr); }
.auth-art {
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  padding: clamp(38px, 7vw, 108px); color: white; min-height: 650px;
  background: radial-gradient(ellipse at 3% 96%, #443469 0, transparent 54%),
    radial-gradient(ellipse at 88% 71%, #472c7f 0, transparent 49%), #1b1535;
}
.auth-art::before, .auth-art::after {
  content: ""; position: absolute; pointer-events: none; border: 1px solid #a18ad456;
  width: 43vw; height: 43vw; min-width: 380px; min-height: 380px; transform: rotate(-32deg);
  border-radius: 22%; right: -20%; bottom: -32%;
}
.auth-art::after { right: -13%; bottom: -21%; border-color: #a18ad432; }
.auth-brand, .brand { display: flex; align-items: center; gap: 10px; font-size: 1.22rem; font-weight: 720; letter-spacing: -.055em; }
.brand { color: #f6f2ff; letter-spacing: -.045em; padding: 0 2px; }
.auth-brand img, .brand img { flex: none; width: 33px; height: 33px; object-fit: contain; }
.auth-tag { margin-top: 26px; color: #a7eee1; font-size: .72rem; text-transform: uppercase; font-weight: 750; letter-spacing: .16em; }
.auth-art h1 { position: relative; z-index: 1; margin: 13px 0 17px; max-width: 500px; font-size: clamp(2.8rem, 5.3vw, 5rem); line-height: 1; font-weight: 730; letter-spacing: -.085em; }
.auth-art p { position: relative; z-index: 1; max-width: 340px; color: #ded1f8; font-size: 1.05rem; }
.auth-art .product-label { position: relative; z-index: 1; color: #ddcdf6; font-size: .82rem; letter-spacing: .02em; margin-top: 30px; }
.auth-stage { display: grid; place-content: center; padding: 50px clamp(25px, 8vw, 140px); }
.auth-card { width: min(100%, 400px); min-width: min(340px, 100%); align-self: center; }
.auth-card .auth-brand { display: none; }
.auth-card h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.08; font-weight: 760; letter-spacing: -.067em; margin-bottom: 10px; }
.auth-card > .muted { margin-bottom: 26px; }
.auth-card .button { margin-top: 4px; width: 100%; min-height: 48px; }
.auth-card .auth-switch { margin-top: 14px; }

.workspace { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 28px 18px 18px;
  background: var(--nav); color: #ddd4ed; display: flex; flex-direction: column; gap: 26px;
}
.sidebar-meta { color: #bfb3d9; font-size: .78rem; margin: 7px 0 0 44px; }
.sidebar nav { display: grid; gap: 5px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; border: 0; border-radius: 9px;
  min-height: 43px; width: 100%; background: transparent; text-align: left;
  color: #e2d9ef; padding: 9px 12px; font-weight: 540; font-size: .91rem;
}
.nav-link .icon { opacity: .83; width: 18px; height: 18px; }
.nav-link:hover { background: #ffffff0c; color: white; }
.nav-link[aria-current="page"] { color: white; background: #3c2d61; font-weight: 680; }
.nav-link[aria-current="page"] .icon { color: #cdbaff; opacity: 1; }
.side-bottom { margin-top: auto; display: grid; gap: 13px; }
.side-rule { border-top: 1px solid #54466f; }
.side-note { color: #bfb3d9; font-size: .79rem; padding: 0 9px; }

.work-area { min-width: 0; }
.topbar {
  min-height: 69px; padding: 12px clamp(21px, 4vw, 53px); background: var(--paper);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.top-context { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 620; color: var(--muted); }
.top-context .icon { width: 16px; height: 16px; color: var(--primary); }
.topbar-actions, .account-button { display: flex; align-items: center; gap: 10px; }
.account-button {
  flex: 0 1 auto; gap: 9px; border: 0; background: var(--paper); border-radius: 9px;
  padding: 5px 7px 5px 5px; text-align: left; color: var(--ink);
}
.account-button:hover { background: var(--faint); }
.account-button .icon { width: 15px; height: 15px; }
.account-name { display: block; font-weight: 680; font-size: .85rem; line-height: 1.25; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-role { display: block; font-size: .69rem; color: var(--muted); }
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px;
  border-radius: 9px; background: var(--primary-light); color: var(--primary-dark);
  font-size: .77rem; font-weight: 750; letter-spacing: -.035em;
}
.mobile-menu { display: none !important; }
.mobile-nav { display: none; }
.content {
  width: min(100%, 1650px); margin-inline: auto; padding: 34px clamp(21px, 4vw, 53px) 55px;
}
.page-heading {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 25px; min-width: 0;
}
.heading-actions, .inline-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-heading h1 { font-size: clamp(1.9rem, 3.2vw, 3rem); letter-spacing: -.073em; line-height: 1.06; font-weight: 765; }
.page-heading p { color: var(--muted); margin-top: 8px; }
.time-label { color: var(--primary-dark); font-size: .83rem; font-weight: 650; }
.time-label .icon { width: 15px; height: 15px; margin-right: 4px; }

.welcome {
  position: relative; overflow: hidden; border-radius: 19px; color: #fbf7ff;
  min-height: 172px; padding: 27px 31px; background: linear-gradient(116deg, #2c1d50 6%, #463079 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 19px;
}
.welcome::before, .welcome::after {
  content: ""; position: absolute; top: -145px; right: 7%; width: 330px; height: 330px;
  pointer-events: none; border: 1px solid #d2bcff52; transform: rotate(33deg); border-radius: 30%;
}
.welcome::after { top: -120px; right: -2%; border-color: #d2bcff3c; }
.welcome > * { position: relative; z-index: 1; }
.welcome h2 { font-size: clamp(1.7rem, 3.3vw, 2.65rem); letter-spacing: -.073em; line-height: 1.1; margin: 5px 0 7px; font-weight: 715; }
.welcome .time-label { color: #b5f2e7; }
.welcome p { color: #e4d9f8; max-width: 490px; }
.welcome .button { white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 19px; }
.stat { color: inherit; display: grid; gap: 10px; text-align: left; padding: 16px; min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.stat:is(button):hover { border-color: #baabe0; }
.stat-top { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 590; font-size: .84rem; }
.stat-value { font-size: 1.85rem; line-height: 1; letter-spacing: -.066em; font-weight: 730; }
.stat-icon { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; flex: none; }
.stat-icon .icon { width: 16px; height: 16px; }
.tone-purple { background: var(--primary-light); color: var(--primary-dark); }
.tone-teal { background: var(--teal-light); color: var(--teal); }
.tone-amber { background: var(--amber-light); color: var(--amber); }
.tone-blue { background: var(--blue-light); color: var(--blue); }
.tone-red { background: var(--red-light); color: var(--red); }
.tone-neutral { background: var(--faint); color: var(--muted); }
.stack { display: grid; gap: 16px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(255px, 1fr); gap: 16px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-width: 0; box-shadow: 0 3px 9px #341b5b04; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 17px 19px 13px; }
.panel-head h2, .panel-head h3 { font-size: 1.08rem; line-height: 1.25; letter-spacing: -.04em; font-weight: 730; }
.panel-head p { font-size: .83rem; color: var(--muted); margin-top: 4px; }
.panel-body { padding: 0 19px 19px; }
.panel-head .button { flex: none; }
.empty-state {
  display: grid; justify-items: center; text-align: center; gap: 8px;
  padding: 24px 18px; min-height: 142px; align-content: center;
  border: 1px dashed #dbd1ee; border-radius: 11px; background: #faf8ff;
}
.empty-state > .stat-icon { width: 36px; height: 36px; }
.empty-state strong { font-weight: 700; }
.empty-state p { color: var(--muted); max-width: 360px; font-size: .85rem; }
.empty-state .button { margin-top: 3px; }
.pipeline { display: grid; gap: 0; }
.pipeline-row {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  text-align: left; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 8px 0; color: var(--ink);
}
.pipeline-row:last-child { border-bottom: 0; }
.pipeline-row:hover { color: var(--primary-dark); }
.dot { background: currentColor; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.chip {
  display: inline-flex; gap: 6px; align-items: center; width: fit-content; white-space: nowrap; border-radius: 6px;
  padding: 3px 8px; font-size: .74rem; font-weight: 650; line-height: 1.45;
}
.list-line { display: flex; align-items: center; gap: 12px; padding: 12px 1px; border-bottom: 1px solid var(--line); }
.list-line:last-child { border-bottom: 0; }
.list-info { flex: 1; min-width: 0; }
.list-info > strong { display: block; font-weight: 690; overflow-wrap: anywhere; }
.list-info p { font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.list-line .list-notes { margin-top: 5px; color: var(--ink); white-space: pre-wrap; }
.list-side { margin-left: auto; text-align: right; }
.announce-block { padding: 12px 14px; border: 1px solid #e2d4fa; border-radius: 10px; background: #f9f5ff; color: var(--primary-dark); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; vertical-align: middle;
  border: 1px solid transparent; border-radius: 8px; padding: 8px 13px; min-height: 39px;
  font-weight: 660; font-size: .86rem; line-height: 1.25; text-align: center; text-decoration: none;
}
.button-primary { background: var(--primary); color: white; }
.button-primary:hover { background: var(--primary-dark); color: white; }
.button-secondary { background: white; color: var(--ink); border-color: var(--line); }
.button-secondary:hover { background: var(--faint); color: var(--primary-dark); border-color: #d2c4e8; }
.button-light { background: #f8f4ff; color: var(--primary-dark); }
.button-light:hover { background: #e9dcff; color: var(--primary-dark); }
.button-quiet { background: transparent; color: var(--primary-dark); }
.button-quiet:hover { background: var(--primary-light); color: var(--primary-dark); }
.button-danger { background: var(--red-light); border-color: #f4d1da; color: var(--red); }
.button-danger:hover { background: #fad7e1; color: var(--red); }
.button-icon { width: 39px; min-width: 39px; padding: 8px; }
.text-button { border: 0; background: none; color: var(--primary-dark); padding: 1px 0; font-weight: 680; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 2px; }

.form-stack { display: grid; gap: 13px; }
.field { display: grid; gap: 5px; align-content: start; min-width: 0; font-size: .86rem; font-weight: 660; }
.field input, .field select, .field textarea, .search-field input {
  background: white; color: var(--ink); border: 1px solid #d8cfe4; border-radius: 8px;
  min-height: 41px; width: 100%; padding: 8px 10px; font-weight: 465;
}
.field input:focus, .field select:focus, .field textarea:focus, .search-field input:focus { outline: 2px solid #ab91ec; border-color: #9b7ed9; outline-offset: 0; }
.field textarea { min-height: 95px; resize: vertical; }
.field :is(input, textarea)::placeholder, .search-field input::placeholder { color: #7e758b; opacity: 1; }
.field .caption { color: var(--muted); font-weight: 450; }
.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); font-size: .88rem; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); margin: 3px 0 0; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.span-two { grid-column: 1/-1; }
.notice { border: 1px solid #e0d4f6; background: #f9f5ff; color: var(--primary-dark); padding: 10px 12px; border-radius: 9px; font-size: .875rem; overflow-wrap: anywhere; }
.notice-error { background: var(--red-light); color: var(--red); border-color: #f4d1da; }
.notice-warning { background: var(--amber-light); color: var(--amber); border-color: #f3ddb5; }
.notice-success { background: var(--teal-light); color: var(--teal); border-color: #c7e9da; }
.content > .notice { margin-bottom: 15px; }

.filter-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: flex-end; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.filter-row .field { min-width: 145px; }
.filter-row .field select { max-width: 240px; }
.search-field { flex: 1 1 205px; min-width: 150px; position: relative; }
.search-field .icon { position: absolute; pointer-events: none; width: 16px; height: 16px; left: 11px; bottom: 12px; color: var(--muted); }
.search-field input { padding-inline-start: 35px; }
.table-scroll { overflow: auto; }
.table { border-collapse: collapse; width: 100%; text-align: left; min-width: 590px; }
.table th { background: #faf8fc; color: var(--muted); font-size: .76rem; font-weight: 650; }
.table td, .table th { padding: 9px 13px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child, .table th:first-child { padding-left: 17px; }
.table td:last-child, .table th:last-child { padding-right: 17px; }
.table td .text-button { font-size: .9rem; }
.table tr:hover td { background: #fcfaff; }
.table .school-column { min-width: 175px; }
.table .school-column > .subtle { display: block; }
.table-footer { padding: 10px 17px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.mobile-list { display: none; }
.padded-empty { padding: 17px; }

dialog {
  border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: var(--paper);
  width: min(650px, calc(100vw - 34px)); max-height: calc(100dvh - 32px); padding: 0;
  box-shadow: 0 23px 95px #110b3188;
}
dialog::backdrop { background: #21163382; }
dialog.dialog-wide { width: min(800px, calc(100vw - 34px)); }
dialog.dialog-compact { width: min(445px, calc(100vw - 34px)); }
.dialog-header {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between;
  background: var(--paper); gap: 13px; padding: 18px 19px 14px; border-bottom: 1px solid var(--line);
}
.dialog-header h2 { font-size: 1.35rem; letter-spacing: -.048em; overflow-wrap: anywhere; font-weight: 735; }
.dialog-header p { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.dialog-body { padding: 17px 19px 20px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 7px; }
.dialog-body > .notice:not([hidden]) { margin-bottom: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 18px; padding: 14px; background: #fbf9fe; border: 1px solid var(--line); border-radius: 10px; }
.detail-grid dt { font-size: .76rem; color: var(--muted); font-weight: 640; }
.detail-grid dd { font-size: .9rem; overflow-wrap: anywhere; }
.detail-section + .detail-section { border-top: 1px solid var(--line); padding-top: 13px; }
.detail-section h3 { margin-bottom: 7px; font-size: .97rem; letter-spacing: -.035em; }
.preview { display: grid; gap: 11px; margin-top: 10px; }
.preview .table-scroll { max-height: 270px; border: 1px solid var(--line); border-radius: 9px; }
.preview .table { min-width: 440px; font-size: .82rem; }
.preview .table th { position: sticky; top: 0; }
.preview .table td { padding-block: 6px; overflow-wrap: anywhere; }
.preview-summary, .filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.help-panel .list-line { align-items: flex-start; }
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 10; max-width: min(470px, calc(100vw - 40px));
  display: flex; gap: 10px; align-items: center; background: #253d33; color: white;
  border-radius: 10px; padding: 12px 15px; box-shadow: var(--shadow); font-weight: 595;
}
.toast .icon { width: 19px; height: 19px; }

@media (max-width: 1060px) {
  .workspace { grid-template-columns: 197px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); }
  .stats { gap: 9px; }
  .stat { padding: 12px; }
}

@media (max-width: 960px) {
  .workspace { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 61px; padding-inline: 16px; }
  .top-context { color: var(--ink); font-size: .91rem; }
  .top-context img { width: 28px; height: 28px; }
  .content { padding: 24px 16px 95px; }
  .mobile-nav {
    display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; position: fixed; left: 0; right: 0; bottom: 0;
    border-top: 1px solid var(--line); background: var(--paper); z-index: 5;
    padding: 4px 6px max(4px, env(safe-area-inset-bottom));
  }
  .mobile-nav .nav-link { justify-content: center; flex-direction: column; gap: 2px; color: var(--muted); min-height: 50px; font-size: .69rem; padding: 4px 2px; overflow-wrap: anywhere; text-align: center; }
  .mobile-nav .nav-link[aria-current="page"] { color: var(--primary-dark); background: var(--primary-light); }
  .mobile-nav .nav-link[aria-current="page"] .icon { color: var(--primary-dark); }
  .toast { bottom: 71px; }
  .mobile-menu { display: inline-flex !important; }
  .desktop-top-label { display: none; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .auth-stage { min-height: 100dvh; }
  .auth-card .auth-brand { display: flex; margin-bottom: 25px; }
}

@media (max-width: 560px) {
  .content { padding-inline: 12px; }
  .account-role, .account-name { display: none; }
  .topbar-actions { gap: 3px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { gap: 8px; }
  .page-heading { margin-bottom: 16px; align-items: start; flex-direction: column; gap: 11px; }
  .page-heading h1 { font-size: 2.12rem; }
  .page-heading p { margin-top: 4px; font-size: .9rem; }
  .welcome { padding: 19px; min-height: 0; flex-direction: column; align-items: flex-start; margin-bottom: 13px; }
  .welcome::before, .welcome::after { right: -75px; width: 240px; height: 240px; top: -150px; }
  .welcome::after { right: -100px; top: -131px; }
  .welcome h2 { font-size: 2rem; }
  .welcome p { font-size: .88rem; }
  .panel-head { padding: 13px 12px 10px; }
  .panel-body { padding: 0 12px 12px; }
  .panel-head .button { min-height: 35px; padding: 6px 7px; }
  .filter-row { padding: 11px; }
  .filter-row .field { min-width: min(132px, 100%); flex: 1 1 130px; }
  .filter-row .field select { max-width: none; }
  .schools-table { display: none; }
  .mobile-list { display: block; padding: 1px 11px; }
  .mobile-list .list-line { gap: 8px; }
  .list-side .button-quiet { padding-inline: 5px; }
  .school-mobile-content { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
  .table-footer { padding-inline: 11px; }
  dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  dialog.dialog-wide, dialog.dialog-compact { width: calc(100% - 16px); }
  .dialog-header { padding: 13px 12px 10px; }
  .dialog-body { padding: 12px; }
  .form-grid, .detail-grid { gap: 9px; }
  .form-grid .field .caption { font-size: .75rem; }
}

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