/* Портал руководителя WMS Central. Облик — форк WMS Delivery PWA: цвет значка (хвоя), реестр с линейками,
   жёлтый складской разметки — только «внимание». Цвета ячеек стеллажа — семантические, как «Отчёт по стеллажам»
   планшета и отчёт БП (синяя — товар, коричневая — полная, серая — другой товар, белая — пусто). */

@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('./vendor/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('./vendor/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+2212, U+2215;
}

:root {
  color-scheme: light dark;
  --bg: #F5F7F3; --surface: #FFFFFF; --text: #16201B; --muted: #56655C; --line: #DCE2DA; --track: #E3E8E1;
  --brand: #12653C; --on-brand: #FFFFFF; --ok: #12653C; --ok-bg: #E2F0E7; --mark: #F2B705;
  --warn: #7A5600; --warn-bg: #FFF3C7; --error: #B3261E; --error-bg: #FBE7E4; --idle: #93A096;
  --btn: #12653C; --on-btn: #FFFFFF; --desk: #E4EAE2;
  /* ячейки стеллажа (Theme.kt: FreeDrums*, CellFull*, NeutralChip/Text) */
  --c-target: #E3EDFF; --c-target-b: #5B7FBD; --c-target-t: #2E4A7A;
  --c-full: #D7CCC8; --c-full-b: #6D4C41; --c-full-t: #4E342E;
  --c-other: #E7E5DE; --c-other-b: #8A948C; --c-other-t: #4B504A;
  --c-empty: #FFFFFF; --c-empty-b: #DCE2DA; --c-empty-t: #93A096;
  --t-cap: 13px; --t-body: 15px; --t-name: 17px; --t-qty: 22px; --t-total: 28px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bar-h: 56px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1F15; --surface: #102A1D; --text: #F0F4EE; --muted: #9FB3A6; --line: #21402F; --track: #24452F;
    --brand: #0E4D2F; --on-brand: #F0F4EE; --btn: #2B9A61; --on-btn: #04140C;
    --ok: #63D194; --ok-bg: #143824; --warn: #F2B705; --warn-bg: #3A3006; --error: #FF9A8F; --error-bg: #3D1714; --idle: #5F7868;
    --desk: #061710;
    --c-empty: #102A1D; --c-empty-b: #2E5340; --c-empty-t: #7E9787;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body { font: 400 var(--t-body)/1.35 'Golos Text', -apple-system, 'Segoe UI', Roboto, sans-serif; font-variant-numeric: tabular-nums; overscroll-behavior-y: none; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h2 { font-size: var(--t-name); font-weight: 600; margin: 0; }
p { margin: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }

.page { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(24px + var(--safe-bottom)); }
.empty { padding: 28px 16px; color: var(--muted); }
.muted { color: var(--muted); }
.actions { display: flex; flex-direction: column; gap: 10px; padding: 16px; }

/* Шапка */
.bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 6px; background: var(--brand); color: var(--on-brand);
  padding: calc(6px + var(--safe-top)) 6px 6px 8px; min-height: calc(var(--bar-h) + var(--safe-top)); }
