/* Épicerie — один шрифт (Golos Text, есть латиница и кириллица), белый фон,
   один тёплый акцент цвета корочки хлеба. Разделение блоков — фоном, не рамками. */

@font-face { font-family: 'Golos'; font-weight: 400; font-display: swap; src: url(fonts/golos-text-latin-400-normal.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, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos'; font-weight: 500; font-display: swap; src: url(fonts/golos-text-latin-500-normal.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, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos'; font-weight: 600; font-display: swap; src: url(fonts/golos-text-latin-600-normal.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, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos'; font-weight: 700; font-display: swap; src: url(fonts/golos-text-latin-700-normal.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, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos'; font-weight: 400; font-display: swap; src: url(fonts/golos-text-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos'; font-weight: 500; font-display: swap; src: url(fonts/golos-text-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos'; font-weight: 600; font-display: swap; src: url(fonts/golos-text-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos'; font-weight: 700; font-display: swap; src: url(fonts/golos-text-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #ffffff;
  --surface: #f6f3ef;
  --surface-2: #ede7e0;
  --text: #1e1a16;
  --text-2: #5f574f;
  --text-3: #7a7168;
  --accent: #b24a17;
  --accent-press: #963c10;
  --on-accent: #ffffff;
  --accent-ink: #8e3a10;
  --accent-soft: #fbece2;
  --ok: #2e6b4e;
  --ok-soft: #e3f1e8;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --danger-soft-2: #f9d7d2;
  --need-bg: #c4655a;        /* не хватает людей: #bf564a, чуть светлее (23.10, просьба владельца «светлее, а не темнее»), белые цифры — контраст 3.9 */
  --need-press: #ad574d;
  --chat-frame: #efedea;     /* рамка переписки на ПК вокруг фона — чуть серее общего фона (23.10) */
  --on-need: #ffffff;
  --on-need-2: rgba(255, 255, 255, .88);
  --read: #2b8ae0;
  --scrim: rgba(24, 18, 12, .42);
  --shadow: 0 1px 2px rgba(40, 28, 16, .06), 0 8px 24px rgba(40, 28, 16, .08);
  --radius: 16px;
  --safe-top: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #15120f;
  --surface: #211c18;
  --surface-2: #2c2620;
  --text: #f3ede6;
  --text-2: #c2b8ad;
  --text-3: #a39888;
  --accent: #e28b58;
  --accent-press: #f0a274;
  --on-accent: #1b120c;
  --accent-ink: #f2b08a;
  --accent-soft: #3a2519;
  --ok: #74c29a;
  --ok-soft: #1c3327;
  --danger: #f1897f;
  --danger-soft: #3c1f1c;
  --danger-soft-2: #4d2723;
  --need-bg: #b25a50;
  --need-press: #9a4e45;
  --chat-frame: #211c18;
  --on-need: #ffffff;
  --on-need-2: rgba(255, 255, 255, .88);
  --read: #6cb6ff;
  --scrim: rgba(0, 0, 0, .6);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Golos', 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
svg.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- каркас */
/* dvh, а не только vh: в браузере телефона 100vh — высота БЕЗ адресной строки, страница выходила выше экрана на её
   высоту, и короткий список (чат) сдвигался пальцем — поиск уезжал под шапку (скрин владельца 29.10). В APK строки нет */
#app { min-height: 100vh; min-height: 100dvh; }
.shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  padding: calc(var(--safe-top) + 8px) 16px 8px;
  display: flex; align-items: center; gap: 8px; min-height: 56px;
}
.topbar h1 { font-size: 22px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); position: relative;
}
.iconbtn:active { background: var(--surface); }
.badge-dot {
  position: absolute; top: 8px; inset-inline-end: 8px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.content { flex: 1; padding: 0 16px calc(96px + var(--safe-bottom)); overflow-x: clip; }   /* что-то шире экрана — обрежется, а не растянет страницу (телефон уменьшал всю админку) */
.content.nonav { padding-bottom: calc(32px + var(--safe-bottom)); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--bg);
  box-shadow: 0 -1px 0 var(--surface-2);
  display: flex; padding: 6px 4px calc(6px + var(--safe-bottom));
}
.tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0; color: var(--text-3); font-size: 12px; font-weight: 500;
}
.tabbar button.on { color: var(--accent); }
.tabbar button.on svg { stroke-width: 2.1; }

/* ---------------------------------------------------------------- кнопки и поля */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 16px;
  background: var(--accent); color: var(--on-accent);
  transition: transform .12s ease-out, background-color .12s ease-out;
}
.btn:active { transform: scale(.98); background: var(--accent-press); }
.btn:disabled { opacity: .5; }
.btn.block { width: 100%; }
.btn.soft { background: var(--surface); color: var(--text); }
.btn.soft:active { background: var(--surface-2); }
.btn.ghost { background: none; color: var(--accent); padding: 0 8px; }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.ok { background: var(--ok); color: #fff; }
:root[data-theme="dark"] .btn.ok { color: #0f1f16; }
.btn.danger:active { background: var(--danger-soft-2); }
@media (hover: hover) {
  .btn:hover { background: var(--accent-press); }
  .btn.soft:hover { background: var(--surface-2); }
  .btn.ghost:hover { background: var(--surface); }
  .btn.danger:hover { background: var(--danger-soft-2); }
  .btn.gbtn:hover { background: var(--surface); }
  .btn.ok:hover { filter: brightness(1.06); }
}
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-row { display: flex; gap: 8px; }
.btn-row > * { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 8px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field small { display: block; font-size: 13px; color: var(--text-3); margin-top: 6px; }
.input, select.input, textarea.input {
  width: 100%; height: 48px; padding: 0 14px;
  border-radius: 12px; border: 2px solid transparent;
  background: var(--surface); outline: none;
  transition: border-color .12s ease-out, background-color .12s ease-out;
}
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--accent); background: var(--bg); }
select.input { appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237a7168' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 52px; }
.pw-wrap .iconbtn { position: absolute; inset-inline-end: 2px; top: 2px; color: var(--text-3); }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
.error { color: var(--danger); font-size: 14px; margin: -4px 0 12px; min-height: 0; }
.error:empty { display: none; }

/* переключатели-«таблетки» */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip.on { background: var(--accent); color: var(--on-accent); }
.chip.static { background: var(--surface); }
.daypick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daypick .chip { padding: 0; justify-content: center; }

.seg { display: inline-flex; background: var(--surface); border-radius: 12px; padding: 3px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.seg button.on { background: var(--bg); color: var(--text); box-shadow: var(--shadow); }
.seg.full { display: flex; }
.seg.full button { flex: 1; }

.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: var(--surface-2); transition: background-color .15s ease-out; }
.switch span::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s ease-out; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------------------------------------------------------------- аватарки */
.av {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; color: #fff; overflow: hidden;
  background: var(--av, #8c6a52);
}
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.s28 { width: 28px; height: 28px; font-size: 11px; }
.av.s44 { width: 44px; height: 44px; }
.av.s56 { width: 56px; height: 56px; font-size: 19px; }
.av.s96 { width: 96px; height: 96px; font-size: 32px; }
.avstack { display: flex; align-items: center; }
.avstack .av { box-shadow: 0 0 0 2px var(--rowbg, var(--bg)); }
.avstack .av + .av { margin-inline-start: -6px; }
.count { font-weight: 700; font-size: 16px; margin-inline-start: 8px; }
.count.zero { color: var(--text-3); font-weight: 500; font-size: 14px; margin-inline-start: 0; }

/* ---------------------------------------------------------------- планирование */
.plan-head { display: flex; align-items: center; gap: 4px; margin: 12px 0 8px; }
.plan-head .label { flex: 1; font-weight: 600; font-size: 17px; text-align: center; }
.plan-tools { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 8px; }
.linkbtn { color: var(--accent); font-weight: 600; font-size: 14px; height: 36px; padding: 0 4px; }
/* под формой входа: чья это страница и что хранится (окно «О нас») */
.auth-foot { margin-top: 32px; text-align: center; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.auth-foot p { margin: 0 0 2px; }
.about p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.about .btn-row { margin-top: 16px; }

.days { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.day {
  --rowbg: var(--surface);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 8px; min-height: 76px;
  border-radius: var(--radius); background: var(--rowbg);
  text-align: start; width: 100%;
  transition: transform .12s ease-out;
}
.day:active { transform: scale(.99); }
.day.today { --rowbg: var(--accent-soft); }
.day.past { opacity: .55; }
.day.closed { --rowbg: transparent; box-shadow: inset 0 0 0 1.5px var(--surface-2); }
.day .date { width: 52px; flex: none; text-align: center; }
.day .date .wd { font-size: 13px; color: var(--text-2); font-weight: 500; }
.day .date .dn { font-size: 26px; font-weight: 700; line-height: 1.1; }
.day.today .date .dn, .day.today .date .wd { color: var(--accent-ink); }
.day .mid { flex: 1; min-width: 0; }
.day .mid .who { display: flex; align-items: center; min-height: 28px; }
.day .mid .split { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.day .me {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 10px; border-radius: 16px;
  background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 600;
}
.day .add {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--accent);
}
.day.today .add { background: var(--bg); }

.month { margin-top: 8px; }
.month .wdh { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; color: var(--text-3); font-weight: 500; margin-bottom: 6px; }
.month .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mcell {
  aspect-ratio: 1 / 1.15; border-radius: 12px; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 6px 2px 5px; position: relative;
}
.mcell .dn { font-size: 15px; font-weight: 600; }
.mcell .n { font-size: 12px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 2px; }
.mcell .n svg { width: 12px; height: 12px; }
.mcell.other { background: transparent; }
.mcell.other .dn { color: var(--text-3); font-weight: 400; }
.mcell.closed { background: transparent; box-shadow: inset 0 0 0 1.5px var(--surface-2); }
.mcell.closed .n { color: var(--text-3); }
.mcell.past { opacity: .5; }
.mcell.today { background: var(--accent-soft); }
.mcell.today .dn { color: var(--accent-ink); }
.mcell.mine { box-shadow: inset 0 0 0 2px var(--ok); }
.mcell.mine .n { color: var(--ok); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--text-2); margin-top: 12px; align-items: center; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-inline-end: 6px; }

/* ---------------------------------------------------------------- списки-строки */
.section-title { font-size: 14px; font-weight: 600; color: var(--text-2); margin: 24px 0 8px; }
.section-title:first-child { margin-top: 12px; }
.rows { display: flex; flex-direction: column; gap: 2px; }
.row {
  display: flex; align-items: center; gap: 12px; min-height: 56px;
  padding: 8px 12px; background: var(--surface); width: 100%; text-align: start;
}
.rows > .row:first-child { border-radius: var(--radius) var(--radius) 4px 4px; }
.rows > .row:last-child { border-radius: 4px 4px var(--radius) var(--radius); }
.rows > .row:only-child { border-radius: var(--radius); }
button.row:active { background: var(--surface-2); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .chev { color: var(--text-3); }
.row .datebox { width: 44px; text-align: center; flex: none; }
.row .datebox .wd { font-size: 12px; color: var(--text-2); }
.row .datebox .dn { font-size: 20px; font-weight: 700; line-height: 1.1; }
.row.plain { background: none; padding-left: 0; padding-right: 0; }

.card { background: var(--surface); border-radius: var(--radius); padding: 16px; }
.empty { text-align: center; padding: 40px 16px; color: var(--text-2); }
.empty .btn { margin-top: 16px; }

/* часы */
.hours { padding: 20px 16px; border-radius: 20px; background: var(--accent-soft); margin-top: 12px; }
.hours .big { font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--accent-ink); }
.hours .line { margin-top: 4px; color: var(--text); }
.hours .parts { display: flex; gap: 24px; margin-top: 14px; font-size: 14px; color: var(--text-2); }
.hours .parts b { display: block; font-size: 17px; color: var(--text); }

/* профиль */
.profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 4px; }
.profile-head .av { margin-bottom: 12px; }
.profile-head h2 { font-size: 24px; font-weight: 700; }
.profile-head .muted { margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--surface); font-size: 13px; font-weight: 600; margin-top: 8px; }
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); }
.weekdots { display: flex; gap: 6px; }
/* дни в карточке: оба вида чуть ярче (были слишком тусклые — владелец 30.10) */
.weekdots span { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.weekdots span.on { background: #a6d9bb; color: #174d33; }
:root[data-theme="dark"] .weekdots span.on { background: #2c6447; color: #c6f0d8; }
/* заголовок с карандашом (подразделения в профиле) */
.section-title.sec-edit { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sec-edit .iconbtn { width: 32px; height: 32px; margin: -6px 0; color: var(--accent-ink); }
.acts-edit-row { margin-top: 12px; }
.lang-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px;
  padding: 4px 4px 12px 14px; background: var(--surface); border-radius: 14px; margin-bottom: 8px;
}
.lang-row .name { font-weight: 600; }
.lang-row .seg { grid-column: 1 / -1; display: flex; background: var(--bg); margin-inline-end: 10px; }
.lang-row .seg button { flex: 1; padding: 0 6px; white-space: nowrap; font-size: 13px; }
.lang-row .seg button.on { background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }
.card .chip:not(.on), .act-admin .chip:not(.on) { background: var(--bg); }
.filters .input { font-size: 14px; height: 44px; padding-inline-start: 12px; }
.avatar-pick { display: flex; align-items: center; gap: 16px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 12px; background: var(--surface); }
.setting .grow { flex: 1; }

/* ---------------------------------------------------------------- вход */
.auth { max-width: 460px; margin: 0 auto; padding: calc(var(--safe-top) + 24px) 20px calc(32px + var(--safe-bottom)); }
/* вход: логотип ассоциации (картинка на белом — поэтому на белой плашке, в тёмной теме тоже) и название приложения */
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 16px 0 28px; }
.brand-logo { display: block; padding: 10px 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--surface-2); }
.brand-logo img { display: block; width: min(300px, 72vw); height: auto; }
.brand h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
/* знак приложения (рыбка на синем) — во всю плитку, со скруглением плитки */
.mark { overflow: hidden; }
.mark > .pa-mark, .mark-sm > .pa-mark { display: block; width: 100%; height: 100%; }
.mark-sm { width: 24px; height: 24px; flex: none; border-radius: 7px; overflow: hidden; }
.topbar .tb-mark { width: 32px; height: 32px; border-radius: 9px; }
.credits { margin: 8px 4px 0; font-size: 11.5px; }
.auth-top { display: flex; justify-content: flex-end; }
.auth h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.steps { height: 4px; background: var(--surface); border-radius: 2px; margin: 8px 0 20px; overflow: hidden; }
.steps i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .25s ease-out; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 14px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--surface-2); }
.gbtn { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--surface-2); }

