/* Кабинет клиента — ядро: токены темы (светлая/тёмная), каркас (нижние вкладки / боковое меню), общие компоненты.
   Мобильный в первую очередь (Telegram Mini App 375 px), с 900 px — боковое меню.
   Стили отдельных экранов — в css/modules/<модуль>.css. */
:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-2: #eaeef2;
  --fg: #16202a;
  --muted: #5d6b78;
  --line: #d8dee5;
  --accent: #0c6c8c;
  --accent-soft: #dceef4;
  --accent-fg: #ffffff;
  --ok: #1f7a4d;
  --ok-soft: #dcf1e5;
  --warn: #9a6200;
  --warn-soft: #fbecd0;
  --bad: #b3261e;
  --bad-soft: #f9dedc;
  --save: #13874f; --save-fg: #ffffff; --save-glow: rgb(19 135 79 / .35);
  --code-bg: #0f1a22;
  --code-fg: #cfe3ec;
  --font-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e151b; --surface: #16202a; --surface-2: #1d2a35; --fg: #e3eaf0; --muted: #8fa0ae; --line: #2a3a47;
  --accent: #4fb3d4; --accent-soft: #163847; --accent-fg: #06222d;
  --ok: #5fcf93; --ok-soft: #133826; --warn: #e8b04f; --warn-soft: #3a2c10; --bad: #f08a80; --bad-soft: #3d1a17;
  --save: #2fbf71; --save-fg: #04210f; --save-glow: rgb(47 191 113 / .35);
  --code-bg: #071016; --code-fg: #b9d6e2; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0e151b; --surface: #16202a; --surface-2: #1d2a35; --fg: #e3eaf0; --muted: #8fa0ae; --line: #2a3a47;
  --accent: #4fb3d4; --accent-soft: #163847; --accent-fg: #06222d;
  --ok: #5fcf93; --ok-soft: #133826; --warn: #e8b04f; --warn-soft: #3a2c10; --bad: #f08a80; --bad-soft: #3d1a17;
  --save: #2fbf71; --save-fg: #04210f; --save-glow: rgb(47 191 113 / .35);
  --code-bg: #071016; --code-fg: #b9d6e2; color-scheme: dark }

* { box-sizing: border-box }
[hidden] { display: none !important }
html, body { height: 100% }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-ui); font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent; overflow-x: hidden }
.num, td.n, .mono { font-family: var(--font-num); font-variant-numeric: tabular-nums }
button, input, select { font: inherit; color: inherit }
button { cursor: pointer }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }

/* Каркас */
.app { display: grid; grid-template-columns: 1fr; min-height: 100% }
.side { display: none }
.main { min-width: 0; padding-block: 12px 96px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); max-width: 980px; width: 100%; margin: 0 auto }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0 }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none }
.brand > div:last-child { min-width: 0 }
.brand b { display: block; font-size: 15px }
.brand small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.topbar .right { display: flex; align-items: center; gap: 6px; flex: none }
.iconbtn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; padding: 0; color: var(--muted) }
.iconbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }

/* Нижние вкладки: 9 пунктов помещаются в 375 px */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(40px, 1fr); overflow-x: auto; scrollbar-width: none; padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); z-index: 5 }
.tabbar::-webkit-scrollbar { display: none }
.tabbar button, .side nav button { background: none; border: 0; display: grid; justify-items: center; gap: 2px; padding: 8px 0 9px; font-size: 10px; letter-spacing: -.01em; color: var(--muted); min-width: 0 }
.tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.tabbar svg, .side svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.tabbar button[aria-current="page"], .side nav button[aria-current="page"] { color: var(--accent); font-weight: 600 }
.tabbar button, .side nav button { position: relative }
.navdot { position: absolute; top: 6px; left: calc(50% + 7px); width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--surface) }
.side nav .navdot { position: static; margin-left: auto; align-self: center; box-shadow: none }

/* Текст */
h1 { font-size: 22px; margin: 4px 0 2px; text-wrap: balance }
h2 { font-size: 16px; margin: 0 0 10px }
h3 { font-size: 14.5px; margin: 0 0 6px }
.sub { color: var(--muted); margin: 0 0 14px; font-size: 13.5px }
.label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600 }
.hint { font-size: 12.5px; color: var(--muted) }
.hint.err { color: var(--bad) } .hint.okc { color: var(--ok) }
.na { color: var(--muted) }
.c-ok { color: var(--ok) } .c-warn { color: var(--warn) } .c-bad { color: var(--bad) }
.mockbadge { font-size: 11px; color: var(--warn); background: var(--warn-soft); padding: 2px 8px; border-radius: 6px; font-weight: 600 }
p { margin: 0 0 8px }