.bar-title { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-left: 4px; }
.bar-title b { font-size: var(--t-name); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title small { opacity: .82; font-size: var(--t-cap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-right { display: flex; align-items: center; }
.bar-brand { font-weight: 700; color: var(--on-brand); white-space: nowrap; pointer-events: none; letter-spacing: .01em; }
.icon { background: transparent; border: 0; color: inherit; font-size: 24px; width: 44px; height: 44px; border-radius: 8px; line-height: 1; }
.icon:active { background: rgba(255,255,255,.16); }
.icon:disabled { opacity: .6; }
.icon-space { width: 4px; }
.bar-btn { background: transparent; border: 1.5px solid rgba(255,255,255,.45); color: inherit; border-radius: 8px; min-height: 36px; padding: 4px 10px; margin-left: 4px; font-size: var(--t-cap); font-weight: 600; }
.bar-btn:active { background: rgba(255,255,255,.16); }
.icon .spin { display: inline-block; animation: spin 1s linear infinite; }
.link-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; padding: 4px 8px; border-radius: 4px; background: rgba(0,0,0,.2); }
.link-badge i { width: 8px; height: 8px; border-radius: 50%; background: #7BE0A6; }
.link-badge.bridge, .link-badge.offline { background: var(--mark); color: #2B1F00; font-weight: 600; }
.link-badge.bridge i, .link-badge.offline i { background: #2B1F00; }
@media (min-width: 600px) {
  .bar-brand { position: absolute; left: 50%; top: calc(50% + var(--safe-top) / 2); transform: translate(-50%, -50%); font-size: var(--t-name); }
  .bar-title { flex: 0 1 auto; max-width: calc(50% - 120px); margin-right: auto; }
}
@media (max-width: 599px) {
  :root { --bar-h: 76px; }
  .bar { flex-wrap: wrap; row-gap: 0; }
  .bar-brand { order: -1; flex: 0 0 100%; text-align: center; font-size: var(--t-cap); line-height: 18px; opacity: .9; }
}

/* Кнопки, плашки */
.btn { border: 1.5px solid var(--line); background: var(--surface); border-radius: 8px; padding: 10px 14px; min-height: 48px; font-weight: 600; font-size: var(--t-body); }
.btn:active { filter: brightness(.94); }
.btn.primary { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; }
.banner { display: block; width: 100%; margin: 0; padding: 12px 16px 12px 12px; border: 0; border-bottom: 1px solid var(--line); border-left: 4px solid var(--brand); text-align: left; font-size: var(--t-body); font-weight: 500; background: var(--surface); color: var(--text); }
.banner.ok { background: var(--ok-bg); color: var(--ok); border-left-color: var(--ok); font-weight: 600; }
.banner.warn { background: var(--warn-bg); color: var(--warn); border-left-color: var(--mark); }
.banner.error { background: var(--error-bg); color: var(--error); border-left-color: var(--error); }
.loading-strip { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: var(--t-cap); color: var(--muted); border-bottom: 1px solid var(--line); }
.loading-strip i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--track); border-top-color: var(--ok); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(24px + var(--safe-bottom)); z-index: 30; background: var(--text); color: var(--bg); padding: 12px 14px; border-radius: 8px; white-space: pre-line; }
.toast.error { background: var(--error); color: #fff; }

/* Вкладки разделов, сегменты, чипы */
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 6px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 0 14px; min-height: 48px; font-size: var(--t-body); font-weight: 500; color: var(--muted); white-space: nowrap; }
.tab.on { color: var(--text); font-weight: 600; border-bottom-color: var(--ok); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--track); }
.seg-btn { border: 0; background: none; color: var(--muted); font-size: var(--t-cap); font-weight: 600; padding: 7px 14px; border-radius: 7px; min-height: 36px; }
.seg-btn.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(6, 20, 13, .14), 0 0 0 1px var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; min-height: 40px; font-weight: 600; font-size: var(--t-body); }
.chip.on { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }

/* День и период */
.period { display: flex; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); }
.period-seg { padding: 0 16px 12px; }
.daybar { display: grid; grid-template-columns: 52px 1fr 52px; align-items: stretch; }
.daybar-step { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--ok); min-height: 60px; }
.daybar-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; text-align: center; cursor: pointer; }
.daybar-day b { font-size: var(--t-name); font-weight: 600; }
.daybar-day span { font-size: var(--t-cap); color: var(--muted); }
.daybar-day input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.daybar-day:focus-within { outline: 3px solid var(--mark); outline-offset: -3px; }

/* Итоги и реестр */
.board-summary { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface); border-bottom: 2px solid var(--text); }
.board-summary > * { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px 12px 12px; border-left: 1px solid var(--line); min-height: 64px; min-width: 0; }
.board-summary > *:first-child { border-left: 0; }
.board-summary b { font-size: var(--t-total); line-height: 1; font-weight: 700; overflow-wrap: anywhere; }
.board-summary span { font-size: var(--t-cap); color: var(--muted); }
.report-source { padding: 10px 16px; font-size: var(--t-cap); color: var(--muted); border-bottom: 1px solid var(--line); }
.group-head { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 18px 16px 8px; font-size: var(--t-cap); font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--text); }
.group-head > span { font-weight: 700; color: var(--text); }
.ledger { list-style: none; margin: 0; padding: 0; background: var(--surface); }
.ledger > li { border-bottom: 1px solid var(--line); }
.meter { display: block; height: 8px; background: var(--track); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ok); border-radius: 2px; transition: width .35s ease-out; }
.meter.thick { height: 14px; border-radius: 3px; }

