@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../vendor/inter/inter-latin.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../vendor/inter/inter-cyrillic.de93fdc85e3d.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --surface-2: #efefeb;
  --text: #17171a;
  --muted: #6c6c74;
  --line: #e4e3de;
  --accent: #f2561d;
  --accent-ink: #ffffff;
  --danger: #d13b2f;
  --ok: #1f8a4c;
  --logo: #17171a;
  --logo-groove: #3a3a40;
  --r-lg: 14px;
  --r: 9px;
  --shadow: 0 1px 2px rgb(20 20 25 / .04), 0 4px 16px rgb(20 20 25 / .04);
  --kind-lesson: #3a7ca5; --kind-individual: #d4a017; --kind-practice: #2f9e6a; --kind-trial: #c06014;
  --kind-makeup: #6a4c93; --kind-group: #1f6f8b; --kind-final: #c2185b; --kind-other: #8a8f98;
  --heat-0: #2f9e6a; --heat-1: #5bb37f; --heat-2: #c9a227; --heat-3: #e07b2a; --heat-4: #d13b2f;
  --level-students: #2f9e6a; --level-staff: #3a7ca5; --level-private: #d13b2f;
  --att-came: #1f8a4c; --att-late: #d4a017; --att-no_show: #d13b2f; --att-pending: #8a8f98;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e10; --surface: #17171a; --surface-2: #222226; --text: #ececef; --muted: #9b9ba4;
    --line: #2a2a30; --accent: #ff6a33; --danger: #ff6b5e; --ok: #4cc27e;
    --logo: #ececef; --logo-groove: #c9c9cf; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e10; --surface: #17171a; --surface-2: #222226; --text: #ececef; --muted: #9b9ba4;
  --line: #2a2a30; --accent: #ff6a33; --danger: #ff6b5e; --ok: #4cc27e;
  --logo: #ececef; --logo-groove: #c9c9cf; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 450 14.5px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1 { font-size: 1.6rem; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; margin: 2rem 0 .75rem; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; }
.num { font-variant-numeric: tabular-nums; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
      stroke-linecap: round; stroke-linejoin: round; }

/* Каркас */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 236px; display: flex; flex-direction: column; gap: 1.5rem;
  padding: 1.25rem .9rem; border-right: 1px solid var(--line); background: var(--bg);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 650; letter-spacing: -.01em; text-decoration: none; padding: 0 .5rem; }
.logo { width: 28px; height: 28px; color: var(--logo); flex: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: var(--r);
  color: var(--muted); text-decoration: none; font-weight: 500; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); outline: 1px solid var(--line); }
.nav a[aria-current="page"] .ic { color: var(--accent); }
.me { margin-top: auto; display: flex; align-items: center; gap: .55rem; padding: .5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.me form { margin: 0; }
.me-name { display: flex; flex-direction: column; min-width: 0; flex: 1; font-weight: 550; font-size: .9rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-name b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.me-name small { color: var(--muted); font-weight: 450; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-top, .nav .short, .segmented .short { display: none; }

/* Сворачиваемая панель (только компьютер) */
.side-top { display: flex; align-items: center; justify-content: space-between; gap: .25rem; }
.side-top .brand { min-width: 0; }
.side-top .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle { flex: none; }
.sidebar, .with-nav .main { transition: width .18s ease, margin-left .18s ease; }
@media (min-width: 861px) {
  .nav-collapsed .sidebar { width: 68px; padding-left: .6rem; padding-right: .6rem; }
  .nav-collapsed .with-nav .main { margin-left: 68px; }
  .nav-collapsed .side-top { flex-direction: column; gap: .75rem; }
  .nav-collapsed .side-top .brand { padding: 0; }
  .nav-collapsed .side-top .brand span, .nav-collapsed .nav a span, .nav-collapsed .me-name { display: none; }
  .nav-collapsed .nav a { justify-content: center; padding: .6rem 0; }
  .nav-collapsed .nav-toggle .ic { transform: scaleX(-1); }
  .nav-collapsed .me { flex-direction: column; padding: 1rem 0 .25rem; }
}

.main { max-width: 1180px; margin: 0 auto; padding: 2rem 2rem 4rem; }
.with-nav .main { margin-left: 236px; margin-right: 0; max-width: none; padding-left: 2.5rem; padding-right: 2.5rem; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.page-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.page-head .eyebrow { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); text-decoration: none; font-size: .88rem; margin-bottom: .35rem; }
.page-head .eyebrow:hover { color: var(--text); }
.page-head .eyebrow .ic { width: 16px; height: 16px; }
.page-head .sub { color: var(--muted); margin: .35rem 0 0; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0 .75rem; }
.section-head h2 { margin: 0; }

/* Поверхности */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; align-items: start; }
.tile { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; transition: border-color .15s, transform .15s; }
a.tile:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--line)); }
.tile-head { display: flex; align-items: center; gap: .6rem; }
.tile-head strong { font-weight: 600; font-size: 1.02rem; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tile-kind { margin: -.3rem 0 0; color: var(--muted); font-size: .88rem; }
.tile .desc { color: var(--muted); margin: 0; font-size: .92rem; }
.tile .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: var(--muted); font-size: .88rem; }
.inactive { opacity: .5; }
.dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--muted)); flex: none; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 999px; background: var(--surface-2);
        color: var(--muted); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 0; }