/* Раскладка */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px }
.stack { display: grid; gap: 14px }
.stack.sm { gap: 8px }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr }
.stack > *, .grid2 > * { min-width: 0 }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap }
.spread.nw { flex-wrap: nowrap }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0,1fr)) }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-width: 0; text-align: left }
button.kpi { width: 100%; font: inherit; color: inherit }
.kpi .v { font-family: var(--font-num); font-size: 20px; font-weight: 500; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.kpi .d { font-size: 12px; color: var(--muted) }
.kpi.hl { background: var(--accent); border-color: var(--accent); color: var(--accent-fg) }
.kpi.hl .label, .kpi.hl .d { color: inherit; opacity: .85 }
.kpi.warnk { border-color: var(--warn); background: var(--warn-soft) }
.kpi.badk { border-color: var(--bad); background: var(--bad-soft) }
.cards { display: grid; gap: 10px; grid-template-columns: 1fr }
.tcard { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 4px; width: 100%; min-width: 0 }
.tcard[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft) }
.tcard .t { font-weight: 600 }

/* Список строк */
.list { display: grid; gap: 0 }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; align-items: center }
.item:last-child { border-bottom: 0 }
button.item:hover { background: var(--surface-2) }
.item .t { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis }
.item .m { color: var(--muted); font-size: 13px; min-width: 0 }
.item .r { text-align: right }

/* Кнопки и метки */
.btn { border: 1px solid var(--line); background: var(--surface); padding: 9px 13px; border-radius: 9px; font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px }
.btn:hover { border-color: var(--accent) }
.btn:disabled { opacity: .45; cursor: not-allowed }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-fg) }
.btn.sm { padding: 4px 10px; font-size: 13px; min-height: 32px }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent) }
.btn.danger { color: var(--bad) }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff }
.btn.wide { width: 100% }
.btn.save { background: var(--save); border: 2px solid var(--save); color: var(--save-fg); font-weight: 700; font-size: 16px; padding: 12px 20px; border-radius: 12px; box-shadow: 0 2px 10px var(--save-glow); min-height: 50px }
.btn.save:hover { filter: brightness(1.08); border-color: var(--save) }
.btn.save:disabled { box-shadow: none; filter: grayscale(.5) }
.btn.save.pulse { animation: pulse 1.4s ease-in-out infinite }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--save-glow) } 50% { box-shadow: 0 0 0 7px transparent } }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; padding: 10px 16px 10px 12px; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 10px }
.back svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--muted); white-space: nowrap }
.chip.ok { background: var(--ok-soft); color: var(--ok) }
.chip.warn { background: var(--warn-soft); color: var(--warn) }
.chip.bad { background: var(--bad-soft); color: var(--bad) }
.chip.acc { background: var(--accent-soft); color: var(--accent) }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none }
.dot.live { animation: blink 1.2s ease-in-out infinite }
@keyframes blink { 50% { opacity: .25 } }
.seg { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; max-width: 100% }
.seg button { border: 0; background: none; padding: 7px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); flex: 1 1 auto; white-space: nowrap }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgb(0 0 0 / .12) }
.seg.big button { font-size: 15px; padding: 9px 14px; font-weight: 600 }
.seg.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none }
.seg.scroll::-webkit-scrollbar { display: none }
.prof-gold { --pc: #a87a00 } .prof-silver { --pc: #6b7886 } .prof-black { --pc: #222b33 }
:root[data-theme="dark"] .prof-black { --pc: #c9d3dc }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prof-black { --pc: #c9d3dc } }
.pbadge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--pc); white-space: nowrap }
.pbadge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pc) }
.alert { border-radius: var(--r); padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 4px }
.alert.warn { background: var(--warn-soft); border-color: var(--warn) }
.alert.bad { background: var(--bad-soft); border-color: var(--bad) }
.alert.ok { background: var(--ok-soft); border-color: var(--ok) }
.alert.acc { background: var(--accent-soft); border-color: var(--accent) }
.alert b { font-weight: 600 }

/* Таблицы: на телефоне прокручиваются внутри блока, страница не уезжает */
.tablewrap { overflow-x: auto; margin: 0 -14px; padding: 0 14px }
table { border-collapse: collapse; width: 100%; font-size: 14px }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 7px; border-bottom: 1px solid var(--line); white-space: nowrap }
td { padding: 9px 7px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap }
tr:last-child td { border-bottom: 0 }
th.n, td.n { text-align: right }
tr.total td { border-top: 2px solid var(--line); background: var(--surface-2); font-weight: 600 }
tr.click { cursor: pointer } tr.click:hover td { background: var(--surface-2) }