/* ---------------------------------------------------------------- нижняя шторка и диалоги */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; opacity: 0; transition: opacity .2s ease-out; }
.scrim.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
  max-height: 90vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 24px 24px 0 0;
  padding: 8px 16px calc(24px + var(--safe-bottom));
  transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}
.sheet.show { transform: none; }
.sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: var(--surface-2); margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.sheet-head h2 { flex: 1; font-size: 20px; font-weight: 700; }
.sheet-head .sub { font-size: 14px; color: var(--text-2); font-weight: 500; margin-top: 2px; }

.shifts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.shift {
  border-radius: 14px; background: var(--surface); padding: 12px; text-align: start;
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .12s ease-out, background-color .12s ease-out;
}
.shift b { display: block; font-size: 15px; }
.shift span { font-size: 13px; color: var(--text-2); }
.shift.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.shift.on b { color: var(--accent-ink); }
.custom-hours { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.custom-hours select { flex: 1; }
.mine-box { border-radius: 16px; background: var(--ok-soft); padding: 14px 16px; display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; }
.mine-box .t { font-weight: 700; color: var(--ok); }
.mine-box .s { font-size: 14px; color: var(--text-2); }
.person-line { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.person-line .grow { flex: 1; min-width: 0; }
.person-line .name { font-weight: 600; }
.person-line .hrs { font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }

.dialog { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
/* затемнение внутри окна — ПОД рамкой: раньше оно ложилось поверх, окно было серым,
   а любой клик попадал в затемнение и просто закрывал окно (кнопки «не работали») */
.dialog .scrim { z-index: 0; }
.dialog .box { background: var(--bg); border-radius: 20px; padding: 20px; width: 100%; max-width: 380px; box-shadow: var(--shadow); }
.dialog .box h3 { font-size: 18px; margin-bottom: 8px; }
.dialog .box p { margin: 0 0 16px; color: var(--text-2); }
.dialog .box .stack { margin-top: 8px; }
.secret { font-size: 26px; font-weight: 700; letter-spacing: .06em; text-align: center; padding: 12px; background: var(--surface); border-radius: 12px; margin-bottom: 12px; user-select: all; }

.toast {
  position: fixed; left: 50%; bottom: calc(92px + var(--safe-bottom)); z-index: 70;
  transform: translate(-50%, 16px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px;
  font-size: 15px; font-weight: 500; max-width: calc(100vw - 32px); text-align: center;
  transition: opacity .2s ease-out, transform .2s ease-out; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.banner { display: flex; align-items: center; gap: 12px; background: var(--accent-soft); color: var(--accent-ink); border-radius: 14px; padding: 12px 14px; margin: 8px 0; font-size: 14px; font-weight: 500; }
.banner .grow { flex: 1; }

.ann { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 8px; }
.ann h3 { font-size: 17px; }
.ann .body { white-space: pre-wrap; margin: 6px 0 8px; overflow-wrap: anywhere; }
.ann .meta { font-size: 13px; color: var(--text-3); display: flex; align-items: center; justify-content: space-between; }
.ann.unread { background: var(--accent-soft); }
/* новость подразделения: его название над заголовком; кнопка «Написать новость» для главы, зама и админа */
.ann-act { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 10px; padding: 2px 8px; margin-bottom: 6px; }
.ann.unread .ann-act { background: var(--surface); }
.ann-new { margin-bottom: 12px; }
/* окно «Включить уведомления?» при входе */
.push-ask { text-align: center; margin-bottom: 16px; }
.push-ask-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 10px; }
.push-ask p { color: var(--text-2); margin-top: 6px; }

.act-admin { background: var(--surface); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; }
.act-admin .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; }

.skeleton { background: var(--surface); border-radius: var(--radius); height: 76px; margin-bottom: 8px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (min-width: 720px) {
  .content, .topbar { max-width: 720px; margin-left: auto; margin-right: auto; width: 100%; }
  .tabbar { justify-content: center; }
  .tabbar button { max-width: 120px; }
  .sheet { max-width: 560px; margin: 0 auto; }
}

/* ---------------------------------------------------------------- переходы между разделами (View Transitions)
   Старый экран исчезает в первый же кадр — ни затухания, ни сдвига (раньше гас поверх нового, и на 240 Гц
   владелец видел, как прошлое окно стоит ~180 мс и только потом пропадает). Новый появляется сразу, почти
   непрозрачным (без пустого кадра), и доезжает на место по оси меню: на ПК меню вертикальное (ниже по списку —
   приходит снизу), на телефоне панель горизонтальная (правее — справа); вглубь — справа, назад — слева.
   Плашка меню ПК переезжает сама (slideNavPill), заголовок телефона проявляется, нижняя панель — сразу.
   «Меньше движения» в системе — только проявление. Браузер без поддержки — без анимации. */
.content, .dpage { view-transition-name: page; }
.tabbar { view-transition-name: tabbar; }
.side { view-transition-name: side; }
.topbar { view-transition-name: topbar; }
::view-transition-group(*) { animation: none; }
/* заголовок, нижняя панель и меню — поверх въезжающей страницы */
::view-transition-group(topbar), ::view-transition-group(tabbar), ::view-transition-group(side) { z-index: 1; }
::view-transition-old(*) { animation: none; opacity: 0; }
::view-transition-new(*) { animation: none; }
::view-transition-new(page) { animation: 220ms cubic-bezier(.2, .8, .2, 1) both vt-in-soft; }
:root[data-nav="fwd"]::view-transition-new(page), :root[data-nav="tab"][data-dir="next"]::view-transition-new(page) { animation-name: vt-in-right; }
:root[data-nav="back"]::view-transition-new(page), :root[data-nav="tab"][data-dir="prev"]::view-transition-new(page) { animation-name: vt-in-left; }
:root.desk[data-nav="tab"][data-dir="next"]::view-transition-new(page) { animation-name: vt-in-up; }
:root.desk[data-nav="tab"][data-dir="prev"]::view-transition-new(page) { animation-name: vt-in-down; }
::view-transition-new(topbar) { animation: 160ms ease-out both vt-in-fade; }
@keyframes vt-in-fade { from { opacity: .35; } }
@keyframes vt-in-soft { from { opacity: .35; transform: translateY(14px); } }
@keyframes vt-in-right { from { opacity: .35; transform: translateX(40px); } }
@keyframes vt-in-left { from { opacity: .35; transform: translateX(-40px); } }
@keyframes vt-in-up { from { opacity: .35; transform: translateY(32px); } }
@keyframes vt-in-down { from { opacity: .35; transform: translateY(-32px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(page) { animation-name: vt-in-fade !important; }
}

.nick-line { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--read); }
.rows > .setting:only-child { border-radius: var(--radius); }
svg.i.xs { width: 14px; height: 14px; }

/* заставка на время проверки входа (вместо мелькания экрана входа) */
.splash { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; color: var(--text-3); animation: splash-in .3s ease-out .15s both; }
.splash .mark { width: 64px; height: 64px; border-radius: 18px; }
@keyframes splash-in { from { opacity: 0; } }

/* установка как приложения */
.banner.install svg { flex: none; }
.ios-help .ios-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ios-help .ios-head img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 0 0 1px var(--surface-2); }
.ios-help ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ios-help li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: 15px; line-height: 1.35; }
.ios-help .grow { flex: 1; }
.ios-n { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ios-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--bg); color: #1a7cf5; display: flex; align-items: center; justify-content: center; }

/* контакты и полезное */
.info-name { margin-top: 10px; font-size: 22px; font-weight: 700; }
.card.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.info-person { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 12px; }
.info-person input { min-width: 0; }
.info-person .rm { grid-row: span 2; align-self: center; color: var(--text-2); }
.page-info, .page-infoEdit { max-width: 720px; }
@media (max-width: 560px) {
  .info-person { grid-template-columns: 1fr auto; }
  .info-person .rm { grid-row: span 4; }
}

/* отмены с причиной */
.cancel-row { align-items: flex-start; }
.cancel-row .grow { min-width: 0; }
.cancel-reason { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cancel-reason.none { color: var(--text-3); font-style: italic; }
.cancel-row .tr-mark { display: inline-flex; align-items: center; gap: 3px; color: var(--ok); }
.cancel-row .tr-mark svg { width: 13px; height: 13px; }

/* ответственный за подразделение */
.section-title .gap { margin-inline-start: 8px; font-style: normal; font-weight: 600; color: var(--danger); }
.ref-day .datebox { flex: none; }
.ref-day.today { box-shadow: inset 0 0 0 2px var(--accent-soft); }
.ref-count { flex: none; min-width: 42px; text-align: end; font-weight: 700; }
.ref-count.low { color: var(--danger); }
.act-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.act-row .grow { flex: 1; min-width: 0; }
.act-row .input.need { width: 84px; flex: none; text-align: center; background: var(--bg); }
.pick-row { cursor: pointer; }
.pick-row input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }

/* часы подразделения в админке */
.act-hours { margin-top: 10px; }
.act-hours .act-row { margin-top: 6px; }
/* часы подразделения: подпись сверху, время под ней. Раньше .hsel проигрывал правилу select.input (width:100%) —
   каждый выбор растягивался на всю строку, и админка на телефоне раздувалась вдвое */
.act-row.hours-row { flex-wrap: wrap; row-gap: 6px; }
.act-row.hours-row > .grow { flex: 1 0 100%; }
select.input.hsel { width: auto; min-width: 0; flex: 0 1 auto; height: 40px; padding: 0 34px 0 12px; background-color: var(--bg); background-position: right 10px center; }
[dir="rtl"] select.input.hsel { padding: 0 12px 0 34px; background-position: left 10px center; }
/* утро / вечер: название и выключатель в строку, часы под ними; выключенная половина — бледная (29.10) */
.act-row.hours-row > .grow { flex: 1 1 auto; }
.hours-times { flex: 1 0 100%; display: flex; align-items: center; gap: 8px; }
.hours-row.off .hours-times { opacity: .4; pointer-events: none; }
/* своё окошко выбора времени вместо системного списка */
.time-btn { width: auto; min-width: 96px; height: 40px; padding: 0 12px; background: var(--bg); gap: 6px; }
.custom-hours .time-btn { flex: 1; }
.time-menu .pick-list button { justify-content: flex-start; }
.act-del { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--danger); font-size: 14px; }

/* всплывающее окно со списком (все отмены): листается внутри, страница под ним стоит */
.dialog .box.pop { max-width: 520px; max-height: min(82vh, 720px); padding: 0; display: flex; flex-direction: column; overflow: hidden;
  animation: pop-in .24s cubic-bezier(.2, .8, .2, 1); }
.pop-head { display: flex; align-items: center; gap: 8px; padding-block: 14px 6px; padding-inline: 20px 10px; }
.pop-head h3 { flex: 1; margin: 0; }
.pop-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 16px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(28px) scale(.97); } }
.pop-open { margin-top: 10px; }

