/* moi-avto.ru — интерфейс сервиса: вход, кабинет владельца, панель администратора мойки, админка сайта,
   страница очереди и табло. Мобильный экран — основной: всё крупное, под палец, без горизонтальной прокрутки. */

@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/golos-text-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --u-bg: #f2f5f3; --u-surface: #fff; --u-ink: #0c1411; --u-text: #26322d; --u-muted: #66736d; --u-line: #e1e7e3; --u-line-2: #cfd8d3;
  --u-green: #00a046; --u-green-d: #00863b; --u-green-ink: #064a26; --u-mint: #e3f6ea; --u-mint-2: #f1faf4;
  --u-red: #d7382d; --u-red-bg: #fdeeec; --u-amber: #8a5a00; --u-amber-bg: #fff3d1; --u-blue: #1668dc; --u-blue-bg: #e8f1fe;
  --u-r: 18px; --u-r-s: 12px; --u-shadow: 0 1px 2px rgba(12,20,17,.05), 0 12px 32px -20px rgba(12,20,17,.35);
  --u-font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ───────── каркас служебных страниц ───────── */
.page-app { margin: 0; background: var(--u-bg); color: var(--u-text); font: 400 16px/1.5 var(--u-font); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; min-height: 100dvh; }
.page-app *, .page-app *::before, .page-app *::after { box-sizing: border-box; }
:where(.page-app) h1, :where(.page-app) h2, :where(.page-app) h3 { color: var(--u-ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
:where(.page-app) h1 { font-size: clamp(26px, 6vw, 34px); font-weight: 800; }
:where(.page-app) h2 { font-size: 20px; font-weight: 750; }
:where(.page-app) h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
:where(.page-app) p { margin: 0; }
:where(.page-app) a { color: var(--u-green-d); text-underline-offset: 3px; }
:where(.page-app) img { max-width: 100%; display: block; }
:where(.page-app) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.page-app [hidden] { display: none !important; }
.page-app :focus-visible { outline: 3px solid rgba(0,160,70,.35); outline-offset: 2px; }

.u-top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--u-line); }
.u-top__in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; min-height: 60px; }
.u-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--u-ink) !important; font-weight: 800; letter-spacing: -.02em; min-width: 0; }
.u-brand img { width: 30px; height: 36px; object-fit: contain; flex: none; }
.u-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-brand small { display: block; font-size: 11.5px; font-weight: 600; color: var(--u-muted); letter-spacing: 0; }
.u-top__nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.u-wrap { max-width: 1080px; margin: 0 auto; padding: 20px 16px 72px; }
.u-wrap--narrow { max-width: 560px; }
.u-wrap--mid { max-width: 760px; }
.u-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.u-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--u-green-d); margin-bottom: 6px; }
.u-sub { color: var(--u-muted); margin-top: 6px !important; }
.u-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--u-muted) !important; margin-bottom: 12px; min-height: 32px; }
.u-back:hover { color: var(--u-ink) !important; }

