/* Стиль «Спецовка», утверждён 24.09.2026. Правила — в PRODUCT.md, раздел «Визуальный стиль».
   Оранжевый — только главная кнопка экрана, метка «Сегодня», галочки «прочитано»,
   счётчики новых, шкала шагов и шкала уровня нанимателя, рамки дней с заказами в
   календаре и активная вкладка. Текст на оранжевом — графитовый. */

@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/fira-sans-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/fira-sans-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/fira-sans-500-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/fira-sans-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/fira-sans-600-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/fira-sans-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/fira-sans-700-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/fira-sans-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/fira-sans-xcond-700-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/fira-sans-xcond-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/fira-sans-xcond-800-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/fira-sans-xcond-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  /* Анимации переходов — 0,5 с; ожидание в резерве — отдельный цикл 3,6 с. */
  --motion: 0.5s;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ink: #1b1d20;
  /* Серый — только для состояний (соседний месяц в календаре, начавшийся заказ,
     закончившаяся запись, подсказка в пустом поле). Текст для чтения — графитовый
     (просьба владельца 27.09.2026). */
  --muted: #5a6068;
  --asphalt: #e8eaed;
  --surface: #ffffff;
  --row: #e3e6ea;
  --divider: #bfc4cc;
  --accent: #ff8b13;
  --accent-soft: #fff4ec;
  --ok: #177245;
  --head-line: #454a51;
  /* Мелкий текст карточек заявок — один размер везде (просьба владельца 08.10.2026, было 14,5):
     под временем, строки под названием, бейджи, условия, наниматель, статусы, метки, люди. */
  --card-text: 15px;
  --display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --body: "Fira Sans", Roboto, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

/* Всё, что за пределами страницы (оттяжка при прокрутке у верха и низа): в приложении со
   значка — графит, как шапка и нижнее меню, без светлых вспышек у тёмных полос
   (04.10.2026); в браузере нижнего меню нет, и графит проступал внизу ленты полоской —
   там серый, как сама страница (06.10.2026). */
html { -webkit-text-size-adjust: 100%; background: var(--asphalt); }
@media (display-mode: standalone) { html { background: var(--ink); } }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--asphalt);
  color: var(--ink);
  font: 16px/1.45 var(--body);
  /* Слово длиннее строки (например, «лмдмлмдизизи…» без пробелов) переносится, а не
     наезжает на соседний текст. */
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; }
.muted { }
.nowrap { white-space: nowrap; }