/* Строка заявки */
.oline { display: block; width: 100%; padding: 0 16px 0 12px; border: 0; border-left: 4px solid transparent; background: none; text-align: left; }
.oline:active { background: var(--bg); }
.oline.picking { border-left-color: var(--ok); }
.oline.closed { border-left-color: var(--mark); }
.oline-main { display: flex; flex-direction: column; gap: 7px; padding: 13px 0 12px; min-width: 0; }
.oline-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.oline-top b { font-weight: 600; font-size: var(--t-name); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oline-num { flex: none; font-size: var(--t-cap); color: var(--muted); }
.oline-meta { display: flex; justify-content: space-between; gap: 8px; font-size: var(--t-cap); color: var(--muted); }
.oline-note { text-align: right; }
.oline.picking .oline-note, .oline.done .oline-note { color: var(--ok); font-weight: 600; }
.oline.closed .oline-note { color: var(--warn); font-weight: 600; }
.oline.assigned .meter i { background: var(--idle); }
.oline.done .meter i { background: var(--ok); }
.oline-why { font-size: var(--t-cap); color: var(--warn); }
.oline-comment { font-size: var(--t-cap); color: var(--muted); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Карточка заявки */
.tally { padding: 16px 16px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.tally-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tally-num b { font-size: var(--t-total); line-height: 1; font-weight: 700; }
.tally-num span { color: var(--muted); }
.tally .meter { margin-top: 10px; }
.tally-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: var(--t-cap); color: var(--muted); }
.tally-meta .state-DONE, .tally-meta .state-PARTIAL, .tally-meta .state-IN_WORK { color: var(--ok); font-weight: 600; }
.tally-meta .state-CLOSED_SHORT { color: var(--warn); font-weight: 600; }
.sheet { background: var(--surface); border-bottom: 1px solid var(--line); padding: 4px 16px; }
.ro { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ro:last-child { border-bottom: 0; }
.ro > span { color: var(--muted); font-size: var(--t-cap); flex: 0 0 38%; }
.ro > b { text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.ro > b small { display: block; margin-top: 2px; font-size: var(--t-cap); font-weight: 400; color: var(--muted); }
.ro.warn > b { color: var(--warn); }
.table-wrap { overflow-x: auto; background: var(--surface); }
.report { width: 100%; border-collapse: collapse; border-bottom: 2px solid var(--text); }
.report th, .report td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: right; font-weight: 400; vertical-align: top; }
.report thead th { font-size: var(--t-cap); color: var(--muted); padding-top: 12px; padding-bottom: 8px; white-space: nowrap; }
.report th:first-child { text-align: left; padding-left: 16px; }
.report td:last-child, .report th:last-child { padding-right: 16px; }
.report td { font-weight: 600; white-space: nowrap; }
.report tbody th { font-weight: 500; }
.report tbody th small { display: block; margin-top: 2px; font-size: var(--t-cap); color: var(--muted); font-weight: 400; }
.report tbody tr:last-child > * { border-bottom: 0; }
.report.lines .short { display: none; }
.report.lines tr.done td.rest { color: var(--ok); }
.report.lines tr.part td.rest { color: var(--text); }
.report.lines tr.over td.rest, .over-text { color: var(--warn); }
.sline { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 8px; padding: 12px 16px; }
.sline-qty b { font-size: var(--t-name); font-weight: 700; }
.sline-qty span { margin-left: 6px; font-size: var(--t-cap); color: var(--muted); }
.eline { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 11px 16px; align-items: baseline; }
.eline-time { font-weight: 600; color: var(--muted); }
.eline-text b { font-weight: 600; }
.eline-text small { display: block; margin-top: 2px; font-size: var(--t-cap); color: var(--muted); }

@media (max-width: 599px) {
  .report.lines th, .report.lines td { padding: 9px 5px; font-size: var(--t-cap); }
  .report.lines tbody th { font-size: var(--t-body); }
  .report.lines .long { display: none; }
  .report.lines .short { display: inline; }
  .report.lines th:first-child { padding-left: 16px; }
  .report.lines td:last-child, .report.lines th:last-child { padding-right: 16px; }
  .period-seg { display: flex; justify-content: center; }
  .board-summary b { font-size: 24px; }
}

/* Склад: шапка отчёта, легенда, карточки стеллажей */
.rr-head { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 12px; }
.rr-total { font-size: var(--t-name); font-weight: 700; }
.rr-count { font-size: var(--t-cap); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--t-cap); color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.cell-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid; flex: none; }
.f-target { background: var(--c-target); border-color: var(--c-target-b); color: var(--c-target-t); }
.f-full { background: var(--c-full); border-color: var(--c-full-b); color: var(--c-full-t); }
.f-other { background: var(--c-other); border-color: var(--c-other-b); color: var(--c-other-t); }
.f-empty { background: var(--c-empty); border-color: var(--c-empty-b); color: var(--c-empty-t); }
.rack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 12px 12px; }
@media (min-width: 600px) { .rack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 840px) { .rack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rcard { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.rcard:active { background: var(--bg); }
.rcard-title { font-size: var(--t-name); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard-total { margin-top: 8px; font-weight: 600; }
.mini { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.mini-floor { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 3px; height: 20px; }
.mini-cell { display: block; border: 1px solid; border-radius: 3px; }
.mini-floor.empty-floor { display: flex; align-items: center; }
.mini-floor.empty-floor i { display: block; width: 100%; height: 3px; border-radius: 2px; background: var(--line); }
.unbound { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.ucard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ucard summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; min-height: 48px; }
.ucard summary::-webkit-details-marker { display: none; }
.ucard summary b { flex: 1; min-width: 0; }
.ucard summary span { font-size: var(--t-cap); color: var(--muted); font-weight: 600; white-space: nowrap; }
.plist { list-style: none; margin: 0; padding: 0 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.pallet b { display: block; font-weight: 600; }
.pallet small { display: block; font-size: var(--t-cap); color: var(--muted); }

/* Разрез стеллажа */
.big { display: flex; flex-direction: column; gap: 6px; margin: 0 12px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.big-floor { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 6px; }
.big-label { font-size: 12px; color: var(--muted); }
.big-cells { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 6px; }
.big-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; min-width: 0; padding: 4px; border: 1.5px solid; border-radius: 8px; text-align: center; font-size: 12px; }
.big-cell b { font-size: var(--t-body); font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.big-cell span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.big-none { height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--bg); font-size: 12px; color: var(--muted); }
.big + .report-source { border-bottom: 0; padding-top: 12px; }
.fcell { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px 16px; align-items: start; }
.fcell-label { display: block; padding: 4px 2px; border: 1px solid; border-radius: 6px; text-align: center; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcell-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.warn-text { font-size: var(--t-cap); color: var(--warn); font-weight: 600; }

/* Смена — заглушка */
.placeholder { margin: 16px; padding: 18px 16px; background: var(--surface); border: 1px dashed var(--idle); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; }
.placeholder b { font-size: var(--t-name); }

/* Вход */
.hero { background: var(--brand); color: var(--on-brand); padding: calc(28px + var(--safe-top)) 16px 22px; display: flex; flex-direction: column; gap: 4px; }
.hero b { font-size: var(--t-total); font-weight: 700; line-height: 1.1; }
.hero span { opacity: .85; }
.operators { display: flex; flex-direction: column; background: var(--surface); }
.operator { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; padding: 0 16px 0 12px; min-height: 56px; text-align: left; font-size: var(--t-name); font-weight: 500; }
.operator:active { background: var(--bg); }
.operator small { color: var(--muted); font-size: var(--t-cap); font-weight: 400; }
.operator.last { border-left-color: var(--ok); font-weight: 700; }
.version { padding: 16px; font-size: var(--t-cap); color: var(--muted); }
.pin { max-width: 360px; margin: 0 auto; padding: 28px 24px; }
.pin-dots { display: flex; gap: 16px; justify-content: center; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ok); }
.pin-dots i.on { background: var(--ok); }
.pin-error { min-height: 22px; margin: 12px 0 8px; text-align: center; color: var(--error); font-weight: 600; font-size: var(--t-cap); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pinpad button { min-height: 64px; font-size: var(--t-total); font-weight: 500; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); }
.pinpad button:active { background: var(--track); }
.pinpad button.ghost { font-size: var(--t-cap); font-weight: 600; background: transparent; border-color: transparent; color: var(--ok); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; }
.field span { font-size: var(--t-cap); color: var(--muted); }
.field input { border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface); min-height: 48px; font-size: var(--t-qty); font-weight: 700; }
.field select { font-size: var(--t-name); font-weight: 500; min-height: 48px; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 44px 8px 10px; background: var(--surface); color: var(--text);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.login-brand { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.login-brand b { font-size: 28px; line-height: 1.1; font-weight: 700; }
.login-brand span { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .meter i { transition: none; }
  .loading-strip i, .icon .spin { animation: none; }
}

/* ── Компьютер (от 960 px): лист до 1280 px по центру, по бокам — стол ─────────────────────────────── */
@media (min-width: 960px) {
  html, body { background: var(--desk); }
  .page { max-width: 1280px; margin: 0 auto; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
  .bar { padding-left: 16px; padding-right: 16px; }
  .tabs { padding: 0 18px; }
  .tab { min-height: 52px; padding: 0 18px; font-size: var(--t-name); }
  .toast { left: 50%; right: auto; width: min(520px, calc(100% - 32px)); transform: translateX(-50%); bottom: 32px; }
  .empty { padding: 32px 24px; }
  .period { flex-direction: row; align-items: center; }
  .period .daybar { flex: 0 0 380px; border-right: 1px solid var(--line); }
  .period-seg { padding: 0 24px; }
  .board-summary { grid-auto-columns: minmax(0, 200px); }
  .board-summary > *:first-child { padding-left: 24px; }
  .report-source, .group-head, .rr-head { padding-left: 24px; padding-right: 24px; }
  .req-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 0 24px 24px; align-items: start; }
  .req-groups > .group { min-width: 0; }
  .req-groups > .group:only-child { grid-column: 1 / -1; }
  .req-groups > .group:only-child .ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .req-groups .group-head { padding-left: 0; padding-right: 0; }
  .req-groups .ledger { border: 1px solid var(--line); border-top: 0; }
  .req-groups > .group:only-child .ledger { border: 0; background: none; }
  .req-groups > .group:only-child .ledger > li { background: var(--surface); border: 1px solid var(--line); border-top: 0; }
  .req-groups > .group:only-child .ledger > li:nth-child(-n+2) { border-top: 1px solid var(--line); margin-top: 16px; }
  .sheet { padding: 4px 24px; }
  .tally { padding: 20px 24px 16px; }
  .report th:first-child { padding-left: 24px; }
  .report td:last-child, .report th:last-child { padding-right: 24px; }
  .eline, .sline, .fcell { padding-left: 24px; padding-right: 24px; }
  .rack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0 24px 24px; }
  .unbound { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding: 12px 24px 24px; }
  .chips { padding: 14px 24px; }
  .big { margin: 0 24px; padding: 14px; }
  .big-cell { min-height: 76px; }
  .placeholder { margin: 24px; max-width: 720px; }
  .page.login-desk { max-width: none; display: flex; align-items: center; justify-content: center; background: var(--desk); box-shadow: none; padding: 24px; }
  .login-card { width: 420px; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--brand); padding: 30px 30px 14px; }
  .login-card .field input { letter-spacing: .35em; }
  .login-card .pin-error { text-align: left; margin: 10px 0 6px; }
  .login-card .version { padding: 14px 0 0; }
}
