/* Стиль «Спецовка», утверждён 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 с. */
  --motion: 0.5s;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ink: #1b1d20;
  /* Серый — только для состояний (соседний месяц в календаре, начавшийся заказ,
     невыбранный отклик, подсказка в пустом поле). Текст для чтения — графитовый
     (просьба владельца 27.09.2026). */
  --muted: #5a6068;
  --asphalt: #dddddd;
  --surface: #ffffff;
  --row: #e3e6ea;
  --divider: #bfc4cc;
  --accent: #ff8b13;
  --accent-soft: #fff4ec;
  --ok: #177245;
  --head-line: #454a51;
  --display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --body: "Fira Sans", Roboto, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

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); }
.cal-day.today { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; 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: 16px; 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-pin.started:not(.is-selected) { border-color: var(--divider); color: var(--muted); }
.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); }
.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: 14.5px; 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; }
.l-what > span { display: block; margin-top: 2px; font-size: 14.5px; overflow-wrap: anywhere; }
.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 { padding: 8px 10px; background: var(--asphalt); scroll-margin: 12px 0 calc(92px + env(safe-area-inset-bottom)); }
/* Раскрытая карточка слегка приподнята — от неё падает мягкая тень (просьба владельца 26.09.2026). */
.l-item.open .card { box-shadow: inset 4px 0 0 var(--accent), 0 3px 10px rgb(0 0 0 / 0.14); }
.card { min-width: 0; overflow-wrap: anywhere; background: var(--surface); border-radius: 10px; box-shadow: inset 4px 0 0 var(--accent); padding: 0 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; }
.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: 14.5px; 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 { 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: 15px; }
.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); }
.card-fold .icon { font-size: 22px; }
.tag { font-size: 14.5px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: var(--accent); color: var(--ink); }
.tag.soft { background: var(--asphalt); }
.card h3 { margin: 0; font-size: 18px; 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: 34px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* «каждому», значки условий и строка работодателя — графитовые, как сами условия (просьба владельца 27.09.2026). */
.unit { font-size: 16px; font-weight: 500; white-space: nowrap; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; }
.facts li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.facts .icon { font-size: 17px; }

.who { display: flex; align-items: center; gap: 8px; margin: 0; padding-top: 10px; border-top: 1px solid var(--row); font-size: 14.5px; }
.who > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.avatar { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--asphalt); font-size: 14.5px; font-weight: 700; }

.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.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; }
.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(--asphalt); }
.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; }
.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 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); }
.steps-list p { margin: 0 0 8px; }
.steps-list ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.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; }

/* После входа: меню, страницы, профиль */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); }
.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)); }
.page { max-width: 720px; margin: 0 auto; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.page-title { margin: 4px 0 2px; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.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; }
.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%; }
.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; }

/* Отклики и звонки работника */
.l-mine { display: block; margin-top: 4px; }
.r-state { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; }
.l-mine.pending .r-state { max-width: 100%; padding: 3px 5px; border: 1px solid var(--divider); border-radius: 10px; background: #f6f7f8; animation: response-wait 3s ease-in-out infinite; }
@keyframes response-wait {
  0%, 100% { border-color: var(--divider); box-shadow: 0 0 0 0 rgb(138 144 152 / 0); }
  50% { border-color: #8a9098; box-shadow: 0 0 0 2px rgb(138 144 152 / .12); }
}
.r-state.ok { color: var(--ok); }
.r-state.ok > .icon { font-size: 18px; }
.r-state.off { font-weight: 500; }
.ticks { display: inline-flex; color: #8a9098; }
.ticks .icon { font-size: 17px; }
.ticks .icon + .icon { margin-left: -10px; }
.ticks.seen { color: var(--accent); }
.desc { margin: 0; font-size: 15px; white-space: pre-line; }
.safety { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; background: #fdecec; }
.safety b { font-size: 16px; color: #b3261e; }
.safety p { margin: 0; font-size: 15px; }
.safety .btn { flex: none; }
.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; }
.page-note .ticks { vertical-align: -3px; }
.sec-title { margin: 8px 0 0; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.15; }
/* «Мои отклики»: заказ целиком, как раскрытая карточка в ленте (просьба владельца 27.09.2026). */
.r-card .card { padding-bottom: 14px; box-shadow: inset 4px 0 0 var(--accent), 0 3px 10px rgb(0 0 0 / 0.14); }
.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: 14.5px; font-weight: 700; }

/* Заказ работодателя и отклики на него */
.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: 12px 0; border-top: 1px solid var(--row); }
.resp.off { color: var(--muted); }
.resp-head { display: flex; align-items: center; gap: 10px; }
.resp-head .avatar { width: 36px; height: 36px; font-size: 15px; }
.resp-who { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.resp-who b { display: block; font-size: 16px; font-weight: 600; }
.resp-who span { display: block; font-size: 14.5px; }
.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; }
.form-panel .sec-title { margin: 0; }
.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; }
.stepper { display: flex; align-items: center; gap: 12px; }
.step-btn { width: 52px; height: 52px; flex: none; border: 2px solid var(--ink); border-radius: 8px; font-size: 26px; font-weight: 700; line-height: 1; }
.step-btn:disabled { opacity: 0.35; cursor: default; }
.step-value { min-width: 120px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 24px; }
.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; }
.post-long { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; min-height: 44px; text-align: left; font-size: 16px; font-weight: 600; }
.post-long-mark { width: 24px; height: 24px; display: grid; place-items: center; flex: none; border: 2px solid var(--ink); border-radius: 6px; }
.post-long[aria-pressed="true"] .post-long-mark { background: var(--ink); color: #fff; }
.post-long-mark .icon { font-size: 18px; }
.duration-input { max-width: 120px; }
.duration-input.bad { border-color: #b3261e; }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 10px 14px; border: 2px 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); }

/* Окна поверх экрана (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; }
.sheet-backdrop { position: absolute; inset: 0; background: rgb(27 29 32 / 0.62); 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-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-hint { margin: -4px 0 0; font-size: 15px; }
.sheet-hint.strong { font-weight: 600; }
/* Подсказки адреса под полем. */
.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: 15px; }
.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.short { min-height: 76px; }
.sheet .money-field .input { flex: 1; max-width: none; }
.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). Меню снизу нет: внизу — поле
   для сообщения. Свои сообщения — графитовые справа, чужие — белые слева. */