/* Поля ввода */
.field { display: grid; gap: 4px; min-width: 0 }
.field input, .field select, .inp { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); width: 100%; min-width: 0; font-size: 16px }
.inp.bad { border-color: var(--bad) } .inp.good { border-color: var(--ok) }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) }
input[type="datetime-local"] { font-family: var(--font-num); font-size: 14px }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer }
.check:last-child { border-bottom: 0 }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ok) }
.check.done span { color: var(--muted); text-decoration: line-through }

/* Блоки с кодом и строки «скопировать» */
pre.code { background: var(--code-bg); color: var(--code-fg); border-radius: 10px; padding: 12px; font-family: var(--font-num); font-size: 12.5px; line-height: 1.55; overflow-x: auto; margin: 0; white-space: pre }
.copyrow { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 9px; padding: 6px 6px 6px 12px; min-width: 0 }
.copyrow .mono { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px }
.kv { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, auto); gap: 6px 12px; font-size: 14px }
.kv > :nth-child(odd) { color: var(--muted) }
.kv > :nth-child(even) { text-align: right; overflow-wrap: anywhere }

/* Графики-столбцы */
.bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding-top: 6px; border-bottom: 1px solid var(--line) }
.bars div { flex: 1; background: color-mix(in srgb, var(--accent) 32%, transparent); border-radius: 3px 3px 0 0; min-height: 2px; position: relative }
.bars div .a { position: absolute; bottom: 0; left: 0; right: 0; background: var(--accent); border-radius: 3px 3px 0 0 }
.bars.money div { background: var(--ok) }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; font-family: var(--font-num) }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; flex-wrap: wrap }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px }
.meter.ok i { background: var(--ok) } .meter.warn i { background: var(--warn) } .meter.bad i { background: var(--bad) }

/* «Скоро»: серые пунктирные заготовки */
.soon { opacity: .6; cursor: help; border-style: dashed !important; border-color: var(--line) !important; color: var(--muted) !important; background: transparent !important; box-shadow: none !important }
.soonchip { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted) }
.tcard.soon { cursor: help }

/* «Для разработчика»: журнал вызовов MOR (клиенту не нужен, свёрнут) */
details.dev { margin-top: 28px; border: 1px dashed var(--line); border-radius: var(--r); padding: 0 12px; color: var(--muted) }
details.dev summary { cursor: pointer; padding: 11px 0; font-size: 13px; font-weight: 600; list-style-position: inside }
details.dev[open] { padding-bottom: 12px }
.log { background: var(--code-bg); color: var(--code-fg); border-radius: 10px; padding: 12px; font-family: var(--font-num); font-size: 12px; line-height: 1.55; max-height: 320px; overflow: auto; overflow-wrap: anywhere }
.log .e { padding: 4px 0; border-bottom: 1px solid rgb(255 255 255 / .07) }
.log .e:last-child { border-bottom: 0 }
.log .fn { color: #7fd3f0 } .log .k { color: #f2c27a } .log .c { opacity: .6 } .log .w { color: #f2a07a }

/* Всплывашки, окна, нижняя плашка */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 9px; font-size: 14px; z-index: 30; max-width: calc(100% - 32px); text-align: center }
.modal-bg { position: fixed; inset: 0; background: rgb(0 0 0 / .45); display: grid; place-items: end center; z-index: 20 }
.modal { background: var(--surface); width: 100%; max-width: 520px; border-radius: 16px 16px 0 0; padding: 18px max(16px, env(safe-area-inset-left, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)); max-height: 90%; overflow: auto }
.modal .acts { display: grid; gap: 8px; margin-top: 16px }
.warnhead { display: flex; align-items: center; gap: 12px }
.warnicon { width: 38px; height: 38px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none }
.warnicon.bad { background: var(--bad-soft); color: var(--bad) }
.bar { position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); z-index: 8; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--warn-soft); color: var(--fg); border-top: 2px solid var(--warn); padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.bar b { color: var(--warn) }

@media (min-width: 640px) {
  .kpis { grid-template-columns: repeat(4, minmax(0,1fr)) }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .modal .acts { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) }
}
@media (min-width: 900px) {
  .app { grid-template-columns: 210px 1fr }
  .side { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px }
  .side nav { display: grid; gap: 2px; margin-top: 14px }
  .side nav button { display: flex; justify-items: start; gap: 10px; font-size: 14px; padding: 9px 10px; border-radius: 8px; color: var(--fg) }
  .side nav button:hover { background: var(--surface-2) }
  .side nav button[aria-current="page"] { background: var(--accent-soft) }
  .side .foot { margin-top: auto; font-size: 12px; color: var(--muted) }
  .tabbar { display: none }
  .main { padding-block: 22px 40px }
  .grid2 { grid-template-columns: 1.3fr 1fr }
  .toast { bottom: 24px }
  .bar { left: 210px; bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) }
  .modal-bg { place-items: center }
  .modal { border-radius: 16px }
  .topbar .brand { visibility: hidden }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important } }

