:root {
  --bg: #f4f5f7; --card: #fff; --text: #1c1e21; --muted: #65676b; --line: #dadde1;
  --accent: #1f5fbf; --accent-text: #fff; --ok: #1a7f37; --ok-bg: #e6f4ea;
  --err: #c62828; --err-bg: #fdecea; --warn: #9a6700; --warn-bg: #fff4d6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18191a; --card: #242526; --text: #e4e6eb; --muted: #b0b3b8; --line: #3e4042;
    --accent: #3b7dde; --ok: #5fd27f; --ok-bg: #16301f; --err: #ff7b72; --err-bg: #3a1c1c;
    --warn: #e3b341; --warn-bg: #3a2f12;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }

header { position: sticky; top: 0; z-index: 5; background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px 20px; }
.brand { display: flex; flex-direction: column; min-width: 160px; }
.brand span { color: var(--muted); font-size: 13px; }
nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
nav a:hover { background: var(--bg); }
nav a.active { background: var(--accent); color: var(--accent-text); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--err); color: #fff;
  font-size: 12px; line-height: 20px; text-align: center; }

main { max-width: 1000px; margin: 0 auto; padding: 20px 16px 60px; }
/* Старый адрес кабинета: полоса с новым адресом внизу экрана, поверх содержимого (0.12.2). */
#banners { position: fixed; z-index: 50; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px; }
.alert.moved { box-sizing: border-box; margin: 0; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.alert.moved a { word-break: break-all; font-weight: 600; }
h1 { font-size: 24px; margin: 4px 0 16px; }
h2 { font-size: 19px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 16px 0 8px; }
p.lead { color: var(--muted); margin: -8px 0 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.card.narrow { max-width: 420px; margin: 60px auto; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { color: var(--muted); padding: 20px 0; text-align: center; }

label { display: block; margin: 10px 0; }
label > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
label.check { display: flex; align-items: center; gap: 8px; }
label.check > span { display: inline; margin: 0; color: var(--text); font-size: 16px; }
input[type=text], input[type=password], input[type=number], input[type=email], select, textarea {
  width: 100%; padding: 9px 10px; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; }
textarea { min-height: 70px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 18px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 3px; }

button { font: inherit; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent);
  color: var(--accent-text); cursor: pointer; }
button.secondary { background: transparent; color: var(--accent); }
button.danger { background: transparent; color: var(--err); border-color: var(--err); }
button.link { background: none; border: 0; color: var(--accent); padding: 4px 6px; }
button:disabled { opacity: 0.55; cursor: default; }

.status { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
.status.ok { background: var(--ok-bg); color: var(--ok); }
.status.err { background: var(--err-bg); color: var(--err); }
.status.warn { background: var(--warn-bg); color: var(--warn); }
.status.off { background: var(--bg); color: var(--muted); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

.item { border-top: 1px solid var(--line); padding: 12px 0; }
.item:first-child { border-top: 0; padding-top: 0; }
.phones { margin: 8px 0 0; padding: 0; list-style: none; }
.phones li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 0; }

.alert { padding: 12px 14px; border-radius: 10px; margin: 12px 0; }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.secret { font: 15px ui-monospace, Consolas, monospace; word-break: break-all; background: var(--bg); padding: 10px;
  border-radius: 8px; border: 1px dashed var(--line); margin: 8px 0; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 10px; max-width: 90vw; z-index: 10; }
#toast.err { background: var(--err); color: #fff; }

@media (max-width: 640px) {
  header { padding: 8px 12px; }
  nav a { padding: 6px 8px; font-size: 15px; }
  main { padding: 14px 10px 40px; }
}

img.photo { display: block; width: 200px; border-radius: 8px; margin-top: 6px; }
img.setup-qr { display: block; width: 220px; height: 220px; margin: 10px 0; background: #fff; padding: 6px; border-radius: 8px; image-rendering: pixelated; }
.alert ol { margin: 8px 0; padding-left: 22px; }

/* Двойное меню: разделы сверху, подразделы слева; открыт один подраздел.
   Левый столбец закреплён у левого края окна во всю высоту; прокручивается только правая часть. */
:root { --top: 58px; --side: 250px; }
body.has-side main { max-width: none; margin: 0; padding: 20px 28px 60px calc(var(--side) + 28px); }
.split { display: block; }
.side { position: fixed; left: 0; top: var(--top); bottom: 0; width: var(--side); z-index: 4; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px; background: var(--card); border-right: 1px solid var(--line); padding: 12px 10px; }
.pane { max-width: 1000px; }
.side button { background: none; border: 0; color: var(--text); text-align: left; padding: 9px 12px; border-radius: 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.side button:hover { background: var(--bg); }
.side button.active { background: var(--accent); color: var(--accent-text); }
.side button.add { color: var(--accent); }
.side button.active.add { color: var(--accent-text); }
.side .sub { font-size: 12px; opacity: 0.8; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.pane > .card:last-child { margin-bottom: 0; }
/* Переключатель языка: в шапке кабинета, а на экранах входа — в правом верхнем углу. */
select.lang-switch { width: auto; padding: 5px 8px; font-size: 14px; border-radius: 8px; }
select.lang-float { position: fixed; top: 12px; right: 14px; z-index: 20; }
body:has(#top:not([hidden])) select.lang-float { display: none; }

/* Отчёты */
a.button-link { display: inline-block; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent);
  text-decoration: none; font-size: 15px; }
a.button-link:hover { background: var(--accent); color: var(--accent-text); }
table.grid-table th, table.grid-table td { padding: 5px 4px; font-size: 13px; white-space: nowrap; }
table.grid-table td:first-child, table.grid-table th:first-child { position: sticky; left: 0; background: var(--card); white-space: normal; min-width: 140px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.strong { font-weight: 600; }
.warn-text { color: var(--warn); font-weight: 600; }

.emp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
input[type=time], input[type=date] { padding: 8px 10px; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; }

.bot-picker { margin: -4px 0 10px; }
.bot-list { border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; margin-top: 6px; }
.bot-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.bot-row:first-child { border-top: 0; }
.bot-row .status { margin-left: 6px; }
@media (max-width: 760px) {
  body.has-side main { padding: 14px 10px 40px; }
  .side { position: sticky; top: var(--top); bottom: auto; width: auto; flex-direction: row; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--line); margin: -14px -10px 14px; padding: 6px; }
  .side button { white-space: nowrap; }
  .side hr { display: none; }
}

.code-big { font: 700 34px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 3px; margin: 10px 0; color: var(--text); }
.secret { white-space: pre-wrap; }

/* Табель: выходные и отсутствия (те же цвета, что в Excel) */
.grid-table td.wkend, .grid-table th.wkend { background: #dde3ee; }
.grid-table th.wday { font-weight: normal; font-size: 11px; color: #555; }
.grid-table td.ab-vac { background: #c6efce; text-align: center; }
.grid-table td.ab-sick { background: #ffc7ce; text-align: center; }
.grid-table td.ab-unpaid { background: #fce4d6; text-align: center; }
.grid-table td.ab-unclosed { background: #ffeb9c; text-align: center; }
/* Табель на экране: на всю ширину окна, подписи итогов вертикально снизу вверх, всё по центру */
.pane:has(.grid-table) { max-width: none; }
.grid-table td.num, .grid-table th.num { text-align: center; }
.grid-table th.vhead { vertical-align: bottom; padding: 6px 3px; min-width: 30px; }
.grid-table th.vhead span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-weight: 600; font-size: 12px; }
.grid-table th.emp-head { vertical-align: bottom; text-align: left; }
.grid-table tr.foot td { font-weight: 700; border-top: 2px solid var(--line, #ccc); }/* Вторая строка шапки (даты) начинается с 01 — это не столбец имён */
table.grid-table thead tr + tr th:first-child { position: static; min-width: 0; white-space: nowrap; background: transparent; }
table.grid-table thead tr + tr th.wkend:first-child { background: #dde3ee; }/* Плотнее, чтобы месяц помещался в окно без прокрутки */
table.grid-table th, table.grid-table td { padding: 4px 2px; font-size: 12px; }
table.grid-table td:first-child, table.grid-table th.emp-head { min-width: 110px; padding-left: 6px; padding-right: 6px; }
.grid-table th.vhead { min-width: 22px; padding: 6px 1px; }
.grid-table th.vhead span { font-size: 11px; }
/* Табель: все границы тонкие; толстые — контур, после сотрудников, между днями и итогами. Итоги через один — светло-серым. */
table.grid-table { border-collapse: collapse; border: 2px solid #333; }
table.grid-table th, table.grid-table td { border: 1px solid #9a9a9a; }
table.grid-table td:first-child, table.grid-table th.emp-head { border-right: 2px solid #333; }
table.grid-table thead tr + tr th:first-child { border-right: 1px solid #9a9a9a; border-left: 2px solid #333; }
table.grid-table .thick-l { border-left: 2px solid #333; }
table.grid-table td.stripe, table.grid-table th.stripe { background: #f2f2f2; }
table.grid-table tr:first-child th { border-top: 2px solid #333; }
table.grid-table tr.foot td { border-bottom: 2px solid #333; }
/* Переработка и работа в выходной по графику (те же цвета, что в Excel) */
.grid-table td.ab-over { background: #d9c3e9; }
.grid-table td.ab-offday { background: #9bc2e6; }

/* Вкладка «Смены» */
.shifts-table td.cell-bad { background: #ffd6d6; }
.shifts-table td.cell-warn { background: #fff1b8; }
.shifts-table td.num { text-align: right; }
.shifts-table tr.foot td { font-weight: 700; }

/* Форма смены: одна ровная строка полей одинаковой высоты; на узком экране — по два-три в ряд */
.shift-form { padding: 8px 4px; }
.shift-form-grid { display: grid; grid-template-columns: 140px minmax(170px, 1.5fr) minmax(170px, 1.5fr) 100px 100px minmax(160px, 1.5fr); gap: 12px; align-items: end; }
.shift-form-grid label { margin: 0; }
.shift-form-grid input, .shift-form-grid select { width: 100%; height: 40px; box-sizing: border-box; margin: 0; }
.shift-form > p.small { margin: 8px 0; }
@media (max-width: 1100px) { .shift-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .shift-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Таблица смен — компактная: мелкий текст, строки без переносов, маленькие кнопки в одну строку */
table.shifts-table th, table.shifts-table td { font-size: 13px; padding: 4px 8px; vertical-align: middle; }
table.shifts-table th { font-size: 12px; white-space: nowrap; }
table.shifts-table td.nw { white-space: nowrap; }
table.shifts-table td.emp strong { font-weight: 600; }
table.shifts-table td.acts { white-space: nowrap; text-align: right; }
table.shifts-table button.small-act { font-size: 12px; padding: 2px 6px; margin: 0; min-height: 0; line-height: 1.3; }
table.shifts-table td:nth-child(4), table.shifts-table td:nth-child(5) { white-space: nowrap; }
/* Строка фильтров: кнопка «Показать» по низу полей и той же высоты */
.row.filters { align-items: flex-end; }
.row.filters input, .row.filters select { height: 44px; box-sizing: border-box; }
.row.filters > button { height: 44px; margin: 10px 0; box-sizing: border-box; }

/* Журнал отметок — как таблица смен */
table.shifts-table.journal td { vertical-align: top; }
table.shifts-table.journal .status { font-size: 12px; padding: 1px 8px; }
table.shifts-table.journal .small { font-size: 12px; }
table.shifts-table.journal img.photo { max-width: 240px; }
.row.filters > label.check { margin: 10px 0; height: 44px; }
.row.filters > button.secondary { height: 44px; margin: 10px 0; }

/* Сотрудники — компактная таблица */
table.emp-table td { vertical-align: middle; }
table.emp-table td.center { text-align: center; }
table.emp-table .phone-line { white-space: nowrap; }
table.emp-table .phone-line + .phone-line { margin-top: 2px; }
table.emp-table .status { font-size: 12px; padding: 1px 8px; }
.code-badge { font-family: ui-monospace, Consolas, monospace; font-size: 14px; font-weight: 700; letter-spacing: 2px; background: #eef2f8; border-radius: 6px; padding: 1px 8px; }
input.code-input-sm { width: 90px; height: 28px; padding: 2px 8px; font-size: 13px; display: inline-block; }

/* Выбор столбцов табеля */
.col-picker { border: 1px solid var(--line, #ddd); border-radius: 10px; padding: 10px 14px; margin: 8px 0 12px; background: #fafbfd; }
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; }
.col-grid label.check { margin: 4px 0; }

.grid-table td.ab-child { background: #f4b6d8; text-align: center; }
.grid-table td.ab-doctor { background: #b7e4e8; text-align: center; }

/* Договоры и выпадающий список у сотрудника */
select.select-sm, input.input-sm { height: 30px; padding: 2px 8px; font-size: 13px; margin: 0; }
input.num-sm { width: 80px; }
table.contracts-table td { vertical-align: middle; }
table.contracts-table input.input-sm[type=text] { width: 190px; }
table.contracts-table select.select-sm { width: 250px; }
table.contracts-table input.num-sm { width: 66px; }
table.emp-table select.select-sm { max-width: 190px; }

.grid-table td.ab-early { background: #f28b82; }

/* «Столбцы…» — плотно, обычным мелким шрифтом */
.col-picker { padding: 8px 12px; }
.col-picker > p.small { margin: 0 0 6px; font-size: 12px; }
.col-grid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 0 12px; }
.col-grid label.check { margin: 1px 0; gap: 6px; }
.col-grid label.check > span { font-size: 13px; line-height: 1.3; }
.col-grid input[type=checkbox] { width: 15px; height: 15px; }
.col-picker .row { margin-top: 6px; }
.col-picker .row button:not(.link) { padding: 5px 12px; font-size: 13px; }

/* Обозначения под табелем — строчка под строчкой */
.legend { margin: 10px 0 6px; font-size: 13px; color: var(--muted, #666); }
.legend-line { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.legend .swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #bbb; flex: none; }

.legend .swatch.sw-vac { background: #c6efce; }
.legend .swatch.sw-unpaid { background: #fce4d6; }
.legend .swatch.sw-early { background: #f28b82; }
.legend .swatch.sw-offday { background: #9bc2e6; }
.legend .swatch.sw-wkend { background: #dde3ee; }
.legend .swatch.sw-doctor { background: #b7e4e8; }
.legend .swatch.sw-unclosed { background: #ffeb9c; }
.legend .swatch.sw-sick { background: #ffc7ce; }
.legend .swatch.sw-over { background: #d9c3e9; }
.legend .swatch.sw-child { background: #f4b6d8; }

/* Смены под табелем */
.ts-shifts-bar { gap: 6px 10px; margin: 6px 0; }
.ts-shifts-bar button.small-act.on { font-weight: 700; text-decoration: underline; }
.ts-shifts-bar select.select-sm { width: auto; min-width: 150px; }

.types-block { margin-top: 18px; }
table.contracts-table input.code-sm { width: 90px; }
table.contracts-table input.name-sm { width: 320px; }

/* Подключение терминала (0.11.3) */
button.big-add { background: #16a34a; color: #fff; font-size: 16px; padding: 12px 20px; border: 0; }
button.big-add:hover { background: #15803d; }
input.term-name { width: 200px; font-weight: 600; }
.connect-box { border: 2px solid #16a34a; border-radius: 12px; padding: 16px; margin: 14px 0; background: var(--card, transparent); }
.connect-box h3 { margin-top: 0; }
.connect-box h4 { margin: 12px 0 4px; }
.connect-box ol { margin: 0; padding-left: 22px; }
.connect-box li { margin: 3px 0; }
.connect-cols { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.connect-qr { text-align: center; }
.connect-qr img.setup-qr { width: 260px; height: 260px; margin: 0 auto 8px; }
.connect-url { font: 600 18px/1.3 ui-monospace, Consolas, monospace; }
.connect-steps { flex: 1; min-width: 260px; }
.connect-state { font-size: 17px; font-weight: 600; margin: 14px 0 6px; padding: 10px 12px; border-radius: 8px; }
.connect-state.wait { background: rgba(234, 179, 8, .15); }
.connect-state.ok { background: rgba(22, 163, 74, .18); color: #15803d; }

/* Цвета табеля (0.11.4): берутся из настройки «Цвета табеля» через переменные --c-*; без настройки — стандартные.
   Порядок важен: выходные первыми, отметки дня — поверх. */
.grid-table td.wkend, .grid-table th.wkend, table.grid-table thead tr + tr th.wkend:first-child, .legend .swatch.sw-wkend { background: var(--c-wkend, #dde3ee); }
.grid-table td.ab-vac, .legend .swatch.sw-vac { background: var(--c-vac, #c6efce); }
.grid-table td.ab-sick, .legend .swatch.sw-sick { background: var(--c-sick, #ffc7ce); }
.grid-table td.ab-child, .legend .swatch.sw-child { background: var(--c-child, #f4b6d8); }
.grid-table td.ab-doctor, .legend .swatch.sw-doctor { background: var(--c-doctor, #b7e4e8); }
.grid-table td.ab-unpaid, .legend .swatch.sw-unpaid { background: var(--c-unpaid, #fce4d6); }
.grid-table td.ab-unclosed, .legend .swatch.sw-unclosed { background: var(--c-unclosed, #ffeb9c); }
.grid-table td.ab-over, .legend .swatch.sw-over { background: var(--c-over, #d9c3e9); }
.grid-table td.ab-offday, .legend .swatch.sw-offday { background: var(--c-offday, #9bc2e6); }
.grid-table td.ab-late, .legend .swatch.sw-late { background: var(--c-late, #ffb74d); }
.grid-table td.ab-early, .legend .swatch.sw-early { background: var(--c-early, #f28b82); }

/* Обозначения — три столбца: отсутствия, нарушения, прочее */
.legend.cols { display: grid; grid-template-columns: repeat(3, minmax(220px, max-content)); gap: 4px 36px; align-items: start; }
.legend .legend-col h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted, #666); }
.legend .legend-edit { grid-column: 1 / -1; margin-top: 4px; }
@media (max-width: 760px) { .legend.cols { grid-template-columns: 1fr; } }

/* Настройки → «Цвета табеля» */
.color-list { display: grid; grid-template-columns: max-content 54px max-content; gap: 6px 14px; align-items: center; margin: 8px 0 12px; }
.color-list input[type=color] { width: 48px; height: 30px; padding: 0 2px; border: 1px solid #bbb; border-radius: 6px; cursor: pointer; }
.color-list button.link { font-size: 13px; }

/* Панель владельца: организации и оплата (0.11.5) */
.billing-sum { gap: 40px; margin: 0 0 12px; }
.billing-sum strong { font-size: 22px; }
table.orgs-table td, table.orgs-table th { white-space: nowrap; }
table.orgs-table tr.row-warn td { background: #fff7e0; }
table.orgs-table tr.row-bad td { background: #fde8e8; }
.calc-cols { display: flex; gap: 28px; flex-wrap: wrap; }
.calc { flex: 1; min-width: 300px; }
table.calc-table { border-collapse: collapse; width: 100%; font-size: 14px; }
table.calc-table td { padding: 4px 6px; border-bottom: 1px solid var(--line, #e5e5e5); }
table.calc-table td.num { text-align: right; white-space: nowrap; }
table.calc-table tr.foot td { font-weight: 700; border-top: 2px solid #333; }
button.danger-link { color: #c62828; }
.promo-form { border: 1px dashed var(--line, #ccc); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.promo-form .row .link.small { font-size: 13px; padding: 2px 6px; }
table.shifts-table tr.row-ok td { background: #eaf7ee; }
table.shifts-table tr.row-past td { color: #888; }

/* Логотип в шапке — ссылка на кабинет (можно открыть во второй вкладке) (0.11.6) */
header .logo { display: flex; align-items: center; flex: none; margin-right: 10px; border-radius: 8px; }
header .logo img { width: 32px; height: 32px; display: block; }
header .logo:hover img { opacity: .8; }

/* Раздел с таблицей — во всю ширину окна, чтобы широкие таблицы не прокручивались (0.11.7).
   Текст над таблицей остаётся удобной ширины. */
.pane:has(table) { max-width: none; }
.pane:has(table) .card > p, .pane:has(table) .card > .hint, .pane:has(table) > p.lead { max-width: 1100px; }
main:not(:has(.pane)):has(table) { max-width: none; }
/* Государственный праздник (0.12.0): столбец дня и ячейки; цвет — из «Цвета табеля» (--c-holiday). */
.grid-table td.hol, .grid-table th.hol, .grid-table td.ab-hol, .legend .swatch.sw-hol { background: var(--c-holiday, #e8c39e); }

/* 0.12.1: «Предупредить, если пришёл меньше чем за N мин» в графике */
label.check.warn-arrival { flex-wrap: nowrap; margin-top: 12px; }
label.check.warn-arrival > span:last-child { white-space: nowrap; }
label.check.warn-arrival input[type=number] { width: 70px; flex: 0 0 70px; margin: 0; padding: 6px 8px; }

/* Вход с кодом из приложения (0.12.3). */
input.otp { font-size: 22px; letter-spacing: 3px; max-width: 180px; text-align: center; font-variant-numeric: tabular-nums; }
.otp-setup ol { padding-left: 22px; margin: 8px 0 12px; }
.otp-setup .otp-qr { display: block; margin: 8px 0 10px; background: #fff; padding: 8px; border-radius: 8px; image-rendering: pixelated; }
.otp-setup code { font-size: 14px; letter-spacing: 1px; word-break: break-all; }
pre.otp-codes { font-size: 17px; line-height: 1.7; padding: 12px 16px; background: var(--bg, #f4f5f7); border-radius: 8px; columns: 2; user-select: all; }
