/* /css/base.css */
/* ==========================================================
   AutoSchool-Контроль — main.css
   ========================================================== */

:root {
  /* Brand palette */
  --c-primary: #2dbdc8;
  --c-primary-dark: #249aa4;
  --c-primary-light: #eaf8fa;
  --c-accent: #d97706;
  --c-danger: #e5484d;
  --c-success: #17a673;
  --c-warning: #f5a524;

  /* Neutrals */
  --c-bg: #f4f6fb;
  --c-surface: #ffffff;
  --c-surface-2: #fbfcfd;
  --c-border: #dde7eb;
  --c-border-strong: #bfd2da;
  --c-text: #16202e;
  --c-text-muted: #6b7a8f;
  --c-text-soft: #7a939d;

  /* Layout */
  --sidebar-w: 268px;
  --topbar-h: 64px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --shadow-s: 0 1px 2px rgba(22, 32, 46, .06);
  --shadow-m: 0 4px 14px rgba(22, 32, 46, .08);
  --shadow-l: 0 14px 40px rgba(22, 32, 46, .14);

  --font: "Bahnschrift", "Segoe UI", system-ui, Arial, sans-serif;
  --transition: .18s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* /css/components.css */
/* ==========================================================
   TOP BAR
   ========================================================== */
.topbar {
  position: fixed;
  inset: 0 0 auto var(--sidebar-w);
  height: var(--topbar-h);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  z-index: 40;
}

.topbar__burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-s);
  background: var(--c-surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.topbar__search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.topbar__search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface-2);
  outline: none;
  transition: var(--transition);
}
.topbar__search input:focus {
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--c-primary-light);
}
.topbar__search::before {
  content: "";
  position: absolute;
  left: 13px; top: 50%;
  width: 15px; height: 15px;
  transform: translateY(-50%);
  background: var(--c-text-soft);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") center/contain no-repeat;
}

.topbar__spacer { flex: 1; }

.topbar__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.icon-btn:hover { background: var(--c-surface-2); border-color: var(--c-border); }
.icon-btn svg { width: 19px; height: 19px; stroke: var(--c-text-muted); }

.badge-dot {
  position: absolute; top: 6px; right: 6px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--c-danger);
  color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--c-surface);
}

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  cursor: pointer;
  transition: var(--transition);
}
.user-chip:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-s); }

.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), #6f9bff);
  color: #fff;
  font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.avatar--lg { width: 44px; height: 44px; font-size: 15px; }

.user-chip__meta { line-height: 1.15; }
.user-chip__name { font-weight: 600; font-size: 13px; }
.user-chip__org { font-size: 11px; color: var(--c-text-muted); }

/* ==========================================================
   SIDEBAR
   ========================================================== */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: #14243d;
  color: #cdd8e8;
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform var(--transition);
}