/* заявки на регистрацию */
.reqs { display: flex; flex-direction: column; gap: 10px; }
.req { background: var(--surface); border-radius: var(--radius); padding: 14px; border-inline-start: 4px solid var(--accent); }
.req-top { display: flex; align-items: center; gap: 12px; }
.req-top .title { font-weight: 600; }
.req-top .sub { font-size: 13px; color: var(--text-3); }
.req-info { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 12px; color: var(--text-2); }
.req-info div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.req-info span { overflow-wrap: anywhere; }

/* плашка с кнопками (новая заявка) */
.mtoast.atoast { flex-direction: column; align-items: stretch; gap: 10px; }
.atoast .at-top { display: flex; align-items: center; gap: 10px; }

/* регистрация отправлена — ждём админа */
.reg-sent { text-align: center; padding: 16px 4px 8px; }
.reg-sent-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; }
.reg-sent p { color: var(--text-2); margin: 8px 0 24px; line-height: 1.5; }

/* выгрузка: свой период — даты друг под другом, поле даты не уже своего содержимого */
.exp-range { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.exp-range .input { width: 100%; min-width: 0; background: var(--bg); }

/* «нужна ваша помощь» в «Моих днях» — спокойно, без тревожного красного */
.need-rows .row { gap: 12px; }
.need-gap { color: var(--accent-ink); font-weight: 600; }
/* график: не хватает людей (со завтра на неделю вперёд), а меня там нет — день ярко-красный, текст белый */
.day.need { --rowbg: var(--need-bg); color: var(--on-need); }
.day.need .date .wd, .day.need .date .dn, .day.need .count { color: var(--on-need); }
.day.need .mid .split { color: var(--on-need-2); }
.day.need .add { color: var(--need-bg); }
.need-line { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--on-need); }
.mcell.need { background: var(--need-bg); }
.mcell.need .dn, .mcell.need .n { color: var(--on-need); }
/* сегодня + недобор: красный остаётся, «сегодня» — рамкой */
.day.need.today, .mcell.need.today { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--need-bg); }
.need-rows + .ann-tabs, .need-rows + .section-title { margin-top: 20px; }   /* колокольчик: «нужна помощь» сверху, дальше объявления */

