/* Бригадо — терракота + бетон.
   Правила: области нажатия ≥ 48px (главные ≥ 64px), высокий контраст для солнца,
   статус = цвет + значок + слово. */
:root {
  --bg: #F1EFEC;          /* бетон светлый */
  --surface: #FFFFFF;
  --surface-2: #F7F5F2;
  --line: #E0DCD7;
  --line-2: #D3CEC8;
  --text: #1F1D1B;
  --text-2: #4A4642;
  --muted: #6E6862;
  --concrete: #8D8780;

  --accent: #B4532A;      /* терракота: белый текст ≈ 4.9:1 */
  --accent-press: #9A4422;
  --accent-ink: #7A3417;
  --accent-soft: #F6E4DA;
  --accent-soft-2: #FBF1EB;
  --on-accent: #FFFFFF;

  --ok: #2E7D4F;   --ok-bg: #E2F1E7;
  --bad: #B3261E;  --bad-bg: #FBE4E2;
  --warn: #9A5B00; --warn-bg: #FCEFD6;
  --none: #5F5A55; --none-bg: #ECE9E5;

  --hero-1: #B4532A;
  --hero-2: #D9824F;
  --hero-3: #EDB58C;

  --radius: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #161412; --surface: #211E1B; --surface-2: #1B1917;
  --line: #312C28; --line-2: #3B3631;
  --text: #F2EEEA; --text-2: #CFC8C1; --muted: #A39B93; --concrete: #8A827A;
  --accent: #D06A3E; --accent-press: #B85A31; --accent-ink: #F6C3A6;
  --accent-soft: #3A2419; --accent-soft-2: #2A1C15;
  --ok: #7FD3A0; --ok-bg: #173323; --bad: #FF9C93; --bad-bg: #3C1715;
  --warn: #F4C06A; --warn-bg: #3A2A0F; --none: #BDB5AD; --none-bg: #2C2825;
  --hero-1: #8E3D1C; --hero-2: #A85328; --hero-3: #6E3A22;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, Roboto, system-ui, sans-serif;
  font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input, select, textarea { font-size: 17px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* layout */
.view { padding: calc(var(--safe-top) + 16px) 18px calc(var(--safe-bottom) + 112px);
  display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 0 auto; min-height: 100vh; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.3px; }
.head .sub { font-size: 14px; color: var(--muted); }
.label { font-size: 14px; color: var(--muted); }
.section-t { font-size: 18px; font-weight: 700; margin: 6px 2px -4px; display: flex; justify-content: space-between; align-items: baseline; }
.section-t small { font-size: 14px; font-weight: 500; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }

.icon-btn { width: 48px; height: 48px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; flex: none; position: relative; }
.icon-btn:active { background: var(--surface-2); }
.icon-btn .badge { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }

/* buttons */
.btn { height: 56px; border-radius: 18px; border: none; font-size: 17px; font-weight: 700; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--line-2); }
.btn-ghost { background: transparent; color: var(--accent); height: 48px; }
.btn:disabled { opacity: .5; }

/* status chips: цвет + значок + слово */
.st { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border-radius: 999px;
  font-size: 14px; font-weight: 700; white-space: nowrap; }
.st svg { width: 16px; height: 16px; }
.st.ok { background: var(--ok-bg); color: var(--ok); }
.st.bad { background: var(--bad-bg); color: var(--bad); }
.st.warn { background: var(--warn-bg); color: var(--warn); }
.st.none { background: var(--none-bg); color: var(--none); }

/* sync line */
.sync { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sync i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.sync.wait i { background: var(--warn); }
.sync.off i { background: var(--bad); }

/* ---------- worker: today ---------- */
.site-card { display: flex; flex-direction: column; gap: 14px; }
.site-top { display: flex; gap: 14px; align-items: flex-start; }
.site-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex: none; }
.site-name { font-size: 20px; font-weight: 700; line-height: 1.2; }
.site-addr { font-size: 15px; color: var(--text-2); margin-top: 3px; }
.site-time { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; color: var(--text-2); font-weight: 600; }
.tag svg { width: 17px; height: 17px; color: var(--concrete); }
.site-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.site-actions .btn { height: 52px; font-size: 16px; }

.shift-btn { width: 100%; min-height: 96px; border: none; border-radius: 26px; background: var(--accent); color: #fff;
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; text-align: left;
  box-shadow: 0 10px 24px rgba(180,83,42,.28); }
.shift-btn:active { background: var(--accent-press); transform: scale(.99); }
.shift-btn .big { font-size: 23px; font-weight: 800; letter-spacing: -0.2px; }
.shift-btn .small { font-size: 15px; opacity: .92; margin-top: 2px; }
.shift-btn .circ { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex: none; }
.shift-btn.stop { background: var(--text); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
:root[data-theme="dark"] .shift-btn.stop { background: #3A3531; }
.shift-btn.busy { opacity: .85; pointer-events: none; }

.shift-state { display: flex; flex-direction: column; gap: 12px; }
.timer { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.marks { display: flex; flex-direction: column; }
.mark { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mark:last-child { border-bottom: none; }
.mark .t { font-weight: 700; width: 54px; flex: none; }
.mark .w { flex: 1; min-width: 0; font-size: 15px; color: var(--text-2); }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.q { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; min-height: 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 10px 6px; text-align: center; }
.q .qi { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.q:active { background: var(--surface-2); }
.q .soon { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- foreman: hero ---------- */
.hero { border-radius: 28px; padding: 20px; color: #fff;
  background: linear-gradient(155deg, var(--hero-1) 0%, var(--hero-2) 58%, var(--hero-3) 100%);
  display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 28px rgba(180,83,42,.25); }
.hero .h-top { display: flex; justify-content: space-between; align-items: center; }
.hero .h-date { font-size: 15px; font-weight: 600; opacity: .95; }
.hero .h-big { font-size: 46px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.hero .h-cap { font-size: 16px; font-weight: 600; opacity: .95; margin-top: 4px; }
.hero .h-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero .h-cell { background: rgba(255,255,255,.94); color: var(--text); border-radius: 18px; padding: 12px; border: none; text-align: left; }
.hero .h-cell b { display: block; font-size: 24px; font-weight: 800; }
.hero .h-cell span { font-size: 12.5px; white-space: nowrap; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
.hero .h-cell i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
:root[data-theme="dark"] .hero .h-cell { background: rgba(20,17,15,.55); color: #fff; }
:root[data-theme="dark"] .hero .h-cell span { color: #EADFD6; }

.seg { display: flex; background: var(--line); border-radius: 16px; padding: 4px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1; height: 42px; border: none; border-radius: 12px; background: transparent; font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap; padding: 0 12px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 72px;
  border: none; border-bottom: 1px solid var(--line); background: var(--surface); text-align: left; }
.item:last-child { border-bottom: none; }
.item:active { background: var(--surface-2); }
.ava { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex: none; }
.item .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .n { font-weight: 700; font-size: 16px; }
.item .s { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { color: var(--concrete); flex: none; }

.obj { display: flex; flex-direction: column; gap: 12px; }
.obj-top { display: flex; gap: 12px; align-items: center; }
.obj-people { display: flex; align-items: center; }
.obj-people .ava { width: 34px; height: 34px; font-size: 13px; border: 2px solid var(--surface); margin-left: -8px; }
.obj-people .ava:first-child { margin-left: 0; }
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; display: flex; }
.bar > div { height: 100%; }

.empty { text-align: center; color: var(--muted); padding: 32px 12px; font-size: 15px; }

/* tabbar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 8px 6px calc(var(--safe-bottom) + 8px); }
.tab { border: none; background: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 0; min-height: 56px; }
.tab .pb { width: 60px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.tab.on { color: var(--text); }
.tab.on .pb { background: var(--accent-soft); color: var(--accent); }
.tab.on svg { stroke-width: 2.4; }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(25,20,16,.42); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet .panel { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 28px 28px 0 0;
  padding: 10px 20px calc(var(--safe-bottom) + 24px); display: flex; flex-direction: column; gap: 16px; animation: up .2s ease-out; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); align-self: center; }
.panel h2 { margin: 4px 0 0; font-size: 21px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea { min-height: 52px; border-radius: 16px; border: 1.5px solid var(--line-2); padding: 0 14px;
  background: var(--surface); color: var(--text); outline: none; width: 100%; font-weight: 500; }
.field textarea { padding: 14px; min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { min-height: 56px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--surface); text-align: left; padding: 12px 16px; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.opt.on { border-color: var(--accent); background: var(--accent-soft-2); }
@keyframes up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* toast */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 100px); z-index: 60; max-width: 528px; margin: 0 auto;
  background: #2A2522; color: #fff; border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: up .2s ease-out; }
.toast svg { flex: none; color: #9FE0B8; }

/* demo switch */
.demo { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.demo button { height: 36px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 10px; font-size: 13px; font-weight: 600; }
.demo button.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* правки 11.11 */
html { background: var(--bg); }
.shift-btn { min-height: 104px; }
.shift-btn .big { font-size: 28px; font-weight: 800; }
.sent { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.sent.wait { color: var(--warn); }
.demo-link { height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--accent); font-weight: 700; text-decoration: none; font-size: 13px; }
.shift-btn .big { font-size: 26px; white-space: nowrap; }
.shift-btn .circ { width: 54px; height: 54px; }

/* 11.11: без зума, новая «Сегодня» прораба, экран геолокации */
html, body { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
.hero2 { flex-direction: row; align-items: center; gap: 18px; padding: 18px 20px; }
.hero2 .h-lines { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero2 .h-title { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 2px; }
.hero2 .h-line { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; opacity: .96; }
.issues { display: flex; flex-direction: column; gap: 10px; }
.issue { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.issue.bad { border-left: 5px solid var(--bad); }
.issue.warn { border-left: 5px solid var(--warn); }
.issue.none { border-left: 5px solid var(--concrete); }
.issue-main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 14px 12px 14px 14px; border: none; background: none; text-align: left; }
.issue-main:active { background: var(--surface-2); }
.issue-ic { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.issue.bad .issue-ic { background: var(--bad-bg); color: var(--bad); }
.issue.warn .issue-ic { background: var(--warn-bg); color: var(--warn); }
.issue.none .issue-ic { background: var(--none-bg); color: var(--none); }
.issue .mid { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.issue .n { font-weight: 700; font-size: 16px; }
.issue .s { font-size: 15px; color: var(--text); }
.issue .s2 { font-size: 13px; color: var(--muted); }
.issue-call { width: 64px; flex: none; border: none; border-left: 1px solid var(--line); background: var(--accent-soft-2); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.issue-call:active { background: var(--accent-soft); }
.obj-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin: 0 -18px -18px; }
.obj-p { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; border: none; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 16px; font-weight: 600; }
.obj-p:last-child { border-bottom: none; }
.obj-p:active { background: var(--surface-2); }
.obj-p i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.obj-st { font-size: 14px; font-weight: 700; }
.geo-ic { width: 68px; height: 68px; border-radius: 22px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; align-self: center; margin-top: 6px; }
.stepn { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }

/* шапка прораба: нижняя часть — одна полупрозрачная полоса со счётчиками */
.hero .h-strip { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 20px; overflow: hidden; }
.hero .h-stat { border: none; background: transparent; color: #fff; padding: 12px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.hero .h-stat + .h-stat { border-left: 1px solid rgba(255,255,255,.28); }
.hero .h-stat:active { background: rgba(255,255,255,.14); }
.hero .h-stat b { font-size: 26px; font-weight: 800; line-height: 1; }
.hero .h-stat > span:last-child { font-size: 13px; font-weight: 700; opacity: .95; white-space: nowrap; }
.hero .h-si { width: 26px; height: 26px; border-radius: 9px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.hero .h-si.ok { color: var(--ok); } .hero .h-si.bad { color: var(--bad); } .hero .h-si.none { color: #5F5A55; }

/* 11.11 17:30: кнопка «Завершить» — тёмная терракота; высокие кнопки в окне завершения */
.shift-btn.stop { background: #8E2F1C; box-shadow: 0 10px 24px rgba(142,47,28,.3); }
.shift-btn.stop:active { background: #74261A; }
:root[data-theme="dark"] .shift-btn.stop { background: #A63A22; }
.btn-tall { height: 64px; font-size: 18px; }

/* ---------- объекты и люди ---------- */
.icon-btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.icon-btn.accent:active { background: var(--accent-press); }
.obj-btn { width: 100%; text-align: left; color: inherit; font: inherit; }
.obj-btn:active { background: var(--surface-2); }
.kvs { padding: 4px 18px; }
.kv { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.kv:last-child { border-bottom: none; }
.kv .k { width: 128px; flex: none; color: var(--muted); font-size: 15px; }
.kv .v { flex: 1; min-width: 0; font-weight: 600; white-space: pre-wrap; }
.kv .v.code { font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.hint { font-size: 13px; font-weight: 500; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text-2); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
span.chip.on { min-height: 38px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 16px; font-size: 16px; }
.switch-row input { width: 28px; height: 28px; accent-color: var(--accent); flex: none; }
.form-err { color: var(--bad); font-size: 15px; font-weight: 600; min-height: 1px; }
.opt.check { gap: 14px; }
.opt.check .box { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: transparent; flex: none; }
.opt.check.on .box { background: var(--accent); border-color: var(--accent); color: #fff; }
.mini { font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 6px; padding: 2px 6px; vertical-align: 2px; }
.qr { align-self: center; width: 220px; height: 220px; padding: 10px; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
a.btn { text-decoration: none; }
.timer.timer-on { color: #1E6B3F; }
:root[data-theme="dark"] .timer.timer-on { color: #7FD3A0; }
.quick2 { grid-template-columns: repeat(2, 1fr); }
.brand { font-weight: 900; letter-spacing: -0.6px; }

/* ---------- рабочая версия ---------- */
.avatar-btn { width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 16px; flex: none; }
.avatar-btn:active { background: var(--accent); color: #fff; }
.head .grow h1 { overflow: hidden; text-overflow: ellipsis; }
.sub-t { font-size: 15px; font-weight: 800; color: var(--text-2); margin-top: 4px; }
.st.plan { background: var(--none-bg); color: var(--text-2); }
.st.done { background: var(--ok-bg); color: var(--ok); opacity: .8; }
.btn-sm { height: 44px; font-size: 15px; width: auto; align-self: flex-start; padding: 0 14px; }
.week-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.week-title { font-size: 16px; text-transform: capitalize; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wd { border: none; background: transparent; border-radius: 14px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-2); min-height: 64px; }
.wd span { font-size: 12px; font-weight: 700; text-transform: capitalize; }
.wd b { font-size: 18px; font-weight: 800; color: var(--text); }
.wd i, .wd em { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }
.wd em { background: transparent; }
.wd.today b { color: var(--accent); }
.wd.on { background: var(--accent); }
.wd.on span, .wd.on b { color: #fff; }
.wd.on i { background: #fff; }
.date-badge { width: 48px; height: 52px; flex: none; border-radius: 14px; background: var(--accent-soft-2); border: 1px solid var(--accent-soft); color: var(--accent-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; line-height: 1.1; }
.date-badge b { font-size: 19px; font-weight: 800; }
.hist { padding: 4px 16px; }
.hist-row { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.hist-row:last-child { border-bottom: none; }
.hist-row .n { font-weight: 800; }
.hist-row .s { font-size: 14px; color: var(--muted); }
.money { display: flex; flex-direction: column; gap: 12px; }
.money .label { text-transform: none; }
.money-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.money-grid > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.money-grid b { font-size: 17px; font-weight: 800; }
.money-grid span { font-size: 12px; color: var(--muted); font-weight: 700; }
.auth { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; min-height: 80vh; justify-content: center; }
.auth h1 { margin: 0; font-size: 28px; }
.auth > .icon-btn { align-self: flex-start; }
.logo { width: 84px; height: 84px; border-radius: 26px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; align-self: center; }
.big-brand { font-size: 40px !important; text-align: center; color: var(--text); }
.brand { font-weight: 900; letter-spacing: -0.8px; }
.code-input { height: 72px; border-radius: 20px; border: 2px solid var(--line-2); background: var(--surface); text-align: center; font-size: 30px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; width: 100%; color: var(--text); }
.code-input:focus { border-color: var(--accent); outline: none; }
.code-big { font-size: 34px; font-weight: 900; letter-spacing: 4px; color: var(--accent-ink); }
.warn-card { background: var(--warn-bg); border-color: transparent; color: var(--warn); font-weight: 700; }
select { min-height: 52px; border-radius: 16px; border: 1.5px solid var(--line-2); padding: 0 14px; background: var(--surface); color: var(--text); width: 100%; font-weight: 600; }
.item a.icon-btn { width: 40px; height: 40px; color: var(--accent); }

/* ================= 12.11 вечер: оформление как в MurSpace ================= */
:root { --shadow: 0 8px 24px rgba(60,40,28,.07); --shadow-accent: 0 6px 16px rgba(180,83,42,.22); --r-lg: 24px; --tint: #F4E7DF; --tint-2: #F3EFEA; }
:root[data-theme="dark"] { --shadow: 0 8px 24px rgba(0,0,0,.32); --shadow-accent: 0 6px 16px rgba(0,0,0,.4); --tint: #33231A; --tint-2: #252120; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: var(--safe-top); z-index: 10; background: var(--bg); }
.view { padding-top: var(--safe-top); gap: 14px; padding-bottom: calc(var(--safe-bottom) + 120px); }

/* верхняя строка */
.top { position: sticky; top: var(--safe-top); z-index: 15; background: var(--bg); display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 6px; margin: 0 -18px -8px; padding-inline: 18px; }
.logo { width: auto; height: auto; background: none; border-radius: 0; display: block; align-self: auto;
  font-size: 24px; font-weight: 900; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.logo em { font-style: normal; font-weight: 900; color: var(--accent); }
.topacts { display: flex; gap: 2px; margin-right: -8px; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); border: none; position: relative; }
.topacts .iconbtn { background: none; box-shadow: none; width: 40px; height: 40px; color: var(--text); }
.topacts .iconbtn svg { stroke-width: 1.7; }
.topacts .iconbtn:active { opacity: .55; }
.bellbtn .badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.h1row { display: flex; align-items: flex-end; gap: 12px; margin: 6px 0 2px; }
.h1row h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.h1row .sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.asbar { display: flex; align-items: center; gap: 10px; background: var(--warn-bg); color: var(--warn); border-radius: 16px; padding: 10px 12px; font-size: 14px; }
.asbar button { border: none; background: var(--surface); color: var(--text); font-weight: 800; border-radius: 999px; height: 34px; padding: 0 14px; }

/* карточки: тень вместо рамки */
.card, .list, .week-wrap, .issue { border: none; box-shadow: var(--shadow); border-radius: var(--r-lg); }
.card.pad { padding: 16px; }
.q { border: none; box-shadow: var(--shadow); border-radius: var(--r-lg); }
.q .qi { border-radius: 50%; }
.q .soon.warn-t { color: var(--bad); font-weight: 700; }
.item { border-bottom-color: var(--line); }
.site-ic { border-radius: 50%; }
.site-ic.sm { width: 42px; height: 42px; }
.site-name.sm { font-size: 17px; }
.btn-secondary { border: none; background: var(--tint-2); }
:root[data-theme="dark"] .btn-secondary { background: var(--surface-2); }
.card .btn-secondary, .panel .btn-secondary { background: var(--tint-2); }
.tag { border: none; background: var(--tint-2); border-radius: 999px; }
.money-grid > div { border: none; background: var(--tint-2); }

/* заголовки разделов — как h3 в MurSpace */
.section-t, .view > h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin: 10px 4px -4px; }
.section-t small { font-size: 12px; font-weight: 800; color: var(--muted); }
.sub-t { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin-top: 8px; }

/* сегменты и фишки */
.seg { background: var(--tint-2); border-radius: 999px; padding: 4px; }
.seg button { border-radius: 999px; height: 40px; font-weight: 800; font-size: 14px; }
.seg button.on { box-shadow: var(--shadow); color: var(--accent-ink); }
.chip { border-radius: 999px; font-weight: 700; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips.wrap { flex-wrap: wrap; }

/* нижнее меню — плавающее, скруглённое */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 12px calc(12px + var(--safe-bottom)); pointer-events: none; background: none; border: none; display: block; }
.nav-in { max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
  display: grid; padding: 6px; pointer-events: auto; }
.nav-in button { border: none; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; border-radius: 22px;
  color: var(--muted); font-size: 11px; font-weight: 800; min-height: 54px; justify-content: center; }
.nav-in button.on { background: var(--accent); color: #fff; }
.nav-in button:active { opacity: .7; }

/* календарь */
.cal { padding: 14px 10px 10px; }
.calhead { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; }
.calhead b { font-size: 18px; font-weight: 800; text-transform: capitalize; }
.calhead .iconbtn { box-shadow: none; background: var(--tint-2); width: 36px; height: 36px; color: var(--text-2); }
.wdh, .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wdh span { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .04em; padding-bottom: 4px; }
.cell { aspect-ratio: 1/1.08; border-radius: 14px; border: none; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; position: relative; color: var(--text); padding: 0; }
.cell.today span:first-child { color: var(--accent); font-weight: 900; }
.cell.today::after { content: ""; position: absolute; inset: 3px; border-radius: 12px; border: 1.5px dashed var(--accent); pointer-events: none; }
.cell.sel { background: var(--accent); color: #fff; }
.cell.sel span:first-child { color: #fff; }
.cell.past span:first-child { opacity: .5; }
.cell.sel.past span:first-child { opacity: 1; }
.dots { display: flex; gap: 3px; height: 14px; align-items: center; }
.dots i { width: 6px; height: 6px; border-radius: 50%; }
.dots em { font-style: normal; font-size: 10.5px; font-weight: 900; min-width: 16px; height: 14px; line-height: 14px; padding: 0 4px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); }
.cell.sel .dots i { box-shadow: 0 0 0 1.5px #fff; }
.cell.sel .dots em { background: rgba(255,255,255,.25); color: #fff; }
.calfoot { display: flex; justify-content: center; gap: 18px; padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--line); }
.linkbtn { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; color: var(--accent-ink); padding: 6px 8px; border: none; background: none; }
:root[data-theme="dark"] .linkbtn { color: var(--accent-ink); }

/* внимание на «Сегодня» */
.att { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.att-c { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 14px; color: inherit; font: inherit; border: none; }
.att-c b { font-size: 24px; font-weight: 800; line-height: 1; }
.att-c > span:last-child { grid-column: 1 / -1; font-size: 14px; font-weight: 700; color: var(--text-2); margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.att-c em { font-style: normal; color: var(--bad); font-size: 13px; }
.att-c em.w { color: var(--warn); }
.att-i { width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--accent); display: grid; place-items: center; }
.att-i.bad { background: var(--bad-bg); color: var(--bad); }
.att-c:active { opacity: .8; }

/* списки проблем, чеков, журнала */
.rico { width: 42px; height: 42px; border-radius: 50%; background: var(--tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.rico.bad { background: var(--bad-bg); color: var(--bad); }
.rico.big { width: 52px; height: 52px; }
.item .s2 { font-size: 13px; color: var(--muted); }
.item .s { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item .st { align-self: center; }
.mini.red { background: var(--bad-bg); color: var(--bad); }
.ptext { font-size: 17px; font-weight: 600; white-space: pre-wrap; }
.answer { background: var(--ok-bg); }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos.one { grid-template-columns: 1fr; }
.ph { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--tint-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.photos.one .ph { aspect-ratio: 4/3; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.noimg img { display: none; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { width: 84px; height: 84px; border-radius: 16px; overflow: hidden; position: relative; background: var(--tint-2); border: none; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.thumb.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--accent); font-size: 13px; font-weight: 800; border: 2px dashed var(--line-2); background: none; }
.warn-card { display: flex; gap: 8px; align-items: flex-start; }
.remind { display: flex; align-items: center; gap: 12px; background: var(--warn-bg); color: var(--warn); font-size: 15px; }
.mrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mrow > div { display: flex; flex-direction: column; gap: 2px; }
.mrow span { font-size: 12px; color: var(--muted); font-weight: 700; }
.mrow b { font-size: 16px; font-weight: 800; }
.red { color: var(--bad); }
.amt { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.amt b { font-size: 16px; font-weight: 800; }
.amt small { font-size: 12px; color: var(--muted); font-weight: 700; }
.due { display: flex; align-items: center; gap: 12px; font-weight: 700; background: var(--tint); }
.due b { font-size: 20px; font-weight: 900; color: var(--accent-ink); }
.logs { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 4px 14px; }
.log { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; text-align: left; }
.log:last-child { border-bottom: none; }
.log small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; font-weight: 600; }
.log-i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-2); color: var(--text-2); flex: none; }
.log.ok .log-i { background: var(--ok-bg); color: var(--ok); }
.log.bad .log-i { background: var(--bad-bg); color: var(--bad); }
.log.warn .log-i { background: var(--warn-bg); color: var(--warn); }
.log.new { background: linear-gradient(90deg, var(--accent-soft-2), transparent); margin: 0 -14px; padding-inline: 14px; }
.log.live { width: 100%; border: none; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; align-items: center; color: inherit; }
.logday { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; padding: 14px 0 4px; }
.panel { background: var(--bg); }
.panel .list, .panel .card, .panel .logs { background: var(--surface); }
.panel .field input, .panel .field select, .panel .field textarea, .panel select, .panel .switch-row, .panel .opt { background: var(--surface); }
.panel .money-grid > div { background: var(--surface); box-shadow: var(--shadow); }
.logo.big { font-size: 46px; text-align: center; align-self: center; margin-bottom: 4px; }
.panel > * { flex-shrink: 0; }
.money-grid b { font-size: 15px; white-space: nowrap; }
.money-grid span { line-height: 1.25; }
.nrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nrow .st { height: 26px; font-size: 13px; padding: 0 10px; }
.item .mid .nrow + .s { margin-top: 2px; }
.view > .btn-secondary, .auth .btn-secondary, .view > .site-actions .btn-secondary { background: var(--surface); box-shadow: var(--shadow); }
/* 12.11: завершённая смена — зелёная */
.site-card.is-done { background: var(--ok-bg); }
.site-card.is-done .site-ic { background: rgba(255,255,255,.7); color: var(--ok); }
:root[data-theme="dark"] .site-card.is-done .site-ic { background: rgba(0,0,0,.25); }
.site-card.is-done .btn-secondary { background: rgba(255,255,255,.65); }
:root[data-theme="dark"] .site-card.is-done .btn-secondary { background: rgba(0,0,0,.25); }
.done-badge { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ok); font-size: 15px; }
.done-rep { display: flex; align-items: center; gap: 10px; background: var(--ok-bg); color: var(--ok); }
.section-t { display: flex; align-items: center; justify-content: space-between; }
.section-t .linkbtn { text-transform: none; letter-spacing: 0; padding: 0 4px; }
.hint-card { color: var(--muted); font-size: 15px; }
.chips-sum { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-sum .st { height: 28px; font-size: 13px; }
.geo-ic.warn { background: var(--warn-bg); color: var(--warn); }
.video-box { border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 9/16; max-height: 62vh; display: flex; align-items: center; justify-content: center; }
.video-box video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-box.empty-v { background: var(--tint-2); color: var(--muted); flex-direction: column; gap: 10px; text-align: center; padding: 20px; aspect-ratio: 4/3; font-weight: 600; }
.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px; }
.chips::-webkit-scrollbar { display: none; }
.chips .chip { flex: none; white-space: nowrap; }
.form .chips, .panel .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
.chip.sm { min-height: 36px; font-size: 14px; padding: 0 12px; }
.chip.on2 { background: var(--tint); border-color: var(--accent); color: var(--accent-ink); }
/* дисциплина */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpis > div { background: var(--tint-2); border-radius: 16px; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.panel .kpis > div { background: var(--surface); box-shadow: var(--shadow); }
.kpis b { font-size: 20px; font-weight: 900; line-height: 1.1; }
.kpis b small { font-size: 12px; }
.kpis span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.good b, .disc-big.good { color: var(--ok); } .mid b, .disc-big.mid { color: var(--warn); } .low b, .disc-big.low { color: var(--bad); }
.team-disc { display: flex; flex-direction: column; gap: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 0 4px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .hc { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.card .legend { margin-top: 10px; padding: 0; }
.disc-card { display: flex; gap: 12px; align-items: center; text-align: left; color: inherit; font: inherit; border: none; width: 100%; }
.disc-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.disc-big { font-size: 26px; font-weight: 900; line-height: 1; }
.disc-big small { font-size: 13px; font-weight: 700; color: var(--muted); }
.disc-s { font-size: 13px; color: var(--muted); line-height: 1.35; }
.ava.sm { width: 34px; height: 34px; font-size: 13px; }
.heat { display: grid; grid-template-columns: repeat(7, 14px); gap: 3px; flex: none; }
.heat.big { grid-template-columns: repeat(7, 1fr); gap: 5px; }
.hw { font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; }
.hc { width: 14px; height: 14px; border-radius: 4px; border: none; padding: 0; background: var(--tint-2); position: relative; }
.heat.big .hc { width: auto; height: auto; aspect-ratio: 1; border-radius: 10px; font-size: 13px; font-weight: 800; color: #fff; display: grid; place-items: center; }
.hc.off { background: var(--tint-2); } .heat.big .hc.off, .heat.big .hc.fut { color: var(--muted); }
.hc.fut { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.hc.ok { background: #3E9A62; } .hc.late { background: #E0A43A; } .hc.away { background: #D9534A; } .hc.miss { background: #8E2F1C; } .hc.nogeo { background: #9A938C; } .hc.plan { background: var(--tint); }
.hc.early::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #E0A43A; }
.heat.big .hc.early::after { width: 7px; height: 7px; right: 3px; bottom: 3px; }
.hc.now { outline: 2px solid var(--accent); outline-offset: 1px; }
.hc.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.heat span.hc { display: block; }
.q .qs { font-size: 13px; font-weight: 800; color: var(--muted); }
.q .qs.bad { color: var(--bad); } .q .qs.warn { color: var(--warn); } .q .qs.ok { color: var(--ok); } .q .qs.plan { color: var(--text-2); }
.q .qi.bad { background: var(--bad-bg); color: var(--bad); } .q .qi.warn { background: var(--warn-bg); color: var(--warn); } .q .qi.ok { background: var(--ok-bg); color: var(--ok); }
/* 12.11 23:40 */
.site-card.is-done { background: #D5E3D9; }
.done-badge, .done-rep { color: #24573A; }
.done-rep { background: #D5E3D9; }
.site-card.is-done .site-ic { color: #24573A; }
:root[data-theme="dark"] .site-card.is-done, :root[data-theme="dark"] .done-rep { background: #1F3328; }
:root[data-theme="dark"] .done-badge, :root[data-theme="dark"] .done-rep, :root[data-theme="dark"] .site-card.is-done .site-ic { color: #9CCBAE; }
.panel { position: relative; }
.sheet-x { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--surface); color: var(--text-2); box-shadow: var(--shadow); display: grid; place-items: center; z-index: 2; }
.sheet-x:active { opacity: .6; }
.panel > h2:first-of-type, .panel > .row:first-of-type { padding-right: 46px; }
.disc-d { padding: 0; overflow: hidden; }
.disc-d summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.disc-d summary::-webkit-details-marker { display: none; }
.disc-d summary b { font-size: 16px; }
.disc-pc { display: flex; flex-direction: column; align-items: flex-end; font-size: 22px; font-weight: 900; line-height: 1; flex: none; }
.disc-pc small { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.dch { transition: transform .15s; }
.disc-d[open] .dch { transform: rotate(180deg); }
.disc-body { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 14px; }
.disc-body .list { box-shadow: none; background: var(--tint-2); }
.disc-body .list .item { background: transparent; }
.heat-wrap { background: var(--tint-2); border-radius: 18px; padding: 12px; }
.heat-wrap .legend { margin-top: 10px; padding: 0; }
/* съёмка видео-отчёта */
.rec { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; flex-direction: column; }
.rec-v { flex: 1; width: 100%; min-height: 0; object-fit: cover; background: #000; }
.rec video[controls] { object-fit: contain; }
.rec-x { position: absolute; top: calc(var(--safe-top) + 14px); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; }
.rec-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 16px calc(var(--safe-bottom) + 20px); background: #000; color: #fff; flex-wrap: wrap; position: relative; min-height: 120px; }
.rec-info { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font-weight: 800; font-size: 15px; color: #fff; }
.rec-btn { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: none; display: grid; place-items: center; margin-top: 18px; }
.rec-btn i { width: 58px; height: 58px; border-radius: 50%; background: #E5484D; transition: all .15s; }
.rec-btn.on i { width: 28px; height: 28px; border-radius: 8px; }
.rec-btn2 { height: 52px; padding: 0 20px; border-radius: 999px; border: none; font-weight: 800; font-size: 16px; background: #2A2522; color: #fff; display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; }
.rec-btn2.ok { background: var(--accent); }
/* поиск, заметки, переключатель */
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 0 14px; color: var(--muted); }
.search input { flex: 1; border: none; background: none; height: 52px; outline: none; color: var(--text); font-size: 16px; min-width: 0; }
.note-s { display: flex; align-items: center; gap: 4px; color: var(--accent-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-card { display: flex; flex-direction: column; gap: 10px; }
.note-card textarea { min-height: 84px; border-radius: 14px; border: 1.5px solid var(--line-2); padding: 12px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px; resize: vertical; outline: none; }
.note-card textarea:focus { border-color: var(--accent); }
button.switch-row.tg { width: 100%; text-align: left; background: var(--surface); color: inherit; font: inherit; }
.tgl { width: 50px; height: 30px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .15s; }
.tgl i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.tgl.on { background: var(--accent); } .tgl.on i { left: 23px; }
/* 13.11: живой обзор «Сегодня» */
.hero.live { gap: 14px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; opacity: .95; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: #9FF0B8; box-shadow: 0 0 0 0 rgba(159,240,184,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(159,240,184,.7); } 70% { box-shadow: 0 0 0 8px rgba(159,240,184,0); } 100% { box-shadow: 0 0 0 0 rgba(159,240,184,0); } }
.lh-main .h-big .of { font-size: 28px; opacity: .8; font-weight: 800; }
.lbar { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.22); }
.lbar i { display: block; height: 100%; min-width: 6px; }
.lbar .ok { background: #7FE0A3; } .lbar .bad { background: #FF8A80; } .lbar .warn { background: #FFD27A; } .lbar .none { background: #D9D2CB; }
.lbar .plan { background: rgba(255,255,255,.55); } .lbar .done { background: #2F7D52; }
.lt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lt { border: none; border-radius: 16px; background: rgba(255,255,255,.94); color: var(--text); padding: 10px 6px 9px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; min-height: 74px; box-shadow: 0 0 0 0 transparent; transition: transform .12s, box-shadow .15s; }
.lt b { font-size: 24px; font-weight: 900; line-height: 1.05; }
.lt span { font-size: 12.5px; font-weight: 800; color: var(--text-2); }
.lt small { font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.lt.ok b { color: var(--ok); } .lt.att b { color: var(--bad); } .lt.plan b { color: var(--text-2); } .lt.done b { color: #24573A; }
.lt.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0,0,0,.25); transform: translateY(-1px); }
.lt:active { transform: scale(.97); }
:root[data-theme="dark"] .lt { background: rgba(20,17,15,.6); color: #fff; }
:root[data-theme="dark"] .lt span { color: #EADFD6; } :root[data-theme="dark"] .lt small { color: #CDBFB4; }
:root[data-theme="dark"] .lt.ok b { color: #9CE6B6; } :root[data-theme="dark"] .lt.att b { color: #FFA59C; } :root[data-theme="dark"] .lt.done b { color: #9CCBAE; } :root[data-theme="dark"] .lt.plan b { color: #fff; }
.lh-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; opacity: .96; }
.lh-foot span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-foot span:last-child { white-space: nowrap; font-weight: 800; }

/* кто где: в одну строку */
.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.item.who .mid { gap: 1px; }
.item.who .n { font-size: 16.5px; }
.item.who .s { -webkit-line-clamp: unset; display: block; color: var(--text-2); font-weight: 600; }
.item.who .st { flex: none; }

/* календарь: объект главный, люди — второстепенно */
.cal-site { padding: 0; overflow: hidden; }
.cs-head { width: 100%; border: none; background: var(--tint); color: inherit; font: inherit; text-align: left; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.cs-head .site-ic { width: 46px; height: 46px; background: var(--surface); }
.cs-name { font-size: 18px; font-weight: 900; line-height: 1.2; color: var(--accent-ink); }
:root[data-theme="dark"] .cs-name { color: var(--text); }
.cs-sub { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 3px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.cs-sub span { display: inline-flex; align-items: center; gap: 4px; }
.cs-people { padding: 4px 16px 8px; }
.cs-p { width: 100%; border: none; background: none; color: var(--text-2); font: inherit; display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; font-weight: 600; min-height: 44px; }
.cs-p:last-child { border-bottom: none; }
.cs-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted); }
.cs-dot.ok, .cs-dot.done { background: var(--ok); } .cs-dot.bad { background: var(--bad); } .cs-dot.warn { background: var(--warn); } .cs-dot.plan, .cs-dot.none { background: var(--line-2); }
.cs-st { font-size: 12.5px; font-weight: 800; color: var(--muted); flex: none; }
.cs-st.ok { color: var(--ok); } .cs-st.bad { color: var(--bad); } .cs-st.warn { color: var(--warn); } .cs-st.done { color: var(--ok); opacity: .8; }

/* деньги — крупно и жирно */
.cur { font-size: .62em; font-weight: 800; opacity: .7; letter-spacing: 0; }
.money-grid b { font-size: 21px; font-weight: 900; letter-spacing: -.3px; white-space: nowrap; }
.money-grid span { font-size: 12px; }
.mrow b { font-size: 19px; font-weight: 900; }
.amt b { font-size: 19px; font-weight: 900; }
.due b { font-size: 24px; }
.kpis b { font-size: 21px; }
.num.money { font-size: 19px; font-weight: 900; letter-spacing: -.2px; }
.money-xl { font-size: 30px !important; font-weight: 900; letter-spacing: -.5px; }
.chips-sum .st { font-weight: 900; }

/* плавные переключения */
.panel.swap > *:not(.grab):not(.sheet-x) { animation: swapIn .2s ease both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel { overflow-y: auto; will-change: height; }
#view.fade > * { animation: swapIn .22s ease both; }
.seg button { transition: background .18s, color .18s, box-shadow .18s; }
.chip, .lt, .tgl, .tgl i { transition: all .15s ease; }
@media (prefers-reduced-motion: reduce) { .panel.swap > *, #view.fade > * { animation: none; } }
.item .one, .item.who .s.one, .item.who .s2.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; -webkit-line-clamp: unset; }
.nrow > span:first-child { white-space: nowrap; flex: none; } .mrow span { min-height: 2.5em; }
.nrow > span.num.money { display: inline-block; } small.cur { display: inline !important; margin: 0 !important; }
/* 13.11 03:00 */
.cs-head { background: none; padding: 16px 16px 6px; }
.cs-head .site-ic { background: var(--accent-soft); }
.cs-name { font-size: 18px; font-weight: 900; line-height: 1.2; color: var(--text); letter-spacing: -.2px; }
.cs-people { padding: 2px 16px 8px 74px; }
.hero .h-grid.four { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hero .h-grid.four .h-cell { padding: 10px 8px; }
.hero .h-grid.four .h-cell span { font-size: 11.5px; gap: 4px; }
.hero .h-cell b small { font-size: 15px; font-weight: 800; opacity: .6; }
.hero .h-cell svg { flex: none; color: var(--accent); }
/* финансы: ровная сетка */
.obj-btn .obj-top { align-items: center; }
.obj-btn .obj-top .label { margin-top: 2px; }
.mrow { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.mrow > div { padding: 0 10px; border-left: 1px solid var(--line); justify-content: space-between; gap: 4px; }
.mrow > div:first-child { padding-left: 0; border-left: none; }
.mrow span { min-height: 0 !important; white-space: nowrap; font-size: 11.5px; letter-spacing: .01em; text-transform: uppercase; }
.mrow b { font-size: 18px; white-space: nowrap; }
.money-grid > div { justify-content: space-between; min-height: 76px; }
.money-grid span { line-height: 1.2; }
.item .amt b { font-size: 18px; }
.item .n { font-weight: 800; }
.mrow span { text-transform: none; font-size: 11.5px; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; }
.mrow > div { min-width: 0; }
.mrow > div:last-child span { white-space: normal; overflow: visible; }
.mrow { grid-template-columns: 1fr 1fr 1.15fr; }
/* 13.11 03:30: отчёты рядом с «2 из 5», объекты — единый стиль */
.h-mid { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.h-rep { border: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); color: #fff; text-align: left; flex: none; }
.h-rep:active { background: rgba(255,255,255,.28); }
.h-rep-i { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; }
.h-rep b { display: block; font-size: 22px; font-weight: 900; line-height: 1; }
.h-rep b small { font-size: 14px; opacity: .8; font-weight: 800; }
.h-rep em { font-style: normal; font-size: 12.5px; font-weight: 700; opacity: .95; }
.cs-head { padding: 16px 16px 4px; gap: 12px; }
.cs-head .site-ic { width: 46px; height: 46px; background: var(--accent-soft); }
.cs-sub { font-weight: 600; color: var(--muted); font-size: 14px; }
.cs-people { padding-left: 74px; }
/* 13.11 вечер: фото, анкета, установка */
.ava.has-ph { position: relative; overflow: hidden; padding: 0; }
.ava.has-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.ava.has-ph img.ok { opacity: 1; }
.big-ava { width: 84px !important; height: 84px !important; font-size: 26px !important; flex: none; }
.photo-pick { display: flex; align-items: center; gap: 12px; }
#person-form[data-filler="emp"] .me-only { display: none; }
#person-form:not([data-filler="emp"]) .emp-only { display: none; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; font-size: 16px; line-height: 1.4; }
.step .stepn { flex: none; }
.kbd { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: var(--tint-2); color: var(--accent-ink); font-weight: 800; vertical-align: middle; white-space: nowrap; }
.share-hint { position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 6px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; box-shadow: var(--shadow-accent); animation: bob 1.4s ease-in-out infinite; z-index: 30; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
.code-details { padding: 14px 16px; }
.code-details summary { cursor: pointer; font-weight: 700; color: var(--muted); list-style: none; }
.code-details summary::-webkit-details-marker { display: none; }
.code-details .code-big { text-align: center; margin-top: 10px; }
.inst { display: flex; align-items: center; gap: 12px; position: relative; background: var(--tint); color: var(--accent-ink); }
.inst .label { color: var(--text-2); }
.inst .btn-sm { flex: none; height: 40px; padding: 0 16px; }
.inst-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: none; background: none; color: var(--muted); display: grid; place-items: center; }
.btn-sm { height: 44px; font-size: 15px; }
.share-hint span { white-space: nowrap; }
/* ===== 13.11 20:30: единый стиль кнопок и плашек ===== */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; line-height: 1.1; }
.btn svg { flex: none; }
.site-actions .btn { padding: 0 12px; font-size: 16px; gap: 6px; }
.btn.confirm { background: var(--bad-bg) !important; color: var(--bad) !important; }
/* крестик без обводки */
.sheet-x { background: none; box-shadow: none; width: 36px; height: 36px; top: 14px; right: 10px; color: var(--muted); }
.sheet-x:active { background: var(--tint-2); }
/* плитки-фильтры в плашках: нажатая чуть больше */
.hero .h-cell { transition: transform .16s ease, box-shadow .16s ease; }
.hero .h-cell.on { transform: scale(1.06); box-shadow: 0 8px 20px rgba(0,0,0,.18), 0 0 0 2px #fff; z-index: 1; position: relative; }
.hero .h-cell:active { transform: scale(.97); }
.hero .h-cell b.red { color: var(--bad); }
.hero .h-grid { margin-top: 2px; }
.hero { gap: 10px; }
.hero .h-big { font-size: 42px; }
.hero .h-cap { margin-top: 2px; }
.hero .h-mid { margin-top: -2px; }
.hero .h-big .cur { font-size: .5em; opacity: .85; }
/* утопленный маленький переключатель */
.seg.seg-sm { background: var(--tint-2); box-shadow: inset 0 1px 3px rgba(0,0,0,.08); padding: 3px; }
.seg.seg-sm button { height: 34px; font-size: 13px; font-weight: 800; padding: 0 10px; }
.seg.seg-sm button small { font-size: 12px; font-weight: 800; color: var(--muted); margin-left: 2px; }
.seg.seg-sm button.on small { color: var(--accent); }
.filter-note { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-2); padding: 0 4px; }
.filter-note .linkbtn { padding: 0; }
/* календарь: люди в отдельной рамке под объектом */
.cs-people { margin: 4px 14px 14px; padding: 2px 12px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); }
:root[data-theme="dark"] .cs-people { background: rgba(255,255,255,.02); }
/* сданный объект — чуть зелёный */
.obj-btn.handed { background: #E4EEE7; }
.obj-btn.handed .site-ic { background: #CFE3D6; color: #24573A; }
:root[data-theme="dark"] .obj-btn.handed { background: #1F2E25; }
:root[data-theme="dark"] .obj-btn.handed .site-ic { background: #2A4434; color: #9CCBAE; }
.hero .h-cell b { white-space: nowrap; }
.hero .h-cell b .cur { font-size: .55em; }
.money-hero .h-cell b, .hero .h-cell b:has(.cur) { font-size: 19px; }
.seg.seg-sm button { padding: 0 6px; font-size: 12.5px; flex: 1 1 auto; }
/* отчёты: лента по дням */
.rday { border: 1.5px solid var(--line-2); border-radius: 20px; background: var(--surface); overflow: hidden; }
.rday-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; background: var(--tint-2); font-size: 14.5px; }
.rday-h b { font-weight: 800; min-width: 0; }
.rday-h span { flex: none; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.rday-h span.red { color: var(--bad); }
.rrow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: none; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; min-height: 76px; }
.rrow:active { background: var(--tint-2); }
.rrow .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rrow .n { font-size: 16px; font-weight: 800; }
.rrow .s { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.rthumb { width: 58px; height: 58px; border-radius: 14px; flex: none; position: relative; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, #6b5a4e, #a88b74); color: var(--accent); }
.rthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.rthumb img.ok { opacity: 1; }
.rthumb i { position: relative; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.rthumb.miss { background: var(--bad-bg); color: var(--bad); }
.rthumb.wait { background: var(--tint-2); color: var(--muted); }
.panel .rday { background: var(--surface); }
/* 13.11 21:45 — вариант 1 «Тонкая рамка» для объектов везде */
.cal-site, .obj-btn { border: 1.5px solid var(--line-2); box-shadow: none; background: var(--surface); }
.cal-site { padding: 14px 16px; }
.cs-head { padding: 0; background: none; }
.cs-head .site-ic { width: 46px; height: 46px; }
.cs-people { margin: 12px 0 0; padding: 0; border: none; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.cs-p { border-bottom: none; padding: 10px 0; min-height: 44px; }
.cs-p + .cs-p { border-top: 1px dashed var(--line); }
.obj-btn .obj-foot, .obj-btn .mrow { border-top: 1px solid var(--line); padding-top: 12px; }
.obj-btn.handed { border-color: #BFD8C7; }
:root[data-theme="dark"] .obj-btn.handed { border-color: #2F4A39; }
/* «2 из 5» ближе к дате */
.hero .h-top + div, .hero .h-top + .h-mid { margin-top: -8px; }
.hero .h-cap { margin-top: 0; }
.hero .h-big { line-height: .95; }
.obj-foot { flex-wrap: nowrap; gap: 10px; }
.obj-foot span { white-space: nowrap; }
.obj-foot span:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* логотип: «i» — молоток */
.logo .li { position: relative; display: inline-block; line-height: 1; color: transparent; }
.logo .li svg { position: absolute; left: 50%; top: .04em; width: .58em; height: .79em; transform: translateX(-50%); fill: var(--text); }

/* шторка: экран под ней не двигается, сама шторка — только вверх-вниз */
html:has(#sheet:not([hidden])), body:has(#sheet:not([hidden])) { overflow: hidden; }
.sheet { overscroll-behavior: contain; }
.sheet .panel { overflow-x: hidden; overscroll-behavior: contain; }
.two > * { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
input[type=time], input[type=date] { -webkit-appearance: none; appearance: none; display: block; width: 100%; }
.field input[type=time], .field input[type=date] { line-height: 49px; }
input[type=time]::-webkit-date-and-time-value, input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; }

/* крупное фото сотрудника */
.zoom { position: fixed; inset: 0; z-index: 80; background: rgba(15,12,10,.86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; animation: fade .16s; }
.zoom img { width: min(86vw, 420px); aspect-ratio: 1; object-fit: cover; border-radius: 28px; }
.zoom b { color: #fff; font-size: 20px; font-weight: 800; text-align: center; }
.zoom.out { opacity: 0; transition: opacity .16s; }

/* ничего не уезжает вбок: страница и шторка двигаются только вверх-вниз */
body { overflow-x: clip; }
#view { overflow-x: clip; }
.sheet .panel { touch-action: pan-y; }
.sheet .panel form, .sheet .panel .field, .sheet .panel .two, .sheet .panel .chips { min-width: 0; max-width: 100%; }
.sheet .panel .chips { flex-wrap: wrap; }
.hero .h-grid > * { min-width: 0; }
.hero .h-cell b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 350px) { .hero .h-cell b { font-size: 19px; } .hero .h-cell { padding: 10px 9px; } }
.seg.seg-sm { max-width: 100%; }
.seg.seg-sm button { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 350px) { .seg.seg-sm button { font-size: 12.5px; padding-inline: 6px; } }

/* большое предупреждение «ты не на объекте» */
.geo-warn { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 4px 4px; }
.geo-warn h2 { margin: 0; font-size: 26px; color: var(--bad); }
.geo-warn p { margin: 0; font-size: 17px; color: var(--text-2); line-height: 1.45; }
.geo-ic.bad { width: 88px; height: 88px; border-radius: 28px; background: var(--bad-bg); color: var(--bad); }
.geo-note { font-size: 15px; color: var(--text-2); background: var(--surface-2); }
/* «Ждут подтверждения» у мастера и прораба */
.geo-review { border: 1.5px solid var(--bad); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.geo-review .gr-h { display: flex; align-items: center; gap: 8px; color: var(--bad); }
.geo-review .gr-h b { flex: 1; color: var(--text); font-size: 17px; }
.geo-review .gr-h .num { background: var(--bad); color: #fff; border-radius: 10px; padding: 1px 8px; font-weight: 800; font-size: 14px; }
.geo-review .gr-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 12px; }
.geo-review .gr-row .grow { min-width: 0; flex: 1; }
.geo-review .gr-row .n { font-weight: 700; }
.geo-review .linkbtn { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: none; }
.geo-review .gr-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.geo-pend { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--warn); }
.geo-pend.bad { color: var(--bad); } .geo-pend.ok { color: var(--ok); }
.ver-card { display: flex; align-items: center; gap: 12px; }
.ver-card b { font-size: 18px; }

/* профиль и настройки — сгруппированные строки, как в MurSpace */
.panel h3 { margin: 10px 4px -4px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.acc-head { display: flex; align-items: center; gap: 12px; }
.acc-head b { display: block; font-size: 18px; font-weight: 800; }
.acc-head small { color: var(--muted); font-size: 14px; }
.acc-list { display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 13px 16px;
  background: none; border: none; border-bottom: 1px solid var(--line); text-align: left; font-size: 16px; font-weight: 700; color: var(--text); }
.acc-row:last-child { border-bottom: 0; }
button.acc-row:active { background: var(--line); }
button.acc-row::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); flex: none; margin-left: -4px; }
.acc-row small { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; margin-left: auto; }
.acc-row .okc, .okc { color: var(--ok); }
.acc-row.danger { color: var(--bad); }
.acc-row.danger::after { display: none; }
.acc-hint { margin: -2px 6px 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
/* уведомление, из которого можно сразу перейти к делу */
button.log.go { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; color: inherit; font: inherit; cursor: pointer; }
button.log.go:active { background: var(--tint-2); }
.log-go { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; padding: 5px 9px 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 800; white-space: nowrap; }
.warnc { color: var(--warn); } .badc { color: var(--bad); }
.acc-head .st { margin-left: auto; }
.chips .chip:disabled { opacity: .55; }

/* тонкая обводка, как у объектов в «Календаре» и «Объектах» — и в списках людей */
#view .list, #view .q, #view .search { border: 1.5px solid var(--line-2); box-shadow: none; background: var(--surface); }
#view .list .item { background: transparent; }

/* ---------- плитки в оранжевом герое: одинаковая сетка везде ---------- */
.hero .h-grid { align-items: stretch; }
.hero .h-cell { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 12px 10px 11px 12px; min-width: 0; }
.hero .h-cell b, .money-hero .h-cell b, .hero .h-cell b:has(.cur) { display: block; font-size: 22px; line-height: 26px; height: 26px; font-weight: 800; padding-right: 12px; }
.hero .h-cell b .cur { display: none; }
.hero .h-cell span { display: block; white-space: normal; font-size: 12.5px; line-height: 1.2; font-weight: 600; overflow-wrap: anywhere; }
.hero .h-cell i { position: absolute; top: 14px; right: 11px; width: 8px; height: 8px; min-width: 8px; flex: none; border-radius: 50%; }
.hero .h-grid.four .h-cell b { font-size: 20px; }
@media (max-width: 370px) { .hero .h-cell b, .money-hero .h-cell b, .hero .h-cell b:has(.cur) { font-size: 20px; } .hero .h-cell span { font-size: 12px; } }

/* ---------- плашки «Поставь на экран» / «Включи уведомления» ---------- */
.inst { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; row-gap: 12px; align-items: start; padding-right: 40px; }
.inst .inst-ic { display: grid; place-items: center; height: 24px; margin-top: 1px; }
.inst .inst-t { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; min-width: 0; }
.inst .inst-t b { font-size: 16px; }
.inst .inst-t .label { font-size: 14px; line-height: 1.3; }
.inst .btn-sm { grid-column: 2; justify-self: start; }
.inst-x { top: 10px; right: 10px; width: 32px; height: 32px; }
:root { --done: #24573A; }
:root[data-theme="dark"] { --done: #9CCBAE; }
/* фильтр «Все / На месте / Нет данных / Завершил» — помещается целиком на узких экранах */
.seg.seg-sm button { flex: 1 1 auto; min-width: 0; }
@media (max-width: 400px) { .seg.seg-sm button { padding: 0 6px; font-size: 12.5px; letter-spacing: -.1px; } .seg.seg-sm button small { font-size: 11.5px; margin-left: 1px; } }
@media (max-width: 380px) { .kv .k { width: 108px; font-size: 14.5px; } }

/* ---------- главный аккаунт: коды доступа и компании ---------- */
.adm-form { gap: 10px; margin-top: 4px; }
.adm-form input { height: 48px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text); padding: 0 14px; font: inherit; font-size: 16px; }
.adm-row { display: flex; align-items: center; gap: 8px; padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--line); }
.adm-row:last-child { border-bottom: none; }
.adm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-t b { font-size: 16px; font-weight: 800; }
.adm-t b.num { font-size: 18px; letter-spacing: .5px; }
.adm-t small { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-t .adm-off { color: var(--bad); font-weight: 700; }
.adm-row.off .adm-t b { opacity: .6; }
.adm-row .icon-btn { flex: none; }
.adm-row .btn-sm { flex: none; height: 38px; padding: 0 14px; }
.adm-screen { max-width: 560px; }
.adm-screen .card h2 { margin-top: 0; }
.nowrap { white-space: nowrap; }
.hero .h-grid.two { grid-template-columns: 1fr 1fr; }
/* телефон: код страны + номер */
.phone-in { display: flex; gap: 8px; }
.phone-in select { flex: none; width: 108px; padding: 0 8px 0 10px; font-size: 16px; }
.phone-in input { flex: 1; min-width: 0; }
.link-btn { background: none; border: none; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 12px; cursor: pointer; }
.boss-link { margin-top: 18px; align-self: center; }
/* яркая плашка «Вы не начали смену» */
.late-alarm { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: none; border-radius: 22px; padding: 18px 18px; margin: 0 0 14px;
  background: linear-gradient(135deg, #D7382B, #B4232A); color: #fff; box-shadow: 0 10px 26px rgba(196, 40, 40, .32); font: inherit; cursor: pointer; animation: lateGlow 1.6s ease-in-out infinite; }
.late-alarm > svg { flex: none; }
.late-alarm b { display: block; font-size: 20px; font-weight: 800; margin-bottom: 3px; }
.late-alarm span span { display: block; font-size: 15px; font-weight: 600; opacity: .95; line-height: 1.3; }
@keyframes lateGlow { 0%, 100% { box-shadow: 0 10px 26px rgba(196, 40, 40, .30); } 50% { box-shadow: 0 10px 34px rgba(196, 40, 40, .62); } }
@media (prefers-reduced-motion: reduce) { .late-alarm { animation: none; } }
/* выходные в календаре */
.cal .wdh span.wknd { color: var(--bad); opacity: .85; }
.cal .cell.wknd > span:first-child { color: var(--bad); }
.cal .cell.wknd.sel > span:first-child { color: inherit; }
.cal .cell.wknd.past > span:first-child { opacity: .6; }
/* «+» наверху календаря */
.add-fab { flex: none; width: 52px; height: 52px; border-radius: 18px; border: none; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(180, 83, 42, .3); cursor: pointer; align-self: center; }
/* видно, куда нажал */
html { -webkit-tap-highlight-color: transparent; }
:where(button, a.btn, .item, .q, .chip, .cell, .acc-row, .h-cell, .log, .cs-p, .cs-head):not(:disabled) { transition: transform .1s ease, filter .1s ease, background-color .15s; }
:where(button, a.btn, .item, .q, .chip, .cell, .acc-row, .h-cell, .log, .cs-p, .cs-head):not(:disabled):active { transform: scale(.97); filter: brightness(.93); }
:where(.list, .acc-list) > :where(button, .item, .acc-row):active { transform: none; background-color: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ---------- цвет объекта ---------- */
.sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; flex: none; }
.chip.schip { display: inline-flex; align-items: center; gap: 0; }
.colors { display: flex; flex-wrap: wrap; gap: 10px; }
.colors .cl { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--muted); cursor: pointer; padding: 0; }
.colors .cl[style] { border-color: transparent; }
.colors .cl.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
/* ---------- файлы объекта ---------- */
.item.sfile { padding: 0 6px 0 0; gap: 4px; }
.sf-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: none; text-align: left; font: inherit; color: inherit; padding: 12px 6px 12px 14px; cursor: pointer; }
.sf-picked { display: flex; flex-direction: column; gap: 6px; }
.sf-picked:empty { display: none; }
.sfp { display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 12px; border-radius: 12px; background: var(--surface-2, var(--bg)); font-size: 14.5px; font-weight: 600; overflow: hidden; }
.sfp small { color: var(--text-2); font-weight: 500; flex: none; }
.sfp button { margin-left: auto; flex: none; border: none; background: none; color: var(--muted); padding: 6px; cursor: pointer; }
.site-note .label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.site-note .sn-t { font-size: 15.5px; line-height: 1.4; white-space: pre-wrap; }
/* ---------- метки статуса не выдавливают имя ---------- */
.item > .st { flex: none; }
@media (max-width: 400px) { .item > .st { font-size: 12.5px; padding: 5px 8px; gap: 4px; } .item > .st svg { width: 14px; height: 14px; } }
.item .icon-btn + .st { margin-left: 2px; }

/* ---------- уведомления: группы и переход к месту ---------- */
.n-sec { font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--text-2); margin: 4px 4px -2px; }
.ngroup { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ngroup > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.ngroup > summary::-webkit-details-marker { display: none; }
.ngroup > summary small { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; }
.ngroup > summary .chev { transition: transform .2s; color: var(--muted); }
.ngroup[open] > summary .chev { transform: rotate(180deg); }
.ngroup .ng-new { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 1px; }
.ngroup .ng-body { display: flex; flex-direction: column; gap: 6px; padding: 0 8px 8px; }
.flash { animation: flashRing 1.4s ease-in-out 3; position: relative; z-index: 1; }
@keyframes flashRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 83, 42, 0); } 40% { box-shadow: 0 0 0 4px var(--accent), 0 8px 24px rgba(180, 83, 42, .35); } }
.log-sw { margin-top: -4px; }
.list > .flash, .acc-list > .flash { animation: flashIn 1.4s ease-in-out 3; }
@keyframes flashIn { 0%, 100% { box-shadow: inset 0 0 0 0 transparent; background-color: transparent; } 40% { box-shadow: inset 0 0 0 3px var(--accent); background-color: color-mix(in srgb, var(--accent) 10%, transparent); } }

/* ---------- погода ---------- */
.wx { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.wx-i { font-size: 38px; line-height: 1; flex: none; width: 46px; text-align: center; }
.wx-place { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 1px 0; }
.wx-t b { font-size: 28px; font-weight: 800; }
.wx-t span { font-size: 15px; font-weight: 600; }
.wx-s { display: block; font-size: 13.5px; color: var(--text-2); }
.wx .grow { min-width: 0; }
.wx-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.wx-week span { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.wx-week i { font-style: normal; font-size: 18px; }
.wx-week b { font-size: 13px; font-weight: 800; }
.wx-week small { font-size: 11.5px; color: var(--text-2); }
.rec-btn[disabled] { opacity: .5; }

/* цвет объекта — полоска слева */
.sbar { position: relative; }
.card.sbar, .item.sbar { box-shadow: inset 5px 0 0 var(--sc); }
.list > .item.sbar { box-shadow: inset 4px 0 0 var(--sc); }
.card.sbar.obj, .card.sbar.site-card, .card.sbar.cal-site { box-shadow: inset 5px 0 0 var(--sc), var(--shadow, 0 1px 2px rgba(0,0,0,.04)); }
/* погода: кнопка с выбором объекта */
button.card.wx { width: 100%; border: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.wx-set { flex: none; color: var(--muted); align-self: flex-start; }
/* погода компактно — в одну строку */
.wx.wx-mini { gap: 10px; padding: 10px 14px; align-items: center; }
.wx-mini .wx-i { font-size: 24px; width: 28px; }
.wx-mini > b { font-size: 22px; font-weight: 800; flex: none; }
.wx-mini .wx-line { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.wx-mini .wx-line small { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.wx-mini .wx-set { align-self: center; }
.chip.wx-chip { flex: none; }