.sidebar__brand {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex: 0 0 auto;
}
.brand__logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--c-primary), #6f9bff);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.brand__logo svg { width: 19px; height: 19px; stroke: #fff; }
.brand__text { line-height: 1.1; }
.brand__name { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .2px; }
.brand__sub { font-size: 10.5px; color: #7f90aa; text-transform: uppercase; letter-spacing: .7px; }

.sidebar__alert {
  margin: 12px 12px 4px;
  padding: 11px 12px;
  border-radius: var(--radius-m);
  background: rgba(229, 72, 77, .12);
  border: 1px solid rgba(229, 72, 77, .38);
  font-size: 11.5px;
  line-height: 1.45;
  color: #ffc9cb;
  flex: 0 0 auto;
}
.sidebar__alert strong { color: #fff; }
.sidebar__alert a { color: #fff; }

.sidebar__balance {
  margin: 10px 12px 6px;
  padding: 10px 12px;
  border-radius: var(--radius-m);
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px;
  flex: 0 0 auto;
}
.sidebar__balance b { color: #fff; font-size: 13px; }

.sidebar__nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 10px 24px;
  scrollbar-width: thin;
  scrollbar-color: #33475f transparent;
}
.sidebar__nav::-webkit-scrollbar { width: 8px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: #33475f; border-radius: 8px; }

.nav__group { margin-bottom: 2px; }

.nav__group-head {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border: 0; background: transparent;
  color: #cdd8e8;
  font-size: 12.8px; font-weight: 600;
  border-radius: var(--radius-s);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}
.nav__group-head:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav__group-head .ico { width: 17px; height: 17px; stroke: #7f90aa; flex: 0 0 auto; }
.nav__group-head .arrow {
  margin-left: auto;
  width: 13px; height: 13px;
  stroke: #6f8098;
  transition: transform var(--transition);
}
.nav__group.is-open > .nav__group-head { background: rgba(30, 94, 255, .16); color: #fff; }
.nav__group.is-open > .nav__group-head .ico { stroke: #8fb2ff; }
.nav__group.is-open > .nav__group-head .arrow { transform: rotate(90deg); }

.nav__list {
  list-style: none;
  margin: 0; padding: 0 0 4px 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .26s ease;
}
.nav__group.is-open .nav__list { max-height: 1400px; }

.nav__list a {
  display: flex; align-items: center; gap: 8px;
  padding: 6.5px 10px 6.5px 37px;
  font-size: 12.6px;
  color: #a9b7cb;
  border-radius: var(--radius-s);
  position: relative;
  transition: var(--transition);
}
.nav__list a::before {
  content: "";
  position: absolute; left: 22px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: #4d6180;
  transform: translateY(-50%);
}
.nav__list a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav__list a.is-active { background: var(--c-primary); color: #fff; font-weight: 600; }
.nav__list a.is-active::before { background: #fff; }

.nav__count {
  margin-left: auto;
  min-width: 19px; height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--c-danger);
  color: #fff;
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}

.sidebar__foot {
  flex: 0 0 auto;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; gap: 8px;
}
.sidebar__foot a {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  border-radius: var(--radius-s);
  background: rgba(255,255,255,.06);
  color: #cdd8e8;
}
.sidebar__foot a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }

/* ==========================================================
   MAIN
   ========================================================== */
.main {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  min-height: 100vh;
}

.container { padding: 22px; max-width: 1360px; }

.breadcrumbs {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px;
  color: var(--c-text-muted);
  margin-bottom: 6px;
}
.breadcrumbs span.sep { color: var(--c-text-soft); }

.page-head {
  display: flex; align-items: flex-start; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.page-head__title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.page-head__sub { margin: 3px 0 0; color: var(--c-text-muted); font-size: 13px; }
.page-head__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: var(--radius-s);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn:hover { border-color: var(--c-border-strong); background: var(--c-surface-2); text-decoration: none; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; }

.btn--primary {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(30,94,255,.35);
}
.btn--primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); }

.btn--danger { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
.btn--danger:hover { filter: brightness(.94); background: var(--c-danger); }

.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--c-surface-2); border-color: var(--c-border); }

.btn--sm { height: 32px; padding: 0 11px; font-size: 12.3px; }

/* ---------- Cards ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.card__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.card__title { margin: 0; font-size: 15px; font-weight: 700; }
.card__sub { margin: 2px 0 0; font-size: 12px; color: var(--c-text-muted); }
.card__body { padding: 16px; }
.card__foot {
  padding: 12px 16px;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-2);
  display: flex; align-items: center; gap: 12px;
}
.card__head .spacer, .card__foot .spacer { flex: 1; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 16px; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- Stat cards ---------- */
.stat {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  padding: 16px;
  box-shadow: var(--shadow-s);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 4px;
  background: var(--c-primary);
}
.stat--ok::after { background: var(--c-success); }
.stat--warn::after { background: var(--c-warning); }
.stat--danger::after { background: var(--c-danger); }
.stat__label { font-size: 12px; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.stat__value { font-size: 26px; font-weight: 700; margin: 6px 0 2px; letter-spacing: -.5px; }
.stat__hint { font-size: 12px; color: var(--c-text-soft); }
.stat__hint b { color: var(--c-success); }
.stat__hint b.down { color: var(--c-danger); }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.tbl thead th {
  text-align: left;
  padding: 11px 16px;
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
table.tbl tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
table.tbl tbody tr { transition: background var(--transition); }
table.tbl tbody tr:hover { background: var(--c-primary-light); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl__id { font-variant-numeric: tabular-nums; color: var(--c-text-muted); font-weight: 600; }
.tbl__inn { font-variant-numeric: tabular-nums; }

.cell-org { display: flex; align-items: center; gap: 10px; }
.cell-org__name { font-weight: 600; }
.cell-org__login { font-size: 11.5px; color: var(--c-text-soft); }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  white-space: nowrap;
}
.chip--ok { background: rgba(23,166,115,.1); border-color: rgba(23,166,115,.3); color: #0e7a54; }
.chip--warn { background: rgba(245,165,36,.12); border-color: rgba(245,165,36,.35); color: #a26708; }
.chip--danger { background: rgba(229,72,77,.1); border-color: rgba(229,72,77,.32); color: #b3282c; }
.chip--info { background: var(--c-primary-light); border-color: rgba(30,94,255,.28); color: var(--c-primary-dark); }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.3px; font-weight: 600; color: var(--c-text-muted); }
.field label .req { color: var(--c-danger); }
.field input,
.field select,
.field textarea {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-s);
  background: var(--c-surface);
  outline: none;
  transition: var(--transition);
}
.field textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-light);
}
.field input[readonly] { background: var(--c-surface-2); color: var(--c-text-muted); }
.field__hint { font-size: 11.5px; color: var(--c-text-soft); }

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar .spacer { flex: 1; }

/* ---------- Alert banner ---------- */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 15px;
  border-radius: var(--radius-m);
  border: 1px solid;
  margin-bottom: 18px;
  font-size: 13px;
}
.alert--danger { background: rgba(229,72,77,.07); border-color: rgba(229,72,77,.32); color: #8f2124; }
.alert--warn { background: rgba(245,165,36,.1); border-color: rgba(245,165,36,.36); color: #8a5a06; }
.alert--info { background: var(--c-primary-light); border-color: rgba(30,94,255,.28); color: var(--c-primary-dark); }
.alert svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 1px; }
.alert__title { font-weight: 700; margin-bottom: 2px; }
.alert a { color: inherit; text-decoration: underline; }

/* ---------- Payment banner ---------- */
.pay-banner {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--radius-m);
  background: linear-gradient(110deg, #1b2c48, #24405f 60%, #2c5580);
  color: #e7eefb;
  margin-bottom: 18px;
  box-shadow: var(--shadow-m);
}
.pay-banner__icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center; flex: 0 0 auto;
}
.pay-banner__icon svg { width: 21px; height: 21px; stroke: #ffd48a; }
.pay-banner__text { flex: 1 1 320px; font-size: 13px; line-height: 1.45; }
.pay-banner__text strong { color: #fff; font-size: 14px; }
.pay-banner__meta { font-size: 12px; opacity: .8; margin-top: 3px; }
.pay-banner__meta b { color: #ffd48a; }

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--c-text-muted);
}
.empty svg { width: 46px; height: 46px; stroke: var(--c-border-strong); margin: 0 auto 12px; }
.empty h3 { margin: 0 0 6px; color: var(--c-text); font-size: 16px; }
.empty p { margin: 0 0 16px; font-size: 13px; }

/* ---------- Help / logout row ---------- */
.help-row {
  display: flex; justify-content: flex-end; gap: 14px;
  font-size: 12.5px; color: var(--c-text-muted);
  padding: 0 0 10px;
}
.help-row a { color: var(--c-text-muted); }
.help-row a:hover { color: var(--c-primary); }

/* ---------- Footer ---------- */
.footer {
  padding: 18px 22px 28px;
  color: var(--c-text-soft);
  font-size: 12px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.footer .spacer { flex: 1; }

/* ---------- Modal ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(20, 32, 52, .5);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  z-index: 100;
}
.overlay.is-open { display: flex; }
.modal {
  width: 100%; max-width: 560px;
  background: var(--c-surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  max-height: 90vh;
  display: flex; flex-direction: column;
  animation: pop .18s ease;
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal__head {
  padding: 18px 20px 12px;
  display: flex; align-items: flex-start; gap: 12px;
}
.modal__head h3 { margin: 0; font-size: 17px; }
.modal__head p { margin: 3px 0 0; font-size: 12.5px; color: var(--c-text-muted); }
.modal__close { margin-left: auto; }
.modal__body { padding: 4px 20px 8px; overflow-y: auto; }
.modal__foot {
  padding: 16px 20px 20px;
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  right: 22px; bottom: 22px;
  background: #14243d;
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(14px);
  pointer-events: none;
  transition: var(--transition);
  z-index: 200;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast svg { width: 17px; height: 17px; stroke: #4ade80; }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-muted { color: var(--c-text-muted); }
.text-soft { color: var(--c-text-soft); }
.mono { font-variant-numeric: tabular-nums; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  :root { --sidebar-w: 250px; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-l); }
  .sidebar.is-open { transform: translateX(0); }
  .topbar { left: 0; }
  .main { margin-left: 0; }
  .topbar__burger { display: inline-flex; }
  .topbar__search { display: none; }
  .sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(20,32,52,.45);
    z-index: 45;
    display: none;
  }
  .sidebar-backdrop.is-open { display: block; }
  .container { padding: 16px; }
}

@media (max-width: 620px) {
  .page-head__title { font-size: 20px; }
  .page-head__actions { margin-left: 0; width: 100%; }
  .user-chip__meta { display: none; }
  .grid--stats { grid-template-columns: 1fr 1fr; }
  .card__foot { flex-direction: column; align-items: stretch; }
}

@media (max-width: 420px) {
  .grid--stats { grid-template-columns: 1fr; }
}

/* Красная звёздочка у обязательных полей */
.req {
  color: #e53935;
  font-weight: 700;
  margin-left: 2px;
}

/* Текст ошибки под полем */
.field-error {
  color: #e53935;
  font-size: 12px;
  line-height: 1.3;
  min-height: 14px;
  margin-top: 3px;
}

/* Подсветка поля с ошибкой */
.form-grid input.input-error {
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, .15);
}
/* Shared data controls; domain styles remain scoped in sections/. */
.record-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 16px; }
.record-toolbar input,.record-toolbar select { min-height:36px; max-width:100%; border:1px solid #cbd5dd; border-radius:4px; padding:6px 10px; background:#fff; color:#283344; }
.record-toolbar input[type="search"] { width:240px; }
.record-toolbar label { display:flex; align-items:center; gap:6px; }
.record-toolbar input[type="date"] { width:145px; }
.record-icon { width:32px; height:32px; padding:0; font-size:20px; }
.record-table { background:#fff; }
.record-table td { max-width:260px; overflow-wrap:anywhere; }
.record-table th,.record-table td { min-width:110px; }
.record-table td[data-field="name"] { min-width:190px; }
.record-table td[data-type="tel"],.record-table td[data-type="date"],.record-table td[data-type="datetime-local"],.record-table td[data-type="money"] { white-space:nowrap; }
.record-sort { border:0; background:transparent; padding:0; font:inherit; font-weight:600; color:inherit; cursor:pointer; text-align:left; }
.record-actions { white-space:nowrap; min-width:116px; }
.record-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; color:#5b6574; }
.record-empty { padding:32px !important; text-align:center; }
#recordError { color:#b42332; }
.record-form-note { white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:600px) { .record-toolbar input[type="search"] { flex:1; min-width:140px; } .record-toolbar .spacer { display:none; } .record-toolbar { gap:8px; } }

/* Compact service header */
:root { --topbar-h:44px; --sidebar-w:250px; }
.topbar { inset:0 0 auto 0; height:var(--topbar-h); padding:0 10px 0 0; gap:10px; background:#14243d; color:#b8c0ca; border-top:3px solid #77d3e5; border-bottom:3px solid #e1e3e5; z-index:60; font-family:var(--font); }
.topbar__brand { width:var(--sidebar-w); flex-shrink:0; display:flex; align-items:center; gap:8px; height:100%; padding:0 10px; }
.topbar__burger { display:inline-flex; flex-shrink:0; width:25px; height:30px; border:0; border-radius:0; background:transparent; color:#b8c0ca; padding:3px; }
.topbar__burger svg { width:20px; height:20px; }
.topbar__logo { display:flex; align-items:center; color:#d6d9df; font-size:14px; line-height:14px; }
.topbar__logo:hover { text-decoration:none; }
.topbar__logo svg { width:36px; height:36px; flex-shrink:0; }
.topbar__search { display:flex; align-items:center; flex:1; min-width:0; max-width:none; height:34px; margin:0; background:#fff; }
.topbar__search::before { display:none; }
.topbar__search input { border:0; border-radius:0; height:100%; padding:0 10px; background:#fff; min-width:0; color:#555; font-size:14px; }
.topbar__search input::placeholder { color:#aaa; }
.topbar__search input::-webkit-search-cancel-button { display:none; }
.topbar__search input:focus { box-shadow:inset 0 0 0 2px #54c1cf; }
.topbar__search button { border:0; background:#fff; color:#8c9094; padding:0; width:25px; height:30px; flex-shrink:0; cursor:pointer; }
.topbar__clear { font-size:23px; font-weight:bold; }
.topbar__search-submit svg { width:19px; height:19px; }
.topbar__balance { color:#fff; display:flex; flex-direction:column; flex-shrink:0; font-size:12px; line-height:15px; width:152px; }
.topbar__balance small { font-size:10px; white-space:nowrap; }
.topbar__actions { gap:10px; flex-shrink:0; height:100%; }
.topbar .icon-btn { width:32px; height:32px; border:0; border-radius:2px; color:#a7b4c5; padding:6px; }
.topbar .icon-btn svg { width:20px; height:20px; stroke:currentColor; }
.topbar .topbar__chat { color:#67c86f; }
.topbar .icon-btn:hover,.topbar__burger:hover,.topbar__link:hover { background:#ffffff12; text-decoration:none; }
.topbar__link { display:flex; align-items:center; gap:7px; color:#b8c0ca; height:32px; padding:0 5px; font-size:14px; }
.topbar__link svg { width:19px; height:19px; }
.topbar :is(button,a):focus-visible { outline:2px solid #5dd4e1; outline-offset:1px; }
.sidebar { top:var(--topbar-h); }
.sidebar__profile { position:relative; display:flex; flex-direction:column; gap:7px; flex:0 0 150px; width:100%; height:150px; margin:0; border:0; border-radius:0; background:linear-gradient(0deg,#0006,#0001),url('/img/school-profile-background.png') center 60% / cover; color:#fff; text-align:center; padding:30px 22px 10px; font-family:var(--font); }
.sidebar__profile:hover { box-shadow:none; }
.sidebar__profile:focus-visible { outline:2px solid #2dbdc8; outline-offset:-2px; }
.sidebar__profile .avatar { width:50px; height:50px; background:#fff; overflow:hidden; }
.sidebar__profile .avatar img { width:100%; height:100%; object-fit:cover; }
.sidebar__profile .user-chip__meta { display:block; min-width:0; }
.sidebar__profile .user-chip__name,.sidebar__profile .user-chip__org { display:block; }
.sidebar__profile .user-chip__name { font-size:14px; line-height:17px; text-shadow:0 1px 3px #000; }
.sidebar__profile .user-chip__login { display:block; color:#7bdbb1; margin-top:2px; font-size:12px; line-height:14px; text-shadow:0 1px 3px #000; }
.sidebar__profile .user-chip__org { color:#fff; margin-top:2px; font-size:11px; line-height:14px; text-shadow:0 1px 3px #000; }
.profile-chevron { position:absolute; right:12px; top:90px; font-size:18px; }
.profile-menu { position:fixed; z-index:95; width:260px; padding:8px 0; background:white; box-shadow:0 5px 18px #0003; color:#555; }
.profile-menu[hidden], .profile-overlay [hidden] { display:none !important; }
.profile-menu button { display:flex; align-items:center; gap:12px; padding:10px 20px; width:100%; border:0; background:white; color:#555; text-align:left; cursor:pointer; }
.profile-menu button:hover,.profile-menu button:focus-visible { background:#eaf8fa; }
.profile-menu button span { color:#999; width:16px; }
.profile-menu button:last-child { border-top:1px solid #eee; margin-top:4px; }
.profile-overlay .modal { max-width:800px; border-radius:0; border-top:5px solid #2dbdc8; color:#666; }
.profile-overlay .modal__head { justify-content:center; position:relative; padding:16px 42px; }
.profile-overlay .modal__head h3 { font-weight:400; font-size:19px; }
.profile-overlay .modal__close { position:absolute; right:15px; top:10px; color:#2dbdc8; }
.profile-overlay .modal__body { padding:0 16px; }
.profile-overlay .modal__foot { padding:20px 16px 15px; }
.profile-overlay .btn--primary { background:#2dbdc8; border-color:#2dbdc8; border-radius:0; min-width:154px; text-transform:uppercase; }
.profile-overlay #modalCancel { border:0; color:#2dbdc8; background:white; text-transform:uppercase; }
.profile-tabs { display:flex; gap:2px; margin-bottom:16px; }
.profile-tabs button { border:0; border-bottom:2px solid transparent; padding:12px; background:white; color:#75cbd2; font-size:13px; font-weight:600; text-transform:uppercase; cursor:pointer; }
.profile-tabs button[aria-selected="true"] { border-bottom-color:#2dbdc8; background:#eaf8fa; color:#30b7c3; }
.profile-overlay [data-profile-panel] { min-height:385px; }
.profile-personal { display:grid; grid-template-columns:minmax(0,1fr) 200px; gap:16px; }
.profile-field { display:block; margin:10px 18px 20px; font-size:14px; color:#999; }
.profile-field b { color:#e5484d; }
.profile-field input,.profile-field select { display:block; width:100%; padding:7px 0; border:0; border-bottom:1px solid #ccd6d9; border-radius:0; background:white; color:#666; font:inherit; font-size:16px; }
.profile-personal .profile-field { display:grid; grid-template-columns:200px minmax(0,1fr); align-items:center; margin:10px 0 22px 18px; }
.profile-photo { border:1px solid #eee; height:180px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; }
.profile-photo img { max-width:100%; height:110px; object-fit:contain; }
.profile-photo span { font-size:58px; opacity:.4; }
.profile-photo label,.profile-photo button { font-size:12px; color:#2dbdc8; cursor:pointer; background:none; border:0; }
.profile-doc-toolbar { display:flex; align-items:center; gap:14px; background:#2dbdc8; color:white; padding:10px; }
.profile-doc-toolbar span { flex:1; }
.profile-doc-toolbar button { border:0; background:none; color:white; font-size:22px; cursor:pointer; }
.profile-doc-toolbar button:disabled { opacity:.4; cursor:default; }
.profile-doc-table { width:100%; border-collapse:collapse; }
.profile-doc-table th { font-weight:400; padding:14px 8px; border-bottom:1px solid #2dbdc8; }
.profile-doc-table td { padding:12px 8px; border-bottom:1px solid #eee; }
.profile-doc-table tr.selected { background:#eaf8fa; }
.profile-doc-table tbody tr { cursor:pointer; }
.profile-doc-fields { display:grid; grid-template-columns:1fr 1fr; }
.profile-password-overlay .modal { max-width:400px; }
.profile-password-overlay .profile-field { margin:0 2px 20px; }
.profile-security-overlay .modal { max-width:650px; }
.profile-security-overlay p { margin:12px 0; font-size:14px; }
.profile-security-overlay #modalCancel { display:none; }
.profile-security-status { margin:10px 0 18px; padding:12px; background:#f39a00; color:white; text-align:center; }
.profile-security-status.enabled,.profile-activate { background:#388e3c; color:white; }
.profile-activate { display:block; margin:0 auto 12px; min-width:248px; border-radius:0; text-transform:uppercase; }
.profile-security-setup { display:grid; grid-template-columns:210px minmax(0,1fr); gap:20px; }
.profile-security-setup .profile-field { margin:0 0 14px; }
.profile-security-setup code { font-size:11px; overflow-wrap:anywhere; }
.profile-security-setup .btn { width:100%; white-space:normal; }
#twoFactorError { color:#c33; }
@media(max-width:600px) {
  .profile-personal,.profile-security-setup { grid-template-columns:1fr; }
  .profile-personal .profile-field { display:block; margin:10px 0 18px; }
  .profile-photo { width:180px; margin:auto; }
  .profile-tabs button { padding:10px 7px; font-size:11px; }
  .profile-doc-table { min-width:600px; }
  .profile-doc-fields { grid-template-columns:1fr; }
}
.sidebar-collapsed .sidebar { transform:translateX(-100%); }
.sidebar-collapsed .main { margin-left:0; }
@media (max-width:1100px) {
 .topbar__actions { gap:3px; }
 .topbar__link span { display:none; }
 .topbar__balance { width:145px; }
}
@media (max-width:900px) {
 :root { --topbar-h:84px; }
 .topbar { flex-wrap:wrap; align-content:flex-start; gap:0; padding:0 8px; }
 .topbar__brand { width:auto; height:38px; padding:0; margin-right:auto; }
 .topbar__logo { font-size:11px; line-height:12px; }
 .topbar__logo svg { width:29px; height:29px; }
 .topbar__balance { width:auto; padding:0 8px; height:38px; justify-content:center; }
 .topbar__balance small { display:none; }
 .topbar__actions { height:38px; gap:1px; }
 .topbar .icon-btn { width:28px; }
 .topbar__link { padding:0 4px; }
 .topbar__documents { display:none!important; }
 .topbar__search { display:flex; order:4; flex-basis:100%; height:34px; margin:2px 0 4px; }
 .sidebar-collapsed .sidebar.is-open { transform:translateX(0); }
}
@media (max-width:420px) {
 .topbar__brand { gap:3px; }
 .topbar__logo { font-size:10px; line-height:11px; }
 .topbar__logo svg { width:25px; }
 .topbar__balance { padding:0 5px; font-size:10px; }
 .topbar .icon-btn { width:25px; padding:4px; }
 .topbar__link svg { width:17px; }
 .topbar__search input { font-size:12px; }
}
#recordForm input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; align-self: flex-start; }
#recordForm select[multiple] { height: auto; min-height: 120px; padding: 8px; }
.employee-access-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 16px 16px; padding:12px 16px; border:1px solid #d9e3e7; border-radius:8px; background:#f6f9fa; }
#recordForm.school-employee-card > .employee-access-summary:first-child { margin-inline:clamp(16px, 3vw, 28px); }
.employee-access-summary > div { display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; min-width:0; }
.employee-access-summary strong { color:#344750; font-size:14px; }
.employee-access-summary span { color:#805421; font-size:13px; }
.employee-access-summary[data-state="open"] span { color:#26734d; }
#recordForm .employee-access-issue { display:flex; flex-direction:column; align-items:flex-start; gap:14px; padding:20px; border:1px solid #b8dce0; border-radius:10px; background:#f1fafb; min-width:0; }
.employee-access-issue__head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; width:100%; }
#recordForm .employee-access-issue h3 { margin:0; color:#2e4850; font-size:18px; line-height:1.4; }
#recordForm .employee-access-issue p { margin:0; color:#415b64; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.employee-access-status { display:inline-block; padding:5px 10px; border-radius:20px; background:#fff0db; color:#805421; font-size:13px; font-weight:600; }
[data-state="open"] > .employee-access-issue__head .employee-access-status { background:#dff3e8; color:#236944; }
[data-state="unavailable"] > .employee-access-issue__head .employee-access-status { background:#e7ebef; color:#505d69; }
#recordForm .employee-access-issue .btn { min-height:44px; padding:12px 20px; font-size:15px; white-space:normal; max-width:100%; text-align:center; }
#recordForm .employee-access-issue .employee-access-issue__warning { padding-top:12px; border-top:1px solid #cfe3e6; color:#5a636a; font-size:12px; }
#recordForm .employee-access-block { grid-column:1 / -1; margin-top:8px; }
#recordForm .employee-access-block label { text-transform:none; }
#recordForm .employee-access-save-note { margin:0; color:#67747c; font-size:12px; line-height:1.5; }
@media(max-width:600px) {
  .employee-access-summary { align-items:stretch; flex-direction:column; padding:12px; }
  .employee-access-summary > div { align-items:flex-start; flex-direction:column; }
  .employee-access-summary .btn { white-space:normal; }
  #recordForm .employee-access-issue { padding:14px; }
  #recordForm .employee-access-issue .btn { width:100%; }
}
.account-credentials { color:#555; font-size:14px; line-height:1.5; }
.account-credentials label { display:block; margin:18px 0; font-weight:600; }
.account-credentials input { display:block; width:100%; margin-top:6px; padding:10px 12px; border:1px solid #cbd5d9; border-radius:6px; background:#f8fafb; color:#333; font:15px/1.5 Consolas,monospace; }

/* The desktop search field and workspace share the edge of the side menu. */
@media (width > 900px) {
  body:has(> #sidebar.sidebar--reference-dark) { --sidebar-w:250px; }
  body > #sidebar.sidebar--reference-dark { width:var(--sidebar-w); }
  body:has(> #sidebar.sidebar--reference-dark) > .topbar > .topbar__brand {
    width:calc(var(--sidebar-w) - 10px); /* Allow for the topbar's flex gap. */
  }
}

/* Keep the menu scrollable by wheel, touch and keyboard focus. */
body > #sidebar.sidebar--reference-dark > .sidebar__nav { scrollbar-width:none; }
body > #sidebar.sidebar--reference-dark > .sidebar__nav::-webkit-scrollbar { display:none; }

/* Available school access keys beside the service balance. */
.topbar__keys { display:flex; align-items:center; gap:4px; color:#fff; flex-shrink:0; font-size:12px; line-height:15px; white-space:nowrap; }
.topbar__key-icon { display:block; width:20px; height:20px; flex-shrink:0; }
.topbar__keys[hidden] { display:none; }
@media (max-width:900px) { .topbar__keys { height:38px; padding-left:6px; } }
@media (max-width:420px) { .topbar__keys { max-width:60px; gap:3px; font-size:10px; padding-left:3px; } .topbar__key-icon { width:17px; height:17px; } .topbar__balance:has(+ .topbar__keys:not([hidden])) { max-width:calc(100% - 224px); } }

@media (max-width:900px) { .topbar > .topbar__keys { order:1; } .topbar > .topbar__balance { order:2; } .topbar > .topbar__actions { order:3; } }

/* Bring the key indicator closer to the balance on wide screens. */
@media (min-width:1101px) { .topbar > .topbar__balance { width:max-content; } .topbar > .topbar__keys { margin-right:36px; } }

.employee-card-overlay .modal{width:min(1024px,calc(100vw - 24px));max-width:1024px}
.employee-card-overlay .modal__header{background:#f7f8fa}
.employee-card-overlay [data-record-panel="0"]{display:block;padding:0}
.employee-card-overlay [data-record-panel="0"][hidden]{display:none}
.employee-card-overlay .employee-card-heading{display:grid;grid-template-columns:136px minmax(0,1fr);gap:22px;padding:20px 8px}
.employee-card-heading>img{width:136px;height:136px;border-radius:50%;object-fit:cover;background:#57b2ca}
.employee-card-names{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px 22px}
.employee-card-names .field{grid-column:span 2;margin:0;min-width:0}
.employee-card-names [data-form-field="email"],.employee-card-names [data-form-field="phone"]{grid-column:span 3}
.employee-card-overlay label{font-size:11px;font-weight:600;color:#8c8c8c;text-transform:uppercase}
.employee-card-overlay input:not([type="checkbox"]),.employee-card-overlay select{border:1px solid #d5d5d5;border-radius:10px;min-height:35px;background:#fff}
.employee-card-overlay .employee-card-section{border-top:1px solid #d9dce0;margin:0 -12px}
.employee-card-section>summary{padding:16px 18px;background:#f7f8fa;color:#0799ad;font-size:13px;font-weight:700;text-transform:uppercase;cursor:pointer}
.employee-card-section>.form-grid{padding:20px 18px;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.employee-card-overlay [data-record-panel="0"]>.field{margin:12px 8px}
.employee-card-overlay [data-form-field="teachingCategories"]{max-width:100%}
.employee-card-overlay [data-form-field="teachingCategories"] small{display:block;color:#757575;font-size:12px;margin-top:6px}
@media(max-width:600px){.employee-card-overlay .employee-card-heading{grid-template-columns:64px minmax(0,1fr);gap:12px}.employee-card-heading>img{width:64px;height:64px}.employee-card-names{grid-template-columns:minmax(0,1fr);gap:12px}.employee-card-names .field,.employee-card-names [data-form-field="email"],.employee-card-names [data-form-field="phone"]{grid-column:1}.employee-card-section>.form-grid{grid-template-columns:minmax(0,1fr)}}

#overlay.employee-card-overlay>.modal{width:min(1024px,calc(100vw - 24px));max-width:1024px}
#overlay.employee-card-overlay .modal__body{overflow-x:hidden}
.employee-card-overlay .employee-card-section .field{min-width:0}
.employee-card-overlay .employee-access-summary{grid-column:1/-1;margin:0}
.employee-card-overlay #modalOk{background:#6bb397;border-color:#6bb397;color:white}

#overlay.employee-card-overlay:has(#recordForm)>.modal{width:min(1024px,calc(100vw - 24px))!important;max-width:1024px!important}

#overlay.employee-card-overlay:has(#recordForm) #modalOk{background:#6bb397!important;border-color:#6bb397!important}
#overlay.employee-card-overlay .record-tabs [role=tab]{text-transform:none}

.employee-card-overlay .employee-card-names [data-form-field="email"],.employee-card-overlay .employee-card-names [data-form-field="phone"],.employee-card-overlay .employee-card-names [data-form-field="teachingCategories"]{grid-column:span 2}
.employee-card-overlay .employee-card-names [data-form-field="teachingCategories"]{margin:0;min-width:0}
.employee-card-overlay .employee-card-names [data-form-field="teachingCategories"]>small{display:none}
.employee-card-overlay .location-combobox input[role="combobox"]{padding-right:48px;width:100%;min-width:0}
.employee-card-overlay .location-combobox__clear{position:absolute;right:23px;top:0;height:35px;width:24px;padding:0;border:0;background:transparent;color:#777;font-size:20px;cursor:pointer}
.employee-card-overlay .location-combobox__clear[hidden]{display:none}
.employee-card-overlay .location-combobox .region-combobox__toggle{height:35px;width:24px;right:0}
.employee-card-overlay .employee-address-search{margin-bottom:0}
.employee-card-overlay .employee-address-search small{display:block;font-size:12px;color:#777;margin-top:6px}
.employee-card-overlay [data-form-field="registrationStreet"]{grid-column:span 2}
.employee-card-overlay .employee-address-canonical{grid-column:1/-1}
.employee-card-overlay .employee-address-canonical textarea{min-height:35px;height:35px;background:#f6f7f8}
@media(max-width:600px){.employee-card-overlay .employee-card-names [data-form-field="email"],.employee-card-overlay .employee-card-names [data-form-field="phone"],.employee-card-overlay .employee-card-names [data-form-field="teachingCategories"]{grid-column:1}.employee-card-overlay [data-form-field="registrationStreet"]{grid-column:1}}

.employee-address-credit{font-size:10px;color:#888;display:inline-block;margin-top:4px}
.su-staff-vehicle-line{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.su-staff-vehicle-line>.su-vehicle-pencil{display:inline-flex;align-items:center;justify-content:center;width:24px;min-width:24px;padding:2px;border:0;background:transparent}
.su-vehicle-pencil svg{width:16px;height:16px}
.location-combobox{position:relative;min-width:0}
.location-combobox .region-combobox__toggle{position:absolute;right:1px;top:1px;bottom:1px;width:24px;border:0;background:transparent;color:#777;cursor:pointer;font:18px Arial}
.location-combobox .region-combobox__options{position:fixed;inset:auto;margin:0;padding:4px 0;border:1px solid #ced3d6;border-radius:4px;background:#fff;color:#444;box-shadow:0 4px 10px #0003;box-sizing:border-box;overflow:auto;z-index:10000;font:14px/1.4 Arial,sans-serif}
.location-combobox .region-combobox__options [role=option]{padding:6px 12px;white-space:normal;cursor:pointer;overflow-wrap:anywhere}
.location-combobox .region-combobox__options [role=option]:hover,.location-combobox .region-combobox__options .is-active{background:#568fe5;color:white}
.location-combobox .region-combobox__empty{padding:8px 12px;color:#888}
.employee-card-overlay .location-combobox input[role=combobox]{padding-right:48px!important}

.su-staff-picker.su-vehicle-picker{width:min(450px,calc(100% - 16px));border-radius:3px;font:14px/20px Arial,sans-serif}
.su-staff-picker.su-vehicle-picker header{padding:12px 14px;min-height:56px;box-sizing:border-box}
.su-staff-picker.su-vehicle-picker h2{font-size:20px;font-weight:400;line-height:30px}
.su-staff-picker.su-vehicle-picker .su-staff-picker-filter{padding:14px;background:#f7f8fa}
.su-staff-picker.su-vehicle-picker .su-staff-picker-filter input{height:35px;font-size:14px}
.su-staff-picker.su-vehicle-picker .su-staff-picker-option{padding:14px;min-height:54px;gap:10px}
.su-staff-picker.su-vehicle-picker .su-staff-picker-option[aria-current=true]{background:#cdf3f9;color:#47646b}
.su-staff-picker.su-vehicle-picker .su-staff-picker-vehicle{flex:1;min-width:0;gap:4px}
.su-staff-picker.su-vehicle-picker .su-staff-picker-vehicle strong{font-weight:400;font-size:14px}
.su-staff-picker.su-vehicle-picker .su-staff-picker-vehicle small{display:inline;font-size:12px}
.su-staff-picker.su-vehicle-picker .su-car-plate{margin-left:auto;font:12px/18px Arial,sans-serif;border-radius:2px;padding:0 3px;color:#333}
.su-staff-picker.su-vehicle-picker .su-staff-picker-option i{position:relative;box-sizing:border-box;width:16px;height:16px}
.su-staff-picker.su-vehicle-picker .su-staff-picker-option[aria-current=true] i{border:0;background:#55b873}
.su-staff-picker.su-vehicle-picker .su-staff-picker-option[aria-current=true] i:after{content:'';position:absolute;left:5px;top:3px;width:4px;height:7px;border:solid white;border-width:0 1.5px 1.5px 0;transform:rotate(40deg)}
.su-staff-picker.su-vehicle-picker footer{padding:14px;background:#f7f8fa}
.su-staff-picker.su-vehicle-picker footer button{width:100%;height:35px;padding:6px 12px;background:transparent;color:#333;border:1px solid #ddd;font:14px/20px Arial,sans-serif}
.su-staff-vehicle-line{display:grid;grid-template-columns:minmax(0,1fr) 24px;gap:4px 5px;align-items:start}
.su-staff-vehicle-line>.su-student-menu{grid-column:1;min-width:0}
.su-staff-vehicle-line>.su-vehicle-pencil{grid-column:2;grid-row:1}
.su-staff-vehicle-line .su-student-popup [role="menuitem"]{display:flex;align-items:center;gap:8px;white-space:nowrap}
.su-staff-vehicle-line .su-student-popup [role="menuitem"]>svg{display:block;flex:0 0 16px;width:16px;height:16px;min-width:16px;max-width:16px}

/* /css/reference.css */
/* Shared list and card presentation, checked against the reference pages. */
:root { --c-primary:#2dbdc8; --c-primary-dark:#249aa4; --c-primary-light:#eaf8fa; --c-bg:#ecf0f1; --c-text:#555; --font:Arial,"Segoe UI",sans-serif; }
.topbar { border-top:0; border-bottom:2px solid #d6dce0; }
.container { padding:10px; max-width:none; }
.sidebar { background:#14243d; color:#b8c0ca; }
.sidebar__balance { display:none; }
.sidebar__nav { padding:0 0 12px; }
.sidebar__nav::-webkit-scrollbar { width:5px; }
.sidebar__nav::-webkit-scrollbar-thumb { background:#252e38; }
.sidebar__menu-search { display:flex; flex:0 0 35px; background:#465568; border-bottom:1px solid #586576; }
.sidebar__menu-search input { min-width:0; width:100%; border:0; outline:0; background:none; padding:8px 12px; color:#e1e7ee; font-style:italic; }
.sidebar__menu-search input::placeholder { color:#9eafc1; }
.sidebar__menu-search span { padding:4px 10px; font-size:21px; }
.nav__group-head,.nav__single { border-radius:0; font-weight:normal; font-size:14px; color:#b8c0ca; padding:10px; min-height:40px; line-height:20px; }
.nav__single { display:flex; align-items:center; gap:10px; }
.nav__single .ico { width:18px; height:18px; stroke:#b8c0ca; }
.nav__group-head .ico { stroke:#b8c0ca; }
.nav__group.is-open > .nav__group-head { background:#14243d; color:#b8c0ca; }
.nav__group.is-open > .nav__group-head .ico { stroke:#b8c0ca; }
.nav__group { margin-bottom:0; }
.nav__list { padding-bottom:0; }
.nav__list a { padding:8px 10px 8px 44px; min-height:35px; line-height:19px; font-size:14px; font-weight:normal; border-radius:0; color:#b8c0ca; }
.nav__list a::before { display:none; }
.nav__list a.is-active,.nav__single.is-active { background:#2dbdc8; color:white; font-weight:normal; }
.nav__single:hover { background:#293544; color:white; text-decoration:none; }
.sidebar__foot { background:#2c3541; padding:6px; }
.sidebar__foot a { border-radius:0; background:transparent; }
.sidebar__foot .sidebar__support {display:flex;align-items:center;gap:10px;text-align:left;font-size:14px;line-height:18px;padding:3px 0;}
.sidebar__support svg {width:40px;height:40px;flex:none;border-radius:50%;background:#2dbdc8;padding:7px;}
@media(min-width:769px){:root{--topbar-h:48px;}}
.record-page,.report-page { background:white; border:1px solid #e1e5e7; box-shadow:0 1px 5px #0002; min-height:calc(100vh - var(--topbar-h) - 24px); display:flex; flex-direction:column; }
.record-page .breadcrumbs,.report-page .breadcrumbs { display:none; }
.record-page .page-head,.report-page .page-head { display:flex; margin:0; padding:9px 15px; color:white; background:linear-gradient(155deg,#41bac4,#238b93 65%,#41bac4); min-height:41px; }
.record-page .page-head__title,.report-page .page-head__title { color:white; font-size:18px; font-weight:normal; line-height:24px; }
.record-page .page-head__sub { color:white; }
.record-commandbar,.report-commandbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:6px; min-height:46px; border-bottom:1px solid #eee; }
.record-commandbar .btn,.report-commandbar .btn { border-radius:0; font-size:13px; font-weight:normal; text-transform:uppercase; min-height:34px; padding:5px 12px; }
.record-commandbar .record-icon { padding:0; color:#2dbdc8; font-size:25px; }
.record-commandbar .btn--primary { box-shadow:0 1px 3px #0002; color:white; }
.record-commandbar .spacer,.report-commandbar .spacer { flex:1; }
.record-menu { position:relative; }
.record-menu summary { cursor:pointer; list-style:none; text-transform:uppercase; color:#555; padding:8px 12px; font-size:13px; }
.record-menu > div { position:absolute; z-index:10; top:100%; left:0; min-width:230px; background:white; box-shadow:0 3px 12px #0003; border:1px solid #ddd; padding:4px; }
.record-menu button { display:block; width:100%; border:0; background:white; text-align:left; padding:9px; cursor:pointer; font-size:14px; }
.record-menu button:hover { background:#eaf8fa; }
.record-menu button:disabled { color:#bbb; cursor:default; }
.record-toolbar { padding:8px; margin:0; background:#fafafa; border-bottom:1px solid #ddd; }
.record-toolbar[hidden] { display:none; }
.record-toolbar input,.record-toolbar select { border-radius:0; min-height:31px; font-size:14px; }
#recordRows { display:flex; flex:1; min-width:0; flex-direction:column; }
.record-grid { flex:1; min-height:320px; }
.record-table { width:100%; border-collapse:collapse; }
.record-table th { color:#555; background:white; font-size:14px; font-weight:normal; border-right:1px solid #eee; padding:10px 8px; vertical-align:top; }
.record-page table.record-table thead th,.report-page table.record-table thead th { font-size:14px; font-weight:normal; text-transform:none; letter-spacing:normal; background:white; color:#555; }
.record-page table.record-table tbody td { font-size:14px; color:#555; overflow-wrap:normal; word-break:normal; }
.record-page table.record-table td[data-field="number"] { min-width:180px; }
.record-page table.record-table td[data-field="type"] { min-width:150px; }
.record-table thead tr > th:first-child:has([data-action="record-select-all"]),.record-table .record-column-filters > th:first-child { width:34px; min-width:34px; }
.record-table th[aria-sort] { height:51px; }
.record-sort { font-weight:normal; }
.record-table td { padding:8px; border-right:1px solid #f2f2f2; border-bottom:1px solid #eee; font-size:14px; }
.record-table tr[data-record] { cursor:pointer; }
.record-table tr[data-record]:focus-visible { outline:2px solid #2dbdc8; outline-offset:-2px; }
.record-table tr.is-selected > td { background:#e4f6f7; }
.record-table .record-check { width:34px; min-width:34px; padding:10px 8px; }
.record-check input { width:16px; height:16px; accent-color:#2dbdc8; }
.record-column-filters th { padding:4px 8px 7px; border-bottom:1px solid #2dbdc8; }
.record-column-filters input,.record-column-filters select { width:100%; min-width:92px; height:31px; padding:3px 6px; border:1px solid #e4e8ea; background:white; border-radius:0; font-weight:normal; color:#555; }
.record-column-filters input::placeholder { color:#b0b0b0; }
.record-column-filters input:focus,.record-column-filters select:focus { outline:1px solid #2dbdc8; }
.record-empty { color:#aaa; height:80px; }
.record-footer { margin-top:auto; padding:5px 8px; border-top:1px solid #ddd; background:#fafafa; color:#2dbdc8; font-size:12px; }
.record-notice { margin:0; padding:10px 15px; color:#b58423; background:#fffaf0; font-size:13px; }
.record-overlay .modal { border-radius:0; border-top:5px solid #2dbdc8; max-width:800px; width:min(800px,100%); }
#theoryJournalMarks table { min-width:720px; }
#theoryJournalMarks td { padding:7px 10px; }
#theoryJournalMarks td:first-child { min-width:190px; }
#theoryJournalMarks :is(input,select) { width:100%; min-height:32px; border:1px solid #cbd5d9; background:#fff; padding:5px 7px; color:#555; }
#theoryJournalPeriod,#theoryJournalGroup,#theoryJournalRange input { min-height:32px; border:1px solid #cbd5d9; padding:5px 8px; background:#fff; color:#555; }
#theoryJournalRange:not([hidden]) { display:flex; gap:5px; }
.record-overlay .modal__head { position:relative; padding:15px 40px; justify-content:center; }
.record-overlay .modal__head h3 { font-size:19px; font-weight:normal; text-align:center; }
.record-overlay .modal__head p { text-align:center; }
.record-overlay .modal__close { position:absolute; top:10px; right:10px; border:0; color:#2dbdc8; }
.record-overlay .modal__body { padding:0 18px 16px; }
.record-overlay .form-grid { gap:16px 24px; }
.record-overlay [hidden] { display:none!important; }
.record-overlay .field > label { color:#999; font-size:14px; font-weight:normal; margin:0 0 3px; }
.record-overlay .field label b { color:#e5484d; font-weight:normal; }
.record-overlay .field :is(input:not([type=checkbox]),select:not([multiple]),textarea) { width:100%; padding:7px 0; border:0; border-bottom:1px solid #cbd5d9; border-radius:0; box-shadow:none; background:white; font-size:15px; }
.record-overlay .field :is(input,select,textarea):focus { outline:0; border-bottom-color:#2dbdc8; box-shadow:0 1px 0 #2dbdc8; }
.record-overlay .field--check { display:flex; flex-direction:row; align-items:flex-start; gap:9px; }
.record-overlay .field--check label { color:#666; }
.record-overlay .field small { color:#999; }
.record-overlay .modal__foot { padding:14px 18px; border-top:0; }
.record-overlay .modal__foot .btn { border-radius:0; text-transform:uppercase; min-width:130px; font-size:13px; }
.record-overlay #modalCancel { border:0; background:none; color:#2dbdc8; }
.record-tabs { display:flex; gap:0; overflow-x:auto; margin:0 -18px 20px; border-bottom:1px solid #eee; }
.record-tabs button { background:white; border:0; border-bottom:2px solid transparent; padding:13px 14px; color:#66b6bf; cursor:pointer; white-space:nowrap; font-size:13px; text-transform:uppercase; }
.record-tabs button[aria-selected=true] { background:#eaf8fa; border-bottom-color:#2dbdc8; color:#2dbdc8; }
.record-close-confirm { position:absolute; inset:0; z-index:5; display:flex; align-items:center; justify-content:center; background:#0004; padding:20px; }
.record-close-confirm > div { background:white; padding:24px; width:min(480px,100%); box-shadow:0 5px 20px #0004; border-top:4px solid #2dbdc8; }
.record-close-confirm h3 { font-size:17px; font-weight:normal; margin:0 0 20px; }
.record-close-confirm > div > div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.record-calendar { flex:1; display:flex; flex-direction:column; }
#liveReport { display:flex; flex:1; flex-direction:column; min-width:0; }
.report-commandbar label { display:flex; gap:5px; align-items:center; font-size:13px; }
.report-commandbar input,.report-chart select { border:1px solid #e4e8ea; border-radius:0; height:31px; padding:4px 7px; min-width:0; max-width:100%; }
.report-chart { padding:20px; }
.report-chart > label { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.report-bar-row { display:grid; grid-template-columns:minmax(100px,1fr) minmax(100px,3fr) minmax(60px,1fr); gap:14px; align-items:center; padding:8px 0; border-bottom:1px solid #eee; font-size:13px; }
.report-bar-row > div { background:#fafafa; }
.report-bar { min-height:22px; background:#2dbdc8; }
.report-bar.is-negative { background:#e98c68; }
.report-bar-row b { font-weight:normal; overflow-wrap:anywhere; }
.nav__single[hidden],[data-group][hidden] { display:none; }
.reference-lists > .breadcrumbs { display:none; }
.reference-lists > .toolbar[hidden] {display:none;}
.reference-lists {display:flex;flex-direction:column;height:calc(100vh - var(--topbar-h) - 20px);min-height:0;}
.reference-lists > div[id] {flex:1;min-height:0;display:flex;flex-direction:column;}
.reference-lists .card:has(table) {height:100%;min-height:0!important;}
.reference-lists .card:has(table)>.table-wrap {min-height:0;overflow:auto;}
.reference-lists table.tbl tbody strong {font-weight:normal;}
.reference-lists > .page-head .page-head__sub,.reference-lists .card:has(table) > .card__head {display:none;}
.reference-lists .card:has(table) {display:flex;flex-direction:column;min-height:calc(100vh - var(--topbar-h) - 76px);box-shadow:0 1px 5px #0002;}
.reference-lists .card:has(table)>.table-wrap {flex:1;}
.reference-lists .card:has(table)>.record-footer {padding:5px 8px;}
.reference-lists .record-menu summary {font-size:18px;padding:3px 8px;}
.reference-lists > .page-head { margin:0 0 6px; padding:9px 15px; background:linear-gradient(155deg,#41bac4,#238b93 65%,#41bac4); }
.reference-lists .page-head__title { font-size:18px; font-weight:normal; color:white; }
.reference-lists .page-head__sub { color:#e7f8f9; }
.reference-lists .card { border-radius:0; }
.reference-lists table.tbl thead th { background:white; color:#555; font-size:14px; font-weight:normal; text-transform:none; letter-spacing:normal; }
.reference-lists .record-column-filters input { height:31px; width:100%; min-width:90px; border:1px solid #e4e8ea; padding:4px; }
.reference-lists .record-column-filters select {height:31px;width:100%;min-width:90px;border:1px solid #e4e8ea;border-radius:0;background:white;padding:4px;}
.reference-lists table.tbl tbody tr.is-selected { background:#e4f6f7; }
.reference-lists table.tbl tbody tr { cursor:pointer; }
.reference-lists table.tbl tbody tr[hidden],.reference-row-actions { display:none; }
.calendar-toolbar { display:flex; justify-content:center; gap:8px; padding:8px; }
.calendar-toolbar input { border:1px solid #ddd; padding:5px; min-width:0; }
.calendar-scroll { overflow:auto; flex:1; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); min-width:700px; }
.calendar-weekday { background:#f8f9f9; text-align:center; padding:8px; border:1px solid #eee; }
.calendar-day { min-height:105px; padding:4px; border:1px solid #eee; overflow:hidden; }
.calendar-day.is-outside { background:#fafafa; color:#bbb; }
.calendar-day.is-today { background:#effafa; box-shadow:inset 0 0 0 1px #2dbdc8; }
.calendar-date { border:0; background:transparent; color:inherit; padding:2px 6px; cursor:pointer; }
.calendar-date:hover { background:#e2f3f4; }
.calendar-event { display:block; width:100%; text-align:left; border:0; border-left:3px solid #239aa4; background:#d9f3f5; padding:4px; margin-top:4px; font-size:12px; cursor:pointer; overflow-wrap:anywhere; }
.calendar-event small { display:block; font-size:11px; }
.calendar-event.is-cancelled { background:#eee; border-color:#bbb; text-decoration:line-through; }
.footer { display:none; }
@media(max-width:600px) { .container { padding:7px; } .record-commandbar { gap:4px; } .record-commandbar .btn { padding:5px 8px; font-size:11px; } .record-commandbar .spacer { display:none; } .record-commandbar .record-menu { margin-right:auto; } .record-page .page-head__title { font-size:16px; } .record-overlay .form-grid { grid-template-columns:1fr; } .record-overlay .modal__body { padding:0 12px 12px; } .record-tabs { margin-left:-12px; margin-right:-12px; } .record-tabs button { padding:11px 9px; font-size:11px; } .calendar-toolbar { flex-wrap:wrap; } }
.vehicle-child{border-bottom:1px solid #dde4e8;padding:16px 0}.vehicle-child>.btn{margin:8px 16px}.vehicle-child .form-grid{margin-bottom:8px}#vehicleForm>[role=tabpanel]>.btn{margin:16px}#vehicleError{color:#b3261e;padding:0 16px}
.record-related .table-wrap{width:100%}.record-related>.btn{margin:16px}.record-related .record-commandbar{padding:12px}
.school-contact{margin:16px 0}.school-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0}.school-gallery img{width:100%;height:180px;object-fit:cover}
/* Tables inside record cards use the same column layout on every tab. */
.field:has(>[data-nested-table]){grid-column:1/-1;min-width:0}
.nested-toolbar,.nested-buttons{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}
.nested-table{min-width:620px}
.nested-table td:last-child{white-space:nowrap}
.nested-table tfoot{font-weight:600;background:var(--bg-soft,#f3f5f7)}
.nested-dialog-backdrop{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;background:#15223588;padding:20px}
.nested-dialog{width:min(880px,100%);max-height:90vh;overflow:auto;background:var(--surface,#fff);color:var(--text,#233047);border-radius:12px;padding:24px;box-shadow:0 16px 60px #0003}
.nested-dialog h2{font-size:18px;margin:0 0 20px}
.nested-dialog [role=alert]{color:#b42318}
@media(max-width:600px){.nested-dialog-backdrop{padding:8px}.nested-dialog{padding:16px}.nested-dialog .form-grid{grid-template-columns:1fr}}

.support-has-reply{position:relative;animation:support-reply-pulse 1.5s ease-in-out infinite}.support-unread-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;border-radius:12px;background:#e33b42;color:white;font-size:11px;font-weight:700;padding:0 5px;margin-left:7px}.icon-btn .support-unread-count{position:absolute;top:0;right:-5px;margin:0}#support-reply-alert{position:fixed;top:64px;right:22px;z-index:1200;max-width:min(430px,90vw);padding:13px 18px;border:1px solid #8dd5db;border-radius:10px;background:#e4f7f8;color:#176c75;box-shadow:0 5px 22px #0002;font-weight:600;cursor:pointer}#support-reply-alert[hidden],.support-unread-count[hidden]{display:none}.support-unread-row{background:#eaf8f9!important}.support-reply-label{display:block;color:#18818b;font-size:12px;font-weight:700;margin-top:5px}@keyframes support-reply-pulse{50%{background-color:#2ab8c333;box-shadow:0 0 0 3px #2ab8c344}}@media(prefers-reduced-motion:reduce){.support-has-reply{animation:none;background:#2ab8c333}}

/* Mobile list menus are anchored to the toolbar, not the narrow summary. */
@media(max-width:760px){
  :is(.record-commandbar,.report-commandbar,.record-toolbar):has(.record-menu){position:relative;min-width:0}
  :is(.record-commandbar,.report-commandbar,.record-toolbar) .record-menu{position:static}
  :is(.record-commandbar,.report-commandbar,.record-toolbar) .record-menu>div{
    top:100%;left:auto;right:6px;width:230px;min-width:0;max-width:calc(100% - 12px);
    max-height:min(60dvh,420px);overflow-y:auto;overflow-wrap:anywhere;
  }
  .record-menu button{min-width:0;white-space:normal;overflow-wrap:anywhere}
}
/* Phone header has brand/balance, actions and search on separate rows. */
@media(min-width:601px) and (max-width:900px){html:root{--topbar-h:84px}}
@media(max-width:600px){
  html:root{--topbar-h:116px}
  body .topbar__actions{flex-basis:100%}
}

/* Category icons share one fixed column on desktop and mobile. */
.sidebar__nav :is(.nav__single,.nav__group-head) > .ico{display:block;width:18px;height:18px;flex:0 0 18px;color:inherit}

/* School internal exams */
#view:has(> .school-internal-exams) { padding:0; min-width:0; }
#view > .school-internal-exams {
  width:100%; min-width:0; box-sizing:border-box; margin:0; padding:0;
  min-height:calc(100dvh - var(--topbar-h, 54px)); background:#f8f9fa;
  border:0; border-radius:0; box-shadow:none;
}
.school-internal-exams > nav.course-toolbar,
.school-internal-exams .exam-list-nav {
  display:flex; align-items:center; flex-wrap:wrap; gap:0;
  margin:0; padding:16px 20px; box-sizing:border-box;
  background:#fff; border-bottom:1px solid #dee2e6;
}
#view .school-internal-exams > nav.course-toolbar button,
.school-internal-exams .exam-list-nav :is(button,a) {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:38px; min-width:0; margin:0; padding:8px 16px;
  border:0; border-radius:4px; background:transparent; color:#495057;
  font:400 15px/22px Arial,sans-serif; text-decoration:none; box-shadow:none;
  cursor:pointer;
}
#view .school-internal-exams > nav.course-toolbar button[data-learning-area="personal"] { display:none; }
.school-internal-exams .exam-list-nav [data-view="create"] { color:#449850; }
.school-internal-exams .exam-list-nav a svg { color:#009ab2; }
#view .school-internal-exams > nav.course-toolbar button[aria-pressed="true"],
.school-internal-exams .exam-list-nav [aria-pressed="true"] { color:#fff; background:#009ab2; }
.school-internal-exams .exam-list-nav svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.75; flex:none; }
#view .school-internal-exams > nav.course-toolbar svg { width:20px; height:20px; flex:none; }
.school-internal-exams .course-exam-empty {
  box-sizing:border-box; display:flex; flex-direction:column; align-items:center;
  text-align:center; width:100%; padding:32px 16px; color:#747474;
}
.school-internal-exams .course-exam-empty img { display:block; width:216px; max-width:100%; height:auto; margin:0 0 16px; }
@font-face {
  font-family:SchoolExamHeading; src:url('/fonts/montserrat/Montserrat-Medium.ttf') format('truetype');
  font-weight:500; font-style:normal; font-display:swap;
}
@layer app-typography {
  .school-internal-exams .course-exam-empty h2 { font-weight:500 !important; }
}
.school-internal-exams .course-exam-empty h2 { --app-font:SchoolExamHeading,Arial,sans-serif; --app-heading-size:20px; margin:0 0 10px; font:500 20px/1.35 SchoolMontserrat,Montserrat,Arial,sans-serif; color:#212529; }
.school-internal-exams .course-exam-empty p { --app-body-size:14px; margin:0; font:400 14px/1.5 Arial,sans-serif; }
.school-internal-exams #courseBody > .course-panel { margin:16px 20px; background:#fff; }
.school-internal-exams #courseBody > .course-exam-editor { margin:0; }
@media (max-width:640px) {
  .school-internal-exams > nav.course-toolbar, .school-internal-exams .exam-list-nav { padding:8px; }
  #view .school-internal-exams > nav.course-toolbar button, .school-internal-exams .exam-list-nav :is(button,a) { padding:8px 10px; gap:6px; }
}

/* /css/program-create.css */
#overlay.program-create-overlay .modal{width:min(800px,96vw);max-width:800px;border-top:5px solid #2dbdc8;border-radius:0}#overlay.program-create-overlay .modal__head{border:0}#overlay.program-create-overlay #modalTitle{text-align:center;font-size:20px;font-weight:400}#overlay.program-create-overlay .modal__body{padding:0 18px 20px}#overlay.program-create-overlay .modal__foot{border:0}#overlay.program-create-overlay .program-create-form label{display:block;color:#888;font-size:14px;margin:14px 0 5px}#overlay.program-create-overlay b{color:#e64949}#overlay.program-create-overlay input,#overlay.program-create-overlay select{width:100%;border:0;border-bottom:1px solid #cdd5d9;border-radius:0;padding:8px 0;background:#fff;font:inherit;color:#555}#overlay.program-create-overlay .program-source{display:flex;align-items:center;gap:12px}#overlay.program-create-overlay .program-source select{flex:1;min-width:0}#overlay.program-create-overlay .program-source button{border:0;background:white;color:#555;white-space:nowrap;cursor:pointer}#overlay.program-create-overlay .program-source button:disabled{opacity:.4;cursor:default}#overlay.program-create-overlay .program-create-help{background:#dff5ca;border:1px solid #b9d4a2;color:#55664c;padding:12px;line-height:1.5;margin:18px 0}#overlay.program-create-overlay .program-create-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}#overlay.program-create-overlay .program-controls-note{color:#279ca5;line-height:1.5;margin:26px 0}#overlay.program-create-overlay table,.school-program-preview table{width:100%;border-collapse:collapse;font-size:14px}#overlay.program-create-overlay th,.school-program-preview th{font-weight:400;border-bottom:1px solid #2dbdc8;padding:10px}#overlay.program-create-overlay td,.school-program-preview td{padding:5px 8px;border-bottom:1px solid #eee;vertical-align:middle}#overlay.program-create-overlay th:first-child{width:65%}#overlay.program-create-overlay td select{font-size:14px}#program-create-error{color:#b83232}.school-program-preview{width:96vw;height:92vh;border:0;border-top:5px solid #2dbdc8;padding:18px;box-sizing:border-box}.school-program-preview h3{text-align:center;font-weight:400}.school-program-preview h4{background:#2dbdc8;color:white;padding:12px}.school-program-preview th:first-child{width:65%}.school-program-preview [data-preview-close]{float:right;font-size:24px;border:0;background:white;color:#2dbdc8;cursor:pointer}.school-program-preview [data-expand]{width:20px;height:20px;padding:0;border:0;background:#aaa;color:white;cursor:pointer}.school-program-preview tr[hidden]{display:none}.program-preview-total{text-align:right;color:#666}@media(max-width:600px){#overlay.program-create-overlay .program-create-pair{grid-template-columns:1fr}#overlay.program-create-overlay .program-source{flex-wrap:wrap}}
#overlay.program-create-overlay .modal__foot button{text-transform:uppercase}#overlay.program-create-overlay #modalOk{min-width:154px}#overlay.program-create-overlay .modal__foot{padding:16px 18px}#overlay.program-create-overlay input:focus,#overlay.program-create-overlay select:focus{outline:0;border-bottom:2px solid #2dbdc8}

/* /css/login.css */
body.auth-pending > :not(.login-screen) { display: none !important; }
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(ellipse at top, #e1edf7, #f4f6fb 70%); }
body:not(.auth-pending) .login-screen { display: none; }
.login-card { width: 100%; max-width: 420px; padding: 40px; border: 1px solid #dde7eb; border-radius: 18px; background: white; box-shadow: 0 16px 50px #294d7014; }
.login-card .login-brand { color: #233255; font-size: 17px; font-weight: 800; letter-spacing: 1px; margin-bottom: 32px; }
.login-card .login-brand span { color: inherit; }
.login-card h1 { font-size: 26px; margin: 0 0 10px; }
.login-card p { color: #6b7a8f; margin: 0 0 26px; }
.login-card label { display: block; font-weight: 600; margin: 18px 0 8px; }
.login-card [hidden] { display: none !important; }
.login-card input { box-sizing: border-box; width: 100%; padding: 13px 14px; border: 1px solid #bfd2da; border-radius: 8px; font: inherit; }
.login-card input:focus { outline: 2px solid #2dbdc8; outline-offset: 2px; }
.login-card .login-error { color: #c4353b; font-size: 14px; margin: 14px 0; min-height: 20px; }
.login-card button { width: 100%; padding: 13px; background: #2dbdc8; color: white; font: inherit; font-weight: 600; border: 0; border-radius: 8px; cursor: pointer; }
.login-card button:disabled { opacity: .65; cursor: wait; }
.login-password-field { position:relative; }
.login-card .login-password-field input { padding-right:54px; }
body .login-card .login-password-toggle { position:absolute; top:50%; right:2px; transform:translateY(-50%); display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:6px; background:transparent; color:#61758b; }
.login-password-toggle svg { display:block; width:24px; height:24px; pointer-events:none; }
.login-password-toggle .login-password-slash { display:none; }
.login-password-toggle[aria-pressed="true"] .login-password-slash { display:block; }
body .login-card .login-password-toggle:hover { background:#61758b12; color:#233255; }
body .login-card .login-password-toggle:focus-visible { outline:2px solid #2dbdc8; outline-offset:0; }
#loginPassword::-ms-reveal, #loginPassword::-ms-clear { display:none; }
body .login-card .login-forgot { width:auto; display:block; margin:13px auto 0; padding:0; color:#488bb7; background:transparent; font-size:14px; font-weight:400; }
.login-forgot:hover, .login-back:hover { text-decoration:underline; }
.login-back { display:block; text-align:center; margin-top:20px; color:#488bb7; }
.login-recovery { width:420px; max-width:calc(100% - 32px); padding:28px; border:1px solid #dde7eb; border-radius:12px; color:#405e74; }
.login-recovery::backdrop { background:#16202e66; }
.login-recovery h2 { margin-top:0; font-size:22px; }
.login-recovery label { display:block; margin-bottom:8px; }
.login-recovery input, .login-recovery select { width:100%; padding:12px; border:1px solid #bfd2da; border-radius:6px; font:inherit; }
.login-recovery label:not(:first-child) { margin-top:12px; }
.login-recovery [hidden] { display:none !important; }
.login-recovery { max-height:calc(100vh - 32px); overflow-y:auto; }
.login-recovery button { padding:10px 16px; border:0; border-radius:6px; background:#488bb7; color:#fff; cursor:pointer; font:inherit; }
.login-recovery button:disabled { opacity:.65; cursor:wait; }
.login-recovery .login-recovery-close { margin-top:15px; background:transparent; color:#488bb7; }
.login-recovery [role=status] { font-size:14px; }
.login-card small { display: block; text-align: center; color: #6b7a8f; margin-top: 26px; }
.login-options { margin-top: 18px; }
.login-social { margin-top:22px; padding-top:18px; border-top:1px solid #dde7eb; text-align:center; }
.login-social > span { font-size:13px; color:#6b7a8f; }
.login-social > div { display:flex; gap:10px; margin-top:12px; }
body .login-card .login-social button { background:#fff; color:#405e74; border:1px solid #bfd2da; padding:9px 8px; font-size:14px; font-weight:400; }
.login-social b { margin-right:5px; color:#e33; }
.login-social [data-social-login="vk"] b { color:#0077ff; }
.login-card .login-social small { margin-top:12px; font-size:12px; }
.profile-social { margin:24px 0 8px; padding:22px; border:1px solid #e2e8ef; border-radius:16px; background:#f7f9fc; color:#233255; }
.profile-social .profile-social-heading { display:flex; align-items:center; gap:13px; margin-bottom:20px; }
.profile-social .profile-social-symbol { display:grid; place-items:center; flex:0 0 42px; height:42px; border:1px solid #cfecea; border-radius:12px; color:#16837f; background:#e8f6f4; }
.profile-social-symbol svg { width:24px; height:24px; }
.profile-social .profile-social-heading h3 { margin:0 0 5px; color:#233255; font-size:18px; font-weight:700; line-height:1.3; }
.profile-social .profile-social-heading p { margin:0; color:#65738a; font-size:13px; line-height:1.55; }
.profile-social-list { display:grid; gap:10px; }
.profile-social .profile-social-row { display:flex; align-items:center; gap:14px; padding:17px; border:1px solid #e2e8ef; border-radius:12px; background:#fff; }
.profile-social .profile-social-row.is-linked { border-color:#c8e7de; }
.profile-social .profile-social-brand { display:grid; place-items:center; flex:0 0 44px; height:44px; border-radius:12px; background:#edf2f8; color:#52627b; font-size:27px; font-weight:600; line-height:1; }
.profile-social .profile-social-brand--yandex { color:#f33232; background:#fff; border:1px solid #eceef2; font-family:Arial,sans-serif; }
.profile-social .profile-social-brand--vk { color:#fff; background:#07f; font-family:Arial,sans-serif; font-size:25px; font-weight:700; letter-spacing:-2px; padding-right:2px; box-sizing:border-box; }
.profile-social-info { flex:1; min-width:0; }
.profile-social-title { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.profile-social .profile-social-title strong { color:#233255; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.profile-social .profile-social-badge { padding:3px 7px; border-radius:6px; color:#67758a; background:#f0f3f7; font-size:10px; font-weight:600; line-height:1.4; }
.profile-social .profile-social-badge.is-linked { color:#18775a; background:#e8f6ef; }
.profile-social .profile-social-info small { display:block; margin-top:5px; color:#718096; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.profile-social .btn { min-height:42px; border-radius:9px; font:inherit; font-size:13px; font-weight:600; text-transform:none; }
.profile-social .profile-social-action { flex-shrink:0; padding:10px 15px; border:1px solid #dbe3ec; color:#52627b; background:#fff; }
.profile-social .profile-social-action--link { background:#168780; border-color:#168780; color:#fff; }
.profile-social .profile-social-action:disabled { color:#8390a2; background:#f5f7fa; border-color:#e8edf3; opacity:1; cursor:not-allowed; }
.profile-social .btn:focus-visible { outline:3px solid #80d5cf; outline-offset:3px; }
.profile-social .profile-social-action--link:hover:not(:disabled) { background:#116f69; border-color:#116f69; }
.profile-social .profile-social-note { display:flex; align-items:flex-start; gap:8px; margin:16px 2px 0; color:#718096; font-size:11px; line-height:1.65; }
.profile-social-note svg { flex:0 0 16px; width:16px; height:18px; margin-top:1px; color:#8193a7; }
.profile-social .profile-social-confirm { margin-top:20px; padding:20px; border:1px solid #cee6e3; border-radius:12px; background:#fff; }
.profile-social-confirm[hidden] { display:none !important; }
.profile-social-eyebrow { color:#16837f; font-size:10px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; }
.profile-social .profile-social-confirm h4 { margin:7px 0; color:#233255; font-size:16px; font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
.profile-social .profile-social-confirm-heading p { margin:0; color:#65738a; font-size:12px; line-height:1.6; }
.profile-social-fields { display:flex; flex-wrap:wrap; gap:14px; margin:18px 0; }
.profile-social .profile-social-confirm label { display:block; flex:1 1 180px; min-width:0; margin:0; color:#40516b; font-size:12px; font-weight:600; }
.profile-social .profile-social-confirm input { display:block; box-sizing:border-box; width:100%; height:44px; margin-top:7px; padding:10px 12px; border:1px solid #d7e0ea; border-radius:8px; background:#fbfcfe; color:#233255; font:inherit; font-size:14px; }
.profile-social .profile-social-confirm input:focus { outline:2px solid #80d5cf; outline-offset:1px; border-color:#168780; }
.profile-social-confirm-actions { display:flex; flex-wrap:wrap; gap:8px; }
.profile-social .profile-social-confirm .btn--primary { min-width:0; padding:10px 18px; background:#168780; border-color:#168780; color:#fff; }
.profile-social [data-social-error] { margin:12px 0 0; color:#bd3449; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.profile-social [data-social-error]:empty { display:none; }
@media (max-width:540px) {
  .profile-social { padding:16px 12px; border-radius:12px; }
  .profile-social .profile-social-heading { align-items:flex-start; gap:10px; margin-bottom:16px; }
  .profile-social .profile-social-symbol { flex-basis:36px; height:36px; border-radius:10px; }
  .profile-social .profile-social-heading h3 { font-size:16px; }
  .profile-social .profile-social-row { flex-wrap:wrap; gap:12px; padding:14px; }
  .profile-social-info { flex-basis:calc(100% - 56px); }
  .profile-social .profile-social-action { width:100%; min-height:44px; }
  .profile-social .profile-social-confirm { padding:16px 14px; }
  .profile-social-confirm-actions > .btn { flex:1 1 140px; min-height:44px; }
}
.login-options label { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 400; margin: 10px 0; cursor: pointer; }
.login-options input { width: 16px; height: 16px; padding: 0; accent-color: #2dbdc8; }
.login-options small { text-align: left; margin-top: 10px; }
.personal-cabinet .sidebar, .personal-cabinet #backdrop, .personal-cabinet #burger { display: none !important; }
.personal-cabinet .main { margin-left: 0; }
.personal-cabinet [hidden] { display: none !important; }
.teacher-cabinet [hidden] { display: none !important; }
.cabinet-card { margin: 24px auto; max-width: 1100px; }
.cabinet-card #passwordForm { max-width: 460px; margin-top: 32px; }
.cabinet-section { border-top: 1px solid #dde7eb; padding-top: 20px; margin-top: 24px; }
.cabinet-section h2 { font-size: 20px; margin: 0 0 16px; }
.cabinet-section details { padding: 12px 0; border-bottom: 1px solid #dde7eb; }
.cabinet-section summary { cursor: pointer; font-weight: 600; }
.cabinet-card .cabinet-text { white-space: pre-wrap; margin-top: 12px; }
.cabinet-card #cabinetRefresh { width: auto; padding: 10px 20px; }
.cabinet-photo-section{display:flex;align-items:center;gap:22px}.cabinet-photo-preview{width:120px;height:140px;flex-shrink:0;display:grid;place-items:center;border:1px dashed #b8dadd;border-radius:8px;background:#f6fbfc;color:#789096;text-align:center;font-size:13px}.cabinet-photo-preview img{width:100%;height:100%;object-fit:contain;border-radius:8px}.cabinet-photo-section p{margin:8px 0;font-size:14px}.cabinet-photo-section small{color:#789096;font-size:12px}.cabinet-photo-actions{display:flex;gap:8px;margin:12px 0}.cabinet-card .cabinet-photo-actions button{width:auto;padding:9px 15px;font-size:14px}.cabinet-photo-section [role=status]{min-height:20px;color:#2dbdc8}
@media(max-width:600px){.cabinet-photo-section{align-items:flex-start;gap:12px}.cabinet-photo-preview{width:85px;height:110px}.cabinet-photo-actions{flex-wrap:wrap}}
.field[hidden] { display: none !important; }
@media (max-width: 480px) { .login-card { padding: 28px 22px; } }

/* Authentication may finish before role modules and navigation styles. */
.app-loading{display:none}
body.auth-pending:not(.login-ready)>.login-screen{display:none!important}
body.app-pending:not(.auth-pending)>:not(.app-loading){display:none!important}
body.auth-pending:not(.login-ready)>.app-loading,
body.app-pending:not(.auth-pending)>.app-loading{min-height:100vh;min-height:100svh;box-sizing:border-box;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:24px;background:#f4f6fb;color:#233255;text-align:center}
.app-loading-shell{position:fixed;inset:0;display:grid;grid-template-columns:240px minmax(0,1fr);background:#f4f6fb;pointer-events:none}
.app-loading-sidebar{background:#233255}
.app-loading-content{border-top:64px solid #344150}
.app-loading-content:after{content:"";display:block;width:min(360px,65%);height:12px;margin:36px 24px;background:#e1e6ed;box-shadow:0 32px #e1e6ed,0 64px #e1e6ed}
.app-loading-logo{position:absolute;inset:0;margin:auto;object-fit:contain}
@media(prefers-reduced-motion:no-preference){.app-loading-logo{animation:app-loading-spin 1.4s linear infinite}}
body:not(.app-load-error) #appLoadingMessage{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.app-load-error .app-loading-shell{display:none}
@media(max-width:900px){.app-loading-shell{grid-template-columns:minmax(0,1fr)}.app-loading-sidebar{display:none}}
.app-loading p{max-width:460px;margin:0;font-size:16px;line-height:1.5}
.app-loading button{min-height:44px;padding:10px 18px;border:1px solid #233255;border-radius:6px;background:transparent;color:#233255;font:inherit;cursor:pointer}
.app-loading button[hidden]{display:none}
.app-loading button:focus-visible{outline:3px solid #9fc9ff;outline-offset:4px}

/* The explicit login URL opens the form while its existing session is checked. */
html.login-entry body.auth-pending:not(.login-ready)>.login-screen{display:flex!important}
html.login-entry body.auth-pending:not(.login-ready)>.app-loading{display:none!important}

/* The native entry layer survives the transition from the login document to the role workspace. */
html.mobile-cabinet-opening { background: #fff; overflow: hidden; }
html.mobile-cabinet-opening > body { visibility: hidden !important; pointer-events: none; }
#mobile-cabinet-entrance {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: #233255;
}
#mobile-cabinet-entrance img { width: 48px; height: 48px; }
#mobile-cabinet-entrance .entrance-name {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font: 700 24px/1.2 Inter, Arial, sans-serif;
}
@keyframes cabinet-entrance-letter {
  from { opacity: 0; transform: translateX(calc(50vw + 4em)); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: no-preference) {
  #mobile-cabinet-entrance img { animation: app-loading-spin 1.4s linear infinite; }
  #mobile-cabinet-entrance span { animation: cabinet-entrance-letter 320ms cubic-bezier(.2,.65,.3,1) both; }
  #mobile-cabinet-entrance span:nth-child(2) { animation-delay: 25ms; }
  #mobile-cabinet-entrance span:nth-child(3) { animation-delay: 50ms; }
  #mobile-cabinet-entrance span:nth-child(4) { animation-delay: 75ms; }
  #mobile-cabinet-entrance span:nth-child(5) { animation-delay: 100ms; }
  #mobile-cabinet-entrance span:nth-child(6) { animation-delay: 125ms; }
  #mobile-cabinet-entrance span:nth-child(7) { animation-delay: 150ms; }
  #mobile-cabinet-entrance span:nth-child(8) { animation-delay: 175ms; }
  #mobile-cabinet-entrance span:nth-child(9) { animation-delay: 200ms; }
}

/* Compact Inter faces for the school login, with the full family as fallback. */
@font-face {
  font-family: "Inter School Login";
  src: url("/fonts/inter/Inter-login-Regular-0466decaf3b5.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter School Login";
  src: url("/fonts/inter/Inter-login-Medium-ba1c975c738b.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter School Login";
  src: url("/fonts/inter/Inter-login-SemiBold-a1c2a13a8b27.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter School Login";
  src: url("/fonts/inter/Inter-login-Bold-caef6b95d950.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
html:root.login-entry {
  --font: "Inter School Login", Inter, Arial, "Segoe UI", sans-serif;
}

/* /css/theme.css */
/* Общая компактная тема по исходному виду проекта. */
:root {
  --font: Arial, "Segoe UI", sans-serif;
  --c-primary: #2dbdc8;
  --c-primary-dark: #249aa4;
  --c-primary-light: #eaf8fa;
  --c-bg: #f5f5f5;
  --c-text: #555;
  --c-text-muted: #6b7a8f;
  --c-border: #e3e8f0;
  --c-border-strong: #cfd7e4;
}
body { font-family: var(--font); font-size: 14px; line-height: 1.4; }
body button, body input, body select, body textarea { font-family: var(--font); }
body .topbar { background: #344150; color: #b8c0ca; border-top: 0; border-bottom: 2px solid #d6dce0; box-shadow: none; }
body .topbar a, body .topbar button, body .topbar__brand { color: #b8c0ca; }
body .sidebar { background: #344150; color: #b8c0ca; }
body .sidebar__profile { background: linear-gradient(0deg,#0006,#0001),url('/img/school-profile-background.png') center 60% / cover; }
body .nav__group-head, body .nav__single, body .nav__list a { color: #b8c0ca; font-size: 14px; font-weight: normal; }
body .nav__group.is-open > .nav__group-head { background: #344150; color: #b8c0ca; }
body .nav__single:hover, body .nav__list a:hover { background: #293544; color: white; }
body .nav__list a.is-active, body .nav__single.is-active { background: #2dbdc8; color: white; box-shadow: none; }
body .sidebar__foot { background: #2c3541; }
body .sidebar__support svg { background: #279fa8; }
body .login-screen { background: radial-gradient(ellipse at top, #e1edf7, #f4f6fb 70%); }
body .login-card button { background: #488bb7; }
body .login-brand { color: #405e74; }
body .login-brand span { color: #488bb7; }
body .main table td { font-size: 14px; }
body :is(button,a,input,select,textarea,summary):focus-visible { outline: 2px solid #30bdca; outline-offset: 3px; }
@media (min-width: 769px) {
  :root { --topbar-h: 44px; }
}

/* /css/form-selects.css */
/* Shared dropdown for native multiple selects in all forms and nested dialogs. */
select.form-multiselect__native { display:none !important; }
.form-multiselect { width:100%; min-width:0; }
.form-multiselect__trigger {
  display:flex; align-items:center; gap:12px; width:100%; min-height:34px;
  padding:7px 0; border:0; border-bottom:1px solid #cbd5d9; border-radius:0;
  background:#fff; color:#555; font:inherit; text-align:left; cursor:pointer;
}
.form-multiselect__trigger span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.form-multiselect__trigger::after { content:''; width:6px; height:6px; margin:0 5px 3px 0; border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg); flex:none; }
.form-multiselect__trigger[aria-expanded=true] { border-bottom-color:#2dbdc8; }
.form-multiselect__trigger[aria-expanded=true]::after { transform:rotate(225deg); margin-bottom:0; }
.form-multiselect__trigger:disabled { opacity:.6; cursor:default; }
.form-multiselect__panel {
  position:fixed; inset:auto; z-index:1800; box-sizing:border-box; margin:0;
  padding:5px; border:1px solid #d5dfe2; border-radius:3px;
  background:#fff; color:#555; box-shadow:0 5px 18px #0003;
  overflow-y:auto; overscroll-behavior:contain; font:14px/1.5 Arial,sans-serif;
}
.form-multiselect__panel[hidden] { display:none !important; }
.form-multiselect__actions { display:flex; flex-wrap:wrap; gap:6px; padding:4px; }
body label.form-multiselect__option {
  display:flex; align-items:center; gap:10px; margin:0; padding:8px;
  color:#555; font:inherit; font-weight:normal; cursor:pointer;
}
.form-multiselect__option:hover,.form-multiselect__option:focus-within { background:#eaf8fa; }
button.form-multiselect__option {
  display:block; width:100%; padding:8px; border:0; border-radius:3px;
  color:#555; font:inherit; text-align:left; background:transparent; cursor:pointer;
}
button.form-multiselect__option[aria-pressed=true],
button.form-multiselect__option:hover,
button.form-multiselect__option:focus-visible { background:#eaf8fa; }
button.form-multiselect__option:disabled { opacity:.6; cursor:default; }
body .form-multiselect__option input[type=checkbox] { width:16px; height:16px; min-height:0; padding:0; margin:0; flex:none; accent-color:#2dbdc8; }
.form-multiselect__option:has(:disabled) { opacity:.6; cursor:default; }
body .field .form-multiselect__error { display:block; color:#b33; margin-top:4px; }
.form-multiselect__error[hidden] { display:none !important; }

/* /css/color-selects.css */
.color-label{display:inline-flex;align-items:center;gap:9px;vertical-align:middle}
.color-dot{display:inline-block;box-sizing:border-box;flex:0 0 16px;width:16px;height:16px;min-width:16px;border:2px solid color-mix(in srgb,var(--swatch-color) 50%,white);border-radius:50%;background:var(--swatch-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--swatch-color) 15%,white)}
.color-dot.is-empty{border:1px solid #a9b5bb;background:#fff;box-shadow:none}
.color-input{display:flex;align-items:center;gap:10px;width:100%;min-width:0}.color-input>input{flex:1;min-width:0}.color-input>.color-dot{margin-left:4px}
input[type=color]{border-radius:50%;width:38px;min-width:38px;max-width:38px;height:38px;padding:2px;cursor:pointer}input[type=color]::-webkit-color-swatch-wrapper{padding:2px}input[type=color]::-webkit-color-swatch{border-radius:50%;border:1px solid #cbd5d9}input[type=color]::-moz-color-swatch{border-radius:50%;border:1px solid #cbd5d9}
select.color-select__native{display:none!important}.color-select{display:inline-block;min-width:140px;max-width:100%;vertical-align:middle}.field>.color-select{display:block;width:100%}
.color-select__trigger{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:8px 13px;border:1px solid #d7dcdf;border-radius:9px;background:#f8f9fa;color:#3f484d;font:inherit;text-align:left;cursor:pointer;box-sizing:border-box}
.color-select__caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.color-select__arrow{margin-left:auto;font-size:12px}.color-select__trigger:focus-visible{outline:2px solid #009bb3;outline-offset:2px}.color-select__trigger[aria-expanded=true]{box-shadow:0 0 0 3px #009bb324}.color-select__trigger:disabled{opacity:.6;cursor:default}
.color-select__menu{position:fixed;inset:auto;margin:0;box-sizing:border-box;padding:5px;border:1px solid #d7dcdf;border-radius:12px;background:white;color:#41484b;box-shadow:0 6px 18px #0003;overflow-y:auto;overscroll-behavior:contain;z-index:2000;font:14px/22px Arial,sans-serif}
.color-select__menu[hidden]{display:none!important}.color-select__menu [role=option]{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;border:0;padding:8px 10px;background:transparent;color:inherit;border-radius:6px;text-align:left;font:inherit;cursor:pointer}
.color-select__menu [role=option]:hover,.color-select__menu [role=option]:focus-visible{background:#f0f6f8;outline:0}.color-select__menu [role=option][aria-selected=true]{background:#edf8fb;color:#187b8e;font-weight:600}.color-select__menu [role=option]:disabled{opacity:.5;cursor:default}.color-select__check{margin-left:auto;visibility:hidden}.color-select__menu [aria-selected=true] .color-select__check{visibility:visible}
.planner-filters>.color-select{width:155px;flex-shrink:0}.planner-filters .color-select__trigger{font-size:12px;min-height:36px}.record-column-filters .color-select{width:100%;min-width:110px}.record-column-filters .color-select__trigger{padding:5px 7px;min-height:30px;font-size:12px}
@media(max-width:700px){.planner-filters>.color-select{flex:1;min-width:140px;width:auto}}
@media print{.color-select__menu{display:none!important}}

/* /css/personal-notes.css */
.personal-notes-panel{position:fixed;right:12px;z-index:80;display:flex;flex-direction:column;width:min(960px,calc(100% - 24px));height:min(490px,calc(100dvh - 110px));max-height:calc(100dvh - 110px);padding:10px 8px;background:#fff;border:1px solid #d8dde0;box-shadow:0 4px 16px #0003;color:#555}
.personal-notes-panel[hidden]{display:none!important}
.personal-notes-panel::before{content:"";position:absolute;top:-8px;left:calc(var(--notes-arrow,75%) - 8px);width:14px;height:14px;background:#fff;border-left:1px solid #d8dde0;border-top:1px solid #d8dde0;transform:rotate(45deg)}
.topbar__notes[aria-expanded="true"]{background:#42616a;color:#fff}
.personal-notes-toolbar{display:flex;gap:7px;align-items:center;flex:none;padding:9px 6px 5px}
.personal-notes-toolbar .btn{border-radius:0;box-shadow:none;text-transform:uppercase;font-size:12px;padding:8px 14px}
.personal-notes-toolbar .btn:disabled{color:#aaa;background:#f7f7f7;border-color:#ddd;cursor:default}
.personal-notes-toolbar .personal-notes-icon{font-size:21px;line-height:20px;color:#329aa2;padding:5px 10px;background:transparent;border-color:transparent}
.personal-notes-toolbar .personal-notes-delete{color:#df5555;margin-left:auto;border-color:transparent;background:transparent}
.personal-notes-status{margin:0 8px;color:#a14436;font-size:12px;white-space:pre-wrap;flex:none}
.personal-notes-status:empty{display:none}
.personal-notes-table-wrap{overflow:auto;flex:1;min-height:0}
.personal-notes-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:14px}
.personal-notes-table th{position:sticky;top:0;background:#fff;padding:11px 8px 18px;font-weight:400;text-align:center;border-bottom:1px solid #36b6bf;z-index:1}
.personal-notes-table th:first-child{width:150px;border-right:1px solid #eee}
.personal-notes-table td{padding:6px 8px;border-bottom:1px solid #e9e9e9;white-space:pre-wrap;overflow-wrap:anywhere}
.personal-notes-table td:first-child{border-right:1px solid #eee}
.personal-notes-table tr[data-note-id]{cursor:pointer}
.personal-notes-table tr[data-note-id]:hover,.personal-notes-table tr.is-selected{background:#eaeaea}
.personal-notes-table tr[data-note-id]:focus-visible{outline:2px solid #299ca6;outline-offset:-2px}
.personal-notes-table .personal-notes-empty{text-align:center;color:#8b999e;padding:30px 8px;border:0}
.personal-notes-footer{padding:7px 8px;border-top:1px solid #ddd;background:#fafafa;color:#3eabb4;font-size:12px;flex:none}
#overlay.personal-note-overlay .modal{width:min(800px,calc(100vw - 24px));max-width:800px;border-radius:0;border-top:4px solid #2dbdc8}
#overlay.personal-note-overlay .modal__head{justify-content:center;padding:16px 24px 10px;border-bottom:0;background:#fff}
#overlay.personal-note-overlay .modal__head>div{flex:1;text-align:center}
#overlay.personal-note-overlay .modal__head h3{font-size:18px;font-weight:400;color:#555}
#overlay.personal-note-overlay .modal__head p{display:none}
#overlay.personal-note-overlay .modal__close{color:#289da6}
#overlay.personal-note-overlay .modal__body{padding:8px 20px 12px}
#overlay.personal-note-overlay .personal-note-form{display:flex;flex-direction:column;gap:20px}
.personal-note-field{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:start;gap:18px;width:100%}
.personal-note-field label{padding-top:8px;color:#8d9599;font-weight:400;text-transform:none;font-size:14px}
.personal-note-field label span{color:#e75a67}
#overlay.personal-note-overlay .personal-note-field input{border:0;border-bottom:1px solid #cbd2d6;border-radius:0;box-shadow:none;width:100%;padding:7px 0;min-height:36px;background:white}
#overlay.personal-note-overlay .personal-note-field textarea{width:100%;resize:vertical;min-height:195px;border:1px solid #cbd2d6;border-radius:0;padding:8px;background:white;line-height:1.5}
#overlay.personal-note-overlay .modal__foot{border:0;padding:6px 20px 16px;justify-content:flex-end}
#overlay.personal-note-overlay .modal__foot .btn{border-radius:0;text-transform:uppercase;min-width:120px}
#overlay.personal-note-overlay #modalCancel{border-color:transparent;background:transparent;color:#329da6}
#personalNoteError{margin:0;color:#b23e48;white-space:pre-wrap}
@media(max-width:600px){.personal-notes-panel{right:8px;width:calc(100% - 16px);height:min(490px,calc(100dvh - 115px));padding:5px}.personal-notes-toolbar{gap:3px;padding:8px 0}.personal-notes-toolbar .btn{font-size:10px;padding:7px}.personal-notes-toolbar .personal-notes-icon{font-size:20px;padding:4px 6px}.personal-notes-table th:first-child{width:105px}.personal-note-field{grid-template-columns:1fr;gap:4px}#overlay.personal-note-overlay .personal-note-form{gap:10px}#overlay.personal-note-overlay .modal__body{padding:8px 12px}#overlay.personal-note-overlay .modal__foot{padding:8px 12px 14px}}
@media print{.personal-notes-panel{display:none!important}}

/* /css/form-dialogs.css */
/* Shared form appearance, using /tasks as the reference.
   Keep each card's width, tabs and internal grid. Task editor has its own styles. */
:where(.form-dialog-overlay) > .modal { max-width:800px; }
#overlay.form-dialog-overlay:not(.task-create-overlay) {
  align-items:flex-start; padding:40px 16px; background:#0008; backdrop-filter:none;
}
#overlay.form-dialog-overlay:not(.task-create-overlay) > .modal {
  max-height:calc(100dvh - 80px); border:1px solid #777; border-radius:14px;
  overflow:hidden; background:#fff; color:#34383a; box-shadow:0 14px 40px #0002;
}
#overlay.form-dialog-overlay:not(.task-create-overlay) > .modal > .modal__head {
  flex:none; min-height:62px; padding:16px; justify-content:flex-start; align-items:center; border-bottom:1px solid #ddd;
}
#overlay.form-dialog-overlay:not(.task-create-overlay) .modal__head > div:has(#modalTitle) { min-width:0; text-align:left; justify-content:flex-start; }
#overlay.form-dialog-overlay:not(.task-create-overlay) #modalTitle { color:#34383a; font-size:21px; font-weight:400; line-height:28px; text-align:left; }
#overlay.form-dialog-overlay:not(.task-create-overlay) #modalSub:empty { display:none; }
#overlay.form-dialog-overlay:not(.task-create-overlay) #modalClose {
  position:static; flex-shrink:0; margin-left:auto; width:24px; height:28px; padding:0; color:#888; border:0; background:none;
}
#overlay.form-dialog-overlay:not(.task-create-overlay) .student-expand { position:static; }
#overlay.form-dialog-overlay:not(.task-create-overlay) > .modal > .modal__body { min-height:0; padding:24px 16px 20px; }
#overlay.form-dialog-overlay:not(.task-create-overlay) .record-tabs { margin-inline:0; }
#overlay.form-dialog-overlay:not(.task-create-overlay) .field { min-width:0; gap:7px; }
#overlay.form-dialog-overlay:not(.task-create-overlay) .nested-dialog {
  border:1px solid #777; border-radius:14px; color:#34383a; box-shadow:0 14px 40px #0002;
}
#overlay.form-dialog-overlay:not(.task-create-overlay) .nested-dialog h2 { font-size:21px; font-weight:400; }
#overlay.form-dialog-overlay:not(.task-create-overlay) .nested-buttons .btn { border-radius:11px; min-height:38px; text-transform:none; }
#overlay.form-dialog-overlay:not(.task-create-overlay) .nested-buttons .btn--primary { background:#009bb3; border-color:#009bb3; color:#fff; }
#overlay.form-dialog-overlay:not(.task-create-overlay) :is(.field > label:not(:has(input[type=checkbox],input[type=radio])),.profile-field > span,.program-create-form label,.personal-note-field > label) {
  color:#8c8f90; font-size:12px; line-height:16px; text-transform:uppercase; font-weight:600; margin:0;
}
#overlay.form-dialog-overlay:not(.task-create-overlay) :is(.profile-field > span,.program-create-form label) { display:block; margin-bottom:7px; }
#overlay.form-dialog-overlay:not(.task-create-overlay) :where(.field,.profile-field,.program-create-form,.personal-note-field) :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=color]),select:not([multiple]),textarea),
#overlay.form-dialog-overlay:not(.task-create-overlay) :is(.form-multiselect__trigger,.color-select__trigger) {
  width:100%; min-width:0; height:38px; min-height:38px; padding:7px 12px;
  border:1px solid #d7d7d7; border-radius:11px; background:#fff;
  box-shadow:inset 0 1px 2px #00000005; color:#303638; font:14px/22px Arial,sans-serif;
}
#overlay.form-dialog-overlay:not(.task-create-overlay) :is(.field,.profile-field,.program-create-form,.personal-note-field) textarea { height:auto; min-height:90px; resize:vertical; }
#overlay.form-dialog-overlay:not(.task-create-overlay) :is(.field,.profile-field,.program-create-form,.personal-note-field) select,
#overlay.form-dialog-overlay:not(.task-create-overlay) :is(.form-multiselect__trigger,.color-select__trigger) { background-color:#f8f9fa; }
#overlay.form-dialog-overlay:not(.task-create-overlay) :is(input,select,textarea):focus,
#overlay.form-dialog-overlay:not(.task-create-overlay) :is(.form-multiselect__trigger,.color-select__trigger):focus-visible {
  outline:2px solid #039bb333; outline-offset:1px; border-color:#009bb3; box-shadow:none;
}
#overlay.form-dialog-overlay:not(.task-create-overlay) input::placeholder { color:#85898c; }
#overlay.form-dialog-overlay:not(.task-create-overlay) :is(input,select,textarea):is(:disabled,[readonly]) { background:#f3f5f6; color:#6b7478; }
#overlay.form-dialog-overlay:not(.task-create-overlay) :is(input,textarea):is(.input-error,[aria-invalid=true]) { border-color:#c43e3e; }
#overlay.form-dialog-overlay:not(.task-create-overlay) .field small { color:#85898c; font-size:12px; line-height:16px; }
#overlay.form-dialog-overlay:not(.task-create-overlay) > .modal > .modal__foot { flex:none; padding:16px; border-top:1px solid #ddd; }
#overlay.form-dialog-overlay:not(.task-create-overlay) > .modal > .modal__foot .btn {
  min-width:0; min-height:38px; padding:7px 12px; border:1px solid #ddd; border-radius:11px; text-transform:none; font-size:14px; font-weight:400;
}
#overlay.form-dialog-overlay:not(.task-create-overlay) #modalCancel { color:#34383a; background:#f8f9fa; }
#overlay.form-dialog-overlay:not(.task-create-overlay) #modalOk.btn--primary { margin-left:auto; background:#009bb3; color:#fff; border-color:#009bb3; }
#overlay.form-dialog-overlay:not(.task-create-overlay) #modalOk.btn--danger { margin-left:auto; background:#c43e3e; color:#fff; border-color:#c43e3e; }
@media(max-width:600px) {
  #overlay.form-dialog-overlay:not(.task-create-overlay) { padding:12px 8px; }
  #overlay.form-dialog-overlay:not(.task-create-overlay) > .modal { max-height:calc(100dvh - 24px); min-height:0; max-width:100%; }
  #overlay.form-dialog-overlay:not(.task-create-overlay) > .modal > .modal__body { padding:18px 12px; }
  #overlay.form-dialog-overlay:not(.task-create-overlay) > .modal > .modal__head { flex-wrap:wrap; }
  #overlay.form-dialog-overlay:not(.task-create-overlay) .form-grid { grid-template-columns:minmax(0,1fr); }
}
#overlay > .modal:has(.category-access),
.category-access-dialog.student-detail-dialog {
  width:min(720px,calc(100vw - 24px)); max-width:100%; height:auto; border-radius:4px; padding:0;
  align-self:flex-start; max-height:calc(100dvh - 40px);
}
#overlay > .modal:has(.category-access) > .modal__head,
.category-access-dialog.student-detail-dialog > header {
  flex:none; min-height:56px; padding:12px 14px; border-bottom:1px solid #ddd; background:#fff;
}
#overlay > .modal:has(.category-access) #modalTitle,
.category-access-dialog.student-detail-dialog > header h2 {font-size:18px; font-weight:500; margin:0;}
#overlay > .modal:has(.category-access) :is(#modalSub,.modal__foot) {display:none;}
#overlay > .modal:has(.category-access) > .modal__body,
.category-access-dialog.student-detail-dialog > .student-detail-body {padding:0; overflow:auto;}
.category-access {padding:14px 14px 0; color:#292d32; background:#fff; font-size:14px; line-height:1.55;}
.category-access > p,.category-access form > p {margin:0 0 14px;}
.category-access > p:empty,.category-access form > p:empty,.category-access-options:empty {display:none;}
.category-access-required {font-size:18px; color:#bf402b;}
.category-access-link {padding:0; border:0; background:none; color:#007687; font:inherit; cursor:pointer;}
.category-access-options {display:flex; flex-wrap:wrap; gap:7px; margin:0 0 14px;}
.category-access-options button {
  padding:8px 14px; border:1px solid #d8d8d8; border-radius:3px; background:#fff;
  color:#4d5156; min-height:38px; font:inherit; cursor:pointer;
}
.category-access-options button[aria-pressed=true] {background:#00849c; border-color:#00849c; color:#fff;}
.category-access-options button[data-has-options=true][aria-pressed=true] {font-weight:500;}
.category-access:has([data-category-option][aria-pressed=true]) [data-has-options=true][aria-pressed=true] {
  background:#fff; color:#33434a; border-color:#00849c;
}
.category-access-actions {
  display:flex; justify-content:flex-end; margin:0 -14px; padding:14px;
  background:#f6f7f8; border-top:1px solid #ddd;
}
.category-access-actions button.btn {
  min-height:34px; padding:6px 13px; border-radius:3px; font-size:14px;
  background:#258141; border-color:#258141; color:#fff;
}

/* /css/cabinet-logo.css */
/* Единый актуальный логотип. Цветовая тема кабинетов сохранена. */
body img.cabinet-logo{display:block;height:auto;object-fit:contain;flex:none;max-width:100%}
body .topbar__logo>img.cabinet-logo{width:175px;max-height:32px}
body .login-brand>img.cabinet-logo{width:220px;margin:0 auto}
body.student-app .brand>img.cabinet-logo{width:175px;max-height:36px}
body.mobile-app .brand>img.cabinet-logo{width:175px;max-height:32px}
body .login-card>img.cabinet-logo{width:220px;margin-bottom:18px}
body #workspace>aside .brand img.cabinet-logo{width:172px;max-height:36px}
@media(max-width:600px){body .topbar__logo>img.cabinet-logo{width:138px}body.mobile-app .brand>img.cabinet-logo{width:145px}body.mobile-app #profileButton{max-width:75px}}
@media(max-width:380px){body .topbar__logo>img.cabinet-logo{width:120px}body.student-app .brand>img.cabinet-logo{width:120px}body.mobile-app #profileButton{max-width:50px}}

/* /css/cabinet-appearance.css */
/* 26.10.2026: новый цвет только верхней шапки. Меню использует штатные стили.
   Inter сохранён по отдельному указанию пользователя. */
@font-face{font-family:Inter;src:url('/fonts/inter/Inter-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url('/fonts/inter/Inter-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url('/fonts/inter/Inter-SemiBold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url('/fonts/inter/Inter-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
html:root{--font:Inter,Arial,"Segoe UI",sans-serif;--cabinet-frame:#233255}
body,body *:not(svg):not(svg *){font-family:var(--font)!important}
body :is(pre,code,kbd,samp),body :is(pre,code,kbd,samp) *{font-family:Consolas,"Courier New",monospace!important}

html body .topbar,
html body.student-app .top,
html body.student-app.mobile-app .top{background:var(--cabinet-frame);color:#fff;border-color:var(--cabinet-frame)}
html body .topbar :is(a,button,.topbar__brand),
html body.student-app .top :is(button,a){color:#fff}
html body .topbar .icon-btn svg{stroke:currentColor}
html body .topbar svg [stroke="#344150"]{stroke:var(--cabinet-frame)}
html body .topbar svg [fill="#344150"]{fill:var(--cabinet-frame)}

/* /css/login-reference.css */
/* Окно основной ИСО по образцу ELMA365. Правила ограничены экраном входа. */
body #loginScreen {
  min-height:100vh; min-height:100svh; padding:64px 24px 40px;
  flex-direction:column; gap:0; background:#0d2a3c;
  font-family:"SF Pro Display",Helvetica,Arial,sans-serif; color:#333;
}
#loginScreen .login-reference-brand { display:block; flex:none; width:256px; max-width:80%; margin:0 auto 90px; }
#loginScreen .login-reference-brand img { display:block; width:100%; height:auto; }
#loginScreen .login-card { flex:none; width:100%; max-width:512px; padding:24px; border:0; border-radius:24px; box-shadow:none; background:#fff; }
#loginForm h1 { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 24px; font-size:20px; font-weight:500; line-height:28px; color:#333; }
#loginForm .login-site-name { padding:1px 8px; border-radius:16px; background:#eaf1f5; color:#354957; font-size:13px; font-weight:600; line-height:22px; }
#loginForm .login-field-label { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
#loginForm input:not([type=checkbox]) { height:44px; padding:10px 0; border:0; border-bottom:1px solid #d9d9d9; border-radius:0; background:transparent; box-shadow:none; color:#333; font:400 15px/24px Helvetica,Arial,sans-serif; }
#loginForm input:not([type=checkbox])::placeholder { color:#919191; opacity:1; }
#loginForm input:not([type=checkbox]):focus { border-bottom-color:#1e6599; outline:0; box-shadow:0 1px 0 #1e6599; }
#loginForm .login-password-field { margin-top:0; }
#loginForm .login-password-field input { padding-right:44px; }
body #loginForm .login-password-toggle { right:-8px; width:44px; height:44px; border-radius:50%; color:#1e6599; background:transparent; }
#loginForm .login-password-toggle svg { width:18px; height:18px; }
body #loginForm .login-password-toggle:hover { background:#edf4f8; }
#loginForm .login-controls { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-top:28px; }
#loginForm .login-options { margin:0; }
#loginForm .login-options label { gap:8px; min-height:24px; margin:0 0 4px; font-size:14px; line-height:24px; color:#333; }
#loginForm .login-options input { flex:none; margin:0; width:16px; height:16px; accent-color:#1e6599; }
body #loginForm .login-forgot { flex:none; min-height:24px; margin:0; padding:0; border:0; border-radius:2px; color:#1e6599; background:transparent; font-size:14px; font-weight:500; line-height:24px; }
#loginForm #loginModeHint { margin:8px 0 0; color:#737b80; text-align:left; font-size:12px; line-height:18px; }
#loginForm .login-error { margin:16px 0 0; min-height:0; color:#bd3449; font-size:14px; line-height:20px; overflow-wrap:anywhere; }
#loginForm .login-error:empty { display:none; }
body #loginForm #loginSubmit { width:auto; min-height:36px; margin-top:22px; padding:5px 14px; border:1px solid #1e6599; border-radius:10px; color:#fff; background:#1e6599; font-size:15px; font-weight:500; line-height:24px; }
body #loginForm #loginSubmit:hover:not(:disabled) { background:#18547f; border-color:#18547f; }
#loginForm .login-social { margin-top:24px; padding-top:18px; border-top:1px solid #e7ecef; }
#loginForm .login-social > span { font-size:13px; color:#77838c; }
#loginForm .login-social > a { display:block; margin-bottom:12px; color:#1e6599; font-size:13px; line-height:20px; }
#loginForm .login-social > div { display:flex; gap:12px; margin-top:14px; }
body #loginForm .login-social button { display:flex; align-items:center; justify-content:center; gap:9px; width:50%; min-height:44px; padding:9px 12px; border:1px solid #d9e1e6; border-radius:10px; background:#fff; color:#344957; font-size:14px; font-weight:500; line-height:24px; }
body #loginForm .login-social button:hover:not(:disabled) { background:#f4f8fa; border-color:#91afc3; }
#loginForm .login-provider-icon { flex:none; display:block; width:24px; height:24px; margin:0; }
#loginForm .login-provider-icon--yandex { object-fit:contain; }
#loginForm .login-social small { margin:12px 0 0; color:#737b80; font-size:12px; line-height:18px; }
body #loginForm :is(button,input[type=checkbox]):focus-visible, #loginScreen .login-reference-brand:focus-visible { outline:2px solid #4c96c5; outline-offset:3px; }
#loginForm #loginOtpField label { margin:18px 0 0; font-size:14px; font-weight:400; }
#loginScreen .login-reference-note { margin:20px 0 0; color:#9cabb5; font-size:12px; line-height:20px; text-align:center; }
@media(max-width:540px) {
  body #loginScreen { padding:40px 16px 28px; }
  #loginScreen .login-reference-brand { width:236px; margin-bottom:44px; }
  #loginScreen .login-card { padding:24px 20px; }
  #loginForm .login-controls { flex-wrap:wrap; gap:12px; }
}
@media(max-width:360px) {
  body #loginScreen { padding:28px 12px 24px; }
  #loginScreen .login-card { padding:22px 16px; }
  #loginForm .login-controls { flex-direction:column; gap:8px; }
  #loginForm .login-social > div { gap:8px; }
  body #loginForm .login-social button { padding:9px 6px; }
}
@media(max-height:720px) and (min-width:541px) {
  body #loginScreen { padding-top:32px; padding-bottom:28px; }
  #loginScreen .login-reference-brand { margin-bottom:36px; }
}

#loginScreen .login-reference-note a { color:inherit; text-underline-offset:4px; }

#loginForm .login-primary-actions { display:flex; align-items:stretch; gap:14px; margin-top:22px; }
body #loginForm .login-primary-actions #loginSubmit { flex:1; min-height:44px; margin:0; }
#loginForm .login-registration-action { display:flex; flex:1; align-items:center; justify-content:center; min-height:44px; padding:8px 14px; border:1px solid #1e6599; border-radius:10px; color:#1e6599; background:#fff; font-size:15px; font-weight:500; line-height:24px; text-align:center; text-decoration:none; }
#loginForm .login-registration-action:hover { background:#edf4f8; border-color:#18547f; color:#18547f; }
#loginForm .login-registration-action:focus-visible { outline:2px solid #4c96c5; outline-offset:3px; }
#loginForm .login-social > :is(.login-school-registration,.login-private-registration) { display:flex; min-height:44px; margin:0 0 18px; color:#fff; background:#f7af4b; border-color:#f7af4b; font-size:15px; line-height:24px; }
#loginForm .login-social > :is(.login-school-registration,.login-private-registration):hover { background:#efa036; border-color:#efa036; color:#fff; }
@media(max-width:360px) { #loginForm .login-primary-actions { flex-direction:column; gap:10px; } }

#loginForm .login-primary-actions > .login-registration-action { background:#5ab653; border-color:#5ab653; color:#fff; }
#loginForm .login-primary-actions > .login-registration-action:hover { background:#4fa449; border-color:#4fa449; color:#fff; }
/* Выбор доступной автошколы после проверки общих учётных данных. */
#loginForm #loginSchool { box-sizing:border-box; width:100%; min-height:44px; padding:10px 12px; border:1px solid #d9d9d9; border-radius:8px; background:#fff; color:#333; font:inherit; }
#loginForm #loginSchool:focus-visible { outline:2px solid #0098b8; outline-offset:2px; }

/* Подпись собственного логотипа на общем экране входа. */
#loginScreen .login-brand-tagline { display:block; box-sizing:border-box; margin-top:8px; padding-left:20%; color:#fff; font:400 11px/1.4 Arial,sans-serif; text-align:center; white-space:nowrap; }
@media(max-width:540px) { #loginScreen .login-brand-tagline { font-size:10px; } }

#loginForm .login-social > .login-school-registration { margin-bottom:10px; }
#loginForm .login-social > .login-private-registration { display:flex; min-height:44px; margin:0 0 18px; font-size:15px; line-height:24px; }

/* /css/project-header.css */
/* Shared project header color. Role menus and content accents retain their own styles. */
:root{--cabinet-frame:#233255}
html body .topbar,html body.student-app .top,html body>.learner-topbar,html body>header{background:var(--cabinet-frame);color:#fff;border-color:var(--cabinet-frame)}
html body .topbar :is(a,button),html body.student-app .top :is(a,button),html body>.learner-topbar a{color:#fff}

/* /css/school-app-login.css */
#loginScreen .login-reference-note {
  position: relative;
}

#loginScreen .login-reference-note > .school-app-change {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  text-underline-offset: 4px;
}

#loginScreen .school-app-change:focus-visible {
  outline: 2px solid #4c96c5;
  outline-offset: 3px;
}

/* /css/loading-logo.css */
/* The same brand mark is used by the initial screen and in-page loaders. */
@keyframes app-loading-spin { to { transform: rotate(1turn); } }
@keyframes site-loading-reveal { to { visibility: inherit; } }

.site-loading-status::before,
.site-loading-region[aria-busy="true"]:has(> iframe)::before {
  content: "";
  width: 48px;
  height: 48px;
  background: url("/img/favicon.svg") center / 36px 36px no-repeat;
  visibility: hidden;
  animation: site-loading-reveal 0s 160ms forwards;
  pointer-events: none;
}

.site-loading-status::before {
  display: block;
  margin: 0 auto 8px;
}

.site-loading-region[aria-busy="true"]:has(> iframe) {
  position: relative;
  isolation: isolate;
}
.site-loading-region[aria-busy="true"]:has(> iframe)::before {
  position: absolute;
  z-index: -1;
  inset-block-start: clamp(0px, calc(50% - 24px), 100px);
  inset-inline-start: calc(50% - 24px);
  border-radius: 50%;
  background-color: #f4f6fb;
}

.owner-boot-loading {
  position: fixed;
  z-index: 2;
  inset: 40% 0 auto;
  text-align: center;
  pointer-events: none;
}
body:not(.auth-pending) > .owner-boot-loading,
body:has(> #workspace:not([hidden])) > .owner-boot-loading,
body.auth-pending:has(> .owner-boot-loading) > #login-screen { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .site-loading-status::before,
  .site-loading-region[aria-busy="true"]:has(> iframe)::before {
    animation: site-loading-reveal 0s 160ms forwards, app-loading-spin 1.4s 160ms linear infinite;
  }
}

/* /cookie-notice.css */
/* Shared cookie notice. Dimensions and copy follow the supplied screenshot. */
#uchurulit-cookie-notice,
#uchurulit-cookie-notice * { font-family: Arial, Helvetica, sans-serif !important; }
#uchurulit-cookie-notice {
  box-sizing: border-box;
  position: fixed;
  z-index: 2147483000;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex !important;
  align-items: center;
  width: 720px;
  max-width: calc(100% - 40px);
  min-height: 88px;
  margin: 0;
  padding: 20px 30px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #111;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
  font: 17px/24px Arial, Helvetica, sans-serif;
  text-align: left;
  letter-spacing: normal;
}
#uchurulit-cookie-notice .cookie-notice-icon {
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0 9px 0 0;
  padding: 0;
  border: 0;
}
#uchurulit-cookie-notice .cookie-notice-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 26px 0 0;
  padding: 0;
  font: inherit;
  color: inherit;
}
#uchurulit-cookie-notice .cookie-notice-link {
  color: #005bff;
  font: inherit;
  text-decoration: none;
}
#uchurulit-cookie-notice .cookie-notice-accept {
  box-sizing: border-box;
  display: block;
  flex: 0 0 109px;
  align-self: flex-start;
  width: 109px;
  min-width: 109px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #005bff;
  color: #fff;
  box-shadow: none;
  font: 600 16px/44px Arial, Helvetica, sans-serif;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
#uchurulit-cookie-notice .cookie-notice-link:hover { text-decoration: underline; }
#uchurulit-cookie-notice .cookie-notice-accept:hover { background: #004ee0; }
#uchurulit-cookie-notice .cookie-notice-accept:active { background: #0044c4; }
#uchurulit-cookie-notice :focus-visible { outline: 2px solid #005bff; outline-offset: 4px; }
#uchurulit-cookie-notice ::selection { background: #d9e7ff; color: #111; }
@media (max-width: 600px) {
  #uchurulit-cookie-notice {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) 80px;
    gap: 8px;
    max-width: calc(100% - 20px);
    min-height: 0;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 12px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 18px;
  }
  #uchurulit-cookie-notice .cookie-notice-icon { width: 24px; height: 24px; margin: 0; }
  #uchurulit-cookie-notice .cookie-notice-text { margin: 0; }
  #uchurulit-cookie-notice .cookie-notice-accept {
    align-self: center;
    width: 80px;
    min-width: 80px;
    margin: 0;
    border-radius: 8px;
    font-size: 13px;
  }
}
@media print { #uchurulit-cookie-notice { display: none !important; } }


/* Keep cabinet loading statuses available to assistive technology. */
:root { --cabinet-loading-ui: 1; }
[data-native-loading] {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-shadow: none !important;
}
.empty[data-native-loading] > :is(h3, p) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
[data-native-loading]:not(.site-loading-status)::before,
html[data-native-loading-ui] .academic-entry-pending::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin-inline: auto;
  background: url("/img/favicon.svg") center / contain no-repeat;
  pointer-events: none;
}
html[data-native-loading-ui] .academic-entry-pending::before {
  box-sizing: content-box;
  padding: 0;
  margin: 24px auto;
}
html[data-native-loading-ui] #boot.site-loading-status:not([data-native-loading])::before {
  content: none;
}
@media (prefers-reduced-motion: no-preference) {
  [data-native-loading]:not(.site-loading-status)::before,
  html[data-native-loading-ui] .academic-entry-pending::before {
    animation: native-loading-spin 1.4s linear infinite;
  }
}
@keyframes native-loading-spin { to { transform: rotate(1turn); } }


/* A select cannot render a rotating pseudo-element. Its pending status occupies
   the same place until the selected option, the disabled state or the error changes. */
[data-loading-option], [data-loading-choice] {
  display: none !important;
}
select:disabled:has(> option[data-loading-option]:checked) {
  display: none !important;
}
select:disabled:has(> option[data-loading-option]:checked) + [data-loading-choice] {
  display: inline-block !important;
}
.student-reference-contract > header > [data-loading-choice] {
  margin-inline-start: auto;
}
#overlay .student-reference-contract:has(> [data-contract-visibility-status]:not([hidden])) > header > [data-loading-choice] {
  display: none !important;
}

/* One progress mark per contract or driving panel while its fields load together. */
#overlay .student-reference-contract:has(> .student-reference-payments [data-native-loading]) > header > [data-loading-choice],
#overlay .student-driving-filters:has(~ [data-driving-list] [data-native-loading]) [data-driving-total][data-native-loading]::before {
  display: none !important;
}

/* Keep a loading mark inside the active window, including same-origin frames. */
html:is([data-loading-window-open], [data-loading-frame-covered]) {
  --cabinet-loading-opacity: 0;
  --cabinet-loading-play: paused;
}
html:not([data-loading-frame-covered]) [data-loading-foreground] {
  --cabinet-loading-opacity: 1;
  --cabinet-loading-play: running;
}
html:is([data-loading-window-open], [data-loading-frame-covered]) :is(
  [data-native-loading], .site-loading-status, .site-loading-region[aria-busy="true"]:has(> iframe),
  .academic-entry-pending
)::before,
html:is([data-loading-window-open], [data-loading-frame-covered]) :is(.app-loading-logo, .app-pull-refresh[data-state="loading"]) {
  opacity: var(--cabinet-loading-opacity) !important;
  animation-play-state: var(--cabinet-loading-play) !important;
}

/* /css/cabinet-rail.css */
/* Floating navigation shared by the school administration and service owner. */
body:has(#sidebar.cabinet-rail), #workspace:has(#ownerSidebar.cabinet-rail) {
  --rail-width: 70px;
  --rail-height: 868px;
  --rail-edge: 14px;
  --rail-gap: 30px;
  --rail-top: var(--topbar-h,48px);
  --rail-top-gap: 24px;
  --rail-duration: 440ms;
  --rail-ease: cubic-bezier(.45,0,.25,1);
}
#workspace:has(#ownerSidebar.cabinet-rail) { --rail-top: 0px; }
body:has(#sidebar.cabinet-rail[data-expanded="true"]),
#workspace:has(#ownerSidebar.cabinet-rail[data-expanded="true"]) { --rail-width:254px; }
body:has(#sidebar.cabinet-rail) > .main,
#workspace:has(#ownerSidebar.cabinet-rail) > main {
  margin-left:calc(var(--rail-edge) + var(--rail-width) + var(--rail-gap));
  transition:margin-left var(--rail-duration) var(--rail-ease);
}
:is(#sidebar,#ownerSidebar).cabinet-rail[data-expanded] {
  box-sizing:border-box; position:fixed; display:flex; flex-direction:column; align-items:stretch;
  inset:calc(var(--rail-top) + var(--rail-top-gap)) auto 8px var(--rail-edge); margin:var(--rail-margin-y,0px) 0;
  width:var(--rail-width); min-width:0; max-width:calc(100vw - 54px); height:var(--rail-height);
  min-height:0; max-height:calc(100dvh - var(--rail-top) - var(--rail-top-gap) - 8px - env(safe-area-inset-bottom));
  padding:0; gap:0; overflow:visible; transform:none; visibility:visible; pointer-events:auto;
  border:1px solid #284267; border-radius:21px;
  background:radial-gradient(ellipse at 33% 8%,#14304b66,transparent 66%),linear-gradient(153deg,#0a2139,#071c31 57%,#081c32);
  color:#a7bbd4; box-shadow:inset 0 0 0 1px #477dcc26,inset 0 0 18px #1b61ac10,0 4px 15px #04112229;
  transition:width var(--rail-duration) var(--rail-ease),height var(--rail-duration) var(--rail-ease),border-radius var(--rail-duration) var(--rail-ease);
  --avatar-size:33px; --rail-row:41px; --rail-list-padding:12px;
}
:is(#sidebar,#ownerSidebar).cabinet-rail[data-expanded="true"] {border-radius:28px;--avatar-size:56px;--rail-row:46px;--rail-list-padding:15px}
:is(#sidebar,#ownerSidebar).cabinet-rail[data-expanded]::before {
  content:"";position:absolute;z-index:1;left:0;top:16%;bottom:12%;width:2px;border-radius:2px;
  pointer-events:none;background:linear-gradient(#3264b9,#408ffa 30%,#a3d7ff 36%,#246fff 42%,#4588ff 73%,#4b71bc 88%,#e9a13d);box-shadow:0 0 4px #5197ff66;
}
:is(#sidebar,#ownerSidebar).cabinet-rail[data-expanded] {
  & .rail-brand,& .rail-signature {display:flex;flex:none;align-items:center;justify-content:center;gap:8px;color:#e5efff;overflow:hidden;white-space:nowrap}
  & .rail-brand {height:68px;padding:0;margin:0;min-height:0;font-size:17px;font-weight:700}
  & .rail-brand img {width:22px;height:22px;object-fit:contain}
  & .rail-brand span,& .rail-signature span {display:block;max-width:130px;overflow:hidden;opacity:1;color:inherit;font:inherit;transition:max-width var(--rail-duration) var(--rail-ease),opacity .22s}
  & :is(.sidebar__profile,.aside-bottom) {position:relative;display:flex;flex:none;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;width:100%;min-width:0;min-height:0;height:auto;margin:0;padding:5px 8px 10px;background:transparent;border:0;box-shadow:none;color:#e5efff;text-align:center}
  & :is(.sidebar__profile .avatar,.rail-owner-avatar) {display:grid;place-items:center;position:relative;flex:none;width:var(--avatar-size);height:var(--avatar-size);margin:0;background:#193650;border:2px solid #29445b;border-radius:50%;overflow:visible;color:#bcd7ee;transition:width var(--rail-duration) var(--rail-ease),height var(--rail-duration) var(--rail-ease)}
  & .avatar img {width:100%;height:100%;object-fit:cover;border-radius:50%}
  & .rail-owner-avatar svg {width:65%;height:65%}
  & :is(.avatar,.rail-owner-avatar)::after {content:"";position:absolute;right:-3px;bottom:-2px;width:11px;height:11px;border:2px solid #0c2832;border-radius:50%;background:#38d286}
  & .user-chip__meta,& .rail-owner-identity {display:block;max-width:100%;max-height:115px;overflow:auto;scrollbar-width:none;opacity:1;transition:max-height var(--rail-duration) var(--rail-ease),opacity .22s}
  & .user-chip__name,& .rail-owner-identity {display:block;font:600 14px/18px Arial,sans-serif;color:#e4edfb;text-shadow:none;overflow-wrap:anywhere}
  & .user-chip__org,& .rail-owner-identity small {display:block;margin:2px 0 0;color:#9aafc9;font:12px/16px Arial,sans-serif;text-shadow:none}
  & #sidebarSchoolPhone {margin:2px 0 0;font-size:11px;line-height:14px}
  & :is(.user-chip__login,.profile-chevron,.owner-dot) {display:none}
  & .rail-divider {flex:none;height:1px;margin:5px 16px 10px;background:#7894b52b}
  & :is(.sidebar__menu-search,.rail-owner-search) {box-sizing:border-box;display:flex;align-items:center;flex:none;gap:8px;min-height:0;height:39px;margin:0 15px 10px;padding:0 9px;border:1px solid #263e55;border-radius:9px;background:#061525;box-shadow:inset 0 1px 4px #02091380;color:#a2b6cd;overflow:hidden;opacity:1;transition:height var(--rail-duration) var(--rail-ease),opacity .2s,margin-bottom var(--rail-duration) var(--rail-ease)}
  & :is(.sidebar__menu-search,.rail-owner-search) input {flex:1;min-width:0;width:100%;height:100%;margin:0;padding:0;background:transparent;color:#d5e3f3;font:12px/1 Arial,sans-serif;border:0;border-radius:0;box-shadow:none}
  & :is(.sidebar__menu-search,.rail-owner-search) input::placeholder {color:#a2b6cd}
  & :is(.sidebar__menu-search,.rail-owner-search):focus-within {outline:2px solid #76b0ff}
  & .rail-owner-search svg {width:15px;height:15px;flex:none}
  & .rail-search-icon {order:-1;position:relative;display:block;flex:none;font-size:0;width:15px;height:15px;padding:0}
  & .rail-search-icon::before {content:"";position:absolute;inset:1px auto auto 1px;width:9px;height:9px;border:1.5px solid #a2b6cd;border-radius:50%}
  & .rail-search-icon::after {content:"";position:absolute;left:10px;top:11px;width:5px;height:1.5px;background:#a2b6cd;transform:rotate(45deg)}
  & kbd {flex:none;padding:2px 4px;border:1px solid #24374d;border-radius:4px;color:#99acc2;font:10px Arial,sans-serif}
  & .rail-list {box-sizing:border-box;display:block;min-width:0;min-height:0;flex:1 1 auto;width:100%;margin:0;padding:0 var(--rail-list-padding);overflow:auto;overflow-x:hidden;scrollbar-width:none;overscroll-behavior:contain}
  & .rail-list::-webkit-scrollbar {display:none}
  & .reference-nav-section {margin:0;padding:0}
  & :is(.reference-nav-section>h2,.nav-label) {position:absolute;clip-path:inset(50%);overflow:hidden;width:1px;height:1px;margin:0;padding:0;white-space:nowrap}
  & :is(.nav__single,.nav__group-head,.nav) {box-sizing:border-box;position:relative;display:flex;align-items:center;gap:13px;min-height:var(--rail-row);width:100%;margin:0 0 5px;padding:4px 10px;overflow:hidden;background:transparent;border:1px solid transparent;border-radius:10px;color:#a7bbd4;font:500 13px/16px Arial,sans-serif;line-height:16px;text-align:left;text-decoration:none;transition:background .18s,color .18s,min-height var(--rail-duration) var(--rail-ease)}
  & :is(.nav__single,.nav__group-head,.nav):is(:hover,:focus-visible) {background:#122b47;color:#e3edff}
  & :is(.nav__single,.nav__group-head,.nav):is(.is-active,.active,[aria-current=page]),& .contains-active>.nav__group-head {background:linear-gradient(105deg,#102e53,#102e57);border-color:#1a3d64;color:#c9e1ff;font-weight:600}
  & :is(.nav__single,.nav__group-head)>.ico,& .nav-icon,& .nav-icon svg {display:block;flex:0 0 18px;width:18px;height:18px;max-width:none;color:inherit;stroke:currentColor}
  & :is(.nav__single,.nav__group-head)>span,& .nav-text {opacity:1;max-width:none;min-width:0;transition:opacity .2s;overflow-wrap:anywhere}
  & :is(.nav__single,.nav__group-head) br {display:none}
  & .nav__group-head:has(+.reference-nav-expand) {padding-right:30px}
  & .reference-nav-expand {top:0;right:0;height:var(--rail-row)}
  & .rail-signature {height:43px;font:600 12px/1 Arial,sans-serif;color:#a2b7cf}
  & .rail-signature b {color:#398bdd;font:600 15px/1 Consolas,monospace}
  & .rail-signature #logout {display:grid;place-items:center;margin:0;padding:0;width:29px;min-width:0;height:29px;min-height:0;color:#a2b7cf;background:transparent;border:1px solid #29405a;border-radius:7px}
  & :is(.reference-sidebar-collapse,.owner-menu-collapse) {position:absolute;left:100%;top:36px;right:auto;z-index:2;display:grid;place-items:center;box-sizing:border-box;width:30px;min-width:30px;height:45px;min-height:45px;margin:0;padding:0;cursor:pointer;background:linear-gradient(110deg,#122a42,#0b1c30);border:1px solid #273b54;border-left:0;border-radius:0 9px 9px 0;color:#adc0d7;box-shadow:1px 2px 4px #08122612}
  & :is(.reference-sidebar-collapse,.owner-menu-collapse) svg {width:15px;height:15px;transform:rotate(180deg);transition:transform var(--rail-duration) var(--rail-ease)}
  & .rail-filtered {display:none!important}
}
:is(#sidebar,#ownerSidebar).cabinet-rail[data-expanded="false"] {
  & :is(.rail-brand,.rail-signature) {gap:0}
  & :is(.rail-brand span,.rail-signature span) {max-width:0;opacity:0}
  & .rail-brand img {width:16px;height:16px}
  & :is(.user-chip__meta,.rail-owner-identity) {max-height:0;opacity:0}
  & :is(.sidebar__menu-search,.rail-owner-search) {height:0;opacity:0;margin-bottom:0;padding:0;border-width:0;pointer-events:none}
  & :is(.nav__single,.nav__group-head)>span,& .nav-text {position:absolute;left:45px;width:165px;opacity:0}
  & :is(.nav__single,.nav__group-head,.nav) {justify-content:center;gap:0;padding:4px 0}
  & :is(.reference-nav-expand,.arrow,.nav__list) {display:none}
  & .nav__group-head:has(+.reference-nav-expand) {padding-right:0}
  & .rail-signature:has(#logout)>b {display:none}
}
:is(#sidebar,#ownerSidebar).cabinet-rail[data-expanded="true"] {
  & .rail-brand {height:84px}
  & :is(.reference-sidebar-collapse,.owner-menu-collapse) {top:45px}
  & :is(.reference-sidebar-collapse,.owner-menu-collapse) svg {transform:rotate(0)}
}
@media (width > 900px) {
  body:has(#sidebar.cabinet-rail) {
    --rail-brand-axis:35px;
    --rail-brand-icon:16px;
    --header-logo-width:175px;
  }
  body:has(#sidebar.cabinet-rail[data-expanded="true"]) {
    --rail-brand-axis:79.5px;
    --rail-brand-icon:22px;
  }
  #sidebar.cabinet-rail[data-expanded] .rail-brand {
    justify-content:flex-start;
    padding-left:calc(var(--rail-brand-axis) - 1px - var(--rail-brand-icon) / 2);
    transition:padding-left var(--rail-duration) var(--rail-ease);
  }
  #sidebar.cabinet-rail[data-expanded] .rail-brand img {
    width:var(--rail-brand-icon);
    transition:width var(--rail-duration) var(--rail-ease);
  }
  body:has(#sidebar.cabinet-rail) > .topbar > .topbar__brand {
    /* The coloured mark is centred 9.32% into the full logo's SVG viewBox. */
    padding-left:calc(var(--rail-edge) + var(--rail-brand-axis) - var(--header-logo-width) * .0932);
    min-width:max-content;
    transition:padding-left var(--rail-duration) var(--rail-ease);
  }
  body:has(#sidebar.cabinet-rail) .topbar__logo > img.cabinet-logo { width:var(--header-logo-width) }
  body:has(#sidebar.cabinet-rail) #burger { display:none }
}
@media (width > 800px) {
  body:not(.training-active):not(:has(#tasks-view:not([hidden]))) #workspace:has(#ownerSidebar.cabinet-rail) > main { padding-top:var(--rail-top-gap) }
  #workspace:has(#ownerSidebar.cabinet-rail) > .owner-menu-bar { display:none }
}
/* On touch-size screens the header burger opens a full drawer over the page. */
@media(max-width:900px) {
  body:has(#sidebar.cabinet-rail) {--rail-top-gap:8px;--rail-margin-y:auto;--rail-edge:6px;--rail-width:254px;--rail-height:682px}
  body:has(#sidebar.cabinet-rail)>.main {margin-left:0}
  #sidebar.cabinet-rail[data-expanded] {--rail-list-padding:15px;z-index:89}
  body:has(#sidebar.cabinet-rail) #backdrop.is-open {z-index:88}
  #sidebar.cabinet-rail[data-expanded="false"] {--drawer-x:calc(-100% - 55px);--drawer-visibility:hidden;--drawer-input:none;--drawer-delay:var(--rail-duration)}
  #sidebar.cabinet-rail[data-expanded] {transform:translateX(var(--drawer-x,0px));visibility:var(--drawer-visibility,visible);pointer-events:var(--drawer-input,auto);transition:transform var(--rail-duration) var(--rail-ease),visibility 0s var(--drawer-delay,0s)}
  #sidebar.cabinet-rail[data-expanded="true"] {transform:none}
}
@media(max-width:800px) {
  #workspace:has(#ownerSidebar.cabinet-rail) {--rail-top:calc(56px + env(safe-area-inset-top));--rail-top-gap:8px;--rail-margin-y:auto;--rail-edge:6px;--rail-width:254px;--rail-height:682px}
  #workspace:has(#ownerSidebar.cabinet-rail)>main {margin-left:0}
  #workspace>#ownerSidebar.cabinet-rail[data-expanded] {--rail-list-padding:15px}
  #workspace>#ownerSidebar.cabinet-rail[data-expanded="false"] {--drawer-x:calc(-100% - 55px);--drawer-visibility:hidden;--drawer-input:none;--drawer-delay:var(--rail-duration)}
  #workspace>#ownerSidebar.cabinet-rail[data-expanded] {transform:translateX(var(--drawer-x,0px));visibility:var(--drawer-visibility,visible);pointer-events:var(--drawer-input,auto);transition:transform var(--rail-duration) var(--rail-ease),visibility 0s var(--drawer-delay,0s)}
  #workspace>#ownerSidebar.cabinet-rail[data-expanded="true"] {transform:none}
}
@media(max-height:610px) {
  :is(#sidebar,#ownerSidebar).cabinet-rail[data-expanded] .rail-brand {height:38px}
  :is(#sidebar,#ownerSidebar).cabinet-rail[data-expanded] {--avatar-size:30px}
  :is(#sidebar,#ownerSidebar).cabinet-rail[data-expanded] .rail-signature {height:29px}
}
@media(prefers-reduced-motion:reduce) {
  body:has(#sidebar.cabinet-rail),#workspace:has(#ownerSidebar.cabinet-rail) {--rail-duration:0s}
  :is(#sidebar,#ownerSidebar).cabinet-rail * {transition-duration:0s!important}
}
@media print {
  :is(#sidebar,#ownerSidebar).cabinet-rail[data-expanded] {display:none!important}
  body:has(#sidebar.cabinet-rail)>.main,#workspace:has(#ownerSidebar.cabinet-rail)>main {margin:0!important}
}

#ownerSidebar.cabinet-rail[data-expanded] .owner-security-open.nav {margin:0 0 5px;letter-spacing:normal;text-transform:none}
#ownerSidebar.cabinet-rail .tr-mobile-close {display:none!important}
@media(max-width:900px){
  #sidebar.cabinet-rail[data-expanded] .reference-sidebar-collapse::before,
  #ownerSidebar.cabinet-rail[data-expanded] .owner-menu-collapse::before {position:absolute;content:"";inset:0 -8px 0 -5px}
}
/* The legacy phone menu used wrapping columns. Each rail has a single scroll area. */
#workspace > #ownerSidebar.cabinet-rail {flex-wrap:nowrap}

/* /css/app-typography.css */
/* Kept in a layer so role styles loaded after sign-in use the same type scale. */
@font-face {
  font-family: "Arimo";
  src: url("/fonts/arimo/Arimo.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Arimo";
  src: url("/fonts/arimo/Arimo-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}
@layer app-typography {
  @media screen {
    :root {
      --app-font: Arial, "Arimo", sans-serif;
      --app-title-size: 17px;
      --app-heading-size: 16px;
      --app-body-size: 15px;
      --app-caption-size: 13px;
      --app-amount-size: 18px;
    }

    :root, body {
      --font: var(--app-font) !important;
    }

    body, body :where(*):not(:where(svg, svg *, pre, pre *, code, code *,
      kbd, kbd *, samp, samp *, math, math *, [contenteditable="true"], [contenteditable="true"] *,
      .material-icons, .material-symbols-outlined, .fa, .fas, .far, .fab)) {
      font-family: var(--app-font) !important;
    }

    body {
      font-size: var(--app-body-size) !important;
      font-weight: 400 !important;
      line-height: 1.45;
    }
    :where(main, article, form, dialog, p, dd, td, input, select, textarea,
      .content, .sp-list, .sp-reminder, .sp-contract, .sp-sbp, .sp-slip) {
      font-size: var(--app-body-size) !important;
    }

    :where(h1, [role="heading"][aria-level="1"], .mobile-section-title, #pageTitle) {
      font-size: var(--app-title-size) !important;
      font-weight: 700 !important;
      line-height: 1.45 !important;
    }
    :where(h2, h3, [role="heading"][aria-level="2"], .page-head h2, #modalTitle) {
      font-size: var(--app-heading-size) !important;
      font-weight: 650 !important;
      line-height: 1.35 !important;
    }
    :where(small, figcaption, .sp-dates small, .sp-reminder small) {
      font-size: var(--app-caption-size) !important;
      font-weight: 400 !important;
    }
    :where(.app-amount, .sp-contract b, .sf-card > div > strong,
      .ib-amount, .bk-lesson-price > b, .ic-price input,
      .balance-amount, .balance-operation-amount, .acc-metric > strong,
      td[data-type="money"], td[data-type="signed-money"],
      .payment p > strong, #data .summary > div > strong) {
      font-size: var(--app-amount-size) !important;
      font-weight: 700 !important;
    }
    :where(.sp-list, .sp-reminder, .sp-contract, .sp-sbp, .sp-slip) {
      line-height: 1.45 !important;
    }
    :where(.sp-dates strong, .sp-reminder strong) {
      font-size: var(--app-body-size) !important;
      font-weight: 700 !important;
    }
    .sp-pay {
      font-size: var(--app-body-size) !important;
      font-weight: 600 !important;
      line-height: 1.45 !important;
    }
    .sp-archive {
      font-size: 14px !important;
      font-weight: 400 !important;
    }
  }
}

/* /scrollbars.css */
/* Keep wheel, touch and keyboard scrolling available on every scroll container. */
@media screen {
  html {
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }

  @supports (overflow-x: clip) {
    html, body {
      overflow-x: clip !important;
    }
  }

  * {
    scrollbar-width: none !important;
  }

  ::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}