/* логин и пароль нового аккаунта */
.cred { margin-bottom: 10px; }
.cred .secret { font-size: 22px; margin: 4px 0 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- справа налево (арабский)
   Отступы и позиции выше заданы логическими свойствами (inline-start/end) — зеркалятся сами.
   Здесь только то, что логическими свойствами не выразить: стрелки, сдвиги, фон-картинки, анимации. */
[dir="rtl"] select.input { background-position: left 12px center; }
[dir="rtl"] .switch input:checked + span::after { transform: translateX(-20px); }
[dir="rtl"] .i-left, [dir="rtl"] .i-right, [dir="rtl"] .i-send, [dir="rtl"] .i-reply, [dir="rtl"] .i-forward { transform: scaleX(-1); }
:root[dir="rtl"][data-nav="fwd"]::view-transition-new(page), :root[dir="rtl"]:not(.desk)[data-nav="tab"][data-dir="next"]::view-transition-new(page) { animation-name: vt-in-left; }
:root[dir="rtl"][data-nav="back"]::view-transition-new(page), :root[dir="rtl"]:not(.desk)[data-nav="tab"][data-dir="prev"]::view-transition-new(page) { animation-name: vt-in-right; }
/* телефон, почта и логин внутри арабского интерфейса читаются слева направо */
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { direction: ltr; text-align: end; }

/* текст, который пишут люди (сообщения, причины, объявления), выравнивается по своему языку:
   арабская реплика во французском интерфейсе — справа налево, французская в арабском — слева направо */
.txt, .quote span, .rb-body span, .ann h3, .ann .body, .card.pre, .cancel-reason { unicode-bidi: plaintext; text-align: start; }

/* «Объявления» у админа и ответственных: вкладки и лента «кто придёт / не придёт» */
.ann-tabs { margin-bottom: 16px; }
/* «Посещения и отгулы» длиннее, чем влезает на узком телефоне: допускаем вторую строку, а не обрезаем */
.ann-tabs button { height: auto; min-height: 34px; padding: 6px 8px; font-size: 13px; line-height: 1.2; }
.seg-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-inline-start: 6px;
  padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; font-style: normal;
}
.ev-row .ev-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-inline-end: 6px;
  border-radius: 50%; vertical-align: -4px;
}
.ev-row.in .ev-mark { background: var(--ok-soft); color: var(--ok); }
.ev-row.out .ev-mark { background: var(--danger-soft); color: var(--danger); }
.ev-row.fresh { background: var(--accent-soft); }
.ev-row .title, .ev-row .sub { white-space: normal; overflow: visible; }   /* имя и причина целиком, без «…» */
.mtoast .mt-at.ev { background: var(--accent); }