.chips .chip { display: inline-block; max-width: 100%; white-space: normal; line-height: 1.45; padding: .15rem .6rem; border-radius: 12px; }
.chip b { color: var(--text); font-weight: 550; }
.avatar { --c: var(--muted); width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
          background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: color-mix(in srgb, var(--c) 70%, var(--text));
          font-weight: 650; font-size: .82rem; }
.props { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; font-size: .92rem; }
.props dt { color: var(--muted); }
.props dd { margin: 0; font-weight: 500; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg); }

/* Показатели */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.stat .label { color: var(--muted); font-size: .85rem; }
.stat .value { font-size: 1.7rem; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: .15rem 0 .6rem; }
.stat .value small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--p); background: var(--accent); border-radius: inherit; }
.meter.full i { background: var(--danger); }
.meter.inline { width: 90px; display: inline-block; vertical-align: middle; margin-right: .5rem; }

/* Таблицы */
.table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .75rem 1.25rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 500; color: var(--muted); font-size: .82rem; background: var(--surface); }
tbody tr { transition: background .1s; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
tr:last-child td { border-bottom: 0; }
.person { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 550; }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; }

/* Элементы управления */
input, select, textarea, button, .button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=color]), select, textarea {
  width: 100%; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); transition: border-color .15s, box-shadow .15s; }