.chat { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--asphalt); }
.chat-bar { position: sticky; top: 0; z-index: 20; padding: env(safe-area-inset-top) 16px 10px; 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; min-height: 48px; }
.chat-bar .back-link { margin: 0 0 0 -8px; }
/* «пожаловаться» — чуть серое, чтобы не спорило с главным (просьба владельца 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; }
.chat-with .avatar { width: 38px; height: 38px; background: #3a3f45; color: #ffffff; font-size: 16px; }
.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; }
.chat-with span span { display: block; font-size: 14.5px; color: #ffffff; }
.chat-order { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; margin-top: 8px; padding: 6px 10px; border: 1.5px solid var(--head-line); border-radius: 8px; text-align: left; font-size: 14.5px; color: #ffffff; }
.chat-order span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-order .icon { flex: none; font-size: 16px; }
/* Отклик из переписки: кнопка на тёмной полосе и статус на её месте. */
.chat-respond { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 8px; border-radius: 8px; background: #ffffff; color: var(--ink); font-size: 15.5px; font-weight: 700; }
.chat-respond-state { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin: 8px 0 0; border: 1.5px dashed var(--head-line); border-radius: 8px; font-size: 15px; font-weight: 600; }
.chat-respond-state .icon { font-size: 18px; }
.chat-respond-state.ok { color: #8fe0b0; }
.chat-feed { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; padding: 12px 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; }
.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 { position: sticky; bottom: 0; z-index: 10; 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); }
.chat-text { flex: 1; min-height: 46px; max-height: 132px; padding: 11px 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: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #ffffff; }
.chat-send .icon { font-size: 22px; }
.chat-send:disabled { opacity: 0.4; cursor: default; }
.chat-closed { position: sticky; bottom: 0; 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; }

/* «Сообщения»: переписки роли, свежие сверху. */
.c-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--divider); }
.list.rounded > .c-row:last-child { border-bottom: 0; }
.c-row .avatar { width: 42px; height: 42px; font-size: 17px; }
.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; }
  .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: 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; }
}

/* Этап 4: жалоба на заказ, «Заплатили?», оценки, предупреждения работодателю. */
/* Кнопки карточки заказа — без заливки и высотой как «Список | Карта» (просьба
   владельца 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 #c3c8cf; border-radius: 8px; text-align: center; }
.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: 19px; 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; }
/* «Пожаловаться»: над текстом и под ним по 12 пикселей — как от верха карточки
   до «Сегодня · Активно». Полоса нажатия шире самого текста. */
.complaint-open { position: relative; align-self: center; min-height: 0; margin-top: 4px; padding: 0 4px; 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: 14.5px; 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: 14.5px; }
.panel.pay-card { padding: 14px; gap: 10px; border: 2px solid var(--accent); }
.pay-card .sec-title { margin: 0; }
.pay-order { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 15px; }
.pay-order b { font-size: 16px; }
.pay-order span { }
.pay-warn { margin: 0; font-size: 15px; font-weight: 600; color: #b3261e; }
.pay-card .linklike { align-self: center; }
.pay-note { margin: 0; font-size: 14.5px; }
.pay-note .linklike { min-height: 0; padding: 0; font-size: 14.5px; }
.panel.warn-panel { padding: 12px 14px; gap: 10px; background: #fdecec; color: #b3261e; }
.panel.warn-panel.soft { background: var(--accent-soft); color: var(--ink); }
.warn-panel p { margin: 0; font-size: 15px; }
.warn-panel .btn { flex: none; }
.warn-text { color: #b3261e; }
.count.soft { background: var(--asphalt); font-weight: 600; }
.rate { display: flex; flex-direction: column; gap: 8px; }
.rate-title { margin: 0; font-size: 15px; font-weight: 600; }
.stars-pick { display: flex; gap: 4px; }
.star { flex: 1; min-height: 44px; border-radius: 8px; background: var(--asphalt); font-size: 26px; line-height: 1; color: var(--accent); }
.star[aria-pressed="true"] { background: var(--accent-soft); }
.rate-done { margin: 0; font-size: 15px; }
.rate-done .stars { color: var(--accent); letter-spacing: 2px; }

/* Телефон: в ленте (Список и Карта) шапка и кнопки ленты (Список, Карта, Дата,
   Категории) стоят на месте, прокручивается только содержимое (просьба владельца
   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 { 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; }
  .install-hint { display: block; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--row); font-size: 14.5px; }
  .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; }
  .card .actions { max-width: 440px; }
  .welcome { padding: 48px 16px; }
  .welcome-card { border-radius: 16px; overflow: hidden; }
  .w-top { padding-top: 24px; }
}

@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%); } }
@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-mine.pending .r-state { animation: none; }
  .results { 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; }
}

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