/* роль человека в его профиле (админка) */
.role-box { padding: 12px; border-radius: 16px; background: var(--surface); }
.role-box .seg { background: var(--surface-2); }
/* три роли в ряд на узком телефоне: длинное слово («Администратор») переносится, а не распирает страницу */
.role-box .seg button { min-width: 0; height: auto; min-height: 34px; padding: 6px 4px; line-height: 1.2; overflow-wrap: anywhere; }
.role-hint { margin: 10px 4px 0; }
.role-acts-title { margin: 14px 4px 8px; font-weight: 600; color: var(--text-2); }
.role-box .chip { background: var(--bg); }
.role-box .chip.on { background: var(--accent); color: var(--on-accent); }

/* выбор языка: кнопка-«таблетка» (вход, боковое меню ПК) или значок с кодом (верхняя панель) и своё меню
   в стиле меню сообщения — не системный список */
.lang-pick { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 12px 10px;
  border-radius: 12px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500;
  transition: background-color .15s ease-out; }
.lang-pick:hover, .lang-pick[aria-expanded="true"] { background: var(--surface-2); }
.lang-pick:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent); }
.lang-pick .i { flex: none; color: var(--text-2); }
.lang-pick .lp-chev { transition: transform .15s ease-out; }
.lang-pick[aria-expanded="true"] .lp-chev { transform: rotate(180deg); }
.lang-btn { position: relative; }
.lang-code { position: absolute; bottom: 5px; inset-inline-end: 3px; min-width: 18px; padding: 0 3px; border-radius: 6px;
  background: var(--bg); color: var(--text-2); font-size: 9px; font-weight: 700; line-height: 13px; letter-spacing: .02em; }