select { appearance: none; padding-right: 2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a92' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
input[type=color] { width: 56px; height: 38px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
textarea { resize: vertical; }

.button, button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; text-decoration: none;
  font-weight: 550; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.button:hover, button:hover { background: var(--surface-2); }
.button:active, button:active { transform: translateY(1px); }
.button .ic, button .ic { width: 17px; height: 17px; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.danger { color: var(--danger); }
.danger:hover { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.icon-btn { padding: .45rem; border: 0; background: none; color: var(--muted); }
.icon-btn:hover { color: var(--text); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.toolbar select, .toolbar input:not([type=checkbox]) { width: auto; min-width: 170px; }
.search { position: relative; }
.search .ic { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; }
.search input { padding-left: 2.1rem !important; min-width: 240px !important; }
.switch { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .9rem; cursor: pointer; padding: 0 .4rem; }

/* Формы */
.form { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; padding: 1.5rem; }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .35rem; }
.field[hidden] { display: none; }
.field:has(input[type=datetime-local]), .field:has(input[type=number]), .field:has(input[type=color]) { grid-column: span 1; }
.field label { font-weight: 550; font-size: .9rem; }
.field small { font-size: .8rem; }
.field.check { flex-direction: row; align-items: center; gap: .6rem; flex-wrap: wrap; }
.field.check label { order: 2; font-weight: 500; }
.field.check input { order: 1; }
.field.check small { order: 3; flex-basis: 100%; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.error { color: var(--danger); }
.form-error { grid-column: 1 / -1; padding: .75rem 1rem; border-radius: var(--r); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
.form-note { grid-column: 1 / -1; padding: .75rem 1rem; border-radius: var(--r); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.form-actions { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: center; padding-top: .5rem; border-top: 1px solid var(--line); margin-top: .25rem; padding-top: 1.1rem; }
.form-actions .spacer { flex: 1; }
.meta { color: var(--muted); font-size: .88rem; margin: -.75rem 0 1.25rem; }

/* Уведомления */
.toast { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; max-width: min(420px, calc(100vw - 2rem));
  padding: .8rem 1rem; border-radius: var(--r); background: var(--text); color: var(--bg); box-shadow: 0 8px 30px rgb(0 0 0 / .18);
  font-weight: 500; transition: opacity .4s, transform .4s; }
.toast.error { background: var(--danger); color: #fff; }
.toast.hide { opacity: 0; transform: translateY(8px); pointer-events: none; }

/* Вход */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login .card { width: min(380px, 100%); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.login .logo { width: 44px; height: 44px; }
.login h1 { font-size: 1.35rem; }
.login label { display: flex; flex-direction: column; gap: .35rem; font-weight: 550; font-size: .9rem; }

/* Календарь */
.cal-card { padding: 1rem 1.1rem 1.1rem; }
.fc {
  --fc-border-color: var(--line); --fc-page-bg-color: var(--surface); --fc-neutral-bg-color: var(--surface-2);
  --fc-today-bg-color: color-mix(in srgb, var(--accent) 5%, transparent); --fc-now-indicator-color: var(--accent);
  --fc-list-event-hover-bg-color: var(--surface-2); --fc-highlight-color: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: .88rem;
}
.fc .fc-toolbar.fc-header-toolbar { margin-bottom: 1rem; gap: .5rem; }
.fc .fc-toolbar-title { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.fc .fc-button { background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 550; font-size: .85rem;
  padding: .4rem .75rem; border-radius: var(--r); box-shadow: none !important; text-transform: none; }
.fc .fc-button:hover { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active {
  background: var(--text); border-color: var(--text); color: var(--bg); }
.fc .fc-button:disabled { opacity: .45; background: var(--surface); color: var(--text); border-color: var(--line); }
.fc .fc-button-group > .fc-button { border-radius: 0; }
.fc .fc-button-group > .fc-button:first-child { border-radius: var(--r) 0 0 var(--r); }
.fc .fc-button-group > .fc-button:last-child { border-radius: 0 var(--r) var(--r) 0; }
.fc .fc-col-header-cell-cushion { color: var(--muted); font-weight: 550; text-decoration: none; padding: .5rem 0; text-transform: capitalize; }
.fc .fc-day-today .fc-col-header-cell-cushion { color: var(--accent); }
.fc .fc-timegrid-slot-label-cushion, .fc .fc-daygrid-day-number { color: var(--muted); font-variant-numeric: tabular-nums; text-decoration: none; font-size: .8rem; }
.fc .fc-timegrid-slot { height: 2.1rem; }
.fc .fc-timegrid-slot-minor { border-top-style: none; }
.fc-theme-standard .fc-scrollgrid { border-radius: var(--r); overflow: hidden; }
.fc .fc-timegrid-event, .fc .fc-daygrid-event { border-radius: 7px; }
.fc .ev { --ev: var(--accent); background: color-mix(in srgb, var(--ev) 26%, var(--surface)) !important;
  border: 1px solid color-mix(in srgb, var(--ev) 55%, transparent) !important; color: var(--text) !important; box-shadow: none; }
.fc .ev .fc-event-main, .fc .ev .fc-event-time, .fc .ev .fc-event-title { color: var(--text); }
.fc .ev:hover { background: color-mix(in srgb, var(--ev) 34%, var(--surface)) !important; }
.fc .ev.is-cancelled { opacity: .55; border-style: dashed !important; }
.fc .ev.is-cancelled .ev-name { text-decoration: line-through; }
.ev-body { padding: .2rem .35rem; display: flex; flex-direction: column; gap: 1px; overflow: hidden; line-height: 1.3; height: 100%; }
.ev-time { display: flex; align-items: center; gap: .3rem; font-size: .74rem; color: color-mix(in srgb, var(--ev) 60%, var(--text)); font-weight: 600; font-variant-numeric: tabular-nums; }
.ev-time .tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--t); }
.ev-name { font-weight: 600; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-sub { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-daygrid-event .ev-body { flex-direction: row; gap: .35rem; align-items: baseline; }
.fc .fc-list-event:hover td { background: var(--surface-2); }

/* Заполненность */
.occ-kpi { margin: -.25rem 0 .75rem; font-size: .95rem; min-height: 1.5em; }
.occ-kpi b { font-variant-numeric: tabular-nums; }
.h0 { --h: var(--heat-0, #2f9e6a); } .h1 { --h: var(--heat-1, #5bb37f); } .h2 { --h: var(--heat-2, #c9a227); }
.h3 { --h: var(--heat-3, #e07b2a); } .h4 { --h: var(--heat-4, #d13b2f); }
.occ { display: flex; flex-direction: column; gap: 4px; padding: 2px 6px 6px; text-decoration: none; }
.occ-pct { font-weight: 650; font-size: .95rem; font-variant-numeric: tabular-nums; }
.occ-slots { display: flex; gap: 3px; }
.occ-slots i { flex: 1; height: 8px; border-radius: 3px; background: var(--h); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent); }
.occ-slots i.h0 { background: color-mix(in srgb, var(--h) 22%, var(--surface)); }
.occ:hover .occ-pct, .fc-daygrid-day:hover .occ-pct { color: var(--accent); }
.fc-dayGridMonth-view .fc-daygrid-day { cursor: pointer; }
.fc .fc-daygrid-day-frame { min-height: 84px; }
.fc .free-bg { background: color-mix(in srgb, var(--h, transparent) 20%, transparent) !important; opacity: 1; }
.fc .free-bg.h0 { background: color-mix(in srgb, var(--h) 14%, transparent) !important; }
.free-label { position: absolute; right: 4px; bottom: 2px; font-size: .68rem; color: var(--muted); font-weight: 550; }

/* Подсказка брони */
.ev-tip { position: fixed; z-index: 60; width: 280px; padding: .75rem .9rem; border-radius: var(--r); pointer-events: none;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 10px 30px rgb(0 0 0 / .14);
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; font-size: .85rem; }
.ev-tip.on { opacity: 1; transform: none; }
.ev-tip-kind { font-size: .75rem; font-weight: 650; color: color-mix(in srgb, var(--k, var(--muted)) 70%, var(--text)); }
.ev-tip-name { font-weight: 650; font-size: .98rem; margin: .1rem 0 .45rem; }
.ev-tip dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .7rem; margin: 0; }
.ev-tip dt { color: var(--muted); }
.ev-tip dd { margin: 0; overflow-wrap: anywhere; }

/* Отчёты */
.report + .report { margin-top: 2.5rem; }
.report .section-head { align-items: baseline; }
.report h3 { font-size: .95rem; font-weight: 600; margin: 0 0 .9rem; }
.report-sub { margin: 1.5rem 0 .75rem !important; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-top: 1rem; }
.hbars { display: flex; flex-direction: column; gap: .45rem; }
.hbar { display: grid; grid-template-columns: 96px 1fr max-content; align-items: center; gap: .6rem; }
.hbar-label { font-size: .88rem; color: var(--muted); }
.hbar-track { height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.hbar-track i { display: block; height: 100%; background: var(--h); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar:hover .hbar-track i { filter: brightness(.92); }
.hbar-val { font-size: .88rem; font-weight: 600; text-align: right; white-space: nowrap; min-width: 4.5em; }
.hbar-val small { color: var(--muted); font-weight: 450; font-size: .76rem; }
.stat .label .att-ico { margin-right: .35rem; }
.stat .value small { font-size: .9rem; color: var(--muted); font-weight: 500; }
td.wrap { white-space: normal; min-width: 240px; }

/* Иконки оборудования */
.eq-ic { width: 17px; height: 17px; stroke-width: 1.5; color: var(--muted); flex: none; }
.stand-chip { display: inline-flex !important; align-items: center; gap: .35rem; }
.stand-chip .eq-ic { width: 15px; height: 15px; }
.tile-head .eq-ic { width: 20px; height: 20px; color: var(--text); }
.th-name { display: inline-flex; align-items: center; gap: .35rem; }
.board thead th small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-name .eq-ic { width: 16px; height: 16px; color: var(--text); }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; }
.icon-opt { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer; font-weight: 500 !important; font-size: .85rem; }
.icon-opt input { position: absolute; opacity: 0; pointer-events: none; }
.icon-opt .eq-ic { width: 22px; height: 22px; color: var(--text); }
.icon-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.icon-opt:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

/* Легенды */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: .9rem; color: var(--muted); font-size: .85rem; }
.legend + .legend { margin-top: .4rem; }
.legend-title { color: var(--text); font-weight: 550; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.sw { width: 14px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.sw.soft { background: color-mix(in srgb, var(--c) 28%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.sw.dashed { background: color-mix(in srgb, var(--c) 14%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--c) 65%, var(--line)); }

/* Страница цветов */
.colors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem 1.25rem; }
.color-row { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; }
.color-row input[type=color] { width: 44px; height: 32px; padding: 2px; flex: none; }
.color-row label { font-weight: 500; font-size: .92rem; }
.colors-form h2:first-child { margin-top: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.radio-row label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; white-space: nowrap; cursor: pointer; }
.radio-row input { accent-color: var(--accent); width: 16px; height: 16px; }

@media (min-width: 861px) and (max-width: 1280px) {
  .week-nav { flex-wrap: nowrap; }
  .week-nav .button.primary .long { display: none; }
  .week-nav .eq-filter > .muted { display: none; }
}

/* Переключатель видов: всегда первая строка страницы, на одном месте */
.view-switch { display: flex; width: max-content; max-width: 100%; margin: 0 0 1.25rem; }
.toolbar .spacer { flex: 1 1 auto; }

/* Переключатель видов */
.segmented { display: inline-flex; padding: 3px; border-radius: var(--r); background: var(--surface-2); gap: 2px; }
.segmented a { padding: .4rem .8rem; border-radius: 7px; text-decoration: none; color: var(--muted); font-weight: 550; font-size: .9rem; }
.segmented a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.ic.flip { transform: scaleX(-1); }
.toolbar input[type=date] { width: auto; min-width: 0; }

/* Места по дням */
.board-card .table-scroll { overflow-x: auto; }
.board { table-layout: fixed; min-width: calc(96px + var(--cols, 9) * 128px); }
.board th, .board td { white-space: normal; vertical-align: top; padding: .5rem; border-right: 1px solid var(--line); }
.board th:last-child, .board td:last-child { border-right: 0; }
.board thead th { font-size: .85rem; color: var(--text); font-weight: 600; line-height: 1.3; }
.board thead th small, .board .slot-col small { display: block; color: var(--muted); font-weight: 450; font-size: .76rem; margin-top: 2px; }
.board .slot-col { width: 96px; position: sticky; left: 0; background: var(--surface); z-index: 1; font-size: .95rem; font-weight: 650; }
.board tbody tr:hover { background: none; }
.cell { height: 104px; padding: 6px !important; }
.cell-in { position: relative; height: 100%; }
.cell-in > .bk { position: absolute; left: 0; right: 0; top: 0; height: 100%; overflow: hidden; }
.cell-in.stacked { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.cell-in.stacked > .bk { position: static; height: auto; }
.bk.partial { border-style: dashed; }
.bk.compact { gap: 0; padding: .15rem .45rem; justify-content: center; line-height: 1.2; }
.bk.compact > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk.compact .bk-kind { font-size: .68rem; }
.bk.compact .bk-name { font-size: .78rem; }
.cell.past { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.bk { --k: var(--muted); display: flex; flex-direction: column; gap: 1px; padding: .4rem .5rem; border-radius: 8px; text-decoration: none;
  background: color-mix(in srgb, var(--k) 24%, var(--surface)); border: 1px solid color-mix(in srgb, var(--k) 45%, transparent); line-height: 1.3; }
.bk:hover { background: color-mix(in srgb, var(--k) 32%, var(--surface)); text-decoration: none !important; }
.bk-kind { font-size: .72rem; font-weight: 650; color: color-mix(in srgb, var(--k) 70%, var(--text)); }
.bk-name { font-weight: 600; font-size: .85rem; }
.bk-sub { font-size: .76rem; color: var(--muted); }
.kind-lesson { --k: var(--kind-lesson); } .kind-individual { --k: var(--kind-individual); } .kind-practice { --k: var(--kind-practice); }
.kind-trial { --k: var(--kind-trial); } .kind-makeup { --k: var(--kind-makeup); } .kind-group { --k: var(--kind-group); } .kind-final { --k: var(--kind-final); } .kind-other { --k: var(--kind-other); }
.free { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%;
  border: 1px dashed color-mix(in srgb, var(--heat-0) 55%, var(--line)); border-radius: 8px; text-decoration: none; transition: .15s;
  background: color-mix(in srgb, var(--heat-0) 12%, var(--surface)); color: color-mix(in srgb, var(--heat-0) 75%, var(--text)); font-size: .78rem; font-weight: 550; }
.free .ic { width: 16px; height: 16px; opacity: .6; }
.free:hover, .free:focus { background: color-mix(in srgb, var(--heat-0) 22%, var(--surface)); border-style: solid; }
.board tr:target th, .board tr:target td { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.board th.is-today a { color: var(--accent); }
.board thead th a { text-decoration: none; }
.week-grid { display: grid; grid-template-columns: 64px repeat(7, minmax(120px, 1fr)); min-width: calc(64px + 7 * 120px);
  position: relative; padding-bottom: 8px; }
.wg-head { padding: .6rem .5rem; font-weight: 600; font-size: .85rem; text-decoration: none; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--surface); z-index: 2; }
.wg-head.is-today { color: var(--accent); }
.wg-hour { grid-column: 1 / -1; border-top: 1px solid var(--line); position: relative; z-index: 0; }
.wg-hour span { position: absolute; left: .5rem; top: 2px; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wg-col { border-left: 1px solid var(--line); z-index: 0; }
.wg-col.is-today { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.eq-filter { display: flex; align-items: center; gap: .5rem; margin-left: .75rem; }
.segmented button { border: 0; background: none; padding: .4rem .8rem; border-radius: 7px; color: var(--muted); font-weight: 550; font-size: .9rem; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.wslot.none { background: var(--surface-2) !important; border-style: dashed; }
.wslot.none > * { opacity: .45; }
.week-grid .wslot { margin: 2px 4px; position: relative; z-index: 1; overflow: hidden; }
.week-grid .wslot.past { opacity: 1; background: color-mix(in srgb, var(--h) 12%, var(--surface)); }
.week-grid .wslot.past > * { opacity: .5; }
.wtime { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wslot { display: flex; flex-direction: column; gap: 2px; padding: .45rem .55rem; border-radius: 8px; text-decoration: none;
  background: color-mix(in srgb, var(--h) 24%, var(--surface)); border: 1px solid color-mix(in srgb, var(--h) 50%, var(--line)); }
.wslot.h0 { background: color-mix(in srgb, var(--h) 14%, var(--surface)); border-color: color-mix(in srgb, var(--h) 45%, var(--line)); }
.wslot:hover { border-color: var(--text); }
.wslot.past { opacity: .45; }
.wfree { font-size: .82rem; color: var(--muted); } .wfree b { font-size: 1.15rem; color: var(--text); }
.wslot.full .wfree { color: var(--danger); font-weight: 600; }
.weq { font-size: .74rem; color: var(--muted); }

/* Значок посещаемости: треугольник (кружок — цвет преподавателя) */
.att-ico { width: 10px; height: 10px; flex: none; display: inline-block; vertical-align: -1px; margin-right: 3px; }
.att-ico path { fill: var(--a); stroke: var(--a); stroke-width: 1; stroke-linejoin: round; }
.att-came { --a: var(--att-came); } .att-late { --a: var(--att-late); } .att-no_show { --a: var(--att-no_show); }
.att-ico.att-pending:not([style]) { --a: var(--att-pending); } .att-ico.att-pending path { fill: none; stroke-width: 1.4; }

/* В списке под значок зарезервирована колонка, чтобы имена стояли ровно */
.att-slot { display: inline-flex; width: 16px; flex: none; vertical-align: -1px; }
.att-slot .att-ico { margin-right: 0; }

/* Посещаемость одной кнопкой */
.attendance-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1rem; max-width: 760px; }
.attendance-label { font-weight: 550; font-size: .9rem; margin-right: .35rem; }
.att { padding: .4rem .85rem; font-size: .9rem; }
.att.on { color: #fff; border-color: transparent; }
.att.att-came.on { background: var(--att-came); } .att.att-late.on { background: var(--att-late); } .att.att-no_show.on { background: var(--att-no_show); }
.att-none.on { background: var(--muted); }

/* Быстрый выбор слота */
.slot-chips { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .15rem; }
.chip-btn { padding: .1rem .4rem; border-radius: 999px; font-size: .74rem; font-weight: 550; line-height: 1.4; background: var(--surface-2);
  border-color: transparent; font-variant-numeric: tabular-nums; }
.chip-btn.on { background: var(--text); color: var(--bg); }

/* Бот и диалог */
.bot-card { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.bot-card form { margin: 0; }
.bot-card .danger { margin-top: 0; }
.invite { display: flex; gap: .5rem; width: 100%; max-width: 560px; }
.dialog { display: flex; flex-direction: column; gap: .5rem; max-height: 480px; overflow-y: auto; }
.msg { max-width: 75%; padding: .5rem .75rem; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.msg small { color: var(--muted); font-size: .72rem; }
.msg-in { align-self: flex-end; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.msg-out { align-self: flex-start; background: var(--surface-2); }

/* База знаний */
.kb-level + .kb-level { margin-top: 2.5rem; }
.kb-level .section-head { align-items: flex-end; }
.kb-help { margin: .35rem 0 0; font-size: .9rem; }
.level { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.level::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lv); }
.level-students { --lv: var(--level-students); }
.level-staff { --lv: var(--level-staff); }
.level-private { --lv: var(--level-private); }
.sub .level { font-weight: 550; color: var(--text); margin-right: .35rem; }
.kb-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.kb-folder { gap: .6rem; display: flex; flex-direction: column; }
.kb-folder .desc { margin: 0; color: var(--muted); font-size: .92rem; }
.kb-folder .tile-head .icon-btn { padding: .3rem; }
.tile-head .icon-btn { padding: .2rem; margin: -.2rem -.2rem -.2rem 0; align-self: center; }
.doc-list { list-style: none; margin: 0 -.5rem; padding: 0; display: flex; flex-direction: column; }
.doc-list li { display: flex; align-items: center; gap: .5rem; padding: 0 .5rem; border-radius: var(--r); }
.doc-list li:hover { background: var(--surface-2); }
.doc-list a { display: flex; align-items: center; gap: .55rem; padding: .45rem 0; text-decoration: none; flex: 1; min-width: 0; }
.doc-list a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-list .ic { width: 16px; height: 16px; color: var(--muted); }
.prose { padding: 1.75rem 2rem; max-width: 820px; line-height: 1.65; font-size: .98rem; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3 { letter-spacing: -.01em; line-height: 1.3; margin: 1.6em 0 .5em; }
.prose h1 { font-size: 1.4rem; } .prose h2 { font-size: 1.15rem; } .prose h3 { font-size: 1rem; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose blockquote { margin: 1rem 0; padding: .6rem 1rem; background: var(--surface-2); border-radius: var(--r); color: var(--muted); }
.prose code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .88em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
.prose pre { background: var(--surface-2); padding: 1rem; border-radius: var(--r); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--r); }
.prose th, .prose td { white-space: normal; }
textarea.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .88rem; line-height: 1.55; }
.form-wide { max-width: 980px; }
tr.selected td { background: var(--surface-2); }

/* Телефон */
@media (max-width: 860px) {
  .with-nav .main { margin-left: 0; padding: 1rem 16px calc(84px + env(safe-area-inset-bottom)); }
  .mobile-top { display: flex; align-items: center; gap: .25rem; padding: .75rem 16px; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
  .mobile-top .brand { flex: 1; padding: 0; }
  .mobile-top form { margin: 0; }
  .sidebar { inset: auto 0 0 0; width: auto; height: auto; padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--line); z-index: 30; gap: 0;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); }
  .sidebar .brand, .sidebar .me { display: none; }
  .nav { flex-direction: row; justify-content: space-around; }
  .nav a { flex-direction: column; gap: .15rem; padding: .35rem .2rem; font-size: .66rem; flex: 1; text-align: center; }
  .nav a[aria-current="page"] { background: none; box-shadow: none; outline: 0; color: var(--text); }
  .nav .ic { width: 21px; height: 21px; }
  .nav .short, .segmented .short { display: inline; }
  .nav .long, .segmented .long { display: none; }
  h1 { font-size: 1.35rem; }
  .page-head { margin-bottom: 1rem; }
  .form { grid-template-columns: 1fr; padding: 1.1rem; }
  .field:has(input[type=datetime-local]), .field:has(input[type=number]) { grid-column: 1 / -1; }
  .toolbar select, .toolbar input:not([type=checkbox]), .search, .search input { width: 100%; min-width: 0 !important; flex: 1 1 100%; }
  .cal-card { padding: .6rem; border-radius: var(--r); }
  .fc .fc-toolbar.fc-header-toolbar { display: grid; grid-template-columns: auto 1fr; gap: .6rem; }
  .fc .fc-toolbar-chunk:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
  .fc .fc-toolbar-chunk:nth-child(3) { grid-column: 1 / -1; }
  .fc .fc-toolbar-chunk:nth-child(3) .fc-button-group { display: flex; width: 100%; }
  .fc .fc-toolbar-chunk:nth-child(3) .fc-button { flex: 1; padding: .4rem .3rem; }
  .fc .fc-toolbar-title { font-size: 1rem; }
  th, td { padding: .7rem 1rem; }
  .hide-sm, .nav .desk-only { display: none; }
  .hbar { grid-template-columns: 84px 1fr max-content; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hbar-val small { display: none; }
  .week-grid { grid-template-columns: 52px repeat(7, minmax(92px, 1fr)); min-width: calc(52px + 7 * 92px); }
  .wslot { padding: .3rem .4rem; }
  .toolbar.date-nav { flex-wrap: nowrap; }
  .toolbar.date-nav .button .long { display: none; }
  .toolbar.week-nav { flex-wrap: wrap; }
  .week-nav .eq-filter { order: 10; flex-basis: 100%; margin-left: 0; }
  .week-nav .eq-filter .segmented { flex: 1; } .week-nav .eq-filter .segmented button { flex: 1; padding: .4rem .3rem; }
  .view-switch { width: 100%; }
  .view-switch a { flex: 1; text-align: center; }
  .toolbar .spacer { display: none; }
  .toolbar.date-nav input[type=date] { flex: 1 1 auto; width: auto !important; min-width: 0 !important; }
  .prose { padding: 1.1rem; }
  .meter.inline { width: 48px; }
  .toast { left: 1rem; right: 1rem; bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* Программа курса */
td.wrap { white-space: normal; min-width: 16rem; }
.form-section { grid-column: 1 / -1; margin: .5rem 0 0; font-size: 1.05rem; font-weight: 600; }
.form-wide { grid-column: 1 / -1; }
.program-edit th, .program-edit td { padding: .4rem .5rem; vertical-align: top; }
.program-edit .num-in input { width: 4.2rem; }
.program-edit td:nth-child(2) { min-width: 18rem; white-space: normal; }
.program-edit .checks div { display: flex; flex-wrap: wrap; gap: .2rem .8rem; }
.program-edit .checks label { display: inline-flex; gap: .35rem; align-items: center; font-size: .88rem; }
.form.form-xl { max-width: 1180px; }
.program-edit td:nth-child(2) { width: 50%; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .88rem; }
.inline-add { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.inline-add select { max-width: 420px; }
.danger-chip { color: var(--danger); }

/* Смены: неделя на таймлайне */
.flip { transform: scaleX(-1); }
.shift-tools { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.shift-add { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.shift-add label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 550; min-width: 9rem; flex: 1; }
.shift-add .hours-field { flex: 0 0 8rem; min-width: 8rem; }
.shift-meta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.shift-meta .chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.tl { min-width: 720px; padding: .5rem 1rem 1rem; }
.tl-row { display: grid; grid-template-columns: 5.5rem 1fr; gap: .75rem; border-top: 1px solid var(--line); padding: .55rem 0; }
.tl-row.tl-head { border-top: 0; padding: 0 0 .2rem; }
.tl-row.is-today .tl-day strong { color: var(--accent); }
.tl-day { font-size: .9rem; color: var(--muted); padding-top: .2rem; font-variant-numeric: tabular-nums; }
.tl-day strong { color: var(--text); font-weight: 600; margin-right: .2rem; }
.tl-track { position: relative; min-height: 1.6rem; }
.tl-head .tl-track { height: 1.2rem; }
.tl-hour { position: absolute; top: 0; transform: translateX(-50%); font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-slot { position: absolute; top: 0; bottom: 1.5rem; background: color-mix(in srgb, var(--surface-2) 70%, transparent); border-radius: 4px; }
.tl-bars { position: relative; display: flex; flex-direction: column; gap: 3px; padding-bottom: .3rem; }
.tl-bar { display: flex; align-items: center; gap: .45rem; height: 1.55rem; padding: 0 .5rem; border-radius: 5px; overflow: hidden; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 26%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); color: var(--text); text-decoration: none; font-size: .82rem; }
a.tl-bar:hover { background: color-mix(in srgb, var(--c) 34%, var(--surface)); }
.tl-bar span { color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-empty { font-size: .82rem; color: var(--muted); padding: .2rem 0; }
.tl-cover { position: relative; height: 1.25rem; }
.tl-c { position: absolute; top: 0; height: 1.15rem; display: flex; align-items: center; justify-content: center; font-size: .72rem; border-radius: 4px;
  color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-c.short { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); font-weight: 600; }
.tl-c.none { opacity: .55; }
/* Группы смен — цвета столбцов таблицы школы */
.chip-btn.shift-full, th.shift-full { background: color-mix(in srgb, #e06666 22%, var(--surface)); }
.chip-btn.shift-long, th.shift-long { background: color-mix(in srgb, #6aa84f 22%, var(--surface)); }
.chip-btn.shift-slots, th.shift-slots { background: color-mix(in srgb, #f1c232 26%, var(--surface)); }
.shift-sum th { white-space: normal; }
.shift-sum thead:not(:first-child) th { border-top: 1px solid var(--line); }
.table-card + .meta { margin-top: .75rem; }
/* Дежурный — фиолетовым, как в таблице школы */
.tl-bar.duty b { color: #7b3fbf; }
.tl-bar.duty em { font-style: normal; font-size: .72rem; color: #7b3fbf; border: 1px solid color-mix(in srgb, #7b3fbf 45%, transparent); border-radius: 999px; padding: 0 .4rem; }
:root[data-theme="dark"] .tl-bar.duty b, :root[data-theme="dark"] .tl-bar.duty em { color: #c39bf0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl-bar.duty b, :root:not([data-theme="light"]) .tl-bar.duty em { color: #c39bf0; } }
.shift-add .duty-check { flex: 0 0 auto; min-width: 0; flex-direction: row; align-items: center; gap: .4rem; padding-bottom: .6rem; }
.teacher-filter select { width: auto; min-width: 12rem; }

/* Вход и доступ */
a.me-name { text-decoration: none; color: inherit; }
.login .remember { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }
.login .links { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.login .links a { color: var(--muted); }
.confirm-code { font-size: 3.2rem; font-weight: 700; letter-spacing: .08em; text-align: center; font-variant-numeric: tabular-nums; margin: .25rem 0; }
.confirm-wait { color: var(--muted); text-align: center; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1rem; font: 1.05rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.session-row td { white-space: normal; }