/* Чек-листы */
details.checklist > summary { cursor: pointer; list-style: none }
details.checklist > summary::-webkit-details-marker { display: none }
details.checklist > summary b::before { content: "▸ "; color: var(--muted) }
details.checklist[open] > summary b::before { content: "▾ " }
.check.auto { cursor: default }
.ck-auto { font-style: normal; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 99px; background: var(--surface-2); color: var(--muted); margin-left: 4px; white-space: nowrap }
.check.done .ck-auto { background: var(--ok-soft); color: var(--ok) }
.check.auto.done span { text-decoration: none; color: var(--fg) }

/* Экран входа (PIN) — поверх всего, содержимое под ним стёрто */
.lock { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-items: center; overflow: auto;
  padding-block: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.lk-box { width: 100%; max-width: 320px; display: grid; justify-items: center; gap: 10px; text-align: center }
.lk-box.sm { max-width: 300px; margin: 0 auto }
.lk-box h1 { margin: 0 }
.lk-box .sub { margin: 0; min-height: 20px }
.lk-logo { width: 56px; height: 56px; font-size: 26px; border-radius: 16px }
.lk-dots { display: flex; gap: 14px; margin: 6px 0 4px }
.lk-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted) }
.lk-dots i.on { background: var(--fg); border-color: var(--fg) }
.lk-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px; margin-top: 6px }
.lk-pad button { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 26px; font-family: var(--font-num) }
.lk-pad button:active { background: var(--surface-2) }
.lk-pad .lk-aux { font-size: 13px; font-family: var(--font-ui); border-color: transparent; background: transparent; color: var(--muted) }
.lk-sos { margin-top: 10px; border: 1px dashed var(--bad); color: var(--bad); background: transparent; border-radius: 10px; padding: 9px 12px; font-size: 13px; position: relative; overflow: hidden; touch-action: none; user-select: none }
.lk-demo { margin-top: 2px }
[data-hold] { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none }
[data-hold]::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .18; transform: scaleX(0); transform-origin: left }
[data-hold].holding::after { transform: scaleX(1); transition: transform 2s linear }
:root.is-locked .tabbar, :root.is-locked .side { visibility: hidden }

/* Скрыть суммы и номера (кнопка «глаз» в шапке) */
:root.privacy #main .num, :root.privacy #main .mono, :root.privacy #main .kpi .v, :root.privacy #main .pay-amt, :root.privacy .topbar .chip.num { filter: blur(7px); transition: filter .15s }
.iconbtn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent) }
.hm-news.unread .t { font-weight: 700 }
.hm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px }
.hm-inc { gap: 6px }

/* Переключатель */
.switch { position: relative; width: 44px; height: 26px; flex: none; display: inline-block }
.switch input { opacity: 0; width: 0; height: 0; position: absolute }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .15s }
.switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: var(--surface); transition: transform .15s; box-shadow: 0 1px 2px rgb(0 0 0 / .25) }
.switch input:checked + span { background: var(--ok) }
.switch input:checked + span::after { transform: translateX(18px) }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px }
.soon-why { font-size: 11.5px; opacity: .85 }
.more-item { padding: 13px 4px }
.more-ic { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none }
.tabbar button[data-more] { position: relative }

/* Касания на телефоне: всё, что нажимают пальцем, — не меньше 40 px (QA, T1-client-app-touch) */
.iconbtn { width: 40px; height: 40px }
.topbar .chip.num { min-height: 40px; padding-inline: 12px; border: 0 }
@media (max-width: 899px) {
  .btn.sm, .seg button, .st-chips .chip, .chip[data-st-st], .tabbar button { min-height: 40px }
  .seg button { display: inline-flex; align-items: center; justify-content: center }
}
details.checklist > summary { min-height: 40px; align-items: center }
details.panel > summary, details.dev > summary { min-height: 40px; display: flex; align-items: center; gap: 6px }
@media (max-width: 899px) {
  .st-saved .btn, .st-sortsel { min-height: 40px }
}
.prof-std { --pc: #3d7ea6 }
.file-view { font-size: 12px; white-space: pre; overflow: auto; resize: vertical; width: 100% }
.hm-ann { gap: 6px }
.hm-op { font-size: 11px; padding: 1px 7px; background: var(--surface-2); color: var(--muted) }