.lang-menu { position: fixed; z-index: 85; padding: 6px; border-radius: 14px; background: var(--bg);
  box-shadow: 0 12px 32px rgba(30, 20, 10, .18), 0 0 0 1px var(--surface-2);
  animation: lang-in .14s cubic-bezier(.2, .8, .2, 1); }
@keyframes lang-in { from { opacity: 0; transform: scale(.96); } }
.lang-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px;
  border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--text); text-align: start; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--surface); outline: none; }
.lang-menu button.on { color: var(--accent-ink); font-weight: 600; }
.lang-menu button .i { flex: none; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .lang-menu { animation: none; } }
/* выбор волонтёра в окне дня: поле-кнопка и меню со списком людей (как меню языка) */
.pick-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; cursor: pointer; color: var(--text); }
.pick-btn .pick-ph { color: var(--text-3); }
.pick-btn .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* стрелка — у правого края */
.pick-btn > .i { flex: none; color: var(--text-2); transition: transform .15s ease-out; }
.pick-btn[aria-expanded="true"] { border-color: var(--accent); background: var(--bg); }
.pick-btn[aria-expanded="true"] > .i { transform: rotate(180deg); }
.pick-menu {
  position: fixed; z-index: 85; display: flex; flex-direction: column; padding: 6px; border-radius: 14px; background: var(--bg);
  box-shadow: 0 12px 32px rgba(30, 20, 10, .18), 0 0 0 1px var(--surface-2);
  animation: lang-in .14s cubic-bezier(.2, .8, .2, 1);
}
.pick-menu .pick-search { flex: none; height: 42px; margin: 0 0 6px; font-size: 15px; }
.pick-menu .pick-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pick-menu .pick-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px;
  border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--text); text-align: start;
}
.pick-menu .pick-list button[hidden] { display: none; }
.pick-menu .pick-list button:hover, .pick-menu .pick-list button:focus-visible { background: var(--surface); outline: none; }
.pick-menu .pick-list button.on { color: var(--accent-ink); font-weight: 600; }
.pick-menu .pick-list button > .i { flex: none; color: var(--accent); }
.pick-empty { padding: 10px 12px; color: var(--text-3); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .pick-menu { animation: none; } }