.wordmark { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1; letter-spacing: -0.01em; color: #ffffff; text-decoration: none; }
.wordmark .vot { color: var(--accent); }

/* Шапка */
.topbar { background: var(--ink); color: #ffffff; padding-top: env(safe-area-inset-top); }
.topbar-inner { max-width: 1100px; margin: 0 auto; padding: 10px 16px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topbar-brand { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.topbar-sub { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; overflow: hidden; white-space: nowrap; font-size: 14.5px; color: #ffffff; text-align: left; }
.topbar-sub > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar-sub .icon { font-size: 15px; }
button.topbar-sub { text-decoration: underline; text-underline-offset: 3px; }
/* «Разместить заявку» длиннее прежнего «Разместить заказ» — отступы чуть меньше, чтобы
   рядом помещалось «Владивосток · 19 заявок». */
.btn-post { flex: none; min-height: 40px; padding: 0 9px; border: 1.5px solid var(--head-line); border-radius: 8px; font-size: 14.5px; font-weight: 600; color: #ffffff; }

.notice { max-width: 1100px; margin: 0 auto; padding: 9px 16px; font-size: 14.5px; background: var(--surface); border-bottom: 1px solid var(--row); }
.notice.warn { background: #fdecec; color: #b3261e; font-weight: 600; }


/* Лента: вид, дата, категория */
.feed-layout { position: relative; max-width: 1100px; margin: 0 auto; }
/* «Список | Карта»: прежний раздел уезжает, новый въезжает (app.js, slideViews). На время
   анимации всё, что за краем, обрезается: страница не становится шире и длиннее. */
.feed-layout.view-sliding { overflow: clip; }
.view-ghost { position: absolute; z-index: 1; pointer-events: none; }
.results.in-left { animation: view-in-left var(--motion) var(--ease); }
.results.in-right { animation: view-in-right var(--motion) var(--ease); }
.view-ghost.out-left { animation: view-out-left var(--motion) var(--ease) forwards; }
.view-ghost.out-right { animation: view-out-right var(--motion) var(--ease) forwards; }
/* Отступы над кнопками и под ними — такие же, как между их рядами (8 px, просьба владельца 26.09.2026). */
.filters { padding: 8px 16px; display: flex; flex-direction: column; gap: 8px; }
.seg { display: flex; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--surface); }
.seg button { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; font-size: 14.5px; font-weight: 600; }
.seg button:first-child { border-radius: 6.5px 0 0 6.5px; }
.seg button:last-child { border-radius: 0 6.5px 6.5px 0; }
/* Над лентой кнопки ниже на вид, но нажать можно в полосе 44 px. */
.filters .seg button, .filters .filter-btn { min-height: 34px; }
.filters .seg button::before, .filters .filter-btn::before { content: ""; position: absolute; inset: -4px 0; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #ffffff; }
.seg .icon { font-size: 18px; }

.filter-row { display: grid; grid-template-columns: minmax(104px, max-content) minmax(0, 1fr); gap: 8px; }
.filter-btn { position: relative; display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--surface); font-size: 14.5px; font-weight: 600; }
.filter-btn span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-btn .icon { font-size: 18px; flex: none; }
.filter-btn[aria-expanded="true"] .icon:last-child { transform: rotate(180deg); }
.filter-btn:disabled { opacity: 0.5; cursor: default; }
.filter-btn.is-set { background: var(--ink); color: #ffffff; }

.menu { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
/* Заголовок списка категорий отличается от пунктов: персиковая полоса #FFECD7 (просьба владельца 27.09.2026), заглавные буквы. */
.menu-title { margin: 0; padding: 9px 14px; text-align: center; background: #ffecd7; border-bottom: 1px solid var(--row); font-size: 14.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
/* Пункты ниже прежних 48 px, текст и галочка крупнее на 2 px (просьба владельца 26.09.2026). */
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 14px; text-align: left; font-size: 17.5px; }
.menu-item + .menu-item { border-top: 1px solid var(--row); }
.menu-item[aria-pressed="true"] { font-weight: 700; }
.menu-item .icon { font-size: 22px; }
.install-hint { display: none; }

/* Календарь: дни с заказами обведены оранжевым, выбранный день залит графитом */
.calendar { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 10px; padding: 4px 8px 8px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.cal-month { font-family: var(--display); font-weight: 800; font-size: 21px; }
.cal-nav { width: 44px; height: 36px; display: grid; place-items: center; border-radius: 8px; }
.cal-nav .icon { font-size: 22px; }
.cal-nav:disabled { opacity: 0.25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-weekday { padding-bottom: 0; text-align: center; font-size: 14.5px; font-weight: 600; }
.cal-day { min-height: 36px; border: 3px solid transparent; border-radius: 8px; background: transparent; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cal-day.other { color: var(--muted); }
/* Сегодня — крупнее и с толстой чертой (просьба владельца 07.10.2026; жирнее 700 у шрифта нет). */
.cal-day.today { font-size: 19px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.cal-day.has-orders { border-color: var(--accent); }
.cal-day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.cal-day:disabled { color: #b9bec5; cursor: default; }
.cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--row); font-size: 16px; }
.cal-foot.all { justify-content: center; text-align: center; }
.cal-foot b { color: var(--ink); font-weight: 700; }
.cal-foot .linklike { min-height: 36px; font-size: 18px; font-weight: 700; }

.results { padding: 0 0 calc(28px + env(safe-area-inset-bottom)); transition: opacity var(--motion); }
.results.is-loading { opacity: 0.55; }
.state-msg { margin: 0; padding: 32px 20px; text-align: center; }
.state-msg p { margin: 0 0 14px; }
.state-msg .btn { flex: none; min-width: 200px; }

/* Карта. Узел карты переносится между перерисовками (lib/map.js), место под
   неё до загрузки — .map-slot того же размера. */
/* isolation: слои Leaflet (до z-index 1000) остаются внутри карты и не перекрывают шапку. */
.map-slot, .map-box { position: relative; isolation: isolate; height: 260px; border-radius: 10px; overflow: hidden; background: #dfe3e8; }
/* Карта в ленте ниже прежнего на 10%, потом ещё на 5% (просьбы владельца 26.09.2026). */
.map-slot.big, .map-box.orders { height: max(274px, calc((100dvh - 330px) * 0.855)); border-radius: 0; }
.map-box > .map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-msg { position: absolute; inset: 0; z-index: 1001; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #dfe3e8; margin: 0; padding: 16px; text-align: center; font-size: 15px; }
.map-msg[hidden] { display: none; }
.map-msg .btn.map-retry { flex: none; margin-top: 12px; padding: 0 18px; background: var(--surface); color: var(--ink); }
.map-view { display: flex; flex-direction: column; }
.map-note { margin: 0; padding: 12px 16px; font-size: 14.5px; text-align: center; }
.map-picked .map-note { padding-bottom: 0; text-align: left; color: var(--ink); font-weight: 600; }
.map-picked > .l-item:last-child { border-bottom: 0; }
/* Метка заказа — обычная кнопка в точке заказа (lib/map.js). */
.map-pin-at { width: 0; height: 0; }
.map-pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); pointer-events: auto; padding: 5px 9px; border: 2px solid var(--ink); border-radius: 16px; background: var(--surface); font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 1px 4px rgb(0 0 0 / 0.25); }
.map-pin::after { content: ""; position: absolute; inset: -8px; }
.map-pin.is-selected { background: var(--ink); color: #ffffff; }
.map-marker { background: none; border: 0; }
/* Фон — цвет суши на карте: пока картинка грузится, не видно серых квадратов. */
.map-box .leaflet-container { background: #f8f4f0; font: inherit; }
.map-box .leaflet-container .leaflet-control-attribution, .map-box .leaflet-container .leaflet-control-attribution a { font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.map-box .leaflet-control-zoom.leaflet-bar a { width: 40px; height: 40px; line-height: 40px; font-size: 24px; }

/* Лента списком */
.list { background: var(--surface); }
.list:has(.l-item.open) { border-radius: 0; }
.l-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; padding: 11px 16px; }
/* Время и цена — по центру описания заказа, сколько бы строк оно ни заняло. */
.l-row { width: 100%; text-align: left; align-items: center; }
.l-item { border-bottom: 1px solid var(--divider); }
.l-time { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.15; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.l-time small { display: block; font-family: var(--body); font-size: var(--card-text); font-weight: 500; }
.l-what { min-width: 0; margin-left: 6px; }
/* В строке заказа название — не больше двух строк, дальше «…»; целиком — в раскрытой
   карточке (просьба владельца 27.09.2026). */
.l-what b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 16px; font-weight: 500; line-height: 1.25; }
/* Строки под названием — одинаковой высоты и с одинаковым зазором 4 px (просьба владельца
   01.10.2026: раньше было 4, 5 и 7 px из-за разной высоты строк). */
.l-what > span { display: block; margin-top: 4px; font-size: var(--card-text); line-height: 1.25; overflow-wrap: anywhere; }
/* Район и места в свёрнутой строке — со значками, как условия в раскрытой карточке. */
.l-what > .l-fact { display: flex; align-items: flex-start; gap: 6px; }
.l-fact .icon { font-size: 17px; margin-top: 0.5px; }
/* У названия строка на 1 px выше, поэтому первая строка под ним — на 1 px ближе. */
.l-what > b + span { margin-top: 3px; }
.l-fact > span { min-width: 0; }
.l-price { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.l-price small { display: block; font-family: var(--body); font-size: 15.5px; font-weight: 400; }

/* Раскрытый заказ — карточка на месте строки */
.l-item.open { scroll-margin: 12px 0 calc(92px + env(safe-area-inset-bottom)); }
.l-item.open .card { border-radius: 0; box-shadow: var(--card-depth); border-left: 5px solid var(--card-accent); padding-left: 13px; }
.l-item.open .card-head { width: calc(100% + 27px); margin-left: -13px; padding-left: 13px; }
/* «Мягкая ниша»: одинаковые внутренние тени сверху и снизу (03.10.2026). */
.card {
  --card-accent: var(--accent);
  --card-depth: inset 0 7px 13px rgb(26 32 40 / .13), inset 0 -7px 13px rgb(26 32 40 / .13), inset 3px 0 9px rgb(26 32 40 / .045), inset -3px 0 9px rgb(26 32 40 / .045);
  min-width: 0; overflow-wrap: anywhere; background: var(--surface); border-radius: 10px; box-shadow: inset 4px 0 0 var(--card-accent), var(--card-depth); padding: 0 14px 12px 18px; display: flex; flex-direction: column; gap: 6px;
}
/* Полоса слева у неактивной заявки — #9a9ea5 (просьба владельца 07.10.2026). */
.card.inactive { --card-accent: #9a9ea5; }
.card-head { width: calc(100% + 32px); margin: 0 -14px 0 -18px; padding: 8px 14px 2px 18px; display: flex; align-items: center; gap: 8px; min-height: 44px; text-align: left; }
.card-status { font-size: var(--card-text); font-weight: 700; padding: 3px 8px; border-radius: 4px; background: #e3f3ea; color: var(--ok); }
/* Заказ начался: статус «Выполняется» в оранжевой заливке, как «Сегодня» (просьба
   владельца 26.09.2026); строка в списке серая, на карте заявки уже нет. */
.card-status.busy { background: var(--accent); color: var(--ink); }
.l-item.started > .l-row, .l-item.closed > .l-row { opacity: 0.5; }
/* Разделитель «закрытые» — начавшиеся заявки, синеватый бейдж и пунктир. */
/* Над разделителем и под ним сплошных линий нет, отступы от заказов до бейджа — как от текста заказа до линии между заказами (просьбы владельца 26.09.2026). */
.l-divider { display: flex; align-items: center; gap: 10px; margin: 2px 0; padding: 0 16px; }
.l-item:has(+ .l-divider) { border-bottom: 0; }
.l-divider span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px; background: #e6eef9; color: #2f5d9e; font-size: 14.5px; font-weight: 700; }
.l-divider .icon { font-size: 19px; margin-inline: -2px; }
.l-divider::before, .l-divider::after { content: ""; flex: 1; border-top: 2px dashed #a9bfe0; }
.card-head .card-fold { margin-left: auto; }
.card-fold { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0 6px 8px; font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.card-fold .icon { font-size: 22px; }
.tag { font-size: var(--card-text); font-weight: 700; padding: 3px 8px; border-radius: 4px; background: var(--accent); color: var(--ink); white-space: nowrap; }
.tag.soft { background: var(--asphalt); }
/* «новое» у отклика — в шапке раскрытой карточки сразу за бейджем времени (просьба владельца
   08.10.2026), «Свернуть» — у правого края; в свёрнутой строке — рядом со статусом. На самых
   узких экранах втроём не помещаются — у «Свернуть» остаётся стрелка (шапка нажимается целиком). */
@media (max-width: 369px) { .card-head:has(.new-tag) .card-fold { font-size: 0; gap: 0; } }

/* От работника нужно действие (освободилось место, подтвердить «приду») — плашка над
   главной кнопкой в ленте и «Откликах»; в свёрнутой строке — тот же смысл текстом. */
.r-state.call { color: #a65200; font-weight: 700; }
.act-note { margin: 0; padding: 8px 12px; border-radius: 8px; background: #ffe5ca; font-size: 15px; font-weight: 700; text-align: center; }
.card h3 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.25; white-space: pre-line; }
.price-line { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.price { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* «каждому», значки условий и строка работодателя — графитовые, как сами условия (просьба владельца 27.09.2026). */
.unit { font-size: 16px; font-weight: 500; white-space: nowrap; }
.unit.hour { font-size: 17px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--card-text); line-height: 1.25; }
.facts li { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.facts .icon { font-size: 17px; margin-top: .5px; }
.meta-text { min-width: 0; }
.meta-unit { display: inline-block; white-space: nowrap; }
.meta-unit.wrap { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

.who { margin: 0; padding-top: 6px; border-top: 1px solid var(--row); font-size: var(--card-text); line-height: 1.25; overflow-wrap: anywhere; }

.actions { display: flex; gap: 8px; }
.btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 12px; border-radius: 8px; font-size: 15.5px; font-weight: 700; text-align: center; }
.btn .icon { font-size: 18px; }
.btn[data-action="auth-vk"] .icon { font-size: 24px; }
.btn[data-channel="telegram"] .icon { font-size: 24px; }
.btn.main { background: var(--accent); color: var(--ink); }
.btn.alt { flex: 0.85; border: 1.5px solid var(--ink); }

/* Экран выбора роли */
.welcome { min-height: 100dvh; background: var(--asphalt); }
.welcome-card { max-width: 460px; margin: 0 auto; background: var(--asphalt); }
.w-top { background: var(--ink); color: #ffffff; padding: calc(env(safe-area-inset-top) + 22px) 20px 22px; }
/* «Назад» всегда с текстом и без рамки: так понятнее и в кнопку легче попасть. */
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 6px -8px; padding: 0 10px 0 4px; color: inherit; font-size: 16px; font-weight: 500; }
.back-link .icon { font-size: 22px; }
.wordmark.big { display: block; font-size: 42px; }
.w-top p { margin: 6px 0 0; color: #ffffff; font-size: 15px; }
.hazard { height: 12px; background: repeating-linear-gradient(135deg, var(--accent) 0 12px, var(--ink) 12px 24px); }
.w-body { padding: 22px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.w-body h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 29px; line-height: 1.08; }
/* Пояснения на экране выбора роли и в регистрации — графитовые, как основной текст:
   человек не должен вглядываться (просьба владельца 27.09.2026). */
.w-body .lead { margin: -6px 0 4px; font-size: 15px; }
.role { width: 100%; min-height: 80px; display: flex; align-items: center; gap: 14px; padding: 14px 12px 14px 14px; text-align: left; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; }
.role > .icon { font-size: 20px; }
/* Значки ролей в графитовых кругах — белые (просьба владельца 27.09.2026). */
.role-ico { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #ffffff; }
.role-ico .icon { font-size: 27px; }
.role-txt { flex: 1; min-width: 0; }
.role-txt b { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; }
.role-txt span { display: block; margin-top: 3px; font-size: 15px; }
.role.city { min-height: 64px; }
.w-note { margin: 0; padding: 11px 13px; border-radius: 8px; background: var(--surface); font-size: 14.5px; }
.w-foot { margin: 4px 0 0; text-align: center; font-size: 17px; }
.w-body > .back-link { align-self: center; margin: 0; color: var(--ink); font-size: 18px; }
.w-body > .back-link .icon { font-size: 24px; }
/* Админка владельца (screens/admin.js). Разделы — кнопками сверху в два ряда: на
   телефоне шириной 320 пикселей подписи не обрезаются. Числа — узким шрифтом, как цены. */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-head .page-title { margin: 0; }
.admin-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.admin-nav button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 6px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--surface); font-size: 14.5px; font-weight: 600; }
.admin-nav button[aria-current="page"] { background: var(--ink); color: #ffffff; }
.admin-nav .icon { flex: none; font-size: 17px; }
.admin-nav .count { margin-left: 2px; }
.admin-unlock { padding: 14px; gap: 10px; }
.admin-unlock .f-label { margin: 0; }
.admin-unlock .p-note { margin: 0; }
.admin-unlock p { margin: 0; }
.admin-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 0; padding-bottom: 0; font-weight: 600; }
.admin-strip > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.admin-strip .icon { font-size: 18px; }
.panel.admin-block { padding: 14px; gap: 12px; }
.admin-block .sec-title { margin: 0; }
.admin-block .admin-note { margin: -8px 0 0; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { min-width: 0; padding: 10px 12px; border: 1.5px solid var(--row); border-radius: 10px; }
.stat-title { display: block; font-size: 14.5px; font-weight: 600; }
.stat-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin: 2px 0 6px; }
.stat-big b { font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-big span { font-size: 14.5px; }
.stat dl { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.stat dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.stat dt { min-width: 0; }
.stat dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.bars { position: relative; margin: 0; }
.bars svg { display: block; width: 100%; height: 110px; overflow: visible; }
.bars-max { position: absolute; top: -2px; left: 0; padding: 0 4px; background: var(--surface); font-size: 14.5px; font-weight: 700; }
.bars-base { stroke: var(--divider); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bar-a { fill: var(--ink); }
.bar-b { fill: #8a9098; }
.bars figcaption { display: flex; justify-content: space-between; margin-top: 4px; font-size: 14.5px; }
.bars-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -4px 0 0; font-size: 14.5px; }
.bars-legend span { width: 12px; height: 12px; border-radius: 3px; }
.bars-legend span + span, .bars-legend .key-b { margin-left: 8px; }
.key-a { background: var(--ink); }
.key-b { background: #8a9098; }

/* «Решения» и «Люди» в админке. */
.decisions { display: flex; flex-direction: column; gap: 8px; }
.decision { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.decision.done { opacity: 0.6; }
.decision p { margin: 0; }
.decision-kind { font-family: var(--display); font-size: 19px; font-weight: 800; line-height: 1.15; }
.decision-details, .decision-when { font-size: 14.5px; }
.decision-result { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; }
.decision .actions { align-self: stretch; }
.who-link { min-height: 32px; padding: 0; font-size: 16px; font-weight: 700; text-align: left; text-decoration: none; }
.who-link.order-link { text-decoration: underline; text-underline-offset: 3px; }
.admin-search { display: flex; gap: 8px; }
.admin-search .input { flex: 1; min-width: 0; }
.admin-search .btn { flex: none; min-height: 52px; padding: 0 16px; }
/* «Люди»: сколько на странице и листание (решение владельца 04.10.2026). */
.people-size { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 14.5px; font-weight: 600; }
.people-size .seg { flex: none; width: 168px; }
.people-size .seg button { min-height: 40px; font-size: 15px; }
.people-total { margin-left: auto; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.pager .btn { min-height: 44px; gap: 6px; }
.pager .btn:disabled { opacity: 0.45; }
.pager-at { font-size: 14.5px; font-weight: 600; text-align: center; white-space: nowrap; }
.person-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 10px 14px; border-bottom: 1px solid var(--divider); text-align: left; }
.list.rounded > .person-row:last-child { border-bottom: 0; }
.person-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-main b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.person-main span { font-size: 14.5px; }
.person-row > .icon { flex: none; font-size: 18px; }
.panel .person-name { margin: 10px 0 4px; }
.notice-line { margin: 0 0 8px; font-size: 15px; }
.phone-link { color: inherit; text-underline-offset: 3px; }
.admin-form { padding: 14px; gap: 10px; }
.admin-form .sec-title, .admin-form .p-note { margin: 0; }
.admin-actions { display: flex; flex-direction: column; gap: 8px; }
.admin-actions .btn { flex: none; }
.btn.alt.danger { border-color: #b3261e; color: #b3261e; }
.admin-log { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--row); font-size: 15px; overflow-wrap: anywhere; }
.admin-log:last-child { border-bottom: 0; }
.admin-log span { display: block; font-size: 14.5px; font-weight: 600; }
/* Профиль человека (screens/person.js) и нажимаемые имена (этап 5, как в JoinMe). */
.name-link { display: inline; min-height: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; text-align: left; text-decoration: none; overflow-wrap: anywhere; }
.name-link:active { opacity: 0.6; }
.who .name-link { position: relative; }
.who .name-link::before { content: ''; position: absolute; inset: -10px -6px; }
.resp-who b .name-link::before { content: ''; position: absolute; inset: -8px -6px; }
.resp-who b .name-link { position: relative; }
.panel.profile-card { padding: 14px; gap: 8px; align-items: flex-start; }
.role-chip { padding: 2px 9px; border: 1.5px solid var(--ink); border-radius: 6px; font-size: 14.5px; font-weight: 600; }
.profile-name { margin: 2px 0 0; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.profile-fact { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.profile-fact .icon { flex: none; font-size: 19px; }
.profile-count { display: flex; align-items: baseline; gap: 8px; align-self: stretch; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--row); }
.profile-count b { font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1; }
.profile-count span { font-size: 16px; }
.blocked-title { margin: 10px 0 2px; }
.blocked-since { flex: none; font-size: 14.5px; }
.panel .p-row .name-link { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; }

/* «Жалобы» в админке и «Удалить заявку» в ленте у владельца. */
.complaint-people { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 0; }
.order-link { font-weight: 600; overflow-wrap: anywhere; }
.report-copy { align-self: stretch; display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; padding: 10px 12px; border-radius: 8px; background: var(--asphalt); }
.report-copy p { margin: 0; font-size: 15px; overflow-wrap: anywhere; white-space: pre-line; }
.admin-remove-open { position: relative; align-self: flex-start; min-height: 0; margin-top: 4px; padding: 0; line-height: 18px; font-size: 15px; font-weight: 600; color: #b3261e; }
.admin-remove-open::before { content: ''; position: absolute; inset: -8px -12px -12px; }
.complaint.admin-remove { border-color: #b3261e; }
/* Предупреждение от ВотРаботы — сверху экрана, пока не нажмут «Понятно». */
.warning-strip { margin-bottom: 4px; }
.warning-strip .btn { align-self: flex-start; min-height: 44px; }
.topbar ~ .warning-strip { margin: 8px 16px 0; }
/* «Аккаунт заблокирован». */
.blocked-reason { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.i-note.left { text-align: left; }
.blocked .i-top h1 { margin-top: 12px; }

/* Страница «Установите ВотРаботу» (screens/install.js) — в рамке экрана выбора роли.
   Шаги разделены линиями (просьба владельца 03.10.2026), кнопки браузера в тексте —
   теми же значками в рамке, что человек видит на экране. */
.i-top { text-align: center; }
.i-icon { display: block; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 15px; box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.3); }
.i-top h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 29px; line-height: 1.08; }
.i-top h1, .i-top p { text-wrap: balance; }
/* «Это бесплатно, безопасно и займёт 10 секунд» — жирным и в одну строку (06.10.2026):
   при 15 px текст шириной 320 px; поля шапки 16 px, как у блока ниже, — помещается
   с телефона шириной 352 px. */
.install .w-top { padding-inline: 16px; }
.install .i-top p { font-weight: 700; }
/* Поля блока сбоку 12 px и 10 px от номера шага до текста: строка «или «Добавить на
   главный экран»» (261 px) не переносится с телефона шириной 355 px (06.10.2026). */
.i-panel { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 12px; background: var(--surface); }
.install .i-panel { padding-inline: 12px; }
.i-perks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.3; }
.i-perks li { display: flex; align-items: center; gap: 10px; }
.i-perks .icon { flex: none; font-size: 23px; }
.i-perks + .i-steps { padding-top: 14px; border-top: 1px solid var(--divider); }
.i-steps { margin: 0; padding: 0; list-style: none; }
.i-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; font-size: 16px; line-height: 1.45; }
.i-steps li:first-child { padding-top: 0; }
.i-steps li:last-child { padding-bottom: 0; }
.i-steps li + li { border-top: 1px solid var(--divider); }
.i-steps small { display: block; margin-top: 4px; font-size: 14.5px; }
.i-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #ffffff; font-size: 15px; font-weight: 700; }
.i-key { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; margin: 0 2px; border: 1.5px solid var(--ink); border-radius: 6px; vertical-align: -8px; }
.i-key .icon { font-size: 20px; }/* Кнопка браузера и её подпись не разрываются переносом строки. */
.i-label { white-space: nowrap; }
.i-done { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ok); font-size: 16px; font-weight: 700; }
.i-done .icon { flex: none; font-size: 26px; }
.i-note { margin: 0; text-align: center; font-size: 16px; }
.i-panel > .btn { flex: none; }
.linklike { min-height: 44px; padding: 0 4px; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Регистрация и вход */
.auth { min-height: 100dvh; background: var(--surface); }
.reg-bar { background: var(--ink); color: #ffffff; padding: calc(env(safe-area-inset-top) + 6px) 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.reg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.reg-row .back-link { margin: 0 0 0 -8px; }
.reg-step { font-size: 14.5px; color: #ffffff; }
.reg-step b { color: #ffffff; font-weight: 600; }
.steps { display: flex; gap: 4px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--head-line); }
.steps i.on { background: var(--accent); }
.form { max-width: 460px; margin: 0 auto; padding: 22px 16px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.form > .btn { flex: none; }
.f-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 29px; line-height: 1.08; }
.f-sub { margin: -6px 0 2px; font-size: 15px; }
.f-sub .linklike { min-height: 0; padding: 0; }
.field { display: block; }
.input { width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; }
.input.big { font-size: 19px; font-variant-numeric: tabular-nums; }
.input#reg-name::placeholder { font-size: 14.5px; }
.input::placeholder { color: #8a9098; }
.input:focus { outline: none; box-shadow: 0 0 0 3px #ffd9c2; border-color: var(--accent); }
.code-input { max-width: 220px; min-height: 64px; font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: 0.5em; text-align: center; padding-left: calc(14px + 0.5em); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.check a, .notice a { color: var(--ink); text-underline-offset: 3px; }
.note { margin: -4px 0 0; font-size: 15px; text-align: center; }
.call-note { margin: -4px 0 0; font-size: 15px; text-align: center; }
.call-note.start { text-align: start; }
.why-note { margin: -4px 0 0; font-size: 15px; text-align: center; }
.panel .why-note { margin: -2px 0 12px; text-align: left; }
.push-hint { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #b3261e; font-size: 15px; font-weight: 600; }
.panel .push-hint { margin: 0 0 12px; }
.panel .why-note + .p-row, .panel .push-hint + .p-row { border-top: 1px solid var(--row); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #b3261e; font-size: 14.5px; font-weight: 600; }
.form-error .linklike { min-height: 0; padding: 0; color: #b3261e; }
.test-code { margin: 0; padding: 10px 12px; border: 1.5px dashed #b9bec5; border-radius: 8px; font-size: 14.5px; }
.test-code b { font-size: 18px; letter-spacing: 0.1em; }
.timer { margin: 0; text-align: center; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.fallback { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; background: var(--asphalt); }
.fallback b { font-size: 16px; }
.fallback b.center { text-align: center; }
.fallback p { margin: -4px 0 0; font-size: 14.5px; }
.fallback .btn { flex: none; }
.options { display: flex; flex-direction: column; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.option { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 14px; text-align: left; font-size: 17px; }
.option + .option { border-top: 1px solid var(--row); }
.option[aria-pressed="true"] { font-weight: 700; }
.option .icon { font-size: 20px; }
.other-city { display: flex; gap: 8px; }
.other-city .field { flex: 1; }
.other-city .btn { flex: none; }
.linklike.left { align-self: flex-start; padding: 0; }
.demo { padding: 16px 12px; border-radius: 14px; background: var(--asphalt); }
.demo-label { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 10px; font-size: 14.5px; font-weight: 600; }
.demo-label .icon { font-size: 18px; }
.push-demo { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: #ffffff; font-size: 14.5px; line-height: 1.35; }
.push-demo b { display: block; font-size: 14.5px; }
.push-icon { flex: none; border-radius: 9px; }
.push-app { display: block; font-size: 14.5px; }
.benefits { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.benefits li { display: flex; gap: 8px; align-items: flex-start; }
.benefits .icon { font-size: 20px; color: var(--ok); }
.form .linklike:not(.left) { align-self: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* После входа: меню, страницы, профиль */
/* Тень меню вниз на 8 px — графит и под нижним краем: на Android между меню и краем экрана
   оставалась светлая полоса в пиксель — просвечивала страница (снимок владельца 06.10.2026). */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 8px 0 var(--ink); }
.tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; color: #dde0e4; font-size: 14.5px; text-decoration: none; }
.tab .icon { font-size: 23px; }
.tab[aria-current="page"] { color: var(--accent); font-weight: 700; }
/* Самый узкий телефон (320 px): «Мои заказы» при 14,5 px шире ячейки меню на 1 px —
   сближаем буквы, а не уменьшаем шрифт. */
@media (max-width: 340px) { .tab span { letter-spacing: -0.02em; } }
/* Непрочитанные сообщения — оранжевый счётчик у значка «Сообщения». */
.tab-badge { position: absolute; top: 4px; left: calc(50% + 5px); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 22px; text-align: center; }
.tab-badge[hidden] { display: none; }
.topbar ~ .tabbar ~ .feed-layout, .topbar ~ .tabbar ~ .page { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
/* Гость: «Войти / Регистрация» внизу — графит, как меню, только ниже (07.10.2026). */
.guest-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: stretch; justify-content: center; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 8px 0 var(--ink); }
.guest-bar button { display: flex; align-items: center; min-height: 46px; padding: 0 12px; color: #ffffff; font-size: 16px; font-weight: 700; }
.guest-bar > span { align-self: center; color: #c3c8cf; font-size: 16px; }
.topbar ~ .guest-bar ~ .feed-layout { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
.page { max-width: 720px; margin: 0 auto; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.page:has(> .my-orders-head) { padding-top: 16px; }
.page-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.my-orders-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.my-orders-head .page-title { margin: 0; }
.my-orders-head .btn { flex: none; min-height: 44px; padding-inline: 10px; }
.my-orders-head .btn .icon { font-size: 20px; }
.panel { background: var(--surface); border-radius: 12px; padding: 4px 14px; display: flex; flex-direction: column; }
.panel > .btn { flex: none; margin: 10px 0 12px; }
.panel .options { margin: 8px 0 12px; }
.p-row { display: flex; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--row); font-size: 16px; }
.panel > .p-row:last-child { border-bottom: 0; }
.p-label { width: 120px; flex: none; font-size: 14.5px; }
/* Подписи профиля со значками (04.10.2026): значок графитовый, как в условиях заявки.
   Подпись во всех строках одной ширины — значения стоят ровным столбцом, и в строках
   с кнопкой справа («Изменить», «Выключить») тоже; кнопке в строке — без боковых
   отступов, чтобы значению хватало места (снимок владельца 04.10.2026). */
.p-label.has-icon { width: 132px; display: flex; align-items: center; gap: 8px; }
.p-label.has-icon .icon { flex: none; font-size: 20px; }
.p-row .linklike { padding: 0; }
@media (max-width: 380px) {
  .p-label.has-icon { width: 120px; gap: 6px; }
  .p-label.has-icon .icon { font-size: 18px; }
}
@media (max-width: 350px) {
  .p-label.has-icon { width: 96px; }
  .p-label.has-icon .icon { display: none; }
  .p-row .linklike { font-size: 14.5px; }
  .p-row:has(> .linklike) > b { font-size: 15px; }
}
/* «Присылать»: список категорий как «Все категории» в ленте, вплотную к строке —
   верхняя рамка меню ложится на разделитель. */
.panel .notify-menu { margin: -1px 0 12px; }
.p-row b { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.p-row .linklike { min-height: 44px; }
.p-note { margin: 8px 0 12px; font-size: 14.5px; }
.btn.wide { flex: none; width: 100%; }
/* «Удалить заявку» у закрытой — высотой как кнопки в карточке, 36 px (просьба владельца 07.10.2026). */
.btn.delete-btn { min-height: 36px; }
/* «Наниматель не заплатил» в «Откликах» и статус после жалобы — одной высоты (09.10.2026). */
.btn.unpaid-btn { min-height: 36px; gap: 8px; }
.btn-state.unpaid-done { flex: none; width: 100%; min-height: 36px; }
.btn.big { min-height: 54px; font-size: 17px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 20px; border-radius: 12px; background: var(--surface); text-align: center; }
.empty > .icon { font-size: 40px; }
.empty p { margin: 0; max-width: 34ch; font-size: 15px; }
.empty .btn { flex: none; min-width: 220px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 50; max-width: 420px; margin: 0 auto; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #ffffff; font-size: 15px; text-align: center; animation: drop-in var(--motion) var(--ease); }
.form.enter-step { animation: fade-in var(--motion) ease-out; }

/* Запись на заявку и резерв (решения владельца 01.10.2026) */
/* Статус записи под строкой: без лишней строчной высоты, снизу отступ как сверху. */
.l-mine, .l-what > .l-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.l-mine .r-state { line-height: 1.25; }
.r-state { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font-size: var(--card-text); font-weight: 600; }
.r-note { margin: 0; font-size: var(--card-text); }
/* Новая заявка — «Мягкий импульс»: лёгкое появление и однократный свет по краю.
   Тень неподвижна; анимируются только прозрачность и transform (04.10.2026). */
.l-item.fresh { position: relative; isolation: isolate; overflow: hidden; }
.l-item.fresh > .l-row { animation: new-order-appear 0.62s cubic-bezier(.16, 1, .3, 1); }
.l-item.fresh::after {
  content: ''; position: absolute; inset: 3px; border: 2px solid var(--accent); border-radius: 6px;
  box-shadow: inset 0 0 18px 5px rgb(255 139 19 / .25); opacity: 0; pointer-events: none;
  animation: new-order-pulse 1.8s ease-out;
}
@keyframes new-order-appear {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes new-order-pulse {
  0% { opacity: 0; transform: scale(.96, .86); }
  24% { opacity: .95; transform: scale(.985, .97); }
  68% { opacity: .45; }
  100% { opacity: 0; transform: scale(1.035, 1.14); }
}
/* Резерв в короткой карточке: пульсирует вся заливка, без свечения контура. */
/* Пульсирует только прозрачность отдельного слоя под текстом: телефон считает это на
   видеокарте и не перерисовывает строку на каждом кадре — прокрутка не дёргается
   (04.10.2026; раньше анимировались цвет фона и тень). */
.l-item.response-waiting > .l-row, .l-item.response-accepted > .l-row { position: relative; isolation: isolate; }
.l-item.response-waiting > .l-row::before, .l-item.response-accepted > .l-row::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: #ffe5ca; opacity: 0; pointer-events: none; animation: response-glow 3.6s ease-in-out infinite; }
/* «Вас приняли» — тот же мягкий импульс, зеленоватый (06.10.2026). */
.l-item.response-accepted > .l-row::before { background: #d3efdf; }
@keyframes response-glow { 50% { opacity: 1; } }
/* В полной карточке свет расходится только внутрь рамки статуса «Вы в резерве»: яркая
   рамка со свечением — слой поверх спокойной, проявляется и гаснет. */
.r-state.ok { color: var(--ok); }
.r-state.ok > .icon { font-size: 18px; }
.r-state.off { font-weight: 500; color: var(--muted); }
.r-state.refused, .r-state.result { color: #b04f49; }
.ticks { display: inline-flex; color: #8a9098; }
.ticks .icon { font-size: 17px; }
.ticks .icon + .icon { margin-left: -10px; }
.ticks.seen { color: var(--accent); }
/* Галочки отклика крупнее и контрастнее; галочки сообщений сохраняют свой вид. */
.r-state .ticks { color: #626a74; }
.r-state .ticks .icon { font-size: 19px; }
.r-state .ticks.seen { color: #c46308; }
.desc { margin: 0; font-size: 15px; white-space: pre-line; }
.actions a.btn { color: var(--ink); text-decoration: none; }

/* Списки после входа: «Мои отклики», «Мои заказы» */
.list.rounded { border-radius: 12px; overflow: hidden; }
.list.rounded > .l-item:last-child { border-bottom: 0; }
.page-note { margin: 0; font-size: 14.5px; }
.page-note.center { text-align: center; padding: 8px 0; }
.sec-title { margin: 8px 0 0; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.15; }
/* Раздел сразу под заголовком страницы — 12 px, как от раздела до списка (06.10.2026). */
.page-title + .sec-title { margin-top: 0; }
.sec-title.with-icon { display: flex; align-items: center; gap: 7px; }
.sec-title.with-icon > .icon { font-size: 20px; }
.card .actions a.btn { color: var(--ink); text-decoration: none; }
.count { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: var(--card-text); font-weight: 700; }
/* «Мои заявки»: метки в строке «1 отклик · резерв 1» — справа от текста (08.10.2026);
   не помещаются — целиком на следующую строку, длинная переносится внутри. «Отказался» и
   «закроется» — красным текстом предупреждения (.warn-text), без плашки. */
.l-summary .count { max-width: 100%; margin-top: 2px; line-height: 1.2; }
.l-summary .l-warn { display: inline-block; max-width: 100%; }

/* Заявка нанимателя: записавшиеся и резерв */
.page > .back-link { align-self: flex-start; margin: -6px 0 -4px -8px; }
.card.own { padding-bottom: 16px; }
.card-head.static { cursor: default; }
.resp-panel { padding: 8px 14px 4px; }
.resp-panel .sec-title { margin: 4px 0 6px; }
.resp { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; border-top: 1px solid var(--divider); }
/* «Убрать из записи» — по левому краю, как «пожаловаться»; полоса нажатия шире текста. */
.resp-remove { position: relative; align-self: flex-start; min-height: 0; padding: 0; line-height: 20px; font-size: 15px; }
.resp-remove::before { content: ""; position: absolute; inset: -12px -12px -12px; }
.card.own > .btn { flex: none; align-self: flex-start; min-height: 44px; margin-top: 0; }
/* Закрытие заявки: у каждого записавшегося «Пришёл» или «Не пришёл». */
.presence { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 15px; font-weight: 600; color: var(--ok); }
.presence.missed { color: #b3261e; }
.confirm.panel-like .options { margin: 0; }
.confirm.panel-like > .linklike { align-self: center; }
.resp-head { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 44px; padding-right: 36px; }
/* Кнопка на всю шапку; имя выше неё и отдельно открывает профиль. */
.resp-toggle { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: flex; align-items: center; justify-content: flex-end; border-radius: 4px; }
.resp-toggle > .icon, .resp-toggle .card-fold .icon { font-size: 26px; }
.resp.open .resp-head { padding: 26px 0 0; }
.resp.open .resp-toggle { align-items: flex-start; }
.resp-toggle .card-fold { padding: 0; }
.resp-head .name-link { z-index: 2; }
.resp-actions { display: flex; flex-direction: column; gap: 10px; }
.resp-actions[hidden] { display: none; }
.resp-who { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
.resp-who b { font-size: 16px; font-weight: 700; }
.resp-who > span { display: block; font-size: var(--card-text); }
.resp-who > .resp-attend { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-weight: 600; color: var(--muted); }
.resp-attend.ok { color: var(--ok); }
.resp-attend .icon { flex: none; font-size: 17px; }
.resp .btn { color: var(--ink); text-decoration: none; }
.btn.dark { background: var(--ink); color: #ffffff; }
.resp .btn.dark { color: #ffffff; }
.confirm { display: flex; flex-direction: column; gap: 10px; }
.confirm p { margin: 0; font-size: 15px; }
.confirm.panel-like { padding: 14px; border-radius: 12px; background: var(--surface); }

/* Форма заказа */
.panel.form-panel { padding: 14px; gap: 12px; }
.post-form .sec-title { font-size: 20px; }
.form-panel .sec-title { margin: 0; }
.form-panel .post-field-title { margin-bottom: 8px; }
.post-form .btn, #app:has(.post-form) .sheet .btn { border: 1.5px solid var(--ink); }
.panel.form-panel > .btn { margin: 0; }
.f-label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.f-label .muted { font-weight: 400; }
.f-hint { margin: -4px 0 0; font-size: 14.5px; }
.input.area { min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.4; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--surface); font-size: 14.5px; font-weight: 600; line-height: 1.2; text-align: center; }
.chip .icon { font-size: 17px; flex: none; }
.chip[aria-pressed="true"] { background: var(--ink); color: #ffffff; }
.money-field { display: flex; align-items: center; gap: 10px; }
.money-field .input { max-width: 200px; font-family: var(--display); font-weight: 800; font-size: 26px; }
.money-field span { font-family: var(--display); font-weight: 800; font-size: 26px; }
.post-people { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 8px; border: 1.5px solid var(--ink); border-radius: 8px; }
.post-people-note { grid-column: 1 / -1; margin: 0; }
/* Счётчик сопровождающих и подсказка в том же окне отклика. */
.group-pick-row { display: flex; align-items: center; gap: 8px; }
.group-pick-row .group-pick { flex: 1; min-width: 0; }
.group-pick-row > .btn-help { width: 36px; height: 36px; }
.group-help { padding: 12px; border: 1.5px solid #f1cda6; border-radius: 8px; background: #fff3e5; animation: group-help-in 0.5s ease; }
.group-help[hidden] { display: none; }
.sheet .group-instruction { font-size: 18px; line-height: 1.2; }
.group-help p { margin: 0; font-size: 16px; line-height: 1.4; }
@keyframes group-help-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .group-help { animation: none; } }
.group-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 8px 8px 8px 14px;
  border: 1.5px solid var(--ink); border-radius: 8px; font-size: 17px; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 6px; }
.step-btn { position: relative; width: 34px; height: 40px; flex: none; border: 1.5px solid var(--ink); border-radius: 8px; font-size: 22px; font-weight: 700; line-height: 1; }
.step-btn::before { content: ""; position: absolute; inset: -2px -3px; }
.step-btn:disabled { opacity: 0.35; cursor: default; }
.step-value { min-width: 24px; text-align: center; font-family: var(--display); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.page > .form-error { scroll-margin: 16px 0 96px; }
.resp .actions > .btn:only-child { flex: 1; }
.btn .count { margin-left: 2px; }

/* Поля формы заказа, как в JoinMe (просьба владельца 27.09.2026): строка со значением,
   нажатие открывает окно. Незаполненное поле — красная рамка и текст под ним. */
.f-block { display: flex; flex-direction: column; scroll-margin: 16px 0 96px; }
.f-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr); gap: 10px; align-items: start; }
.post-timing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.post-timing button { min-height: 58px; padding: 7px 9px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--surface); text-align: center; font-size: 15px; font-weight: 600; line-height: 1.2; }
.post-timing button[aria-pressed="true"] { background: var(--ink); color: #ffffff; }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--surface); text-align: left; font-size: 17px; line-height: 1.35; }
.pick > .icon { flex: none; font-size: 20px; }
.pick-value { flex: 1; min-width: 0; }
.pick:not(.multi) .pick-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick.multi { align-items: flex-start; min-height: 88px; }
.pick.multi .pick-value { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.pick-value.unset { color: var(--muted); }
.pick.bad { border-color: #b3261e; }
.f-block.bad .map-box { box-shadow: 0 0 0 2px #b3261e; }
.f-error { margin: 6px 0 0; font-size: 14.5px; font-weight: 600; color: #b3261e; }
.post-map-shell { position: relative; }
.post-map-toolbar { position: absolute; z-index: 2; top: 8px; left: 8px; }
.post-map-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--surface); font-weight: 600; box-shadow: 0 2px 8px rgb(0 0 0 / 0.12); }
.post-map-toggle .icon { font-size: 21px; }
html:has(.post-map-shell.expanded), body:has(.post-map-shell.expanded) { overflow: hidden; }
.post-map-shell.expanded { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--surface); }
.post-map-shell.expanded .post-map-toolbar { position: static; display: flex; align-items: center; justify-content: space-between; flex: none; padding: calc(env(safe-area-inset-top) + 8px) 16px 8px; }
.post-map-shell.expanded .post-map-toolbar b { font-size: 18px; }
.post-map-shell.expanded > #f-place { flex: 1; min-height: 0; }
.post-map-shell.expanded > #f-place > .map-slot, .post-map-shell.expanded > #f-place > .map-box { flex: 1; min-height: 0; height: 100%; border-radius: 0; }
.post-map-address { display: flex; flex-direction: column; gap: 10px; flex: none; max-height: 35dvh; overflow-y: auto; padding: 12px 16px calc(env(safe-area-inset-bottom) + 16px); border-top: 1px solid var(--row); }

/* Фото к заявке в форме — до 3 плиток в ряд (решение владельца 01.10.2026). Плитка
   «Добавить» — подпись к скрытому полю выбора файла. */
.post-photos { gap: 8px; }
.post-photos .f-hint { margin: -4px 0 0; }
.post-photos-head { display: flex; align-items: baseline; gap: 6px; }
.post-photos .post-photos-head .f-hint { margin: 0; }
.photo-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-tile, .photo-add { position: relative; aspect-ratio: 1; border-radius: 8px; }
.photo-tile { overflow: hidden; background: var(--row); }
.photo-thumb { display: block; width: 100%; height: 100%; }
.photo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.photo-tile.loading img { opacity: 0.55; }
.photo-spin { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 3px solid rgb(27 29 32 / 0.2); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.9s linear infinite; pointer-events: none; }
.photo-remove { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(27 29 32 / 0.82); color: #ffffff; font-size: 16px; }
.photo-remove::before { content: ""; position: absolute; inset: -7px; }
.photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--ink); background: var(--surface); font-size: 15px; font-weight: 600; cursor: pointer; }
.photo-add .icon { font-size: 28px; }
.photo-add:active { background: #eef0f2; }
.photo-add:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Окна поверх экрана (screens/sheet.js). С полем ввода — у верхнего края, чтобы их
   не закрывала клавиатура; окна выбора — по центру. */
html.sheet-open, html.sheet-open body { overflow: hidden; }
.sheet-layer { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: calc(env(safe-area-inset-top) + 16px) 12px calc(env(safe-area-inset-bottom) + 16px); }
.sheet-layer.top { align-items: flex-start; }
/* Фон под окном — затемнение 85 % (просьба владельца 04.10.2026, было 62 %, затем 80 %). */
.sheet-backdrop { position: absolute; inset: 0; background: rgb(27 29 32 / 0.85); touch-action: none; }
.sheet { position: relative; width: 100%; max-width: 460px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 16px; border-radius: 14px; background: var(--surface); box-shadow: 0 8px 30px rgb(0 0 0 / 0.25); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.sheet-title.center, .sheet-hint.center { width: 100%; text-align: center; }
.sheet-x { width: 44px; height: 44px; flex: none; margin-right: -10px; display: grid; place-items: center; border-radius: 8px; }
.sheet-x .icon { font-size: 24px; }
/* Компактный верхний блок свободных мест в окне отклика. */
.sheet-head.compact { min-height: 28px; margin-bottom: -8px; }
/* Текст в окнах — 16 px (просьба владельца 08.10.2026, было 15). */
.sheet-hint { margin: -4px 0 0; font-size: 16px; }
.sheet-hint.strong { font-weight: 600; }
/* Окно одной строкой с кнопкой («Свободно мест: 1 из 1», «У вас уже есть открытая заявка…») —
   строка 17 px (просьба владельца 08.10.2026). */
.sheet-head .sheet-hint { font-size: 17px; }
/* Подсказки адреса под полем. */
.suggest { display: flex; flex-direction: column; margin-top: -4px; border-radius: 10px; overflow: hidden; }
.suggest:empty { display: none; }
.suggest-item { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; text-align: left; font-size: 16px; background: var(--asphalt); }
.suggest-item + .suggest-item { border-top: 1px solid var(--surface); }
.suggest-item .icon { flex: none; font-size: 18px; }
.suggest-item span { min-width: 0; overflow-wrap: anywhere; }
.sheet-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.sheet-help { margin: -6px 0 0; font-size: 14.5px; text-align: right; font-variant-numeric: tabular-nums; }
.sheet .f-error { margin: -6px 0 0; }
/* Поле в окне растёт вниз вместе с текстом (app.js, autoGrow), дальше — прокрутка внутри. */
.sheet .input.area { min-height: 124px; max-height: 45vh; resize: none; overflow-y: auto; }
/* Для описания порог — число знаков, а не высота телефона или клавиатуры. */
.sheet .input.area.grow[data-fill="true"] { max-height: none; }
.sheet > .field:has(.grow[data-fill="true"]) { flex-shrink: 0; }
.sheet .input.area.short { min-height: 76px; }
.sheet .money-field .input { flex: 1; max-width: none; }
/* Окна создания заявки используют те же рамки, что поля и выбор времени на форме. */
#app:has(.post-form) .sheet .input { border-width: 1.5px; }
#app:has(.post-form) .sheet .options { border-radius: 8px; }
.sheet .calendar { border: 0; padding: 0; }
.sheet .actions .btn { flex: 1; }
.sheet-label { margin: 0 0 -4px; font-size: 15px; font-weight: 600; }
.time-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.time-grid.minutes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.time-cell { min-height: 44px; border: 1.5px solid var(--ink); border-radius: 8px; font-family: var(--display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.time-cell[aria-pressed="true"] { background: var(--ink); color: #ffffff; }
.time-cell:disabled { opacity: 0.3; cursor: default; }
.sheet.enter { animation: sheet-in var(--motion) var(--ease); }

/* Переписка по заказу (решение владельца 27.09.2026). Меню снизу нет: внизу — поле
   для сообщения. Свои сообщения — графитовые справа, чужие — белые слева. */
/* Экран переписки — колонка ровно на видимую часть экрана, как чат в JoinMe (06.10.2026):
   сверху шапка, в середине список сообщений прокручивается сам, внизу поле. Клавиатура
   уменьшает видимую область — колонка укорачивается (app.js, syncChatViewport): шапка
   остаётся наверху, поле стоит вплотную над клавиатурой. Страница под колонкой не
   прокручивается — телефону нечего подбрасывать к шапке. */
.chat { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--asphalt); }
html:has(.chat), html:has(.chat) body { overflow: hidden; overscroll-behavior: none; }
/* Зазоры шапки (06.10.2026): «Назад» → имя 8 px, имя → заявка → статус → низ шапки по 6 px;
   кнопки в шапке — по высоте текста. */
.chat-bar { flex: none; position: relative; z-index: 20; padding: env(safe-area-inset-top) 16px 6px; background: var(--ink); color: #ffffff; }
.chat-bar > * { max-width: 720px; margin-inline: auto; }
.chat-bar-row { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.chat-bar .back-link, .chat-bar .chat-report-open { min-height: 0; }
.chat-bar .back-link { margin: 0 0 0 -8px; }
/* «Удалить аккаунт» в самом низу профиля — неброско, по центру (04.10.2026). */
.linklike.account-delete { align-self: center; margin-top: 4px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
/* «пожаловаться» — чуть серое, чтобы не спорило с главным (просьба владельца 27.09.2026). */
.chat-report-open { min-height: 44px; padding: 0 4px; font-size: 15px; color: #c3c8cf; text-decoration: underline; text-underline-offset: 3px; }
.chat-with { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.chat-with > span { min-width: 0; overflow-wrap: anywhere; }
.chat-with b { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; }
/* Имя и роль собеседника — в одну строку: «Тест Работодатель · наниматель» (просьба
   владельца 06.10.2026); длинное имя переносится, роль с точкой — целиком. */
.chat-with > span { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.chat-with span span { flex: none; font-size: 14.5px; color: #ffffff; white-space: nowrap; }
/* Поддержка у владельца: имя — ссылка на карточку человека, номер — звонок. */
.chat-person { display: block; padding: 0; color: #ffffff; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; text-align: left; text-decoration: none; }
.chat-phone { display: block; color: #ffffff; font-size: 15px; }
/* От имени до заявки — столько же, сколько от заявки до рамки статуса, ~9,5 px (06.10.2026):
   под именем уже есть запас кнопки высотой 32 px. */
.chat-order { margin-top: 6px; font-size: 14.5px; color: #ffffff; }
/* Заявка в шапке переписки — одной строкой, в конце «›»: нажатие открывает её карточку;
   дата и сумма — в карточке, не здесь (просьба владельца 06.10.2026). */
.chat-order-title { display: flex; align-items: center; gap: 4px; max-width: 100%; padding: 0; text-align: left; text-decoration: none; }
.chat-order-title > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-order-title .icon { flex: none; font-size: 18px; }
/* Отклик из переписки: кнопка на тёмной полосе; статуса здесь нет (07.10.2026). */
.chat-respond { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 36px; margin-top: 6px; border-radius: 8px; background: #ffffff; color: var(--ink); font-size: 15.5px; font-weight: 700; }
/* Список — во всю ширину (полоса прокрутки у края окна), сообщения — в колонке 720 px. */
.chat-feed { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; padding: 12px max(12px, calc((100% - 720px) / 2 + 12px)) 16px; }
.chat-safety { margin: 0 0 6px; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #b3261e; font-size: 14.5px; font-weight: 600; text-align: center; }
.msg-day { align-self: center; margin: 6px 0; }
.msg-day span { display: inline-block; padding: 2px 10px; border-radius: 10px; background: #d9dde2; font-size: 14.5px; font-weight: 600; }
.msg { max-width: 82%; padding: 7px 11px 5px; border-radius: 14px; }
.msg.theirs { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 4px; }
.msg.mine { align-self: flex-end; background: var(--ink); color: #ffffff; border-bottom-right-radius: 4px; }
.msg-text { margin: 0; font-size: 16px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-meta { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 1px; font-size: 14.5px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.msg .ticks .icon { font-size: 16px; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 40px 20px; text-align: center; }
.chat-empty > .icon { font-size: 36px; }
.chat-empty b { font-size: 18px; }
.chat-empty p { margin: 0; max-width: 30ch; font-size: 15px; }
/* Поле и кнопка — в той же колонке шириной 720 пикселей, что и сообщения. */
.chat-input { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px max(10px, calc((100% - 720px) / 2 + 12px)) calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--row); }
/* Поле в фокусе на телефоне — открыта клавиатура, полоска «Домой» под ней: под полем
   столько же, сколько над ним (06.10.2026). По высоте экрана клавиатуру не угадать:
   в приложении со значка iPhone уменьшает при ней и окно, и видимую область. */
@media (pointer: coarse) { .chat-input:focus-within { padding-bottom: 8px; } }
/* Поле и кнопка — 40 px (06.10.2026, было 46): переписке больше места. */
.chat-text { flex: 1; min-height: 40px; max-height: 132px; padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.35; resize: none; }
.chat-text::placeholder { color: #8a9098; }
.chat-text:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #ffd9c2; }
.chat-send { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #ffffff; }
.chat-send .icon { font-size: 20px; }
.chat-send:disabled { opacity: 0.4; cursor: default; }
.chat-closed { flex: none; margin: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--row); text-align: center; font-size: 15px; }

/* «Сообщения»: переписки роли, свежие сверху. Строку смахивают влево — под ней «Удалить»
   (lib/swipe.js, 07.10.2026); вверх-вниз список прокручивает браузер. */
.c-item { position: relative; overflow: hidden; border-bottom: 1px solid var(--divider); }
.list.rounded > .c-item:last-child { border-bottom: 0; }
.c-delete { position: absolute; top: 0; right: 0; bottom: 0; width: 96px; background: #b3261e; color: #ffffff; font-size: 15.5px; font-weight: 700; }
.c-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; text-align: left; background: var(--surface); touch-action: pan-y; transition: transform .2s ease; }
.c-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; }
.c-order, .c-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.c-order { }
.c-last.new { font-weight: 700; }
.c-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.c-side small { font-size: 14.5px; }

@media (min-width: 960px) {
  .tabbar { position: static; justify-content: center; gap: 8px; padding: 0 24px; background: #26292d; box-shadow: none; }
  .tab { flex: none; flex-direction: row; gap: 8px; min-height: 48px; padding: 0 18px; font-size: 15px; }
  .tab .icon { font-size: 20px; }
  .tab-badge { position: static; }
  .topbar ~ .tabbar ~ .feed-layout, .topbar ~ .tabbar ~ .page { padding-bottom: 40px; }
  .page { padding-top: 12px; }
  .page:has(> .my-orders-head) { padding-top: 24px; }
  .toast { bottom: 24px; }
  .auth { background: var(--asphalt); padding-bottom: 48px; }
  .auth .form { margin-top: 32px; border-radius: 16px; background: var(--surface); padding-bottom: 28px; }
}

/* «3 фото» в раскрытой карточке — как кнопки карточки, по ширине надписи. */
.btn.photos-btn { position: relative; flex: none; align-self: flex-start; min-height: 36px; padding: 0 14px; background: #eef0f2; }
.btn.photos-btn .icon { font-size: 19px; }
.btn.photos-btn::before { content: ""; position: absolute; inset: -4px 0; }
.card.own > .btn.photos-btn { margin-top: 0; }

/* Жалобы на заявку, предупреждения нанимателю, уровень нанимателя. */
/* Кнопки карточки заказа — без заливки и высотой как «Список | Карта» (просьба
   владельца 26.09.2026); нажимать можно в полосе 44 пикселя. */
/* Кнопки карточки слегка серые (просьба владельца 27.09.2026). */
.card .actions .btn { position: relative; flex: 1; min-height: 36px; }
.card .actions .btn.alt { background: #eef0f2; }
.card .actions .btn::before { content: ""; position: absolute; inset: -4px 0; }
/* Результат действия — на месте кнопки и того же размера: «Отклик отправлен»,
   «Выбран»; номер — вместо «Позвонить» (просьба владельца 27.09.2026). */
.btn-state { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; border: 1.5px dashed currentColor; border-radius: 8px; text-align: center; }
/* Пунктир совпадает с цветом текста статуса; ожидание использует свою анимацию рамки. */
.btn-state:not(.waiting):has(> .r-state.ok) { border-color: var(--ok); }
.btn-state:not(.waiting):has(> .r-state.off) { border-color: var(--muted); }
.btn-state:not(.waiting):has(> .r-state.refused), .btn-state:not(.waiting):has(> .r-state.result) { border-color: #b04f49; }
.btn-state.waiting { position: relative; isolation: isolate; border: 1.5px solid var(--ink); background: #eef0f2; box-shadow: inset 0 0 12px 4px rgb(255 139 19 / .08); }
.btn-state.waiting::after { content: ''; position: absolute; inset: -1.5px; z-index: -1; border: 1.5px solid var(--accent); border-radius: inherit;
  box-shadow: inset 0 0 28px 12px rgb(255 139 19 / .35); opacity: 0; pointer-events: none; animation: response-glow 3.6s ease-in-out infinite; }
.card .btn-state { min-height: 36px; }
/* Ширина кнопок в ряду не зависит от того, что на них написано: номер вместо
   «Позвонить» ничего не сдвигает. */
.actions > .btn, .actions > .btn-state { flex: 1 1 0; min-width: 0; padding-inline: 8px; }
/* «?» рядом с «Откликнуться»: круглая, той же высоты, что кнопки ряда. */
.btn-help { position: relative; flex: none; width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 50%; background: #eef0f2; font-size: 21px; font-weight: 700; line-height: 1; }
.card .btn-help { width: 36px; height: 36px; }
.btn-help::before { content: ""; position: absolute; inset: -4px; }
.btn.phone-num { font-family: var(--display); font-size: clamp(16px, 5vw, 19px); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Общий промежуток карточки сохраняется и перед «Пожаловаться»;
   невидимая полоса нажатия шире самого текста. */
.complaint-open { position: relative; align-self: flex-start; min-height: 0; margin-top: 0; padding: 0; line-height: 18px; font-size: 15px; font-weight: 600; color: var(--muted); }
.complaint-open::before { content: ""; position: absolute; inset: -8px -12px -12px; }
.complaint { display: flex; flex-direction: column; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.complaint-title { margin: 0; padding: 9px 14px; background: var(--asphalt); border-bottom: 1px solid var(--row); font-size: var(--card-text); font-weight: 700; text-align: center; }
.complaint .option { min-height: 46px; font-size: 16px; }
.complaint .linklike { align-self: center; border-top: 1px solid var(--row); width: 100%; }
.complaint-done { margin: 0; text-align: center; font-size: var(--card-text); }
/* Плашки-предупреждения — одного вида (решение владельца 09.10.2026): светлая заливка,
   жирный красноватый текст, крестик в углу (справа под него оставлено место). */
.panel.warn-panel { position: relative; padding: 12px 44px 12px 14px; gap: 10px; background: var(--accent-soft); color: #b3261e; }
.warn-panel p { margin: 0; font-size: 15px; font-weight: 600; }
.warn-panel .btn { flex: none; }
.panel-x { position: absolute; top: 2px; right: 2px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #b3261e; }
.panel-x .icon { font-size: 20px; }
/* «Нельзя / не хватает / ограничение» — красным жирным, как ошибки в форме заявки (решение
   владельца 06.10.2026). Отдельные сообщения (ошибки входа, итог формы, безопасность в
   переписке, предупреждение владельца) — тем же текстом на розовой плашке. */
.warn-text { color: #b3261e; font-weight: 600; }
/* Уровень нанимателя в профиле — мини-шкала до следующего (решение владельца 01.10.2026). */
.level { padding: 4px 0 12px; border-bottom: 1px solid var(--row); }
.level-bar { display: block; width: 100%; height: 8px; border: 0; border-radius: 4px; background: var(--row); overflow: hidden; appearance: none; }
.level-bar::-webkit-progress-bar { background: var(--row); border-radius: 4px; }
.level-bar::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
.level-bar::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
.level-note { margin: 6px 0 0; font-size: 14.5px; }
.panel > .level-row { border-bottom: 0; }

/* Телефон: в ленте (Список и Карта) шапка и кнопки ленты (Список, Карта, Дата,
   Категории) стоят на месте, прокручивается только содержимое (просьба владельца
   26.09.2026); на остальных экранах шапка уезжает при прокрутке (27.09.2026). Высоты заданы
   точно — по ним кнопки встают под шапку, а раскрытый заказ не прячется под ними. */
@media (max-width: 959px) {
  :root { --topbar-h: 74px; --filters-h: 94px; --sticky-h: calc(env(safe-area-inset-top) + var(--topbar-h)); }
  .topbar.sticky { position: sticky; top: 0; z-index: 20; }
  .topbar-inner { box-sizing: border-box; height: var(--topbar-h); padding-block: 0; }
  .filters { position: sticky; top: var(--sticky-h); z-index: 15; background: var(--asphalt); }
  /* Раскрытый календарь или список категорий помещается между кнопками и нижним меню. */
  .filters .menu, .filters .calendar { overscroll-behavior: contain; max-height: calc(100vh - var(--sticky-h) - var(--filters-h) - 66px - env(safe-area-inset-bottom)); max-height: calc(100dvh - var(--sticky-h) - var(--filters-h) - 66px - env(safe-area-inset-bottom)); overflow-y: auto; }
  .l-item.open, .map-picked { scroll-margin-top: calc(var(--sticky-h) + var(--filters-h) + 8px); }
}

/* Компьютер: фильтры слева, заказы справа */
@media (min-width: 960px) {
  .topbar-inner { padding: 14px 24px; }
  .topbar-brand { flex-direction: row; align-items: center; gap: 18px; }
  .wordmark { font-size: 28px; }
  .btn-post { min-height: 44px; padding: 0 18px; background: var(--accent); border-color: var(--accent); color: var(--ink); font-size: 15px; font-weight: 700; }
  .notice { padding-inline: 24px; background: transparent; border: 0; }
  .feed-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; padding: 20px 24px 40px; }
  .filters { position: sticky; top: 16px; padding: 14px; background: var(--surface); border-radius: 12px; }
  .filter-row { grid-template-columns: 1fr; }
  /* Совет установить приложение (текст владельца 04.10.2026) — со значком телефона. */
  .install-hint { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--row); font-size: 14.5px; }
  .install-hint .icon { flex: none; font-size: 25px; margin-top: 0; }
  .install-hint b { color: var(--ink); font-weight: 600; }
  .results { padding: 0; }
  .map-slot.big, .map-box.orders { height: 504px; border-radius: 12px; }
  .map-picked { margin-top: 12px; border-radius: 12px; overflow: hidden; }
  .list { border-radius: 12px; overflow: hidden; }
  .l-row { padding-inline: 20px; }
  .l-what { margin-left: 10px; }
  .l-row:hover { background: #f6f7f8; }
  /* Кнопки и статусы карточки — во всю ширину, как на телефоне (просьба владельца
     04.10.2026; раньше на компьютере были не шире 440 px и обрывались посередине). */
  /* Шапка в одну строку: слева «ВотРабота» и город, справа вкладки — по краям ленты
     (просьба владельца 04.10.2026: раньше вкладки шли второй строкой по центру
     страницы, а шапка «уезжала» влево). Вкладки лежат поверх правой части шапки. */
  .topbar-inner { min-height: 64px; }
  .topbar + .tabbar { position: absolute; top: 0; left: 0; right: 0; height: 64px; gap: 2px; justify-content: flex-end;
    padding: 0 max(24px, calc((100% - 1100px) / 2 + 24px)); background: transparent; pointer-events: none; }
  .topbar + .tabbar .tab { padding: 0 12px; pointer-events: auto; }
  /* «Админка открыта · В админку» (просьба владельца 04.10.2026): в ленте — над блоком
     фильтров и по его ширине, на экранах — по колонке страницы; ниже — небольшой отступ,
     строка не «парит». */
  .admin-strip { padding-top: 12px; }
  .admin-strip .linklike { min-height: 32px; }
  .admin-strip.on-feed { max-width: 348px; margin: 0 auto 0 max(0px, calc((100% - 1100px) / 2)); }
  .admin-strip.on-page { max-width: 720px; padding-inline: 16px; }
  .admin-strip + .feed-layout { padding-top: 6px; }
  .admin-strip + .page { padding-top: 12px; }
  .admin-strip + .page:has(> .my-orders-head) { padding-top: 6px; }
  /* Город и имя слева не заходят под вкладки: длинное обрезается «…». */
  .topbar:has(+ .tabbar) .topbar-brand { min-width: 0; max-width: calc(100% - 600px); }
  /* Выбор роли, установка, блокировка (просьба владельца 07.10.2026): шапка прижата к верху и
     во всю ширину, её текст и содержимое — в одной колонке 460 px по центру. */
  .welcome-card { max-width: none; }
  .welcome .w-top { padding: 24px max(16px, calc((100% - 460px) / 2 + 16px)) 22px; }
  .w-body { max-width: 460px; margin: 0 auto; }
}

@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes open-card { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes view-in-left { from { transform: translateX(100%); } to { transform: none; } }
@keyframes view-in-right { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes view-out-left { from { transform: none; } to { transform: translateX(-100%); } }
@keyframes view-out-right { from { transform: none; } to { transform: translateX(100%); } }
/* Просмотр фото на весь экран (lib/viewer.js): тёмный фон, сверху «1 из 3» и
   крестик, снизу точки; на компьютере — стрелки по бокам. Жесты разбирает сам
   скрипт, поэтому браузер ничего не прокручивает и не увеличивает (touch-action). */
html.pv-open, html.pv-open body { overflow: hidden; }
.pv { position: fixed; inset: 0; z-index: 60; overflow: hidden; color: #ffffff; touch-action: none; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pv-bg { position: absolute; inset: 0; background: #0d0e10; }
.pv-stage { position: absolute; inset: 0; }
.pv-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; will-change: transform; }
.pv-slide[hidden], .pv-msg[hidden], .pv-arrow[hidden] { display: none; }
.pv-frame { position: relative; flex: none; transform-origin: center; will-change: transform; }
.pv-frame img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.pv-frame.loading { background: #1f2226; }
.pv-frame.loading img { opacity: 0; }
.pv-frame.loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid rgb(255 255 255 / 0.25); border-top-color: #ffffff; border-radius: 50%; animation: spin 0.9s linear infinite; }
.pv-msg { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); text-align: center; font-size: 16px; }
.pv-msg p { margin: 0 0 12px; }
.pv-retry { min-height: 44px; padding: 0 18px; border: 1.5px solid #ffffff; border-radius: 8px; color: #ffffff; font-size: 15.5px; font-weight: 700; }
.pv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px 16px; background: linear-gradient(rgb(0 0 0 / 0.5), transparent); pointer-events: none; }
.pv-top > * { pointer-events: auto; }
.pv-count { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-close, .pv-arrow { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgb(255 255 255 / 0.16); color: #ffffff; }
.pv-close { width: 44px; height: 44px; font-size: 24px; }
.pv-arrow { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; font-size: 26px; }
.pv-arrow.prev { left: 16px; }
.pv-arrow.next { right: 16px; }
.pv-dots { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 20px); display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.pv-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / 0.4); }
.pv-dots span.on { background: #ffffff; }
@media (pointer: coarse) { .pv-arrow { display: none; } }
@media (hover: hover) { .pv-close:hover, .pv-arrow:hover { background: rgb(255 255 255 / 0.28); } }
.pv.pv-in .pv-bg, .pv.pv-in .pv-top, .pv.pv-in .pv-dots, .pv.pv-in .pv-arrow { animation: fade-in var(--motion) var(--ease); }
.pv.pv-in .pv-stage { animation: pv-open var(--motion) var(--ease); }
.pv.pv-out { opacity: 0; transition: opacity var(--motion) var(--ease); }
@keyframes pv-open { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-12px) scale(0.98); } to { opacity: 1; transform: none; } }
.calendar.enter, .menu.enter { animation: drop-in var(--motion) var(--ease); }
.card.enter { animation: open-card var(--motion) var(--ease); transform-origin: top center; }
.cal-grid.enter-fade { animation: fade-in var(--motion) ease-out; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--motion); }

@media (prefers-reduced-motion: reduce) {
  .l-item.fresh > .l-row { animation: none; }
  .l-item.fresh::after { animation: none; opacity: 1; }
  .l-item.response-waiting > .l-row::before, .l-item.response-accepted > .l-row::before, .btn-state.waiting::after { animation: none; opacity: .45; }
  .results, .l-item > .l-row { transition: none; }
  .toast, .form.enter-step { animation: none; }
  .calendar.enter, .menu.enter, .card.enter, .cal-grid.enter-fade, .sheet.enter { animation: none; }
  .results.in-left, .results.in-right, .view-ghost { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .pv.pv-in .pv-bg, .pv.pv-in .pv-top, .pv.pv-in .pv-dots, .pv.pv-in .pv-arrow, .pv.pv-in .pv-stage { animation: none; }
  .pv.pv-out { transition: none; }
}

.legal p { margin: 0; font-size: 16px; }
.legal a { color: var(--ink); text-underline-offset: 3px; }

/* Заставка при запуске с иконки (решение владельца 04.10.2026) — только на iPhone и iPad
   (06.10.2026): на Android система сама показывает при запуске значок во весь экран, и
   две заставки подряд не нужны. iPhone отличаем по -webkit-touch-callout: это свойство
   есть только у Safari на iPhone и iPad, а CSS должен решить до загрузки скриптов. Графит, крупное
   «ВотРабота» и подпись по центру — они мягко поднимаются; сверху и снизу неподвижные
   сигнальные полосы по 50 px, как на значке: верхняя — сразу под часами и батареей,
   нижняя — над полоской «Домой» (уточнение владельца: полосы без анимации, на 30 %
   уже прежних 72 px, такая же сверху). Видна только в приложении с экрана телефона;
   через 2 секунды за полсекунды растворяется сама, касание (lib/splash.js) убирает её сразу. */
.splash { position: fixed; inset: 0; z-index: 2000; display: none; flex-direction: column; align-items: center; justify-content: center;
  background: var(--ink); color: #ffffff; animation: splash-out 0.5s ease-in 2s forwards; }
@media (display-mode: standalone) { @supports (-webkit-touch-callout: none) { .splash { display: flex; } } }
.splash.skip { animation: splash-skip 0.3s ease-in forwards; }
.splash-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 24px; text-align: center; }
.splash-word { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1; letter-spacing: -0.01em; animation: splash-up 2s var(--ease) both; }
.splash-word .vot { color: var(--accent); }
.splash-tag { font-size: 20px; font-weight: 500; line-height: 1.25; animation: splash-up 1.4s var(--ease) 0.6s both; }
.splash-band { position: absolute; left: 0; right: 0; height: 50px; background: repeating-linear-gradient(135deg, var(--accent) 0 16px, var(--ink) 16px 32px); }
.splash-band.top { top: env(safe-area-inset-top); }
.splash-band.bottom { bottom: env(safe-area-inset-bottom); }
@keyframes splash-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
/* Отдельное имя: с тем же именем браузер продолжил бы прежнюю анимацию, и заставка пропала бы без растворения. */
@keyframes splash-skip { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .splash-word, .splash-tag { animation: none; }
}
/* Настройки стартовой ленты — четыре поля без статистики карточек. */
.startup-settings > label, .startup-times label { display: grid; gap: 8px; margin-bottom: 18px; }
.startup-settings .input { width: 100%; }
.startup-settings .startup-enabled { display: flex; align-items: center; gap: 10px; }
.startup-enabled input { width: 20px; height: 20px; accent-color: var(--ink, #1b1d20); }
.startup-times { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