/* ───────── карточки, сетки ───────── */
.u-card { background: var(--u-surface); border: 1px solid var(--u-line); border-radius: var(--u-r); padding: 18px; box-shadow: var(--u-shadow); }
.u-card + .u-card, .u-stack > * + * { margin-top: 14px; }
.u-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.u-card--flat { box-shadow: none; }
.u-card--accent { border-color: #bfe6cd; background: linear-gradient(180deg, var(--u-mint-2), #fff 70%); }
.u-card--warn { border-color: #f1dca0; background: #fffaf0; }
.u-card--danger { border-color: #f1c9c5; }
.u-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .u-grid--2 { grid-template-columns: 1fr 1fr; } .u-grid--3 { grid-template-columns: repeat(3, 1fr); } .u-card { padding: 22px; } }
.u-hint { font-size: 14px; color: var(--u-muted); line-height: 1.45; }
.u-hint + .u-hint { margin-top: 6px !important; }
.u-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.u-row--between { justify-content: space-between; }
.u-grow { flex: 1 1 auto; min-width: 0; }
.u-mt { margin-top: 14px !important; } .u-mt-s { margin-top: 8px !important; } .u-mt-l { margin-top: 26px !important; }
.u-nowrap { white-space: nowrap; }
.u-mono { font-variant-numeric: tabular-nums; }

/* ───────── кнопки ───────── */
.u-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 13px; border: 1px solid transparent;
  background: var(--u-ink); color: #fff !important; font-weight: 700; font-size: 15.5px; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; -webkit-user-select: none; user-select: none; }
.u-btn:active { transform: scale(.98); }
.u-btn[disabled], .u-btn.is-busy { opacity: .55; pointer-events: none; }
.u-btn--primary { background: var(--u-green); box-shadow: 0 8px 20px -10px rgba(0,160,70,.7); }
.u-btn--primary:hover { background: var(--u-green-d); }
.u-btn--ghost { background: #fff; border-color: var(--u-line-2); color: var(--u-ink) !important; }
.u-btn--ghost:hover { border-color: #aebab3; }
.u-btn--soft { background: var(--u-mint); color: var(--u-green-ink) !important; }
.u-btn--danger { background: #fff; border-color: #efc4bf; color: var(--u-red) !important; }
.u-btn--danger:hover { background: var(--u-red-bg); }
.u-btn--lg { min-height: 56px; font-size: 17px; padding: 14px 22px; border-radius: 16px; }
.u-btn--sm { min-height: 38px; padding: 7px 13px; font-size: 14px; border-radius: 11px; }
.u-btn--block { display: flex; width: 100%; }
.u-link { background: none; border: 0; padding: 0; color: var(--u-green-d); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.u-link--muted { color: var(--u-muted); font-weight: 500; }
.u-link--danger { color: var(--u-red); }

/* ───────── поля ───────── */
.u-field { display: block; }
.u-field + .u-field, .u-fields > * + * { margin-top: 14px; }
.u-label { display: flex; justify-content: space-between; gap: 8px; font-weight: 650; font-size: 14.5px; color: var(--u-ink); margin-bottom: 6px; }
.u-label small { font-weight: 500; color: var(--u-muted); }
.u-input, .u-select, .u-textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--u-line-2); border-radius: 13px; background: #fff; font-size: 16px;
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
.u-textarea { min-height: 132px; resize: vertical; line-height: 1.45; }
.u-select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2366736d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.u-input:focus, .u-select:focus, .u-textarea:focus { outline: none; border-color: var(--u-green); box-shadow: 0 0 0 4px rgba(0,160,70,.14); }
.u-input--xl { min-height: 60px; font-size: 22px; font-weight: 700; letter-spacing: .02em; text-align: center; }
.u-input--plate { text-transform: uppercase; font-weight: 800; letter-spacing: .08em; font-size: 22px; min-height: 58px; text-align: center; }
.u-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.u-cols--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) { .u-cols--3 { grid-template-columns: 1fr 1fr; } }
.u-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.4; cursor: pointer; }
.u-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--u-green); }
.u-days { display: flex; gap: 6px; flex-wrap: wrap; }
.u-days label { position: relative; }
.u-days input { position: absolute; opacity: 0; inset: 0; }
.u-days span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--u-line-2); font-weight: 700; font-size: 14px; cursor: pointer; background: #fff; }
.u-days input:checked + span { background: var(--u-ink); border-color: var(--u-ink); color: #fff; }
.u-days input:focus-visible + span { outline: 3px solid rgba(0,160,70,.35); }
.u-count { font-variant-numeric: tabular-nums; }
.u-count.is-over { color: var(--u-red); font-weight: 700; }

/* ───────── сообщения, метки ───────── */
.u-note { padding: 12px 14px; border-radius: 13px; font-size: 15px; line-height: 1.4; border: 1px solid var(--u-line); background: #fff; margin-bottom: 14px; font-weight: 550; }
.u-note--ok { background: #eafaf0; border-color: #bfe6cd; color: #0a5c2e; }
.u-note--err { background: var(--u-red-bg); border-color: #f1c9c5; color: #8f2219; }
.u-note--info, .u-note--unconfirmed { background: var(--u-amber-bg); border-color: #f1dca0; color: #5f4200; font-weight: 500; }
.u-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #eef1ef; color: #47524d; white-space: nowrap; }
.u-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.u-chip--plain::before { display: none; }
.u-chip--ok { background: var(--u-mint); color: var(--u-green-ink); }
.u-chip--wait { background: var(--u-amber-bg); color: var(--u-amber); }
.u-chip--bad { background: var(--u-red-bg); color: #9a261d; }
.u-chip--blue { background: var(--u-blue-bg); color: #0f4fae; }
.u-chip--live::before { animation: u-pulse 1.6s infinite; }
@keyframes u-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,160,70,.5); } 100% { box-shadow: 0 0 0 7px rgba(0,160,70,0); } }
.u-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--u-ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); opacity: 0; transition: .25s; z-index: 100; max-width: calc(100vw - 32px); text-align: center; pointer-events: none; }
.u-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ───────── госномер: как настоящий знак. Размер задаётся одним font-size, всё остальное — в em ───────── */
.plate { display: inline-flex; align-items: stretch; font-size: 17px; line-height: 1; color: #14181b; font-weight: 800; white-space: nowrap; vertical-align: middle;
  background: linear-gradient(180deg, #ffffff 0%, #f1f4f6 100%); border: .11em solid #171b1f; border-radius: .3em;
  box-shadow: inset 0 0 0 .06em #fff, 0 .1em .25em rgba(0, 0, 0, .28); font-variant-numeric: tabular-nums; font-family: var(--u-font); }
.plate b { display: flex; align-items: center; gap: .05em; padding: .26em .42em .24em; font-weight: 800; }
.plate b u { text-decoration: none; font-size: 1.32em; letter-spacing: .02em; }
.plate b span { font-size: 1.22em; letter-spacing: .03em; text-transform: uppercase; }
.plate b s { display: inline-block; width: .62em; height: .78em; border-radius: .14em; background: linear-gradient(180deg, #d5dce2, #bcc6ce); margin: 0 .04em; align-self: flex-end; margin-bottom: .1em; text-decoration: none; }
.plate i { font-style: normal; border-left: .11em solid #171b1f; padding: .16em .36em .12em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em; }
.plate i em { font-style: normal; font-size: .98em; letter-spacing: .02em; }
.plate i small { display: flex; align-items: center; gap: .32em; font-size: .36em; font-weight: 800; letter-spacing: .07em; }
.plate i small span { width: 1.5em; height: 1em; border-radius: .12em; box-shadow: 0 0 0 .08em rgba(0, 0, 0, .35); background: linear-gradient(180deg, #fff 0 33.300%, #1c57c9 33.300% 66.600%, #d52b1e 66.600%); }
.plate--lg { font-size: 26px; }
.plate--sm { font-size: 13px; }

/* ───────── вход ───────── */
.login { display: grid; gap: 22px; padding-top: 12px; }
.login__hero { text-align: center; }
.login__hero h1 { margin-bottom: 8px; }
.login__driver { margin: 14px auto 0; max-width: 460px; padding: 10px 14px; border-radius: 12px; background: #fff7e6; color: #6b4a00; font-size: 14px; line-height: 1.45; }
.login__driver a { color: inherit; font-weight: 600; white-space: nowrap; }
.driver-back { margin-bottom: 18px; text-align: center; }
.driver-back .u-sub { max-width: 460px; margin-inline: auto; }
.login-steps { display: grid; gap: 10px; margin: 20px 0 2px; padding: 0; counter-reset: s; }
.login-steps li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.35; color: var(--u-text); counter-increment: s; }
.login-steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--u-mint); color: var(--u-green-ink); font-weight: 800; font-size: 13px; flex: none; }
.call { text-align: center; }
.call__num { display: block; font-size: clamp(28px, 9vw, 38px); font-weight: 800; letter-spacing: -.01em; color: var(--u-ink) !important; text-decoration: none; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.call__wait { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 600; color: var(--u-muted); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--u-line-2); border-top-color: var(--u-green); animation: u-spin .8s linear infinite; flex: none; }
@keyframes u-spin { to { transform: rotate(360deg); } }
.call__bar { height: 4px; border-radius: 4px; background: var(--u-line); overflow: hidden; margin-top: 16px; }
.call__bar i { display: block; height: 100%; background: var(--u-green); width: 100%; transform-origin: left; }
details.u-more { border-top: 1px solid var(--u-line); margin-top: 16px; padding-top: 12px; }
details.u-more summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--u-muted); list-style: none; min-height: 32px; display: flex; align-items: center; }
details.u-more summary::-webkit-details-marker { display: none; }
details.u-more summary::after { content: "›"; margin-left: 6px; transition: transform .15s; }
details.u-more[open] summary::after { transform: rotate(90deg); }

/* ───────── кабинет: список моек ───────── */
.wlist { display: grid; gap: 14px; }
@media (min-width: 720px) { .wlist { grid-template-columns: 1fr 1fr; } }
.wcard { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 12px; background: #fff; border: 1px solid var(--u-line); border-radius: var(--u-r); text-decoration: none; color: inherit !important;
  box-shadow: var(--u-shadow); transition: transform .15s, border-color .15s; align-items: center; }
.wcard:hover { border-color: #b9c6bf; transform: translateY(-1px); }
.wcard__img { width: 104px; height: 104px; border-radius: 13px; object-fit: cover; background: var(--u-mint-2); }
.wcard__name { font-weight: 750; color: var(--u-ink); font-size: 16.5px; line-height: 1.2; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wcard__addr { font-size: 13.5px; color: var(--u-muted); margin: 4px 0 8px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wcard__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.wadd { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 104px; border: 2px dashed #b9c6bf; border-radius: var(--u-r); text-decoration: none; font-weight: 700;
  color: var(--u-green-d) !important; background: rgba(255,255,255,.5); }
.wadd:hover { background: #fff; border-color: var(--u-green); }
.empty { text-align: center; padding: 34px 18px; }
.empty__ico { font-size: 44px; line-height: 1; margin-bottom: 10px; }

/* ───────── кабинет: мойка ───────── */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px 8px; scrollbar-width: none; position: sticky; top: 60px; z-index: 30; background: linear-gradient(var(--u-bg) 82%, transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--u-line); font-weight: 650; font-size: 14.5px; color: var(--u-text) !important; text-decoration: none; white-space: nowrap; }
.tabs a.is-on { background: var(--u-ink); border-color: var(--u-ink); color: #fff !important; }
.tabs a b { background: var(--u-red); color: #fff; border-radius: 999px; font-size: 11.5px; padding: 1px 6px; margin-left: 4px; }
.sect { scroll-margin-top: 124px; }
.qswitch { display: flex; align-items: center; gap: 14px; }
.qswitch__btn { position: relative; width: 68px; height: 40px; border-radius: 999px; border: 0; background: #c9d2cd; cursor: pointer; flex: none; transition: background .2s; padding: 0; }
.qswitch__btn::after { content: ""; position: absolute; top: 4px; left: 4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s; }
.qswitch__btn.is-on { background: var(--u-green); }
.qswitch__btn.is-on::after { transform: translateX(28px); }
.qswitch__t { font-weight: 750; color: var(--u-ink); font-size: 17px; }
.copy { display: flex; gap: 8px; align-items: stretch; }
.copy input { flex: 1; min-width: 0; font-size: 14px; background: var(--u-bg); border-color: var(--u-line); color: var(--u-text); text-overflow: ellipsis; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .photos { grid-template-columns: repeat(6, 1fr); } }
.ph { position: relative; aspect-ratio: 1; border-radius: 13px; overflow: hidden; background: var(--u-mint-2); border: 1px solid var(--u-line); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph__del { position: absolute; top: 5px; right: 5px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(12,20,17,.72); color: #fff; font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.ph__main { position: absolute; left: 5px; bottom: 5px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.92); border: 0; border-radius: 8px; padding: 4px 7px; cursor: pointer; color: var(--u-ink); }
.ph--first .ph__main { background: var(--u-green); color: #fff; pointer-events: none; }
.ph--add { display: grid; place-items: center; border: 2px dashed #b9c6bf; background: transparent; cursor: pointer; color: var(--u-green-d); font-weight: 700; font-size: 13px; text-align: center; padding: 6px; line-height: 1.25; }
.ph--add span { font-size: 26px; display: block; line-height: 1; margin-bottom: 2px; }
.ph--load::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.6) ; }
.ph--load::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 50%; margin: -11px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; border-top-color: var(--u-green); animation: u-spin .8s linear infinite; }
.mapbox { height: 300px; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--u-line-2); background: #e9eeeb; position: relative; }
.mapbox__hint { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 5; background: rgba(12,20,17,.82); color: #fff; font-size: 13px; padding: 8px 12px; border-radius: 10px; text-align: center; pointer-events: none; }
.found { display: grid; gap: 8px; margin-top: 10px; }
.found__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--u-line); border-radius: 13px; background: #fff; }
.found__item b { display: block; color: var(--u-ink); font-size: 15px; line-height: 1.25; }
.found__item small { color: var(--u-muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats--5 { grid-template-columns: repeat(5, 1fr); } }
.stat { background: #fff; border: 1px solid var(--u-line); border-radius: 15px; padding: 14px; }
.stat b { display: block; font-size: 28px; font-weight: 800; color: var(--u-ink); letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--u-muted); line-height: 1.3; display: block; margin-top: 4px; }
.stat--accent { background: var(--u-ink); border-color: var(--u-ink); } .stat--accent b { color: #fff; } .stat--accent span { color: #a9b8b0; }
.stat--alert { border-color: #f1dca0; background: #fffaf0; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin-top: 12px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.bars i { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: var(--u-green); min-height: 3px; opacity: .9; }
.bars i.is-zero { background: var(--u-line); }
.bars span { font-size: 10px; color: var(--u-muted); margin-top: 5px; white-space: nowrap; }
.bars em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--u-ink); margin-bottom: 3px; }
.qrbox { display: grid; place-items: center; background: #fff; border: 1px solid var(--u-line); border-radius: 16px; padding: 12px; }
.qrbox svg { width: 100%; max-width: 240px; height: auto; display: block; }

/* ───────── очередь: общая доска (водитель) ───────── */
.qb { background: #fff; border: 1px solid var(--u-line); border-radius: var(--u-r); box-shadow: var(--u-shadow); overflow: hidden; }
.qb__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--u-line); }
.qb__head strong { font-size: 17px; color: var(--u-ink); letter-spacing: -.01em; }
.qrow { display: grid; grid-template-columns: 34px auto 1fr; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #eef2ef; }
.qrow:last-child { border-bottom: 0; }
.qpos { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #eef1ef; font-weight: 800; color: var(--u-ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.qstatus { text-align: right; font-size: 13.5px; color: var(--u-muted); font-weight: 600; line-height: 1.25; }
.qrow--called { background: #fffaf0; } .qrow--called .qpos { background: #ffd978; }
.qrow--called .qstatus { color: var(--u-amber); }
.qrow--wash .qpos { background: var(--u-blue-bg); font-size: 16px; } .qrow--wash .qstatus { color: #0f4fae; }
.qrow--you { background: var(--u-mint-2); box-shadow: inset 4px 0 0 var(--u-green); } .qrow--you .qpos { background: var(--u-green); color: #fff; }
.qb__empty { padding: 26px 16px; text-align: center; color: var(--u-muted); font-weight: 600; }
.q-timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.q-timer.is-low { color: var(--u-red); }
.ticket { border-radius: 22px; padding: 20px; color: #fff; background: linear-gradient(150deg, #0d2a1b, #0c1411 70%); position: relative; overflow: hidden; margin-bottom: 14px; box-shadow: 0 20px 40px -24px rgba(12,20,17,.8); }
.ticket::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,200,90,.35), transparent); pointer-events: none; }
.ticket__k { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7fe0a6; }
.ticket__t { font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 12px !important; color: #fff; }
.ticket__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ticket__big { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket__big small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: #a9b8b0; display: block; margin-top: 4px; }
.ticket__text { color: #c9d6cf; font-size: 14.5px; line-height: 1.45; margin-top: 12px !important; position: relative; z-index: 1; }
.ticket--called { background: linear-gradient(150deg, #7a4b00, #2a1c05 75%); } .ticket--called .ticket__k { color: #ffd978; } .ticket--called::after { background: radial-gradient(closest-side, rgba(255,190,60,.4), transparent); }
.ticket--entered { background: linear-gradient(150deg, #006b30, #0c1411 85%); }
.ticket--missed, .ticket--removed, .ticket--left { background: linear-gradient(150deg, #3a4741, #171d1a); } .ticket--missed .ticket__k, .ticket--removed .ticket__k, .ticket--left .ticket__k { color: #c9d6cf; }
.ticket .u-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff !important; position: relative; z-index: 1; margin-top: 14px; }
.ticket .plate { position: relative; z-index: 1; }
#qwrap.is-stale { opacity: .6; }
#qwrap.is-stale::before { content: "Нет связи — показаны последние данные"; display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--u-red); margin-bottom: 8px; }
.joinbox { margin-top: 14px; }
.joinbox form { display: grid; gap: 10px; }
.rules { display: grid; gap: 10px; margin-top: 14px; }
.rules li { list-style: none; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.45; }
.rules li > span { width: 34px; height: 34px; border-radius: 11px; background: var(--u-mint); display: grid; place-items: center; font-size: 17px; }
.rules { padding: 0; margin-bottom: 0; }
.rules b { color: var(--u-ink); }

/* ───────── панель администратора мойки ───────── */
.psum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.psum div { background: #fff; border: 1px solid var(--u-line); border-radius: 15px; padding: 12px 10px; text-align: center; }
.psum b { display: block; font-size: 26px; font-weight: 800; color: var(--u-ink); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.psum span { font-size: 12px; color: var(--u-muted); line-height: 1.2; display: block; margin-top: 2px; }
.ph2 { font-size: 13px !important; font-weight: 700 !important; letter-spacing: .07em !important; text-transform: uppercase; color: var(--u-muted) !important; margin: 20px 2px 8px !important; }
.prow { background: #fff; border: 1px solid var(--u-line); border-radius: 16px; padding: 12px; margin-bottom: 8px; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; box-shadow: 0 1px 2px rgba(12,20,17,.04); }
.prow__info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.prow__st { font-size: 13.5px; font-weight: 650; color: var(--u-muted); }
.prow__acts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.prow__acts form { display: contents; }
.prow--called { border-color: #f0cf7a; background: #fffaf0; } .prow--called .prow__st { color: var(--u-amber); }
.prow--wash { border-color: #c5dbfb; background: #f6faff; } .prow--wash .prow__st { color: #0f4fae; }
.prow--missed { opacity: .92; border-style: dashed; }
.ptag { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #eef1ef; color: #47524d; }
.pbtn { min-height: 48px; border-radius: 13px; border: 0; font-weight: 750; font-size: 16px; cursor: pointer; padding: 8px 16px; }
.pbtn--ok { background: var(--u-green); color: #fff; }
.pbtn--ghost { background: #fff; border: 1.5px solid var(--u-line-2); color: var(--u-ink); }
.pbtn--del { background: #fff; border: 1.5px solid #efc4bf; color: var(--u-red); min-width: 52px; }
.pbtn:active { transform: scale(.98); } .pbtn[disabled] { opacity: .5; }
.padd { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 14px; }
.padd .u-input--plate { font-size: 19px; min-height: 52px; text-align: left; padding-left: 16px; }
.pempty { background: #fff; border: 1.5px dashed var(--u-line-2); border-radius: 16px; padding: 22px; text-align: center; color: var(--u-muted); font-weight: 600; }
.dlg { border: 0; border-radius: 22px; padding: 22px; max-width: min(380px, calc(100vw - 32px)); width: 100%; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); color: var(--u-text); }
.dlg::backdrop { background: rgba(12,20,17,.55); backdrop-filter: blur(3px); }
.dlg h2 { margin-bottom: 8px; }

/* ───────── админка сайта ───────── */
.adm { display: grid; gap: 18px; }
.adm-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.adm-nav::-webkit-scrollbar { display: none; }
.adm-nav a { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; font-weight: 650; font-size: 14.5px; color: var(--u-text) !important; text-decoration: none; white-space: nowrap; }
.adm-nav a:hover { background: #fff; }
.adm-nav a.is-on { background: var(--u-ink); color: #fff !important; }
.adm-nav b { background: var(--u-red); color: #fff; border-radius: 999px; font-size: 11.5px; padding: 1px 7px; font-weight: 700; }
@media (min-width: 960px) {
  .adm { grid-template-columns: 216px 1fr; align-items: start; gap: 26px; }
  .adm-nav { flex-direction: column; position: sticky; top: 80px; margin: 0; padding: 0; overflow: visible; }
  .adm-nav a { justify-content: space-between; }
  .page-admin .u-wrap, .page-admin .u-top__in { max-width: 1240px; }
}
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--u-muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--u-line); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid #eef2ef; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl a { font-weight: 650; text-decoration: none; }
.tbl small { color: var(--u-muted); display: block; font-size: 13px; }
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 8px; }
@media (max-width: 719px) {
  .tbl--cards thead { display: none; }
  .tbl--cards, .tbl--cards tbody, .tbl--cards tr, .tbl--cards td { display: block; width: 100%; }
  .tbl--cards tr { padding: 12px 10px; border-bottom: 1px solid var(--u-line); }
  .tbl--cards tr:last-child { border-bottom: 0; }
  .tbl--cards td { padding: 2px 0; border: 0; }
  .tbl--cards td[data-l]::before { content: attr(data-l) ": "; color: var(--u-muted); font-size: 13px; }
}
.search { display: flex; gap: 8px; margin-bottom: 14px; }
.search .u-input { min-height: 46px; }
.rev { display: grid; gap: 14px; }
@media (min-width: 720px) { .rev { grid-template-columns: 220px 1fr; } }
.rev__ph { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-content: start; }
.rev__ph img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; }
.rev__ph a:first-child { grid-column: 1 / -1; } .rev__ph a:first-child img { aspect-ratio: 16/10; }
.rev__text { white-space: pre-line; font-size: 14.5px; line-height: 1.5; background: var(--u-bg); border-radius: 12px; padding: 12px; margin-top: 10px; max-height: 220px; overflow: auto; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; }
.kv dt { color: var(--u-muted); } .kv dd { margin: 0; color: var(--u-ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.code-big { font-size: 34px; font-weight: 800; letter-spacing: .12em; color: var(--u-ink); font-variant-numeric: tabular-nums; }
.logrow { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef2ef; font-size: 14px; }
.logrow:last-child { border: 0; }
.logrow time { color: var(--u-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.logrow b { color: var(--u-ink); }

/* ───────── табло для телевизора ───────── */
.page-screen { margin: 0; background: #08100c; color: #fff; font-family: var(--u-font); min-height: 100vh; overflow: hidden; }
/* ---- табло для телевизора: шапка с часами, слева — кто заезжает следующим, справа — очередь по порядку ---- */
/* размеры табло считаются от меньшей стороны экрана (--tvu): на широком, узком, квадратном экране всё помещается */
.tv { --tvu: min(1vw, 1.4vh); display: grid; grid-template-rows: auto 1fr auto; height: 100vh; padding: calc(2.4 * var(--tvu)) calc(3 * var(--tvu)) calc(1.6 * var(--tvu)); box-sizing: border-box; gap: calc(2 * var(--tvu)); background: radial-gradient(120% 90% at 0% 0%, #12241b 0%, #08100c 60%); }
.tv__head { display: flex; align-items: flex-end; justify-content: space-between; gap: calc(3 * var(--tvu)); border-bottom: calc(.15 * var(--tvu)) solid #1d2c24; padding-bottom: calc(1.4 * var(--tvu)); }
.tv__name { min-width: 0; }
.tv__name small { display: block; font-size: calc(1.3 * var(--tvu)); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4be08a; margin-bottom: calc(.5 * var(--tvu)); }
.tv__name h1 { font-size: calc(3.4 * var(--tvu)); margin: 0; letter-spacing: -.02em; font-weight: 800; line-height: 1.05; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv__clock { font-size: calc(4.6 * var(--tvu)); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; flex: none; }
.tv__body { min-height: 0; overflow: hidden; }
.tv__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: calc(3 * var(--tvu)); height: 100%; align-items: stretch; }
.tv__grid--free { grid-template-columns: 1fr; }
.tv__next { display: grid; align-content: center; justify-items: center; gap: calc(2 * var(--tvu)); background: linear-gradient(160deg, #0f3a22, #0b2416); border: calc(.2 * var(--tvu)) solid #1f7a45; border-radius: calc(2.4 * var(--tvu)); padding: calc(2 * var(--tvu)); text-align: center; }
.tv__label { font-size: calc(2.3 * var(--tvu)); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #4be08a; }
.tv__next .plate { font-size: calc(5.6 * var(--tvu)); box-shadow: 0 calc(1.2 * var(--tvu)) calc(3 * var(--tvu)) -calc(1 * var(--tvu)) rgba(0, 0, 0, .7); }
.tv__hint { font-size: calc(2 * var(--tvu)); font-weight: 600; color: #b9cdc2; }
.tv__list { display: grid; align-content: start; gap: calc(.9 * var(--tvu)); min-width: 0; }
.tv__count { font-size: calc(1.7 * var(--tvu)); font-weight: 600; color: #8fa399; margin-bottom: calc(.4 * var(--tvu)); }
.tv__count b { color: #fff; font-size: calc(2.4 * var(--tvu)); font-weight: 800; margin-right: calc(.3 * var(--tvu)); }
.tv__row { display: grid; grid-template-columns: calc(4.2 * var(--tvu)) auto 1fr; gap: calc(1.6 * var(--tvu)); align-items: center; background: #101b15; border-radius: calc(1.3 * var(--tvu)); padding: calc(.9 * var(--tvu)) calc(1.5 * var(--tvu)); }
.tv__row .plate { font-size: calc(2.5 * var(--tvu)); }
.tv__pos { width: calc(3.8 * var(--tvu)); height: calc(3.8 * var(--tvu)); border-radius: 50%; background: #1d2c24; display: grid; place-items: center; font-size: calc(2 * var(--tvu)); font-weight: 800; color: #fff; }
.tv__at { white-space: nowrap; text-align: right; font-size: calc(2 * var(--tvu)); font-weight: 700; color: #8fa399; font-variant-numeric: tabular-nums; }
.tv__more { font-size: calc(1.7 * var(--tvu)); font-weight: 600; color: #8fa399; padding: calc(.6 * var(--tvu)) calc(1.5 * var(--tvu)); }
.tv__more--solo { padding: calc(2 * var(--tvu)) 0; }
.tv__free { display: grid; align-content: center; justify-items: center; gap: calc(1.6 * var(--tvu)); height: 100%; text-align: center; border-radius: calc(2.4 * var(--tvu)); background: linear-gradient(160deg, #0f3a22, #0b2416); border: calc(.2 * var(--tvu)) solid #1f7a45; }
.tv__free b { font-size: calc(8 * var(--tvu)); font-weight: 800; letter-spacing: -.03em; color: #4be08a; line-height: 1; }
.tv__free span { font-size: calc(2.8 * var(--tvu)); font-weight: 600; color: #d6e5dc; }
.tv__free--shut { background: #101b15; border-color: #1d2c24; } .tv__free--shut b { color: #c9d2cd; }
.tv__foot { display: flex; justify-content: space-between; align-items: center; gap: calc(3 * var(--tvu)); font-size: calc(1.45 * var(--tvu)); color: #8fa399; font-weight: 600; }
.tv__promo { color: #ffe9a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tv__promo b { background: #ffd978; color: #2e2100; border-radius: 999px; padding: calc(.25 * var(--tvu)) calc(.9 * var(--tvu)); margin-right: calc(1 * var(--tvu)); font-size: calc(1.15 * var(--tvu)); letter-spacing: .06em; text-transform: uppercase; }
.tv__site { flex: none; color: #fff; font-weight: 800; letter-spacing: .02em; }
@media (max-width: 800px), (orientation: portrait) {      /* планшет стоя или телефон: всё в один столбец */
  .page-screen { overflow: auto; } .tv { height: auto; min-height: 100vh; padding: 16px; gap: 14px; }
  .tv__name small { font-size: 11px; } .tv__name h1 { font-size: 22px; white-space: normal; } .tv__clock { font-size: 30px; }
  .tv__grid { grid-template-columns: 1fr; gap: 14px; } .tv__next { border-radius: 18px; padding: 18px 12px; gap: 12px; border-width: 2px; }
  .tv__label { font-size: 15px; } .tv__next .plate { font-size: 34px; } .tv__hint { font-size: 15px; }
  .tv__count { font-size: 14px; } .tv__count b { font-size: 18px; } .tv__row { grid-template-columns: 36px auto 1fr; gap: 10px; border-radius: 12px; padding: 8px 10px; }
  .tv__row .plate { font-size: 19px; } .tv__pos { width: 32px; height: 32px; font-size: 15px; } .tv__at, .tv__more { font-size: 14px; }
  .tv__free { padding: 40px 12px; border-radius: 18px; border-width: 2px; } .tv__free b { font-size: 38px; } .tv__free span { font-size: 17px; }
  .tv__foot { font-size: 12px; flex-wrap: wrap; } .tv__promo { white-space: normal; } .tv__promo b { font-size: 10px; padding: 2px 8px; margin-right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .page-app *, .page-screen * { animation: none !important; transition: none !important; } }
.prow > .prow__info:first-child { grid-column: 1 / -1; }

/* ───────── очередь: номера «лесенкой» — первый самый крупный, первые пять уменьшаются ───────── */
.qb__head > div { min-width: 0; }
.qb__sub { margin: 3px 0 0 !important; font-size: 14px; color: var(--u-muted); }
.qb__sub b { color: var(--u-ink); }
.qb__foot { margin: 0 !important; padding: 11px 16px 13px; font-size: 12.5px; line-height: 1.4; color: var(--u-muted); border-top: 1px solid #eef2ef; background: #fafcfb; }
.ql { list-style: none; margin: 0; padding: 14px 12px 14px; display: grid; gap: 8px; }
.ql__i { --s: 15px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 9px 14px 9px 10px; border-radius: 16px; background: #f4f7f5; position: relative; }
.ql__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #55635c; background: #fff; box-shadow: inset 0 0 0 1.5px #dfe6e2; font-variant-numeric: tabular-nums; }
.ql__p { min-width: 0; display: flex; }
.ql__i .plate { font-size: var(--s); }
.ql__t { text-align: right; line-height: 1.2; white-space: nowrap; padding-left: 4px; }
.ql__t small { display: block; font-size: 13.5px; font-weight: 700; color: #55635c; font-variant-numeric: tabular-nums; }
.ql__t em { display: block; font-style: normal; font-size: 11px; font-weight: 800; color: var(--u-green-d); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
/* первая — крупная карточка по центру */
.ql__i--1 { --s: 34px; grid-template-columns: 1fr; justify-items: center; gap: 10px; padding: 16px 14px 18px; background: radial-gradient(120% 140% at 100% 0%, #135c39 0%, #0c2a1c 55%, #0c1411 100%);
  box-shadow: 0 18px 34px -20px rgba(12, 20, 17, .85); margin-bottom: 4px; }
.ql__i--1 .ql__n { width: auto; height: auto; padding: 6px 13px; border-radius: 999px; display: inline-flex; white-space: nowrap; background: rgba(255, 255, 255, .12); box-shadow: none; color: #7fe0a6; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.ql__i--1 .ql__n { font-size: 0; }                  /* цифру «1» не показываем — и так написано «первая в очереди» */
.ql__i--1 .ql__n::after { content: "первая в очереди"; font-size: 12px; }
.ql__i--1 .ql__t { text-align: center; }
.ql__i--1 .ql__t small { color: #b7c7be; font-size: 14px; } .ql__i--1 .ql__t em { color: #7fe0a6; }
.ql__i--1 .plate { box-shadow: inset 0 0 0 .06em #fff, 0 .25em .6em rgba(0, 0, 0, .45); }
.ql__i--2 { --s: 21px; padding: 12px 14px 12px 10px; background: #eaf0ec; }
.ql__i--2 .ql__n { width: 40px; height: 40px; font-size: 17px; color: var(--u-ink); }
.ql__i--2 { grid-template-columns: 40px 1fr auto; }
.ql__i--3 { --s: 20px; padding: 11px 14px 11px 10px; }
.ql__i--3 .ql__n { color: var(--u-ink); }
.ql__i--4 { --s: 18px; }
.ql__i--5 { --s: 16px; }
.ql__i--rest { --s: 14px; padding: 7px 14px 7px 10px; background: #f8faf9; }
.ql__i--rest .ql__n { width: 28px; height: 28px; font-size: 13px; } .ql__i--rest { grid-template-columns: 28px 1fr auto; }
.ql__i--you:not(.ql__i--1) { background: var(--u-mint); box-shadow: inset 0 0 0 2px var(--u-green); }
.ql__i--you .ql__n { background: var(--u-green); color: #fff; box-shadow: none; }
.ql__i--1.ql__i--you { box-shadow: 0 0 0 3px var(--u-green), 0 18px 34px -20px rgba(12, 20, 17, .85); }
.ql__i--1.ql__i--you .ql__n { background: var(--u-green); color: #fff; }
@media (max-width: 380px) { .ql__i--1 { --s: 29px; } .ql__i--2 { --s: 19px; } .ql__i--3 { --s: 17.5px; } .ql__i--4 { --s: 16px; } .ql__i--5 { --s: 15px; } .ql__i { gap: 9px; } }
.share-fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 999px;
  background: var(--u-green); color: #fff; font: 700 15.5px/1 var(--u-font); cursor: pointer; box-shadow: 0 14px 30px -10px rgba(0,160,70,.75), 0 2px 6px rgba(0,0,0,.18); transition: transform .15s, background .15s; }
.share-fab:hover { background: var(--u-green-d); } .share-fab:active { transform: scale(.96); }
.queue-v2 { padding-bottom: 96px !important; }
.qb__empty { padding: 26px 18px 28px; }
.qb__empty p { margin: 0 0 6px !important; }
.qb__free { font-size: 26px; font-weight: 800; color: var(--u-green-d) !important; letter-spacing: -.02em; }
.qb__empty .u-btn { margin-top: 12px; min-width: 220px; }
@media (max-width: 800px) { .scr__free small { font-size: 15px; } .scr__row--1 { font-size: 17px; padding: 14px; } .scr__row--1 .plate { font-size: 21px; } .scr__row--1 .scr__pos { width: 42px; height: 42px; font-size: 18px; }
  .scr__row--2 .plate { font-size: 18px; } .scr__row--3 .plate { font-size: 16px; } .scr__row--5 .plate, .scr__row--rest .plate { font-size: 13px; } }

/* ───────── бот поддержки в админке ───────── */
.chatrow { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid #eef2ef; text-decoration: none; color: inherit !important; }
.chatrow:last-child { border-bottom: 0; }
.chatrow b { color: var(--u-ink); }
.chatrow__last { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px !important; }
.chatrow__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 70vh; overflow-y: auto; }
.msg { max-width: 86%; }
.msg__b { padding: 10px 13px; border-radius: 16px; background: #eef1ef; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.msg__m { font-size: 12px; color: var(--u-muted); margin: 3px 6px 0; }
.msg--bot, .msg--manager { align-self: flex-end; }
.msg--bot .msg__b { background: var(--u-mint); color: var(--u-green-ink); }
.msg--manager .msg__b { background: var(--u-ink); color: #fff; }
.msg--bot .msg__m, .msg--manager .msg__m { text-align: right; }
.lp-tg { background: #229ed9 !important; box-shadow: 0 10px 22px -10px rgba(34,158,217,.8); }

/* баннер под пятым номером */
.ql__ad { list-style: none; position: relative; border-radius: 16px; overflow: hidden; margin: 4px 0; background: #eef1ef; }
.ql__ad a { display: block; }
.ql__ad img { width: 100%; height: auto; max-height: 220px; object-fit: cover; display: block; }
.ql__ad span { position: absolute; right: 8px; top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: rgba(12,20,17,.55); padding: 3px 7px; border-radius: 999px; }
.reasons { display: grid; gap: 8px; }
.reasons__b { min-height: 52px; border-radius: 14px; border: 1.5px solid var(--u-line-2); background: #fff; font: 700 16px/1.2 var(--u-font); color: var(--u-ink); cursor: pointer; text-align: left; padding: 10px 16px; }
.reasons__b:hover { border-color: var(--u-red); background: var(--u-red-bg); }
.reasons__b:disabled { opacity: .45; cursor: not-allowed; background: #f3f5f4; border-color: var(--u-line); }
.prow--late { border-color: #efc4bf; background: var(--u-red-bg); }
.prow__late { color: var(--u-red); font-weight: 800; }

/* ───────── фон с неприметным тематическим рисунком, подвал служебных страниц ───────── */
.page-app { background-image: url(../img/bg-pattern.svg); background-size: 260px 260px; background-attachment: fixed; display: flex; flex-direction: column; }
.page-app > main { flex: 1 0 auto; width: 100%; }
.u-foot { margin-top: 28px; background: rgba(255, 255, 255, .86); border-top: 1px solid var(--u-line); color: var(--u-muted); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.u-foot__in { max-width: 1080px; margin: 0 auto; padding: 22px 16px 24px; display: grid; gap: 14px; }
.u-foot__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--u-ink) !important; font-weight: 800; }
.u-foot__brand img { width: 30px; height: 36px; object-fit: contain; }
.u-foot__brand small { display: block; font-size: 12px; font-weight: 500; color: var(--u-muted); }
.u-foot__nav { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.u-foot__nav a { color: var(--u-text) !important; text-decoration: none; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--u-line); font-weight: 600; transition: border-color .15s; }
.u-foot__nav a:hover { border-color: var(--u-green); }
.u-foot__c { font-size: 12.5px; color: #8a968f; }
@media (min-width: 760px) { .u-foot__in { grid-template-columns: auto 1fr auto; align-items: center; } .u-foot__nav { justify-content: center; } }

/* ───────── кабинет: шапка мойки, появление блоков ───────── */
.cab .sect, .cab .whead { animation: u-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.cab .sect:nth-of-type(2) { animation-delay: .04s; } .cab .sect:nth-of-type(3) { animation-delay: .08s; } .cab .sect:nth-of-type(4) { animation-delay: .12s; }
@keyframes u-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.is-fresh { animation: u-fresh .9s ease-out both !important; }
@keyframes u-fresh { 0% { box-shadow: 0 0 0 3px rgba(0, 160, 70, .45); } 100% { box-shadow: var(--u-shadow); } }
.u-card { transition: box-shadow .2s, border-color .2s; }
.whead { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px; margin-bottom: 14px; border-radius: 22px; color: #fff;
  background: radial-gradient(130% 150% at 100% 0%, #135c39 0%, #0c2a1c 52%, #0c1411 100%); box-shadow: 0 22px 44px -26px rgba(12, 20, 17, .9); position: relative; overflow: hidden; }
.whead::after { content: ""; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 210, 95, .28), transparent); pointer-events: none; }
.whead__img { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 3px rgba(255, 255, 255, .16); }
.whead__body { min-width: 0; position: relative; z-index: 1; }
.whead__t { color: #fff !important; font-size: clamp(21px, 5vw, 28px) !important; line-height: 1.12 !important; overflow-wrap: anywhere; }
.whead__a { color: #b7c7be; font-size: 14.5px; margin: 4px 0 10px !important; }
.whead__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.whead .u-chip { background: rgba(255, 255, 255, .14); color: #fff; }
.whead .u-chip--ok { background: rgba(0, 200, 90, .28); color: #c9f7dc; } .whead .u-chip--bad { background: rgba(229, 57, 53, .32); color: #ffd9d6; } .whead .u-chip--wait { background: rgba(255, 190, 60, .26); color: #ffe6ad; }
@media (max-width: 420px) { .whead { grid-template-columns: 72px 1fr; gap: 12px; } .whead__img { width: 72px; height: 72px; } }
.qmini { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.qmini__i { display: inline-flex; align-items: center; gap: 6px; }
.qmini__i i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--u-muted); }

/* ссылки мойки */
.links { display: grid; gap: 10px; margin-top: 14px; }
.lrow { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--u-line); border-radius: 16px; background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.lrow:hover { border-color: #b9c6bf; transform: translateY(-1px); box-shadow: 0 10px 22px -16px rgba(12, 20, 17, .5); }
.lrow__ico { width: 44px; height: 44px; border-radius: 13px; background: var(--u-mint); display: grid; place-items: center; font-size: 21px; }
.lrow--adm { border-color: #bfe6cd; background: linear-gradient(180deg, var(--u-mint-2), #fff); } .lrow--adm .lrow__ico { background: var(--u-green); }
.lrow__body { min-width: 0; }
.lrow__t { font-weight: 750; font-size: 16px; color: var(--u-ink) !important; text-decoration: none; }
.lrow__t:hover { text-decoration: underline; }
.lrow__h { font-size: 13.5px; color: var(--u-muted); line-height: 1.35; margin: 2px 0 6px !important; }
.lrow__u { width: 100%; border: 0; background: var(--u-bg); border-radius: 8px; padding: 5px 8px; font-size: 12.5px; color: #47524d; text-overflow: ellipsis; }
@media (max-width: 480px) { .lrow { grid-template-columns: 40px 1fr; } .lrow > .u-btn { grid-column: 1 / -1; } .lrow__ico { width: 40px; height: 40px; } }

/* метка «сохранено» */
.saved { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; transition: opacity .6s; }
.saved:empty { display: none; }
.saved--ok { background: var(--u-mint); color: var(--u-green-ink); animation: u-pop .3s ease-out; }
.saved--busy { background: #eef1ef; color: #55635c; }
.saved--err { background: var(--u-red-bg); color: #9a261d; }
.saved.is-fade { opacity: 0; }
@keyframes u-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* график работы: дни — столбцы, часы — строки */
.sched__tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 12px; }
.sched { display: grid; grid-template-columns: 46px repeat(7, 1fr); gap: 3px; user-select: none; -webkit-user-select: none; touch-action: pan-y; max-width: 560px; }
.sched.is-paint { touch-action: none; }
.sched__corner { }
.sched__day { border: 0; background: var(--u-ink); color: #fff; font: 700 13px var(--u-font); border-radius: 9px; height: 34px; cursor: pointer; }
.sched__day:nth-of-type(n+6) { background: #7a2a25; }
.sched__hour { font-size: 11.5px; color: var(--u-muted); display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font-variant-numeric: tabular-nums; height: 24px; }
.sched__c { height: 24px; border-radius: 6px; background: #eef1ef; cursor: pointer; transition: background .12s, transform .08s; touch-action: none; }
.sched__c:hover { background: #dfe6e2; }
.sched__c.is-on { background: var(--u-green); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.sched__c.is-on:hover { background: var(--u-green-d); }
.sched__c:active { transform: scale(.92); }
.dayoff { border: 1px solid #efc4bf; background: var(--u-red-bg); color: #9a261d; font: 700 14px var(--u-font); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.dayoff:hover { background: #fbd9d5; }

/* QR-плакат в кабинете */
.qrp { display: grid; gap: 18px; margin-top: 12px; }
.qrp__img { display: block; width: 170px; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 30px -14px rgba(12, 20, 17, .6); transition: transform .2s; justify-self: center; }
.qrp__img:hover { transform: rotate(-1.5deg) scale(1.03); }
.qrp__img img { width: 100%; height: auto; }
@media (min-width: 560px) { .qrp { grid-template-columns: 190px 1fr; align-items: center; } }

/* уведомления в Telegram на билете водителя */
.tgn { position: relative; z-index: 1; margin-top: 14px; display: grid; gap: 6px; }
.tgn__btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 14px; background: #229ed9; color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 14px; text-align: center; box-shadow: 0 10px 22px -12px rgba(34, 158, 217, .9); }
.tgn__code { font-size: 12.5px; color: #a9b8b0; text-align: center; }
.tgn__code b { color: #fff; letter-spacing: .08em; }
.tgn__on { font-size: 14px; font-weight: 700; color: #7fe0a6; }

/* ───────── подробная статистика ───────── */
.seg { display: inline-flex; background: #e6ebe8; border-radius: 12px; padding: 3px; gap: 2px; }
.seg a { padding: 7px 13px; border-radius: 10px; font-weight: 700; font-size: 14px; color: #47524d !important; text-decoration: none; }
.seg a.is-on { background: #fff; color: var(--u-ink) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; margin-top: 14px; padding-bottom: 20px; position: relative; }
.chart__d { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 1px; position: relative; }
.chart__d i { display: block; width: 46%; border-radius: 4px 4px 1px 1px; min-height: 2px; transition: height .5s cubic-bezier(.2, .8, .2, 1); }
.chart__d i.v { background: #b9d6c6; } .chart__d i.j { background: var(--u-green); }
.chart__d span { position: absolute; bottom: -19px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--u-muted); white-space: nowrap; }
.chart__d:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% - 20px); left: 50%; transform: translateX(-50%); background: var(--u-ink); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 9px; border-radius: 9px; white-space: nowrap; z-index: 5; pointer-events: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--u-muted); margin-top: 8px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.heat { display: grid; grid-template-columns: 30px repeat(24, 1fr); gap: 2px; margin-top: 14px; font-size: 10px; color: var(--u-muted); }
.heat b { font-weight: 700; font-size: 12px; color: var(--u-ink); display: flex; align-items: center; }
.heat i { display: block; aspect-ratio: 1; border-radius: 3px; background: rgba(0, 160, 70, calc(var(--a) * .92 + .06)); }
.heat span { text-align: center; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin-top: 10px; font-size: 14.5px; }
.hbar div { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: #eef1ef; overflow: hidden; }
.hbar div i { display: block; height: 100%; border-radius: 8px; background: var(--u-green); }
.hbar b { color: var(--u-ink); }
.heat-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px 4px; }
.heat-wrap .heat { min-width: 520px; }
.chart__d:focus::after, .chart__d:active::after { content: attr(data-tip); position: absolute; bottom: calc(100% - 20px); left: 50%; transform: translateX(-50%); background: var(--u-ink); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 9px; border-radius: 9px; white-space: nowrap; z-index: 5; }
.boss { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; margin-bottom: 20px; border-radius: 18px; text-decoration: none; color: #fff !important;
  background: linear-gradient(135deg, #17325f, #0c1a33); box-shadow: 0 16px 34px -20px rgba(12, 26, 51, .9); transition: transform .15s; }
.boss:hover { transform: translateY(-1px); }
.boss__ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 23px; }
.boss__b b { display: block; font-size: 17px; } .boss__b small { display: block; font-size: 13px; color: #b9c6dd; margin-top: 2px; }
.tgbox { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.tgbox__ico { width: 48px; height: 48px; border-radius: 14px; background: #e3f3fc; display: grid; place-items: center; font-size: 23px; }
.tgbox__code { font-size: 16px; letter-spacing: .1em; color: var(--u-ink); }

/* ───────── панель администратора: плавающие «Показать QR» и «Записать машину» ───────── */
.page-panel > main { padding-bottom: 28px; }
.page-panel .u-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.pbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  width: min(560px, calc(100vw - 20px)); padding: 8px; border-radius: 24px; border: 1px solid var(--u-line);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 18px 40px -16px rgba(12, 20, 17, .5); }
.pbar__b { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; border-radius: 18px; border: 0; cursor: pointer; font: 800 16px/1.15 var(--u-font); text-align: left; padding: 8px 12px; transition: transform .12s; }
.pbar__b:active { transform: scale(.97); }
.pbar__b small { display: block; font-size: 11.5px; font-weight: 600; opacity: .8; margin-top: 2px; }
.pbar__b--qr { background: var(--u-ink); color: #fff; }
.pbar__b--add { background: var(--u-green); color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 160, 70, .9); }
.pbar__b:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 360px) { .pbar__b small { display: none; } .pbar__b { font-size: 14.5px; } }

/* меню разделов в кабинете: кнопки переносятся по строкам и не уходят за край экрана */
.cab .tabs { position: static; flex-wrap: wrap; overflow: visible; margin: 0 0 16px; padding: 0; background: none; gap: 8px; }
.cab .tabs a { flex: 1 1 auto; text-align: center; padding: 10px 12px; border-radius: 14px; min-width: 96px; transition: transform .12s, border-color .15s, background .15s; }
.cab .tabs a:hover { border-color: var(--u-green); transform: translateY(-1px); }
@media (min-width: 620px) { .cab .tabs a { flex: 0 1 auto; } }
.cab .sect { scroll-margin-top: 76px; }
.fmt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.fmt__b { min-width: 40px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--u-line-2); background: #fff; font: 600 15px var(--u-font); color: var(--u-ink); cursor: pointer; }
.fmt__b:hover { border-color: var(--u-green); }
.fmt__b--w { font-size: 13.500px; }
.fmt__h { font-size: 12.5px; color: var(--u-muted); }

/* ───────── страница очереди: плавающие кнопки внизу по центру ───────── */
.qbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  width: max-content; max-width: calc(100vw - 20px); background: rgba(255, 255, 255, .94); border: 1px solid var(--u-line);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); box-shadow: 0 16px 38px -14px rgba(12, 20, 17, .55); }
.qbar__b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  font: 750 15.5px/1 var(--u-font); background: #fff; color: var(--u-ink); box-shadow: inset 0 0 0 1.5px var(--u-line-2); transition: transform .12s; }
.qbar__b:active { transform: scale(.96); }
.qbar__b--go { background: var(--u-green); color: #fff; box-shadow: 0 10px 22px -10px rgba(0, 160, 70, .85); padding: 0 22px; font-size: 16.5px; }
.qbar__b--go:disabled { background: #8d9a93; box-shadow: none; cursor: not-allowed; }
.qbar__b[hidden] { display: none; }
@media (max-width: 360px) { .qbar__b { padding: 0 13px; font-size: 14.5px; } .qbar__b--go { padding: 0 15px; font-size: 15px; } }
@media (max-width: 480px) {
  .qbar__b--go:not([hidden]) ~ .qbar__b { width: 52px; padding: 0; }           /* рядом с «Встать в очередь» кнопка «Поделиться» — значком */
  .qbar__b--go:not([hidden]) ~ .qbar__b span { display: none; }
}

/* ───────── спецпредложение мойки: на странице мойки, в очереди и в предпросмотре кабинета ───────── */
.q-promo { position: relative; margin: 14px 0; padding: 15px 18px 16px; border-radius: 18px; background: linear-gradient(120deg, #fffaf0 0%, #fff1cc 55%, #ffe6ad 100%); border: 1px solid #efd68f; color: #4a3500; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 6px 18px -10px rgba(160, 110, 0, .45); isolation: isolate; }
.q-promo::after { content: "%"; position: absolute; right: 12px; top: -16px; font: 800 92px/1 var(--u-font); color: rgba(138, 90, 0, .07); pointer-events: none; z-index: -1; }
/* блеск: узкая светлая полоса раз в несколько секунд проходит по карточке — заметно, но не отвлекает */
.q-promo::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .75) 50%, rgba(255, 255, 255, 0) 100%); transform: translateX(-140%) skewX(-18deg); animation: promo-shine 7s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes promo-shine { 0% { transform: translateX(-140%) skewX(-18deg); } 16%, 100% { transform: translateX(440%) skewX(-18deg); } }
@media (prefers-reduced-motion: reduce) { .q-promo::before { animation: none; } }
.q-promo__tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; background: linear-gradient(180deg, #a06a00, #7d5100); color: #fff; border-radius: 999px; padding: 4px 10px; }
.q-promo__tag::before { content: ""; width: 9px; height: 9px; background: #ffe08a; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.q-promo__title { margin: 9px 0 0 !important; font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: #2e2100; overflow-wrap: anywhere; position: relative; }
.q-promo__text { margin: 4px 0 0 !important; font-size: 14.5px; line-height: 1.4; color: #5f4500; overflow-wrap: anywhere; position: relative; }
.q-promo--preview { margin-bottom: 0; }
.q-promo[hidden] { display: none; }
/* переключатель-галочка */
.pswitch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; color: var(--u-ink); }
.pswitch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pswitch i { position: relative; width: 52px; height: 32px; border-radius: 999px; background: #c9d2cd; flex: none; transition: background .2s; }
.pswitch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .2s; }
.pswitch input:checked + i { background: var(--u-green); }
.pswitch input:checked + i::after { transform: translateX(20px); }
.pswitch input:focus-visible + i { outline: 3px solid rgba(0, 160, 70, .35); outline-offset: 2px; }
.plate-hint { margin: -4px 0 0 !important; font-size: 13.5px; font-weight: 600; color: var(--u-amber); background: var(--u-amber-bg); border-radius: 10px; padding: 7px 10px; }
.plate-hint[hidden] { display: none; }
.plate-any { justify-self: start; font-size: 13.5px; }

/* подсказка под полем госномера: схема номера подсвечивается по мере ввода */
.u-input--plate.is-ok { border-color: var(--u-green); box-shadow: 0 0 0 3px rgba(0, 160, 70, .16); }
.pguide { display: grid; grid-template-columns: 1fr 2.2fr 1.6fr 1.5fr; gap: 6px; margin-top: 10px !important; }
.pguide[hidden] { display: none; }
.pguide__s { display: grid; justify-items: center; gap: 1px; padding: 6px 2px 5px; border-radius: 10px; background: #f1f4f8; border: 1.5px solid transparent; color: #8793a3; transition: background .15s, border-color .15s, color .15s; }
.pguide__s b { font: 800 17px/1.1 var(--u-font); letter-spacing: .08em; }
.pguide__s i { font-style: normal; font-size: 11px; font-weight: 600; }
.pguide__s--reg { background: #eaf1ff; }
.pguide__s.is-now { border-color: var(--u-blue, #1f6fe5); background: #fff; color: var(--u-ink); }
.pguide__s.is-done { background: #e3f6ea; color: #0b7a3b; }
.pguide.is-other .pguide__s { opacity: .45; }
.pguide__say { margin: 8px 0 0 !important; font-size: 14px; font-weight: 600; color: var(--u-muted); text-align: center; min-height: 20px; }
.pguide__say.is-ok { color: #0b7a3b; }
.plate-why { margin: 8px 0 0 !important; text-align: center; font-size: 13px; }
small.u-ok { color: #0b7a3b; }
small.u-warn { color: var(--u-amber); }
.invites .found__item { flex-wrap: wrap; }

/* плитки-кнопки внизу кабинета: инструкция, поддержка, имя, выход */
.u-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.u-tiles form { display: contents; }
.u-tile { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 14px; background: var(--u-surface); border: 1px solid var(--u-line); color: var(--u-ink) !important; text-decoration: none; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.u-tile svg { flex: none; color: var(--u-green-d); }
.u-tile b { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.u-tile small { display: block; font-size: 12.5px; color: var(--u-muted); line-height: 1.25; margin-top: 1px; }
.u-tile:hover { border-color: var(--u-line-2); box-shadow: 0 6px 16px -10px rgba(12, 20, 17, .35); transform: translateY(-1px); }
.u-tile:active { transform: none; }
.u-tile--quiet svg { color: var(--u-muted); }
@media (max-width: 420px) { .u-tiles { grid-template-columns: 1fr 1fr; } .u-tile { padding: 11px 10px; gap: 8px; } .u-tile b { font-size: 14px; } .u-tile small { font-size: 11.5px; } }
.lrow__t { display: inline-block; padding: 6px 0; margin: -6px 0; }

/* ── сворачиваемые разделы кабинета: список «значок — название — состояние», раскрывается по нажатию ── */
.acc__lead { margin: 18px 2px 8px !important; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--u-muted); }
.cab .acc { padding: 0; margin-bottom: 8px; overflow: hidden; animation: none; }
.acc__head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 20px; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; background: none; border: 0; font: inherit; text-align: left; color: var(--u-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.acc__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--u-mint-2); display: grid; place-items: center; font-size: 19px; }
.acc__t { font-size: 16.5px; font-weight: 750; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; }
.acc__st { font-size: 13px; font-weight: 600; color: var(--u-muted); text-align: right; max-width: 42vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc__chev { color: var(--u-muted); transition: transform .2s; }
.acc.is-open .acc__chev { transform: rotate(180deg); }
.acc.is-open .acc__head { border-bottom: 1px solid var(--u-line); background: var(--u-mint-2); }
.acc.is-open .acc__ico { background: #fff; }
.acc__head:hover .acc__t { color: var(--u-green-d); }
.acc__head:focus-visible { outline: 3px solid rgba(0, 160, 70, .35); outline-offset: -3px; border-radius: 18px; }
.acc__body { padding: 16px 16px 18px; }
.acc__body > :first-child { margin-top: 0 !important; }
.acc__body .u-sub { margin-top: 0 !important; }
.acc__saved { min-height: 0; text-align: right; margin-bottom: 4px; }
.acc__saved:empty, .acc__saved .saved:empty { display: none; }
@media (max-width: 420px) { .acc__head { grid-template-columns: 36px minmax(0, 1fr) auto 18px; gap: 9px; padding: 12px; } .acc__ico { width: 36px; height: 36px; font-size: 17px; } .acc__t { font-size: 15.5px; } .acc__st { font-size: 12px; max-width: 34vw; } .acc__body { padding: 14px 13px 16px; } }
/* график: по умолчанию видна только сводка; сетка и быстрые кнопки появляются после «Изменить график» */
.schedbox__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.schedbox__sum { margin: 0 !important; font-size: 15.5px; font-weight: 650; color: var(--u-ink); line-height: 1.45; }
.schedbox__edit { margin-top: 12px; }
.schedbox.is-locked .schedbox__editor { display: none; }
.schedbox:not(.is-locked) .schedbox__edit { display: none; }
.schedbox:not(.is-locked) .schedbox__editor { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--u-line-2); }
/* отступы в формах: между полями 16px, подпись над полем 7px, подсказка под полем 7px — ничего не слипается и не наезжает */
.u-fields > * + * { margin-top: 16px; }
.u-fields > * + .u-hint, .u-fields > * + .plate-hint, .u-field > .u-hint { margin-top: 7px !important; }
.u-label { align-items: baseline; flex-wrap: wrap; row-gap: 2px; line-height: 1.25; margin-bottom: 7px; }
.u-hint { line-height: 1.45; }
.u-check { align-items: flex-start; gap: 10px; line-height: 1.4; }
.dlg .u-fields > * + * { margin-top: 14px; }
.dlg h2 + .u-hint, .dlg h2 + p { margin-top: 8px !important; }
.dlg .u-btn + .u-btn, .dlg form + .u-btn, .dlg p + .u-btn { margin-top: 10px; }
/* сводка очереди: длинное значение («~2 ч 30 мин») не ломается на три строки */
.psum b { font-size: clamp(15px, 4.300vw, 24px); white-space: nowrap; }
.psum div { min-width: 0; padding: 12px 6px; }

.acc__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc__st { max-width: 38vw; }
.u-sub + form, .u-sub + .u-fields, .u-note + form, .acc__saved + .u-sub { margin-top: 14px; }

/* ───────── нижняя панель действий на телефоне: на всю ширину, две понятные кнопки с подписями ─────────
   Главная («Встать в очередь», «Записаться», «Записать машину») — зелёная, с мягким бликом; вторая — с подписью, не значком. */
@media (max-width: 700px) {
  .qbar, .pbar { left: 0; right: 0; bottom: 0; transform: none; width: auto; max-width: none; border-radius: 20px 20px 0 0; border: 0; border-top: 1px solid var(--u-line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; background: rgba(255, 255, 255, .97); box-shadow: 0 -10px 30px -12px rgba(12, 20, 17, .28); }
  .qbar { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .qbar__b { min-height: 54px; padding: 0 10px; border-radius: 16px; font-size: 15.5px; min-width: 0; }
  .qbar__b--go { font-size: 16.5px; padding: 0 12px; }
  .qbar__b--go:not([hidden]) ~ .qbar__b { width: auto; padding: 0 10px; }
  .qbar__b--go:not([hidden]) ~ .qbar__b span { display: inline; }
  .qbar__b--go[hidden] ~ .qbar__b { grid-column: 1 / -1; }
  .pbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .pbar__b { min-height: 58px; border-radius: 16px; padding: 8px 10px; gap: 8px; min-width: 0; }
  .pbar__b span { min-width: 0; }
  .page-panel .u-foot { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .queue-v2 { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
.qbar__b--go, .pbar__b--add, .wash-fab__btn--go { position: relative; overflow: hidden; isolation: isolate; }
.qbar__b--go:not(:disabled)::after, .pbar__b--add:not(:disabled)::after, .wash-fab__btn--go:not(.is-off)::after { content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 38%; z-index: -1;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .38), rgba(255, 255, 255, 0)); transform: translateX(-160%) skewX(-18deg); animation: btn-shine 5.5s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes btn-shine { 0% { transform: translateX(-160%) skewX(-18deg); } 18%, 100% { transform: translateX(420%) skewX(-18deg); } }
@media (prefers-reduced-motion: reduce) { .qbar__b--go::after, .pbar__b--add::after, .wash-fab__btn--go::after { animation: none; } }

/* ───────── панель администратора: строка машины в одну линию — место, номер, «Заехала», «Убрать» ───────── */
.prow { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 10px 10px 12px; gap: 8px 10px; }
.prow__info { display: grid; gap: 3px; justify-items: start; }
.prow__info .plate { font-size: 19px; }
.prow__st { font-size: 12.5px; line-height: 1.2; }
.prow__acts { grid-column: auto; display: flex; gap: 6px; align-items: center; }
.prow__acts .pbtn--ok { min-height: 46px; padding: 0 14px; font-size: 14.5px; white-space: nowrap; }
.prow__acts .pbtn--del { width: 46px; min-height: 46px; padding: 0; }
.ptag { margin-left: 6px; }
@media (max-width: 380px) { .prow { gap: 6px 8px; padding: 9px 8px 9px 10px; } .prow__info .plate { font-size: 17px; } .prow__acts .pbtn--ok { padding: 0 10px; font-size: 13.5px; } .prow__acts .pbtn--del { width: 42px; } }

/* пояснение для тех, кто записывается впервые */
.first { background: var(--u-blue-bg); border: 1px solid #cfe0fb; border-radius: 14px; padding: 12px 14px; font-size: 14.5px; line-height: 1.45; color: #1c3a66; }
.first p { margin: 6px 0 0 !important; }
.first ul { margin: 6px 0 0; padding-left: 20px; } .first li { margin: 2px 0; }
.first > b:first-child, .first summary { font-weight: 750; color: #123a78; }
.first summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.first summary::-webkit-details-marker { display: none; }
.first summary::after { content: "+"; font-size: 20px; line-height: 1; font-weight: 600; }
.first[open] summary::after { content: "–"; }
.first--alert { background: var(--u-amber-bg); border-color: #f1d27a; color: #5f4500; } .first--alert > b:first-child { color: #4a3500; font-size: 16px; }
.first--ok { background: var(--u-mint); border-color: #bfe8cf; color: var(--u-green-ink); margin-bottom: 0 !important; } .first--ok b { color: var(--u-green-ink); }
/* узкий телефон: номер в строке очереди ужимается, кнопки не налезают */
.prow__info { min-width: 0; overflow: hidden; }
.prow__info .plate { font-size: clamp(14px, 4.300vw, 19px); }
@media (max-width: 400px) { .prow__acts .pbtn--ok { padding: 0 9px; font-size: 13.5px; } .prow__acts .pbtn--del { width: 40px; } .prow { gap: 6px 7px; } }
/* окна: не выше экрана, длинное содержимое прокручивается внутри */
.dlg { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 420px) { .dlg { padding: 18px 16px; border-radius: 20px; } }
/* шапка на узком экране: кнопка справа в одну строку, название не обрезается раньше времени */
.u-top .u-btn--sm { white-space: nowrap; }
@media (max-width: 400px) { .u-top .u-btn--sm { font-size: 13px; padding-left: 10px; padding-right: 10px; } .u-brand { gap: 8px; } }
.prow__info { overflow: visible; }
.prow__info .plate { font-size: clamp(12.5px, 3.600vw, 18px); }
@media (max-width: 700px) { .qbar { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } .qbar__b { gap: 6px; padding: 0 8px; font-size: 14.5px; } .qbar__b svg { flex: none; } .qbar__b--go { font-size: 15.5px; } }

/* ───────── управление сервисом: меню разделов, списки-карточки, сворачиваемые блоки ───────── */
.adm-main { min-width: 0; }
.adm .acc { padding: 0; margin-bottom: 8px; overflow: hidden; animation: none; }
.acc__st.is-ok { color: var(--u-green-d); }
.acc__st.is-bad { color: var(--u-red); }
.acc__st.is-ok::before, .acc__st.is-bad::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.acc--new .acc__ico, .acc--new.is-open .acc__ico { background: var(--u-ink); color: #fff; }
.adm-cur { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto 20px; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; background: #fff; border: 1px solid var(--u-line); border-radius: 16px; font: inherit; text-align: left; color: var(--u-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.adm-cur__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--u-mint-2); display: grid; place-items: center; font-size: 19px; }
.adm-cur__t { font-size: 16.5px; font-weight: 750; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-cur__t small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--u-muted); }
.adm-cur__n { background: var(--u-red); color: #fff; border-radius: 999px; font-size: 12px; padding: 2px 8px; font-weight: 700; }
.adm-cur__all { font-size: 13px; font-weight: 650; color: var(--u-muted); }
.adm-cur .acc__chev { transition: transform .2s; }
.adm.is-nav .adm-cur .acc__chev { transform: rotate(180deg); }
.adm.is-nav .adm-cur { border-color: var(--u-line-2); }
.adm-nav i { font-style: normal; width: 22px; text-align: center; flex: none; }
.adm-nav a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 959px) {
  .adm { gap: 14px; }
  .adm-nav { display: none; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 0; padding: 0; overflow: visible; }
  .adm.is-nav .adm-nav { display: grid; }
  .adm-nav a { padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--u-line); min-height: 48px; font-size: 15px; }
  .adm-nav a.is-on { border-color: var(--u-ink); }
}
@media (min-width: 960px) { .adm-cur { display: none; } .adm-side { position: sticky; top: 80px; } .adm-nav { position: static; } }
/* переключатель из двух-трёх вариантов */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: #e9eeeb; border-radius: 14px; margin-bottom: 12px; max-width: 420px; }
.seg a { text-align: center; padding: 9px 10px; border-radius: 10px; font-weight: 650; font-size: 14.5px; color: var(--u-text) !important; text-decoration: none; white-space: nowrap; }
.seg a.is-on { background: #fff; color: var(--u-ink) !important; box-shadow: 0 1px 3px rgba(12, 20, 17, .12); }
/* список карточек: название и подпись — метки — действия */
.alist { display: grid; gap: 8px; }
.alist > .u-card { margin: 0; }
.arow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; animation: none; }
.arow--link { text-decoration: none; color: inherit !important; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; transition: border-color .15s; }
.arow--link .arow__chips { grid-column: 1; }
.arow--link .arow__go { grid-column: 2; grid-row: 1 / span 2; color: var(--u-muted); font-size: 22px; }
.arow--link:hover { border-color: var(--u-green); }
.arow--in { padding: 12px 0; border-top: 1px solid #eef2ef; }
.arow--in:first-of-type { border-top: 0; }
.arow__t { font-weight: 750; font-size: 16px; line-height: 1.25; color: var(--u-ink) !important; text-decoration: none; overflow-wrap: anywhere; }
a.arow__t:hover { color: var(--u-green-d) !important; }
.arow__m { margin: 3px 0 0 !important; font-size: 13.5px; color: var(--u-muted); line-height: 1.4; overflow-wrap: anywhere; }
.arow__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.arow__main .arow__chips { margin-top: 9px; }
.arow__chips a.u-chip { text-decoration: none; }
.arow__act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.arow__act form { display: contents; }
.arow__act .u-btn { flex: 1 1 auto; }
.arow__attach { display: flex !important; gap: 8px; flex: 1 1 100%; }
.arow__attach .u-select { flex: 1; min-width: 0; min-height: 40px; font-size: 14.5px; }
.arow__attach .u-btn { flex: none; }
.arow__more { flex: none; }
.arow__more summary { list-style: none; cursor: pointer; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--u-line); display: flex; align-items: center; font-weight: 650; font-size: 14px; color: var(--u-muted); }
.arow__more summary::-webkit-details-marker { display: none; }
.arow__more summary::after { content: "⋯"; margin-left: 6px; }
.arow__more[open] { flex: 1 1 100%; }
.arow__more[open] summary { display: inline-flex; background: var(--u-bg); }
.arow__more > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 12px; background: #fff7f6; border: 1px dashed #f0c9c4; }
@media (min-width: 720px) {
  .arow { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .arow--link { grid-template-columns: minmax(0, 1fr) auto 16px; }
  .arow--link .arow__chips { grid-column: 2; } .arow--link .arow__go { grid-column: 3; grid-row: 1; }
  .arow__act { justify-content: flex-end; max-width: 380px; } .arow__act .u-btn { flex: none; }
  .arow__attach { flex: 0 1 auto; }
}
/* строка «поле + кнопка» и ряд кнопок: на телефоне — в столбик на всю ширину */
@media (max-width: 560px) {
  .u-row--form > .u-input, .u-row--form > .u-btn { flex: 1 1 100%; }
  .u-row--stack { display: grid; grid-template-columns: 1fr; }
  .u-row--stack form { display: contents; }
  .u-row--stack .u-btn { width: 100%; }
  .search .u-input { min-width: 0; flex: 1; }
}
/* карточка госномера */
.pcard { display: grid; gap: 14px; justify-items: start; }
.pcard__act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.pcard__act form { display: contents; }
@media (min-width: 720px) { .pcard { grid-template-columns: auto 1fr; align-items: center; } .pcard__act { display: flex; flex-wrap: wrap; justify-content: flex-end; } }
/* таблица на телефоне: строка = карточка «подпись — значение» */
@media (max-width: 719px) {
  .tbl--kv tr { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px 12px; align-items: center; padding: 12px 10px; }
  .tbl--kv td { width: auto !important; font-size: 14px; }
  .tbl--kv td[data-l] { grid-column: 1 / -1; }
  .tbl--kv td.tbl__when { color: var(--u-muted); font-size: 12.5px; text-align: right; grid-column: 2; grid-row: 1; }
  .tbl--kv td:empty { display: none; }
  .tbl--kv td[colspan] { grid-column: 1 / -1; }
  .logrow { grid-template-columns: 1fr; gap: 2px; }
  .stat { padding: 12px; } .stat b { font-size: 24px; }
}

/* ───────── админка: дубли каталога, широкая строка под карточкой мойки ───────── */
.dbl { margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--u-blue-bg); border: 1px solid #cfe0fb; display: grid; gap: 8px; }
.dbl__t { font-weight: 750; font-size: 13.5px; color: #0f4fae; margin: 0 !important; }
.dbl__i { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #dbe6f8; }
.dbl__b { flex: 1 1 200px; min-width: 0; }
.dbl__b b { display: block; color: var(--u-ink); font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.dbl__b small { color: var(--u-muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.dbl__i form { flex: none; }
.dbl__man summary { cursor: pointer; font-size: 13.5px; font-weight: 650; color: #0f4fae; min-height: 32px; display: flex; align-items: center; }
.dbl__man .u-input { min-height: 40px; }
.arow__wide { grid-column: 1 / -1; }
.arow__wide:empty { display: none; }
.qlog summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--u-line); font-weight: 650; font-size: 14px; color: var(--u-muted); }
.qlog summary::-webkit-details-marker { display: none; }
.qlog summary::after { content: "▾"; transition: transform .15s; }
.qlog[open] summary { background: var(--u-bg); }
.qlog[open] summary::after { transform: rotate(180deg); }
.arow__wide .dbl { margin-top: 0; }

/* ───────── кабинет: мойка, где человек — администратор (карточка + две кнопки) ───────── */
.wjob { display: grid; gap: 8px; align-content: start; }
.wjob__act { display: flex; gap: 8px; flex-wrap: wrap; }
.wjob__act .u-btn { flex: 1 1 150px; }

/* ───────── просмотр фотографий: карусель по кругу поверх страницы (js/lightbox.js) ───────── */
.lbox-open { overflow: hidden; }
dialog.lbox { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 12, 10, .95); color: #fff; overflow: hidden; display: none; grid-template-rows: auto minmax(0, 1fr) auto;
  font: 400 15px/1.3 var(--u-font, system-ui, sans-serif); -webkit-tap-highlight-color: transparent; }
dialog.lbox[open] { display: grid; animation: lbox-in .18s ease-out; }
dialog.lbox::backdrop { background: rgba(8, 12, 10, .7); }
@keyframes lbox-in { from { opacity: 0; } }
.lbox *, .lbox *::before { box-sizing: border-box; }
.lbox__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 12px 8px 18px; }
.lbox__n { font-weight: 700; font-variant-numeric: tabular-nums; opacity: .85; }
.lbox__x, .lbox__nav { -webkit-appearance: none; appearance: none; border: 0; margin: 0; padding: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14);
  border-radius: 50%; display: grid; place-items: center; transition: background .15s, transform .12s; }
.lbox__x { width: 46px; height: 46px; flex: none; }
.lbox__x:hover, .lbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lbox__x:active, .lbox__nav:active { transform: scale(.93); }
.lbox :focus-visible { outline: 3px solid rgba(255, 255, 255, .75); outline-offset: 2px; }
.lbox__stage { min-height: 0; min-width: 0; display: grid; place-items: center; overflow: hidden; touch-action: pan-y pinch-zoom; cursor: zoom-out; }
.lbox__img { display: block; max-width: 100vw; max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none; cursor: default; will-change: transform; }
.lbox--one .lbox__img { max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); }
.lbox__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; z-index: 2; }
.lbox__nav--prev { left: 10px; } .lbox__nav--next { right: 10px; }
.lbox__strip { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; scrollbar-width: none; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); }
.lbox__strip::-webkit-scrollbar { display: none; }
.lbox__th { -webkit-appearance: none; appearance: none; flex: none; width: 66px; height: 46px; padding: 0; border: 0; border-radius: 9px; overflow: hidden; cursor: pointer;
  background: rgba(255, 255, 255, .1); opacity: .5; transition: opacity .15s; }
.lbox__th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbox__th:hover { opacity: .8; }
.lbox__th[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.lbox--one .lbox__nav, .lbox--one .lbox__strip, .lbox--one .lbox__n { display: none; }
@media (max-width: 560px) { .lbox__nav { width: 40px; height: 40px; margin-top: -20px; background: rgba(8, 12, 10, .45); } .lbox__nav--prev { left: 6px; } .lbox__nav--next { right: 6px; } }
@media (prefers-reduced-motion: reduce) { dialog.lbox[open] { animation: none; } }
a[data-lb] { cursor: zoom-in; }

/* ───────── кабинет: советы по фотографиям ───────── */
.phtips { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--u-mint-2); border: 1px solid #d5ecdd; }
.phtips__t { font-weight: 750; font-size: 14.5px; color: var(--u-green-ink); margin: 0 0 6px !important; }
.phtips ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14px; line-height: 1.45; color: var(--u-text); }
.phtips b { color: var(--u-ink); font-weight: 700; }

.queue-v2__back { display: inline-block; margin: 18px 0 6px; }

/* ───────── сводка управляющего: периоды, сравнение, полосы ───────── */
@media (min-width: 720px) { .stats--6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .stats--6 { grid-template-columns: repeat(6, 1fr); } }
.seg.seg--wide { max-width: 640px; width: 100%; margin-bottom: 0; }
.seg--wide a { text-align: center; padding: 7px 4px; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 560px) { .seg.seg--wide { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); } }
.dlt { font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--u-muted); }
.dlt--up { color: #00843a; } .dlt--down { color: #b4432f; }
.stat--accent .dlt { color: #a9b8b0; } .stat--accent .dlt--up { color: #7fe0a6; } .stat--accent .dlt--down { color: #ffb4a6; }
.adm-2 { display: grid; gap: 14px; margin-top: 14px; }
.adm-2 + .u-card, .adm-2 + .ph2 { margin-top: 14px; }
@media (min-width: 900px) { .adm-2 { grid-template-columns: 1fr 1fr; } }
.adm-2 .u-card { margin: 0; }
.fbars { display: grid; gap: 12px; margin-top: 6px; }
.fbar__t { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; margin-bottom: 5px; }
.fbar__t span { color: var(--u-text); min-width: 0; }
.fbar__t b { color: var(--u-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fbar__t small { color: var(--u-muted); font-weight: 600; font-size: 12.5px; }
.fbar > i { display: block; height: 8px; border-radius: 4px; background: var(--u-green); min-width: 2px; }
.fbar > i.is-muted { background: #9fb1a8; }
.sumkv { display: grid; gap: 0; }
.sumkv div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef2ef; font-size: 14.5px; }
.sumkv div:last-child { border-bottom: 0; }
.sumkv span { color: var(--u-muted); } .sumkv b { color: var(--u-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart--dense { gap: 2px; }
.chart__d i.j--ink { background: var(--u-ink); }
.dlt--inv.dlt--up { color: #b4432f; } .dlt--inv.dlt--down { color: #00843a; }
.stat--accent .dlt--inv.dlt--up { color: #ffb4a6; } .stat--accent .dlt--inv.dlt--down { color: #7fe0a6; }
/* сводка: выбор дня и своего периода */
.dpick { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; margin: -6px 0 6px; }
.dpick__day { display: flex; align-items: flex-end; gap: 6px; }
.dpick__day > .u-btn { min-width: 40px; font-size: 18px; line-height: 1; }
.dpick__day .is-off { opacity: .35; pointer-events: none; }
.dpick label { display: grid; gap: 3px; }
.dpick label span { font-size: 12px; color: var(--u-muted); font-weight: 600; }
.dpick .u-input { min-height: 38px; padding: 6px 10px; width: auto; font-size: 14.5px; }
.dpick__range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; }
@media (max-width: 560px) { .dpick__range { width: 100%; } .dpick__range label { flex: 1; } .dpick__range .u-input { width: 100%; } }