/* выбор языка в профиле: сетка из подписей на родном языке */
.seg.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.seg.lang-grid button { width: 100%; }
/* роль в профиле: 4 варианта — в ряд, на телефоне 2×2 */
.seg.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.seg.role-grid button { width: 100%; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .seg.role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* регистрация: «я ученик» — подразделения не выбирают */
.reg-student span { display: flex; flex-direction: column; gap: 2px; }
.reg-student small { font-size: 12.5px; }
form:has(input[name="student"]:checked) .reg-acts { display: none; }
.ann-to .chip { font-size: 13px; }
@media (min-width: 900px) { .seg.lang-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* вход через Google на сайте: кнопку рисует сам Google; место под неё заранее, чтобы форма не прыгала */
.gsi-wrap { display: flex; justify-content: center; min-height: 44px; }
/* профиль: почта не подтверждена — напоминание и «отправить ещё раз» */
.verify-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; padding: 10px 12px; border-radius: 16px; background: var(--accent-soft); font-size: 14px; }
.verify-note .grow { flex: 1 1 140px; min-width: 0; }
.verify-note .btn { flex: none; margin-inline-start: auto; }   /* узко — кнопка уходит на свою строку */
/* админка, подключения: включено (зелёная точка) или нет */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); margin-inline-end: 6px; vertical-align: 1px; }
.dot.on { background: var(--ok); }

/* ---------------------------------------------------------------- «Свои» (brand svoi в config.js): только чат */
.brand-mark { display: block; width: 92px; height: 92px; margin: 8px auto 10px; }
.brand-mark .pa-mark { width: 100%; height: 100%; display: block; }
.art-chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.art-chat .acm { display: flex; align-items: flex-end; gap: 8px; }
.art-chat .acm.out { justify-content: flex-end; }
.art-chat .acm i { display: block; height: 30px; border-radius: 16px 16px 16px 4px; background: var(--surface); }
.art-chat .acm.out i { border-radius: 16px 16px 4px 16px; background: #e3f5d2; }
/* люди: без подразделений и дней (их у «Своих» нет) */
.chat-only [data-c="filter"][data-k="act"] { display: none; }
.chat-only .ptable { --pcols: minmax(220px, 1.6fr) minmax(130px, 1fr); }
.chat-only .ptable.admin { --pcols: minmax(200px, 1.5fr) minmax(120px, 1fr) minmax(120px, 160px) minmax(0, 1.4fr); }
.chat-only .prow > span:nth-child(3), .chat-only .prow > span:nth-child(4) { display: none; }
