:root {
  --bg: #E9ECEF; --card: #fff; --ink: #15181C; --muted: #5E6873; --line: #D5DAE0;
  --brand: #1D2227; --brand-ink: #fff; --acc: #FF7A1A; --acc-ink: #1D2227;
  --ok: #23845A; --warn: #9A6700; --bad: #C93C3C; --warn-bg: #FBF0D9; --ok-bg: #E3F3EA; --bad-bg: #FBE6E6; --radius: 8px;
  --side: #1D2227; --side-ink: #C9D0D7; --side-on: #2C333A;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0C0F12; --card: #1A1F25; --ink: #E8ECF0; --muted: #98A3AF; --line: #323B45;
  --brand: #E6EAEE; --brand-ink: #111417; --ok: #4CC38A; --warn: #F2C14E; --bad: #FF7A70;
  --warn-bg: #3A2C12; --ok-bg: #16301F; --bad-bg: #3A1E1C; --side: #0B0D0F; --side-ink: #AEB7C1; --side-on: #1C2228;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 var(--font); font-feature-settings: "tnum" 1; }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--side); color: #fff; }
.top h1 { font-size: 18px; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon { background: none; border: 0; color: inherit; font-size: 30px; line-height: 1; padding: 0 8px 4px; cursor: pointer; }
.net { width: 10px; height: 10px; border-radius: 50%; background: #7ee2a0; }
.net.off { background: #ffb4ab; }
.outbox { background: var(--warn-bg); color: var(--warn); padding: 8px 14px; font-size: 14px; }
.updbar { position: sticky; top: 0; z-index: 6; background: var(--acc); color: #1D2227; padding: 9px 14px; font-size: 15px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.updbar b { font-size: 17px; font-variant-numeric: tabular-nums; }
.updbar[hidden] { display: none; }
.updbar span { flex: 1; min-width: 0; } .updbar svg { flex: none; }
.updbar .btn { background: #1D2227; color: #fff; padding: 6px 12px; }
main { padding: 12px; max-width: 720px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.card h2 { font-size: 16px; margin: 0 0 10px; }
.card h3 { font-size: 15px; margin: 14px 0 8px; color: var(--muted); font-weight: 600; }
.list { list-style: none; margin: 0; padding: 0; }
.list a, .list .row { display: flex; gap: 10px; align-items: center; padding: 12px 14px; color: inherit; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.list .no { font-weight: 700; font-size: 18px; min-width: 64px; font-variant-numeric: tabular-nums; }
.list .grow { flex: 1; min-width: 0; }
.list .sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--line); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
label.f { display: block; margin: 0 0 10px; }
label.f span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; font-size: 18px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--acc); outline-offset: 0; border-color: transparent; }
textarea { font-size: 15px; min-height: 140px; }
.unit { position: relative; }
.unit input { padding-right: 56px; }
.unit em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 16px; }
.check input { width: 24px; height: 24px; flex: none; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 0; border-radius: var(--radius);
  padding: 12px 16px; font: inherit; font-weight: 600; background: var(--acc); color: var(--acc-ink); cursor: pointer; text-decoration: none; transition: filter .15s; }
.btn:hover { filter: brightness(1.06); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--bad); color: #fff; }
.btn:disabled { opacity: .5; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.res { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.kv b { font-variant-numeric: tabular-nums; text-align: right; }
.big { font-size: 22px; }
.warnbox { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 8px 12px; font-size: 14px; margin: 8px 0; }
.okbox { background: var(--ok-bg); color: var(--ok); border-radius: var(--radius); padding: 8px 12px; font-size: 14px; margin: 8px 0; }
.muted { color: var(--muted); font-size: 14px; }
.sticky-save { position: sticky; bottom: calc(60px + env(safe-area-inset-bottom)); padding: 8px 0; background: linear-gradient(transparent, var(--bg) 30%); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.t th, table.t td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
table.t td.n { text-align: right; white-space: nowrap; }
.scroll { overflow-x: auto; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.tabs a { flex: 1; text-align: center; padding: 14px 0; color: var(--muted); text-decoration: none; font-weight: 600; }
.tabs a.on { color: var(--brand); }
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--bg);
  padding: 12px 14px; border-radius: var(--radius); z-index: 10; text-align: center; }
.fab { position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); border-radius: 99px; padding: 14px 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 4; }
.seg { display: flex; gap: 6px; margin-bottom: 12px; }
.seg a { flex: 1; text-align: center; padding: 8px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.grid2 > b { font-size: 13px; margin: 4px 0 6px; }
.grid2 input { font-size: 17px; padding: 10px 8px; }
.grid2 .unit input { padding-right: 30px; }
.grid2 .unit em { right: 8px; }
.bell { position: relative; color: inherit; text-decoration: none; font-size: 20px; padding: 0 6px; }
.bell .badge { position: absolute; top: -6px; right: -6px; background: #ff5a3c; color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 99px; padding: 1px 6px; }
.list a.unread { border-left: 4px solid var(--acc); }
.search input { margin-bottom: 10px; }
img.page { width: 100%; display: block; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; background: #fff; }
img.sig { max-height: 60px; max-width: 220px; display: block; margin: 6px 0; background: #fff; border-radius: 6px; padding: 4px; }
.person { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.person .grow { flex: 1; min-width: 0; }
.pact { display: flex; flex-direction: column; gap: 6px; text-align: right; font-size: 14px; }
.pact a, .lnk { color: var(--brand); cursor: pointer; }
label.file { margin-top: 6px; }
/* компактные поля: подпись слева, поле справа — вдвое меньше прокрутки */
label.f.row { display: grid; grid-template-columns: 1fr 44%; align-items: center; gap: 10px; margin-bottom: 8px; }
label.f.row span { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.25; }
label.f.row input { padding: 9px 10px; font-size: 18px; }
.card h2 + label.f.row { margin-top: 2px; }
.live { font-size: 13px; font-weight: 600; background: rgba(255,255,255,.18); border-radius: 99px; padding: 3px 10px;
  white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.live:empty { display: none; }
/* пока открыта клавиатура */
body.typing { padding-bottom: 0; }
body.typing .tabs, body.typing .fab, body.typing .outbox { display: none; }
body.typing .sticky-save { bottom: 0; padding: 6px 0; }
body.typing .sticky-save .btn { padding: 9px 16px; }
body.typing .top { padding-top: calc(4px + env(safe-area-inset-top)); padding-bottom: 4px; }
body.typing .top h1 { font-size: 15px; }
body.typing main { padding-bottom: 45vh; }
/* на компьютере — шире, чтобы протокол читался без увеличения */
@media (min-width: 1100px) { main { max-width: 1020px; } }
a.bad { color: var(--bad); }
img.sig.stamp { max-height: 120px; }
.notifbar { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; font-size: 15px; display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap; justify-content: center; text-align: center; }
.notifbar .btn { padding: 6px 14px; }
.notifbar[hidden], .outbox[hidden], .toast[hidden] { display: none !important; }
details.sec { margin-top: 12px; border-top: 1px solid #e3e6ea; padding-top: 10px; }
details.sec summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
details.sec form { margin-top: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 80px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border-radius: 14px; background: var(--card, #fff);
  border: 1px solid var(--line); color: inherit; text-decoration: none; }
.tile b { font-size: 18px; }
.tiles.big { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tile.blk { min-height: 150px; padding: 22px 20px; justify-content: flex-start; }
.tile.blk b { font-size: 22px; }
.tile .chip { align-self: flex-start; }
.tile .sub { color: var(--muted); font-size: 13px; }
.tile.off { opacity: .5; }
details.filters { margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; background: var(--card, #fff); }
details.filters summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
details.filters form { margin-top: 8px; }
/* заявки */
.daynav { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.daynav input { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.st-new { background: #ffffff !important; }
.st-work { background: #fff6cc !important; }
.st-ok { background: #e3f4e1 !important; }
.st-fail, .st-false, .st-cancel { background: #fbe3e1 !important; }
.list.req li a { align-items: flex-start; }
.list.req li.st-new a { background: #ffffff; }
.list.req li.st-work a { background: #fff6cc; }
.list.req li.st-ok a { background: #eef8ec; }
.list.req li.st-fail a, .list.req li.st-false a, .list.req li.st-cancel a { background: #fdeeed; }
.list.req li.crit a { border-left: 5px solid #d9534f; }
.list.req .sub.bad { white-space: normal; }
.list.req .chip { white-space: nowrap; color: var(--ink); }
.stbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.stbtns .btn.ghost { background: transparent !important; }
.stbtns .btn:not(.ghost) { color: var(--ink); border: 2px solid var(--brand); }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px; margin: 8px 0; }
.tw { overflow-x: auto; }
table.ed input, table.ed select { width: 100%; min-width: 70px; padding: 6px; }
table.ed td { padding: 3px; vertical-align: top; }
table.ed .check { display: block; white-space: nowrap; font-size: 13px; }
.tile.req b { color: var(--brand); }
/* реестр заявок: список на телефоне */
.reqbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.list.req .no { display: flex; flex-direction: column; min-width: 70px; }
.list.req .no small { font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.list.req .w2 { font-size: 14px; margin: 2px 0; }
.list.req .sub { white-space: normal; }
table.reg .assel { font-size: 12px; padding: 3px; min-width: 150px; }
.xkinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.xg b { display: block; margin-bottom: 4px; }
.xg .check, #exp .check { display: block; padding: 3px 0; }
@media (max-width: 700px) { .xkinds { grid-template-columns: 1fr; } }
/* реестр заявок в формате подрядчика */
body.widepage main { max-width: none; }
body.widepage main > * { max-width: none; }
.regwrap { overflow: auto; max-height: calc(100vh - 150px); border: 1px solid #000; border-radius: var(--radius); }
table.reg { border-collapse: collapse; font-size: 13px; min-width: 1500px; width: 100%; }
table.reg th, table.reg td { border: 1px solid #000; padding: 4px 5px; vertical-align: top; text-align: left; }
table.reg thead th { position: sticky; top: 0; z-index: 2; background: #dfe6ee; font-weight: 700; font-size: 14px; color: #000; padding: 8px 6px; box-shadow: inset 0 -2px 0 #000; }
table.reg th.our { background: #d6ecf7; }
table.reg td.our { background-image: linear-gradient(rgba(30,120,200,.05), rgba(30,120,200,.05)); }
table.reg td.pre { white-space: pre-line; }
table.reg td.wide { min-width: 260px; }
table.reg td:first-child { font-weight: 600; text-align: center; }
table.reg tbody tr[data-open] { cursor: pointer; }
table.reg tbody tr[data-open]:hover td { filter: brightness(.96); }
table.reg tr.crit td:first-child { box-shadow: inset 5px 0 0 #d9534f; }
table.reg tr.dayrow td span { position: sticky; left: 8px; }
table.reg tr.dayrow td { text-align: left !important; background: var(--brand); color: var(--brand-ink); font-weight: 700; padding: 5px 8px; }
table.reg .stsel { font-size: 12px; padding: 3px; min-width: 130px; }
table.reg .note { color: #8a6d00; font-size: 11px; margin-top: 3px; }
table.reg .crittxt { color: #b02a25; font-size: 11px; margin-top: 3px; font-weight: 600; }
.sep { height: 1px; background: var(--line); margin: 12px 0; }
:root[data-theme="dark"] .st-new, :root[data-theme="dark"] .list.req li.st-new a { background: var(--card) !important; }
:root[data-theme="dark"] .st-work, :root[data-theme="dark"] .list.req li.st-work a { background: #3a3415 !important; }
:root[data-theme="dark"] .st-ok, :root[data-theme="dark"] .list.req li.st-ok a { background: #1d3320 !important; }
:root[data-theme="dark"] table.reg thead th { background: #2b3440; color: #fff; }
:root[data-theme="dark"] table.reg th, :root[data-theme="dark"] table.reg td { border-color: #9aa4b0; }
:root[data-theme="dark"] table.reg th.our { background: #213a4a; }
:root[data-theme="dark"] .st-fail, :root[data-theme="dark"] .st-false, :root[data-theme="dark"] .st-cancel, :root[data-theme="dark"] .list.req li.st-fail a, :root[data-theme="dark"] .list.req li.st-false a, :root[data-theme="dark"] .list.req li.st-cancel a { background: #3a1e1c !important; }
.bad { color: var(--bad); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.seg.wrap { flex-wrap: wrap; }
.seg.wrap a { flex: 1 1 auto; }
.daynav { flex-wrap: wrap; }
.daynav input { min-width: 150px; }
table.ed .mats { min-width: 210px; }
table.ed .mats .check { display: inline-flex; margin-right: 10px; white-space: nowrap; }
.list.req .no { font-size: 15px; min-width: 52px; }
table.ed input[type=checkbox] { width: auto; min-width: 0; }
#exp .chips a { text-decoration: none; cursor: pointer; font-size: 13px; padding: 4px 10px; }

/* значки статуса: не принято — красный треугольник, ложный вызов — жёлтый */
.sticon { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; flex: none; }
table.reg td:first-child .sticon { display: block; margin: 4px auto 0; }

details.raw summary { font-size: 12px; cursor: pointer; margin-top: 4px; }
details.raw pre { white-space: pre-wrap; word-break: break-word; font-size: 11px; background: var(--bg); padding: 6px; border-radius: 6px; max-height: 240px; overflow: auto; }

/* окно подтверждения внутри программы */
.dlg-back { position: fixed; inset: 0; z-index: 50; background: rgba(10, 16, 24, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dlg { background: var(--card); color: var(--ink); border-radius: 14px; padding: 18px; width: 100%; max-width: 440px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.dlg h2 { font-size: 18px; margin: 0 0 8px; }
.dlg p { margin: 0 0 12px; color: var(--muted); }
.dlg textarea { min-height: 80px; }
.dlg .actions { margin-top: 12px; }
.dlghints { margin-top: -2px; }
.dlghints a { cursor: pointer; text-decoration: none; font-size: 13px; padding: 4px 10px; color: var(--ink); }
.btn.danger:disabled, .btn:disabled { opacity: .5; cursor: default; }

/* реестр: № и время закреплены слева; «Отобрал» и «Испытатель» — выбор в строке */
table.reg th.stk, table.reg td.stk { position: sticky; left: 0; z-index: 1; background: inherit; box-shadow: inset -2px 0 0 #000; min-width: 62px; }
table.reg thead th.stk { z-index: 3; background: #dfe6ee; box-shadow: inset -2px 0 0 #000, inset 0 -2px 0 #000; }
table.reg tr.crit td.stk { box-shadow: inset 5px 0 0 #d9534f, inset -2px 0 0 #000; }
table.reg .tm { font-weight: 400; font-size: 12px; white-space: nowrap; color: #333; margin-top: 2px; }
table.reg .psel { font-size: 12px; padding: 3px; min-width: 130px; }
.stnote { font-size: 12px; margin-top: 4px; color: #6b2a24; white-space: pre-line; }
.stnote::before { content: "Причина: "; font-weight: 600; }
.overdue { font-size: 12px; margin-top: 3px; color: #8a5a00; font-weight: 600; }
a.sugok { display: inline-block; font-size: 12px; margin-top: 4px; }
.rangebar { align-items: center; }
.rangebar select { width: auto; min-width: 220px; font-size: 15px; padding: 7px 10px; }
.rangebar input[type=date] { width: auto; font-size: 15px; padding: 6px 8px; }
:root[data-theme="dark"] table.reg thead th.stk { background: #2b3440; }
:root[data-theme="dark"] table.reg .tm { color: #c9d1db; }
:root[data-theme="dark"] .stnote { color: #ffb4ab; }
:root[data-theme="dark"] .overdue { color: #f0b35a; }

/* полоска испытаний пробы и «что дальше» после сохранения */
.tstrip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 4px; scrollbar-width: thin; }
.tstrip a { flex: none; font-size: 13px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; white-space: nowrap; }
.tstrip a.done { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.tstrip a.pend { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tstrip a.on { outline: 2px solid var(--brand); outline-offset: -2px; font-weight: 600; }
.nexttests { display: flex; flex-wrap: wrap; gap: 8px; }
.nexttests .btn { flex: 1 1 200px; text-align: center; }

/* срочная заявка: кого направить */
label.cand { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 6px; cursor: pointer; }
label.cand input { width: auto; margin-top: 4px; }
label.cand .grow { flex: 1; min-width: 0; }
label.cand .sub { color: var(--muted); font-size: 13px; }
label.cand.resp { border-color: var(--brand); }
label.cand.no { opacity: .75; }
b.ok { color: var(--ok); }
.card.suggest { border: 2px solid var(--acc); }

/* «Ещё»: разделы и ссылки на журналы */
.moretabs a { font-size: 14px; }
.mlinks { display: grid; gap: 8px; }
.mlinks a { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.mlinks a .muted { font-size: 13px; }
pre.cmd { background: var(--bg); color: var(--ink); padding: 8px 10px; border-radius: 8px; overflow-x: auto; font-size: 13px; margin: 6px 0; }

/* вахта и расстановка */
.rotnav { display: flex; align-items: center; gap: 10px; }
.rotnav .grow { flex: 1; text-align: center; }
.rotnav .btn { padding: 8px 14px; font-size: 20px; }
.segr { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.segr input { width: auto; }
.segr:has(input:checked) { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
form.roted { border: 2px solid var(--brand); }
.person.rotp .chip { vertical-align: 2px; }
label.check.offshift { color: var(--muted); }
label.check.offshift small { font-size: 11px; }
/* реестр: прошедшие дни свёрнуты */
table.reg tr.dayhide { display: none; }
table.reg tr.dayrow { cursor: pointer; }
table.reg tr.dayrow td span small { font-weight: 400; margin-left: 10px; opacity: .9; }
table.reg tr.dayrow:not(.open) td { background: #5a6b7d; }
table.reg tr.dayrow .dchev { display: inline-block; width: 14px; }

/* ============================================================ LabLine: шрифт и страница входа */
/* Golos Text — шрифт, сделанный для русского (OFL); переменный 400–700, только кириллица и латиница */
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap; src: url(fonts/golos-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap; src: url(fonts/golos-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.ic { flex: none; }
label.f .row2 { display: flex; gap: 8px; font-size: inherit; color: inherit; margin: 0; }
label.f .row2 input { flex: 1; }

body.auth { padding: 0; background: #fff; }
body.auth .top, body.auth .tabs, body.auth #notifbar, body.auth #outbox { display: none !important; }
body.auth main { max-width: none; padding: 0; }
.auth-wrap { --acc: #F59E0B; --g: #0B3F3C; display: grid; grid-template-columns: 1.35fr 1fr; min-height: 100vh; min-height: 100dvh;
  font-family: var(--font); font-feature-settings: "tnum" 1; color: #15181C; background: #fff; }
.auth-art { position: relative; overflow: hidden; background: var(--g); color: #E6EAEE; padding: 46px 56px 40px; display: flex; flex-direction: column; }
.a-grid { position: absolute; inset: -40px; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 40px 40px; animation: a-drift 9s linear infinite; }
@keyframes a-drift { to { transform: translate(-40px, 0); } }
.a-glow { position: absolute; width: 720px; height: 720px; right: -260px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.22), transparent 62%); animation: a-breathe 4.5s ease-in-out infinite; }
@keyframes a-breathe { 50% { transform: scale(1.12); opacity: .7; } }
.a-brand { position: relative; display: flex; align-items: center; gap: 14px; }
.a-brand b { font-size: 30px; letter-spacing: .01em; display: block; line-height: 1.1; } .a-brand small { display: block; font-size: 13px; color: #8D99A6; font-weight: 500; }
.mk rect { fill: var(--acc, #F59E0B); } .mk path { stroke: #15191D; stroke-width: 2.4; stroke-linecap: round; }
.auth-art .mk path { transform-box: fill-box; transform-origin: bottom; animation: a-lvl 3s ease-in-out infinite; }
.auth-art .mk path:nth-of-type(3) { animation-delay: -.6s; } .auth-art .mk path:nth-of-type(4) { animation-delay: -1.2s; }
.auth-art .mk path:nth-of-type(5) { animation-delay: -1.8s; } .auth-art .mk path.base { animation: none; }
@keyframes a-lvl { 50% { transform: scaleY(.55); } }
.auth-art h1 { position: relative; font-size: 52px; line-height: 1.08; font-weight: 600; margin: auto 0 18px; letter-spacing: -.015em; max-width: 640px; }
.auth-art h1 em { font-style: normal; color: var(--acc); }
.a-lead { position: relative; font-size: 18px; color: #A9B3BE; max-width: 520px; margin: 0 0 36px; line-height: 1.5; }
.a-scene { position: relative; height: 240px; margin: 0 -56px; }
.a-track { position: absolute; left: 0; bottom: 30px; width: 3000px; height: 110px; animation: a-slide 9s linear infinite; }
@keyframes a-slide { to { transform: translateX(-1000px); } }
.a-track svg { display: block; } .a-track line { stroke: #5B6570; stroke-width: 1.3; }
.a-track .road { stroke: #2E363E; stroke-width: 16; } .a-track .mid { stroke: #5B6570; stroke-width: 1.5; stroke-dasharray: 10 10; }
.a-track text { font-size: 12px; fill: #6F7B87; font-family: var(--font); }
.a-track .dt { fill: #8D99A6; stroke: var(--g); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: a-life 9s linear infinite; }
@keyframes a-life { 0% { transform: scale(0); fill: #8D99A6; } 6% { transform: scale(1.25); } 10% { transform: scale(1); fill: #8D99A6; } 38% { fill: #8D99A6; }
  42% { fill: #E8A317; } 68% { fill: #E8A317; } 72% { fill: #2E9E6B; transform: scale(1.3); } 76% { transform: scale(1); } 100% { fill: #2E9E6B; transform: scale(1); } }
.a-scan { position: absolute; bottom: 22px; width: 2px; height: 126px; background: linear-gradient(var(--acc), transparent); left: 62%;
  box-shadow: 0 0 18px var(--acc); animation: a-scan 4.5s ease-in-out infinite; }
.a-scan::after { content: ""; position: absolute; top: -5px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); }
@keyframes a-scan { 50% { transform: translateX(-140px); } }
.a-cd { position: absolute; display: flex; gap: 10px; align-items: center; background: rgba(30,36,42,.92); border: 1px solid #2E363E; border-radius: 8px;
  padding: 10px 14px; font-size: 13.5px; box-shadow: 0 14px 30px rgba(0,0,0,.35); opacity: 0; animation: a-pop 9s ease-in-out infinite; }
.a-cd b { display: block; font-size: 14px; } .a-cd small { color: #8D99A6; font-size: 12.5px; }
.a-cd i { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.a-cd i.ok { background: rgba(46,158,107,.18); color: #2E9E6B; } .a-cd i.acc { background: rgba(245,158,11,.16); color: var(--acc); }
@keyframes a-pop { 0% { opacity: 0; transform: translateY(12px); } 5%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-8px); } }
.a-foot { position: relative; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #6F7B87; font-size: 13px; margin-top: 10px; }
.a-foot span { display: flex; gap: 7px; align-items: center; }

.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 56px 76px; background: #fff; }
.auth-form form { display: flex; flex-direction: column; max-width: 440px; width: 100%; margin: 0 auto; min-height: 100%; justify-content: center; }
.a-chip { display: inline-flex; align-self: flex-start; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; background: #F1F3F5;
  border-radius: 999px; padding: 5px 12px 5px 6px; margin-bottom: 26px; }
.a-chip[hidden] { display: none; }
.a-chip i { width: 20px; height: 20px; border-radius: 50%; background: #15181C; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 10px; }
.auth-form h2 { font-size: 34px; margin: 0 0 6px; font-weight: 600; letter-spacing: -.01em; }
.a-sub { margin: 0 0 30px; color: #5E6873; font-size: 15.5px; }
.a-l { display: block; font-size: 13.5px; font-weight: 600; margin: 0 0 7px; }
.a-in { display: flex; align-items: center; gap: 10px; border: 1.5px solid #D5DAE0; border-radius: 7px; padding: 0 6px 0 14px; height: 52px;
  margin-bottom: 18px; color: #8D99A6; transition: border-color .15s, box-shadow .15s; background: #fff; }
.a-in:focus-within { border-color: #15181C; box-shadow: 0 0 0 4px rgba(245,158,11,.25); color: #15181C; }
.a-in input { flex: 1; border: 0; outline: 0 !important; background: transparent; padding: 0; height: 100%; font: 500 17px var(--font); color: #15181C; min-width: 0; }
.a-eye { border: 0; background: none; color: #8D99A6; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; cursor: pointer; }
.a-eye:hover, .a-eye.on { color: #15181C; background: #F1F3F5; }
.a-err { color: #D64545; font-size: 14px; min-height: 20px; margin: -8px 0 8px; font-weight: 500; }
.a-go { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border: 0; border-radius: 7px; background: var(--acc); color: #1D2227;
  font: 700 17px var(--font); position: relative; overflow: hidden; cursor: pointer; transition: background .15s, transform .1s; }
.a-go:hover { background: #F7AC2B; } .a-go:active { transform: translateY(1px); }
.a-go::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; left: -120px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: a-shine 4.5s ease-in-out infinite; }
@keyframes a-shine { 0%, 55% { left: -120px; } 85%, 100% { left: 110%; } }
.a-go.busy { color: transparent; } .a-go.busy::before { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(29,34,39,.25); border-top-color: #1D2227; animation: a-spin .7s linear infinite; }
@keyframes a-spin { to { transform: rotate(360deg); } }
.a-forgot { align-self: flex-end; margin-top: 12px; font-size: 14px; color: #5E6873; }
.a-hint { font-size: 13.5px; color: #5E6873; background: #F4F6F8; border-left: 3px solid var(--acc); padding: 9px 12px; margin: 10px 0 0; border-radius: 0 6px 6px 0; }
.a-alt { margin-top: 26px; padding-top: 22px; border-top: 1px solid #E7EAEE; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: #5E6873; }
.a-alt span { display: flex; gap: 9px; align-items: center; }
.a-ver { margin-top: 30px; font-size: 12px; color: #9AA4AF; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.shake { animation: a-shake .4s; }
@keyframes a-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 1100px) { .auth-art { padding: 36px 40px 30px; } .auth-art h1 { font-size: 40px; } .auth-form { padding: 40px; } .a-scene { margin: 0 -40px; } }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { padding: 22px 20px 14px; min-height: 0; }
  .a-brand b { font-size: 24px; } .a-brand .mk { width: 38px; height: 38px; }
  .auth-art h1 { font-size: 27px; margin: 22px 0 6px; } .a-lead { font-size: 14.5px; margin: 0; }
  .a-scene { height: 112px; margin: 0 -20px; } .a-track { bottom: -10px; }
  .a-scan { bottom: 0; height: 96px; } .a-cd, .a-foot { display: none; }
  .auth-form { padding: 26px 20px 30px; } .auth-form form { min-height: 0; }
  .auth-form h2 { font-size: 26px; } .a-sub { margin-bottom: 22px; } .a-chip { margin-bottom: 18px; }
  .a-alt { margin-top: 20px; padding-top: 16px; } .a-ver { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .auth-wrap *, .auth-wrap *::before, .auth-wrap *::after { animation: none !important; } .a-cd { opacity: 0; } }

/* ============================================================ LabLine: оболочка — меню, верхняя строка, поиск */
.mk rect { fill: var(--acc); } .mk path { stroke: #1D2227; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.top { gap: 10px; min-height: 56px; }
.top h1 { font-weight: 600; letter-spacing: .005em; }
.t-logo { display: inline-flex; } body.has-back .t-logo { display: none; }
.tbtn { width: 38px; height: 38px; border-radius: var(--radius); display: grid; place-items: center; border: 0; background: rgba(255,255,255,.08);
  color: inherit; cursor: pointer; position: relative; padding: 0; font-size: inherit; }
.tbtn:hover { background: rgba(255,255,255,.16); }
.bell .badge { top: -5px; right: -6px; background: var(--bad); }
.ksearch { display: none; }
.tabs { gap: 0; background: var(--card); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; font-size: 11.5px; font-weight: 500; position: relative; }
.tabs a.on { color: var(--ink); } .tabs a.on .ic { color: var(--acc); }
.tabs a.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--acc); }
.cnt { background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 1px 6px; line-height: 1.4; }
.tabs .cnt { position: absolute; top: 3px; left: 54%; }
.side { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; background: var(--side); color: var(--side-ink); z-index: 6;
  display: none; flex-direction: column; padding: 20px 14px 14px; }
.side[hidden] { display: none; }
.s-logo { display: flex; align-items: center; gap: 10px; padding: 0 6px 22px; color: #fff; text-decoration: none; }
.s-logo b { display: block; font-size: 21px; letter-spacing: .02em; line-height: 1; } .s-logo small { display: block; font-size: 11.5px; color: var(--side-ink); margin-top: 4px; font-weight: 500; }
.side nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; font-size: 15px; color: var(--side-ink); text-decoration: none; }
.side nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side nav a.on { background: var(--side-on); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--acc); }
.side nav .cnt { margin-left: auto; }
.s-me { margin-top: auto; display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: #fff; padding: 12px 6px 4px; border-top: 1px solid rgba(255,255,255,.08); text-decoration: none; }
.s-me small { display: block; color: var(--side-ink); font-size: 12px; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--acc); color: #1D2227; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
kbd { font: 600 11px var(--font); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; color: var(--muted); background: var(--bg); }
@media (min-width: 1000px) {
  body.has-side .side:not([hidden]) { display: flex; }
  body.has-side { padding-left: 248px; padding-bottom: 24px; }
  body.has-side .tabs { display: none; }
  body.has-side .top { background: var(--bg); color: var(--ink); padding: 14px 28px; border-bottom: 1px solid transparent; }
  body.has-side .t-logo { display: none; }
  body.has-side .top .icon { color: var(--ink); }
  body.has-side .tbtn { background: var(--card); border: 1px solid var(--line); color: var(--muted); }
  body.has-side .tbtn:hover { color: var(--ink); }
  body.has-side .net { order: 9; }
  body.has-side .live { background: var(--card); border: 1px solid var(--line); }
  body.has-side .ksearch { display: flex; align-items: center; gap: 9px; order: 2; margin-left: auto; width: 380px; max-width: 34vw; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px 8px 12px; color: var(--muted); font: 14px var(--font); cursor: pointer; text-align: left; }
  body.has-side .ksearch span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  body.has-side .ksearch:hover { border-color: #9AA5B1; }
  body.has-side #theme { order: 3; } body.has-side #bell { order: 4; }
  body.has-side main { max-width: none; padding: 8px 28px 28px; margin: 0; }
  body.has-side.widepage main { max-width: none; }
  body.has-side .toast { left: auto; right: 24px; bottom: 24px; max-width: 420px; }
  body.has-side .fab { bottom: 28px; right: 28px; }
}

/* быстрый поиск */
.ck-back { position: fixed; inset: 0; background: rgba(17,20,24,.5); backdrop-filter: blur(2.5px); z-index: 50; display: flex; justify-content: center; padding: 12vh 12px 12px; }
.ck { width: 680px; max-width: 100%; align-self: flex-start; background: var(--card); color: var(--ink); border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden;
  display: flex; flex-direction: column; max-height: 76vh; }
.ck-in { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.ck-in input { flex: 1; border: 0; background: transparent; outline: 0 !important; font: 500 19px var(--font); padding: 6px 0; color: var(--ink); min-width: 0; }
.ck-list { padding: 4px 8px 8px; overflow-y: auto; }
.ck-list h6 { margin: 10px 10px 4px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ci { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.ci.on { background: color-mix(in srgb, var(--acc) 12%, transparent); box-shadow: inset 3px 0 0 var(--acc); }
.cic { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; background: var(--bg); flex: none; }
.ci.on .cic { background: var(--acc); color: #1D2227; }
.cgrow { flex: 1; min-width: 0; } .ci b { font-size: 14.5px; font-weight: 600; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ci small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ci em { font-style: normal; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
.ck-empty { padding: 18px; color: var(--muted); margin: 0; }
.ck-f { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: var(--bg); }
.ck-f span { white-space: nowrap; } .ck-f kbd { margin-right: 3px; }
@media (max-width: 700px) { .ck-back { padding-top: 10px; } .ck-f { display: none; } .ck { max-height: 88vh; } }

/* ============================================================ главная */
.dash-load { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 60px 0; }
.dash-load span { height: 96px; border-radius: var(--radius); background: linear-gradient(90deg, var(--card), var(--line), var(--card)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
body.dash main { max-width: 1440px; }
.msearch { display: none; }
.dhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 4px 0 16px; flex-wrap: wrap; }
.dhead h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.005em; } .dhead p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.dhead .acts { display: flex; gap: 10px; }
.dhead .btn { padding: 10px 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.kpi:hover { border-color: #9AA5B1; }
.kpi:first-child { box-shadow: inset 0 3px 0 var(--acc); }
.kpi span { font-size: 14px; color: var(--muted); } .kpi b { font-size: 34px; font-weight: 600; margin: 2px 0; line-height: 1.15; } .kpi small { font-size: 13px; color: var(--muted); }
.kpi.bad b { color: var(--bad); } .kpi.ok b { color: var(--ok); }
.card.w { margin: 0; }
.ch { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ch h2 { margin: 0 !important; font-size: 17px; font-weight: 600; } .ch a { color: var(--muted); font-size: 14px; text-decoration: none; } .ch a:hover { color: var(--ink); } .ch .sub { font-size: 13px; color: var(--muted); }
.cnum { display: inline-block; font-size: 13px; background: var(--bg); border-radius: 4px; padding: 0 7px; margin-left: 4px; color: var(--muted); }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; align-items: start; }
.dgrid .attn { grid-column: span 2; }
.mine { margin-bottom: 14px; }
.job { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; align-items: flex-start; }
.job:first-of-type { border-top: 0; } .job.crit { box-shadow: inset 3px 0 0 var(--bad); padding-left: 10px; }
.job .tm { font-weight: 700; min-width: 46px; } .job .grow { flex: 1; min-width: 0; } .job b { display: block; font-size: 15px; } .job small { display: block; color: var(--muted); font-size: 13.5px; }
.job em { display: flex; gap: 5px; align-items: center; font-style: normal; font-size: 12.5px; color: var(--bad); margin-top: 3px; font-weight: 600; }
.stc { font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 9px; white-space: nowrap; background: var(--bg); color: var(--muted); }
.stc.st-work { background: var(--warn-bg); color: var(--warn); } .stc.st-ok { background: var(--ok-bg); color: var(--ok); }
.stc.st-fail, .stc.st-false { background: var(--bad-bg); color: var(--bad); }
.arow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.arow:first-of-type { border-top: 0; } .arow b { font-size: 14.5px; display: block; } .arow small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.arow:hover b, .job:hover b, .smp:hover .sn { text-decoration: underline; }
.ri { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.ri.bad { background: var(--bad-bg); color: var(--bad); } .ri.warn { background: var(--warn-bg); color: var(--warn); }
.okline { display: flex; gap: 8px; align-items: center; color: var(--ok); margin: 6px 0; }
.attn .more { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); text-decoration: none; } .attn .more:hover { color: var(--ink); }
.lab { margin-top: 6px; } .lab > b { font-size: 14px; }
.lr { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; align-items: center; gap: 10px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.lbt { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; } .lbt i { display: block; height: 100%; background: var(--acc); } .lbt i.over { background: var(--bad); }
.lnum { color: var(--ink); min-width: 40px; text-align: right; } .lnum.bad { color: var(--bad); font-weight: 700; }
.smp { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.smp:first-of-type { border-top: 0; } .sn { font-weight: 700; min-width: 64px; font-size: 14px; } .smp .grow { flex: 1; min-width: 0; }
.sp { display: flex; gap: 3px; } .sp i { flex: 1; text-align: center; font-style: normal; font-size: 11.5px; padding: 3px 0; border-radius: 3px; background: var(--line); color: var(--muted); }
.sp i.d { background: var(--ink); color: var(--card); } .smp small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.vh { display: flex; gap: 18px; align-items: center; margin-top: 4px; } .vbig { font-size: 48px; font-weight: 600; line-height: 1; min-width: 110px; }
.vbig small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.vl { display: flex; flex-direction: column; gap: 6px; font-size: 14px; } .vl span { color: var(--muted); display: block; font-size: 12.5px; }
.vbar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 14px; } .vbar i { display: block; height: 100%; background: var(--acc); border-radius: 3px; }
.ct { display: grid; grid-template-columns: minmax(100px, 38%) 1fr 36px; align-items: center; gap: 10px; margin-top: 9px; font-size: 13.5px; }
.ct span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .ct b { text-align: right; }
.ctb { display: flex; height: 12px; border-radius: 3px; overflow: hidden; background: var(--line); gap: 2px; } .ctb i { display: block; height: 100%; }
.ctb .a, .legend2 .a { background: #2E9E6B; } .ctb .n, .legend2 .n { background: #D64545; } .ctb .f, .legend2 .f { background: #E8A317; }
.legend2 { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.legend2 i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.fd { display: flex; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.fd:first-of-type { border-top: 0; } .fd span:first-child { color: var(--muted); min-width: 42px; }
@media (max-width: 1180px) { .dgrid .attn { grid-column: auto; } }
@media (max-width: 999px) {
  .msearch { display: flex; width: 100%; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px 14px; color: var(--muted); font: 15px var(--font); margin-bottom: 14px; cursor: pointer; text-align: left; }
  .dhead h1 { font-size: 23px; } .dhead .acts { width: 100%; } .dhead .acts .btn { flex: 1; padding: 11px 10px; font-size: 14.5px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 12px 14px; } .kpi b { font-size: 28px; }
  .dgrid { grid-template-columns: 1fr; }
  .dash-load { grid-template-columns: 1fr 1fr; }
}

/* ============================================================ оборудование */
.kpi.warn b { color: var(--warn); } .kpi.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.eqk .kpi:first-child { box-shadow: none; } .eqk .kpi.sel:first-child { box-shadow: inset 0 0 0 1px var(--ink); }
.eqbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.eqbar input { flex: 1; min-width: 240px; font-size: 15px; padding: 9px 12px; background: var(--card); }
.seg.chips { margin: 0; flex: none; } .seg.chips a { flex: none; padding: 7px 14px; font-size: 14px; background: var(--card); }
.eqlist { padding: 4px 16px; }
.eqhead, .eqr { display: grid; grid-template-columns: 44px minmax(200px, 2.2fr) 1.1fr 1.6fr 100px 130px; gap: 12px; align-items: center; }
.eqhead { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 0 8px; border-bottom: 1.5px solid var(--ink); }
.eqr { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.eqr small { display: block; color: var(--muted); font-size: 12px; } .eqr b { font-weight: 600; }
.eqkind { font-size: 12px; font-weight: 700; background: var(--bg); border-radius: 4px; padding: 2px 0; text-align: center; color: var(--muted); }
.eqd { font-size: 12.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.eqr.st-none { opacity: .7; }
.days { font-style: normal; font-size: 12.5px; font-weight: 700; border-radius: 4px; padding: 3px 8px; background: var(--bg); white-space: nowrap; color: var(--muted); }
.days.over { background: var(--bad-bg); color: var(--bad); } .days.soon { background: var(--warn-bg); color: var(--warn); } .days.ok { background: var(--ok-bg); color: var(--ok); }
.eqw { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.eqw:first-of-type { border-top: 0; } .eqw .grow { flex: 1; min-width: 0; } .eqw b { font-size: 14px; display: block; } .eqw small { display: block; color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) {
  .eqhead { display: none; }
  .eqr { grid-template-columns: 40px 1fr auto; grid-template-areas: "k n l" "k s l"; row-gap: 2px; }
  .eqr .eqkind { grid-area: k; align-self: start; } .eqr .eqn { grid-area: n; } .eqr .eqs { grid-area: s; font-size: 12.5px; color: var(--muted); }
  .eqr .eqd, .eqr .eqdue { display: none; } .eqr > span:last-child { grid-area: l; }
  .eqk { grid-template-columns: 1fr 1fr; }
}
.seg.chips a.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* ============================================================ погода */
.wxgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin-bottom: 14px; }
.wxgrid .wxc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.wxw .wxc + .wxc { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.wxtop { display: flex; gap: 16px; align-items: center; }
.wxt { font-size: 46px; font-weight: 600; line-height: 1; white-space: nowrap; } .wxt small { font-size: 18px; color: var(--muted); margin-left: 2px; }
.wxd { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--muted); } .wxd b { color: var(--ink); font-size: 15px; }
.wxrow { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--muted); margin-top: 10px; } .wxrow b { color: var(--ink); }
.wnote { display: flex; gap: 8px; align-items: flex-start; background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 9px 11px; font-size: 13.5px; line-height: 1.35; margin-top: 10px; }
.wxctl { display: flex; gap: 8px; align-items: center; } .wxctl input { width: auto; font-size: 14px; padding: 6px 8px; } .wxctl .btn { padding: 7px 12px; font-size: 14px; }
table.wxt-t th { text-align: center; font-size: 13px; } table.wxt-t th small { display: block; font-weight: 400; color: var(--muted); }
table.wxt-t td small { display: block; font-size: 11px; color: var(--warn); }
.wxset { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; } .wxset:first-of-type { border-top: 0; }
.wxset .row2 { display: flex; gap: 8px; } .wxset input { flex: 1; font-size: 15px; padding: 8px 10px; }
.georesults .ci { cursor: pointer; } .georesults .ci:hover { background: var(--bg); }

/* ============================================================ конвейер проб */
.ttabs { max-width: 520px; } .pipenote { margin: 0 0 12px; }
.kb { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: color-mix(in srgb, var(--line) 55%, transparent); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 9px; min-height: 300px; }
.kh { display: grid; grid-template-columns: 1fr auto; padding: 2px 4px 4px; } .kh b { font-size: 14.5px; }
.kh span { font-weight: 700; background: var(--card); border-radius: 4px; padding: 0 7px; font-size: 13px; } .kh small { grid-column: 1/3; color: var(--muted); font-size: 12px; }
.kc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; display: flex; flex-direction: column; gap: 4px;
  color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(20,30,40,.05); }
.kc:hover { border-color: #9AA5B1; } .kc.late { box-shadow: inset 3px 0 0 var(--bad); } .kc.fin { opacity: .78; }
.kt { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .kt b { font-size: 14.5px; }
.kc p { margin: 0; font-size: 13.5px; font-weight: 500; } .kc small { color: var(--muted); font-size: 12.5px; display: block; }
.kc .sp { margin-top: 5px; } .kc .sp i { font-size: 10.5px; }
.kwho { display: flex !important; gap: 5px; align-items: center; } .kempty { color: var(--muted); text-align: center; margin: 10px 0; }
@media (max-width: 999px) { .kb { grid-template-columns: repeat(5, 78vw); scroll-snap-type: x mandatory; } .kcol { scroll-snap-align: start; } }
.kt { flex-direction: column; align-items: flex-start; gap: 4px; }
.notifbar { justify-content: flex-start; text-align: left; font-size: 14px; } .notifbar .ic { flex: none; }
.notifbar:not([hidden]) { display: block; } .notifbar .ic { vertical-align: -4px; margin-right: 6px; } .notifbar .btn { margin-left: 8px; }
.card.w .more { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); text-decoration: none; } .card.w .more:hover { color: var(--ink); }
.eqacts { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; } .eqacts .btn { padding: 9px 14px; font-size: 14.5px; }
.eqr.click { cursor: pointer; } .eqr.click:hover { background: var(--bg); }
.eqtag { font-style: normal; font-size: 11px; font-weight: 700; color: var(--acc-ink); background: color-mix(in srgb, var(--acc) 30%, transparent); border-radius: 3px; padding: 0 5px; }
.eqform { background: var(--bg); border-radius: var(--radius); padding: 12px 14px; margin: 6px 0 10px; border: 1px solid var(--line); }
#eqnew .eqform { background: var(--card); margin-bottom: 12px; }
.eqform h3 { margin: 6px 0 8px; font-size: 14px; color: var(--ink); }
.eqgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 10px; } .eqgrid input, .eqgrid select { font-size: 15px; padding: 8px 10px; background: var(--card); }
@media (max-width: 999px) { .card.desk-only { display: none; } }

/* ============================================================ план дня */
.gc { position: relative; padding: 12px 18px 14px; overflow-x: auto; }
.gh, .gr { display: grid; grid-template-columns: 150px 1fr; gap: 16px; min-width: 900px; }
.gr { height: calc(var(--lanes, 1) * 46px + 14px); border-top: 1px solid var(--line); }
.gn { align-self: center; } .gn b { display: block; font-size: 14px; } .gn small { color: var(--muted); font-size: 12px; }
.gt { position: relative; height: 100%; } .hrs { height: 22px; } .hrs span { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.gl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.blk { position: absolute; border-radius: 4px; padding: 3px 7px; overflow: hidden; font-size: 12px; line-height: 1.25; color: #fff; white-space: nowrap; text-decoration: none; z-index: 1; }
.blk b, .blk span { display: block; overflow: hidden; text-overflow: ellipsis; } .blk b { font-size: 12.5px; }
.blk.b-ok { background: #2E9E6B; } .blk.b-work { background: #E8A317; color: #2a1d00; }
.blk.b-new { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px #9AA5B1; }
.blk.b-fail, .blk.b-false { background: #5E6873; } .blk.b-cancel { background: var(--line); color: var(--muted); }
.blk.late { background: repeating-linear-gradient(135deg, #fde8e8 0 6px, #fff 6px 12px); color: #B42E2E; box-shadow: inset 0 0 0 2px #D64545; z-index: 2; }
:root[data-theme="dark"] .blk.late { background: repeating-linear-gradient(135deg, #3a1e1c 0 6px, #2a1514 6px 12px); color: #FF9A92; }
.blk:hover { filter: brightness(1.05); outline: 2px solid var(--ink); }
.gt > .road { position: absolute; top: calc(50% - 3px); height: 6px; background: repeating-linear-gradient(90deg, #9AA5B1 0 5px, transparent 5px 9px); }
.gt > .need { position: absolute; top: 2px; bottom: 2px; border-left: 2px dashed #D64545; z-index: 3; }
.gt > .need::before { content: ""; position: absolute; top: -2px; left: -6px; border: 5px solid transparent; border-top: 7px solid #D64545; }
.gsep { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 0 6px; border-top: 2px solid var(--ink); min-width: 900px; }
.gnow { position: absolute; top: 12px; bottom: 50px; width: 2px; background: var(--acc); z-index: 4; left: calc(18px + 166px + (100% - 36px - 166px) * var(--x)); pointer-events: none; }
.gnow span { position: absolute; top: -1px; left: -21px; background: var(--acc); color: #1D2227; font-size: 11.5px; font-weight: 700; border-radius: 3px; padding: 1px 5px; }
.gleg { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--muted); } .gleg span { display: flex; align-items: center; gap: 6px; }
.lg { width: 18px; height: 10px; border-radius: 2px; display: inline-block; } .lg.b-ok { background: #2E9E6B; } .lg.b-work { background: #E8A317; }
.lg.b-new { box-shadow: inset 0 0 0 1.5px #9AA5B1; } .lg.b-false { background: #5E6873; } .lg.late { box-shadow: inset 0 0 0 2px #D64545; background: #fde8e8; }
.lg.road { background: repeating-linear-gradient(90deg, #9AA5B1 0 4px, transparent 4px 7px); height: 5px; }
#pday { width: auto; font-size: 15px; padding: 7px 10px; }

/* ============================================================ карточка заявки */
.rqhero { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; box-shadow: inset 4px 0 0 var(--line); }
.rqhero.k-new { box-shadow: inset 4px 0 0 #8D99A6; } .rqhero.k-work { box-shadow: inset 4px 0 0 #E8A317; } .rqhero.k-ok { box-shadow: inset 4px 0 0 #2E9E6B; }
.rqhero.k-fail, .rqhero.k-false { box-shadow: inset 4px 0 0 #D64545; } .rqhero.k-cancel { box-shadow: inset 4px 0 0 #5E6873; }
.rqtop { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.rqtag { display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; color: var(--muted); background: var(--bg); border-radius: 4px; padding: 2px 8px; }
.rqwhen { margin-left: auto; color: var(--muted); font-size: 15px; } .rqwhen b { color: var(--ink); font-size: 20px; }
.rqhero h1 { margin: 10px 0 2px; font-size: 26px; font-weight: 600; letter-spacing: -.005em; }
.rqplace { margin: 0 0 4px; color: var(--muted); white-space: pre-line; font-size: 14.5px; } .rqwork { margin: 6px 0 0; white-space: pre-line; font-size: 15.5px; }
.rqcrit { display: flex; gap: 12px; align-items: center; background: var(--bad-bg); color: var(--bad); border-radius: var(--radius); padding: 11px 14px; margin-top: 12px; font-size: 14px; line-height: 1.4; }
.rqcrit > div { flex: 1; } .rqcrit b { color: inherit; } .rqcrit .btn { flex: none; }
.rqgrid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.rqgrid .card { margin-bottom: 14px; } 
.stgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stb { display: flex; align-items: center; gap: 9px; padding: 12px 12px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font: 600 14.5px var(--font); cursor: pointer; text-align: left; line-height: 1.2; transition: border-color .12s; }
.stb:hover { border-color: #9AA5B1; } .stb .ic { flex: none; color: var(--muted); }
.stb.on { color: #fff; border-color: transparent; } .stb.on .ic { color: inherit; }
.stb.on.k-new { background: #5E6873; } .stb.on.k-work { background: #E8A317; color: #2a1d00; } .stb.on.k-ok { background: #2E9E6B; }
.stb.on.k-fail, .stb.on.k-false { background: #D64545; } .stb.on.k-cancel { background: #3D454E; }
.rqnote { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; }
.rqnote span { color: var(--muted); } .rqnote b { flex: 1; font-weight: 500; }
.rqsample { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: var(--ok-bg); color: var(--ok); text-decoration: none; margin-bottom: 10px; }
.rqsample b { display: block; color: var(--ink); } .rqsample small { color: var(--muted); }
.rqlink { display: flex; gap: 8px; margin-top: 10px; } .rqlink input { flex: 1; font-size: 15px; padding: 9px 10px; }
.rqwho { display: flex; flex-wrap: wrap; gap: 8px; } .rqp { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; background: var(--bg); border-radius: 99px; padding: 3px 12px 3px 3px; }
.rqd { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink); text-decoration: none; }
.rqd:first-of-type { border-top: 0; } .rqd > span { color: var(--muted); } .rqd b { font-weight: 500; } .rqd small { display: block; color: var(--muted); font-size: 12.5px; }
.rqd input { width: 90px; font-size: 15px; padding: 5px 8px; } .rqd.lnk:hover b { text-decoration: underline; }
.card .btn.block { margin-top: 10px; }
.rqmeta { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }
.rqlog > div { padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; } .rqlog > div:first-child { border-top: 0; }
.rqlog span { color: var(--muted); margin-right: 8px; font-size: 12.5px; } .rqlog b { font-weight: 500; } .rqlog small { display: block; color: var(--muted); }
@media (max-width: 999px) {
  .rqgrid { grid-template-columns: 1fr; } .rqhero { padding: 14px 16px; } .rqhero h1 { font-size: 22px; }
  .rqwhen { margin-left: 0; width: 100%; } .stgrid { grid-template-columns: 1fr 1fr; } .stb { padding: 13px 10px; font-size: 14px; }
  .rqcrit { flex-wrap: wrap; } .rqcrit .btn { width: 100%; } .rqd { grid-template-columns: 120px 1fr; }
}
.stc.k-work { background: var(--warn-bg); color: var(--warn); } .stc.k-ok { background: var(--ok-bg); color: var(--ok); }
.stc.k-fail, .stc.k-false { background: var(--bad-bg); color: var(--bad); } .stc.k-cancel { background: var(--bg); color: var(--muted); }

/* ============================================================ реестр заявок: таблица и список в новых цветах */
.regwrap { border: 1px solid #B8C0C8; border-radius: var(--radius); background: var(--card); }
table.reg th, table.reg td { border-color: #C9D0D7; }
table.reg thead th { background: #E9ECEF; color: var(--ink); box-shadow: inset 0 -2px 0 #1D2227; font-size: 13px; }
table.reg th.our { background: #E3F1EF; } table.reg td.our { background-image: linear-gradient(rgba(15,94,90,.035), rgba(15,94,90,.035)); }
table.reg tr.dayrow td { background: #1D2227; color: #fff; }
:root[data-theme="dark"] table.reg tr.dayrow td { background: #000; }
:root[data-theme="dark"] table.reg thead th { background: #20262C; } :root[data-theme="dark"] table.reg th.our { background: #173533; }
.st-new { background: var(--card) !important; } .st-work { background: #FDF3D6 !important; } .st-ok { background: #E6F4EC !important; }
.st-fail, .st-false, .st-cancel { background: #FBE6E6 !important; }
.list.req li.st-new a { background: var(--card); } .list.req li.st-work a { background: #FDF3D6; } .list.req li.st-ok a { background: #E6F4EC; }
.list.req li.st-fail a, .list.req li.st-false a, .list.req li.st-cancel a { background: #FBE6E6; }
.list.req li.crit a { border-left: 4px solid var(--bad); } .list.req a { border-radius: var(--radius); }
.list.req .chip { background: rgba(255,255,255,.7); font-weight: 600; }
.lbox > div { display: flex; gap: 8px; align-items: flex-start; padding: 2px 0; } .lbox .ic { margin-top: 2px; }
.chip { border-radius: 4px; }
.seg a { border-radius: var(--radius); background: var(--card); }
.crittxt .ic { vertical-align: -2px; }

/* ============================================================ проба */
.rqhero.k-new { box-shadow: inset 4px 0 0 #8D99A6; } .rqhero.k-work { box-shadow: inset 4px 0 0 #E8A317; } .rqhero.k-ok { box-shadow: inset 4px 0 0 #2E9E6B; }
.rqhero.k-fail { box-shadow: inset 4px 0 0 #D64545; } .stc.k-new { background: var(--bg); color: var(--muted); }
.smprog { display: flex; gap: 12px; align-items: center; margin-top: 12px; } .smprog .sp { flex: 1; max-width: 520px; } .smprog .sp i { padding: 5px 0; font-size: 12px; }
.sp i.p { background: var(--warn-bg); color: var(--warn); }
.hacts { margin-top: 14px; } .hacts .btn { padding: 10px 14px; font-size: 14.5px; }
.tst { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tst:first-of-type { border-top: 0; } .tst:hover { background: var(--bg); }
.tsi { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--muted); flex: none; }
.tst.done .tsi { background: var(--ok-bg); color: var(--ok); } .tst.pend .tsi { background: var(--warn-bg); color: var(--warn); }
.tst .grow { flex: 1; min-width: 0; } .tst b { display: block; font-size: 15px; font-weight: 600; } .tst small { display: block; color: var(--muted); font-size: 13px; }
.tst .tsw { font-size: 12px; } .tsgo { color: var(--muted); font-size: 22px; }
#protoview .card { margin-bottom: 14px; }
/* главная: виджеты плотно, без дыр — колонки заполняются сверху вниз */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); grid-auto-rows: auto; gap: 14px; align-items: stretch; }
.dgrid > .card { margin: 0 !important; display: flex; flex-direction: column; min-height: 0; max-height: 420px; overflow: hidden; }
.dgrid .attn { grid-column: auto; }
.dgrid .cb { flex: 1; min-height: 0; overflow-y: auto; margin-right: -8px; padding-right: 8px; scrollbar-width: thin; }
.dc .ch h2 a { color: var(--ink); font-size: inherit; } .dc .ch h2 a:hover { color: var(--acc); }
.chx { display: inline-flex; align-items: center; gap: 4px; }
.cbt { border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 6px; cursor: pointer; display: inline-grid; place-items: center; }
.cbt:hover { background: var(--line); color: var(--ink); }
.cbt[data-fold] svg { transform: rotate(180deg); }
.dfold { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.dfold:empty { display: none; }
.dfold button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; padding: 7px 12px; font: inherit; cursor: pointer; }
.dfold button:hover { border-color: var(--acc); }
.dlg.big { max-width: 920px; max-height: 88vh; display: flex; flex-direction: column; padding: 18px 20px; }
.dlg.big .dlgb { overflow-y: auto; min-height: 0; } .dlg.big .ch h2 { font-size: 20px; }
.wxm { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; } .wxm + .wxm { border-top: 1px solid var(--line); }
.wxm .wxt { font-size: 34px; min-width: 112px; } .wxm .wxt small { font-size: 14px; }
.wxm .wxd { display: flex; flex-direction: column; gap: 2px; font-size: 14px; } .wxm .wxd > span { color: var(--muted); }
.wxfr { color: var(--warn) !important; display: inline-flex; gap: 5px; align-items: center; font-weight: 600; }
.okstrip { display: flex; gap: 8px; align-items: center; background: var(--ok-bg); color: var(--ok); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-size: 14.5px; font-weight: 500; }
@media (max-width: 999px) { .dgrid { grid-template-columns: 1fr; grid-auto-rows: auto; } .dgrid .cb { overflow: visible; margin: 0; padding: 0; } .dgrid > .card { max-height: none; } .cbt[data-open] { display: none; } }
.wxat { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* тёмная тема: карточки отчётливее — светлее фона, с рамкой и тенью */
:root[data-theme="dark"] .card, :root[data-theme="dark"] .kpi, :root[data-theme="dark"] .rqhero, :root[data-theme="dark"] .kc,
:root[data-theme="dark"] .tile, :root[data-theme="dark"] .list a, :root[data-theme="dark"] .wxgrid .wxc {
  border-color: #3A444F; box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 6px 18px rgba(0,0,0,.35); }
:root[data-theme="dark"] .kcol { background: #151A1F; }
:root[data-theme="dark"] .tile.off { background: #14181D; }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background: #12161A; border-color: #3A444F; }
:root[data-theme="dark"] .a-in input { background: transparent; }   /* форма входа всегда белая — поле не красим в тёмный */
:root[data-theme="dark"] .seg a { border-color: #3A444F; }
/* журнал температуры: числа по центру своих столбцов */
table.wxt-t { table-layout: fixed; min-width: 640px; }
table.wxt-t th, table.wxt-t td.n { text-align: center; } table.wxt-t .d { width: 118px; text-align: left; }
table.wxt-t .g { border-left: 1px solid var(--line); } table.wxt-t td small { text-align: center; }

/* широкий экран: страницы занимают всю ширину, формы — в несколько колонок, результат — справа */
.split { display: block; }
@media (max-width: 999px) { .desk-only { display: none !important; } }
.res-card .btn.block { margin-top: 12px; }
.empty { display: flex; gap: 16px; align-items: flex-start; } .empty h2 { margin: 2px 0 6px; }
.bk-ic { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #FEF3C7; color: var(--acc); }
.list.books .bk-ic { width: 36px; height: 36px; margin-right: 12px; }
.jt td:first-child { width: 190px; white-space: nowrap; } .jt td.jact { width: 1%; white-space: nowrap; }
.jt a.mini { display: inline-block; font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; margin-left: 6px; text-decoration: none; color: var(--ink); }
.jt a.mini.bad { color: var(--bad); } .jt a.mini:hover { border-color: var(--brand); }
@media (min-width: 1000px) {
  body.has-side main > .seg, body.has-side .split-main > .seg { max-width: 760px; }
  .mob-only { display: none !important; }
  .split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
  .split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split-side { position: sticky; top: 82px; } .split .card { margin-bottom: 14px; }
  .fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 16px; }
  .grid2.nfh { max-width: 640px; }
  .list.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 10px; }
  .list.books li { margin: 0; }
}
:root[data-theme="dark"] .bk-ic { background: rgba(245,158,11,.14); }
/* карточка заявки: несохранённые изменения */
.rqsave { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 6; display: flex; align-items: center; gap: 10px; margin-top: 14px;
  background: var(--card); border: 2px solid var(--acc); border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.rqsave > span { flex: 1; display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 14.5px; } .rqsave > span svg { color: var(--acc); flex: none; }
@media (min-width: 1000px) { .rqsave { bottom: 14px; } }
.stb.chg, .card.chg, .rqd.chg, label.f.chg select { box-shadow: 0 0 0 2px var(--acc) inset; }
.card.chg { box-shadow: 0 0 0 2px var(--acc); }
.btn.sm { padding: 6px 12px; font-size: 13.5px; margin-top: 8px; }
.rqlog b { display: block; }
.tiles.bk .tile .bk-ic { width: 36px; height: 36px; margin-bottom: 10px; } .tiles.bk .tile.off .bk-ic { filter: grayscale(1); opacity: .6; }
.bk-y { margin: 18px 0 8px; font-size: 15px; color: var(--muted); } .bk-y:first-child { margin-top: 0; }
.dgrid .cf { flex: none; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 2px; } .dgrid .cf .more { margin-top: 6px; }
.dgrid .cf .legend2 { margin-top: 8px; }

/* итоги недели */
.wkhead { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin: 4px 0 14px; }
.wkhead h1 { margin: 0; font-size: 26px; } .wkhead h1 span { font-weight: 400; color: var(--muted); font-size: 22px; } .wkhead p { margin: 4px 0 0; }
.wkctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .wkctl .btn { padding: 9px 14px; }
.seg.wkseg { display: inline-flex; margin: 0; max-width: none; } .wkseg a { padding: 8px 14px; flex: none; display: inline-flex; align-items: center; }
.wkseg a:first-child svg { transform: rotate(90deg); } .wkseg a:last-child svg { transform: rotate(-90deg); } .wkseg a.dis { opacity: .35; pointer-events: none; }
.kpis.wkk { grid-template-columns: repeat(6, 1fr); } .wkk .kpi.acc { box-shadow: inset 0 3px 0 var(--acc); }
.kpi small em { font-style: normal; font-weight: 600; color: var(--ink); } .kpi small em.bad, .wkt em.bad { color: var(--bad); } .kpi small em.good, .wkt em.good { color: var(--ok); }
.wkg { display: grid; gap: 14px; margin-bottom: 14px; align-items: stretch; } .wkg .card { margin: 0; }
.wkg.g3 { grid-template-columns: 1.05fr 1.05fr 1fr; } .wkg.g3b { grid-template-columns: 1.15fr 1fr 1fr; } .wkg.g2 { grid-template-columns: 1fr 1fr; }
.wkdays { display: flex; gap: 6px; height: 210px; align-items: stretch; padding-top: 4px; }
.wkd { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; } .wkd b { font-size: 14px; height: 20px; }
.wkst { flex: 1; width: 62%; max-width: 46px; display: flex; flex-direction: column-reverse; } .wkst i { display: block; border-top: 1px solid var(--card); }
.wkd span { font-size: 12px; color: var(--muted); margin-top: 6px; white-space: nowrap; } .wkd em { font-style: normal; font-size: 12px; color: var(--bad); font-weight: 600; display: inline-flex; gap: 2px; align-items: center; height: 18px; }
.wkd em.z { color: var(--muted); font-weight: 400; }
.wkhm { display: grid; gap: 3px; font-size: 11px; } .wkhm .hh { text-align: center; color: var(--muted); } .wkhm .hd { color: var(--muted); align-self: center; }
.wkhm i { aspect-ratio: 1.25; border-radius: 3px; display: grid; place-items: center; font-style: normal; color: var(--muted); }
:root { --wkz: #F4F2F0; } :root[data-theme="dark"] { --wkz: #20262C; }
.wkscale { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 10px; } .wkscale i { width: 18px; height: 9px; border-radius: 2px; }
.card.wktips { background: #1D2227; color: #D5DBE0; border-color: #1D2227; display: flex; flex-direction: column; } .wktips h2 { color: #fff; }
.wktips ol { margin: 0; padding: 0; list-style: none; counter-reset: t; flex: 1; } .wktips li { counter-increment: t; position: relative; padding-left: 34px; margin-bottom: 12px; font-size: 14.5px; line-height: 1.45; }
.wktips li::before { content: counter(t); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 5px; background: #343B42; color: var(--acc); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.wktips li b { color: #fff; } .wktips small { color: #8D99A6; font-size: 12px; }
.wkpk { display: flex; align-items: flex-end; height: 200px; gap: 3px; } .wkpk .pb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.wkpk .pb i { display: block; width: 100%; background: var(--ink); border-radius: 2px 2px 0 0; } .wkpk .pb u { width: 6px; height: 6px; border-radius: 50%; background: var(--bad); margin-bottom: 3px; }
.wkax, .wkz { position: relative; height: 18px; font-size: 11.5px; color: var(--muted); margin-top: 4px; } .wkax span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.wkax span:first-child { transform: none; } .wkax span:last-child { transform: translateX(-100%); }
.wkz { height: 20px; } .wkz span { position: absolute; top: 0; height: 20px; background: rgba(255,122,26,.12); border: 1px solid var(--card); display: grid; place-items: center; font-size: 11.5px; overflow: hidden; white-space: nowrap; }
table.wkt th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; } table.wkt td small { display: block; color: var(--muted); font-size: 11.5px; }
table.wkt em { font-style: normal; font-size: 12px; font-weight: 600; }
.wkbar { display: block; height: 5px; border-radius: 3px; background: var(--line); min-width: 60px; } .wkbar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); } .wkbar.big { height: 7px; }
.wkk2 { display: grid; grid-template-columns: minmax(0, 1fr) 1.3fr 44px; gap: 14px; align-items: center; padding: 6px 0; font-size: 14px; } .wkk2 b { text-align: right; }
.wkflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.wkflow div { background: var(--bg); padding: 12px 14px 10px 22px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); }
.wkflow div:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); padding-left: 14px; }
.wkflow b { display: block; font-size: 24px; } .wkflow span { font-size: 12.5px; color: var(--muted); } .wkflow .dk { background: #1D2227; color: #fff; } .wkflow .dk span { color: #C9D0D7; }
.wkfacts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; } .wkfacts div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.wkfacts div.wide { grid-column: 1 / -1; } .wkfacts span { color: var(--muted); } .wkfacts b { text-align: right; } .wkfacts a { color: inherit; }
.wkfoot { font-size: 12.5px; }
@media (max-width: 1300px) { .kpis.wkk { grid-template-columns: repeat(3, 1fr); } .wkg.g3, .wkg.g3b { grid-template-columns: 1fr 1fr; } .wkg .wktips { grid-column: 1 / -1; } }
@media (max-width: 860px) { .kpis.wkk { grid-template-columns: 1fr 1fr; } .wkg.g3, .wkg.g3b, .wkg.g2 { grid-template-columns: 1fr; } .wkhead h1 { font-size: 21px; } .wkhead h1 span { font-size: 17px; }
  .wkfacts { grid-template-columns: 1fr; } .wkflow b { font-size: 19px; } .wkdays { height: 170px; } .wkd span { font-size: 10.5px; } }
table.wkt th { white-space: nowrap; } table.wkt td small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
table.wkt td:nth-child(3) { width: 22%; }
:root[data-theme="dark"] .wkflow .dk { background: var(--acc); color: #1D2227; } :root[data-theme="dark"] .wkflow .dk span { color: #3a2a1c; }

/* настройки, сотрудники, подписи, вахты, протокол */
.cols2 { display: grid; gap: 14px; align-items: start; } .cols2 > div > .card, .cols2 > .card { margin: 0 0 14px; }
.cols2 > * { min-width: 0; }   /* длинная команда в pre не раздвигает колонку шире экрана телефона */
@media (min-width: 1000px) { .cols2 { grid-template-columns: 1fr 1fr; } }
.phead { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; } .phead h2 { margin: 0 0 2px; } .phead p { margin: 0; }
.av.xl { width: 54px; height: 54px; font-size: 19px; }
.plist { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 1000px) { .plist { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); } }
.plist .person { border: 1px solid var(--line); border-radius: 10px; padding: 12px; align-items: flex-start; gap: 12px; background: var(--card); }
.plist .person.off { opacity: .6; } .plist .roted { grid-column: 1 / -1; margin: 0; }
.person .chips { margin: 8px 0 0; gap: 5px; } .person .chips .chip { font-size: 11.5px; }
.person .sig { display: block; max-height: 56px; max-width: 220px; margin-top: 8px; background: #fff; border-radius: 6px; }
.pact { gap: 6px; } .pact a, .pact label.lnk { display: block; font-size: 13px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); white-space: nowrap; text-align: center; background: var(--card); }
.pact a:hover, .pact label.lnk:hover { border-color: var(--acc); } .pact a.bad { color: var(--bad); }
.mlinks.tl { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mlinks.tl a { background: var(--card); padding: 18px; gap: 6px; border-radius: var(--radius); } .mlinks.tl a:hover { border-color: var(--acc); } .mlinks.tl b { font-size: 16px; }
.mlinks.tl .bk-ic { margin-bottom: 6px; }
.split.pv .split-side .card { margin: 0; } .split.pv table.t td.pn { color: var(--muted); width: 22px; } table.t td.nw { white-space: nowrap; }
.card h2 svg { vertical-align: -3px; color: var(--muted); }
.rotp .grow > div > b.bad { font-size: 13.5px; font-weight: 600; } #mailcard a:not(.btn) { color: var(--acc); }

/* итоги недели — фирменные цвета, блоки по два в ряд одной высоты */
.wk { --wk-n: #004268; --wk-o: #F36F21; --wk-l: #CDD5DE; --wk-t: #004268; }
:root[data-theme="dark"] .wk { --wk-n: #3E86C0; --wk-l: #3A444F; --wk-t: #8CC0EA; }
.wkid { display: flex; align-items: center; gap: 14px; } .wkid img { height: 46px; width: auto; max-width: 140px; border-radius: 6px; background: #fff; padding: 3px; }
.wkorg { display: flex; flex-direction: column; padding-right: 14px; border-right: 1px solid var(--line); } .wkorg b { color: var(--wk-t); font-size: 16px; } .wkorg small { color: var(--muted); font-size: 12px; }
.wk .wkhead h1 { color: var(--ink); } .wk .kpi b { color: var(--wk-t); } .wkk .kpi.acc { box-shadow: inset 0 3px 0 var(--wk-o); } .wkk .kpi { box-shadow: inset 0 3px 0 var(--wk-n); }
.wkb { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; margin-bottom: 14px; }
.wkb .card { margin: 0; min-width: 0; } .wkb .card.full { grid-column: 1 / -1; } .wkc .ch h2 { color: var(--wk-t); }
.card.wkc.wktips { background: #004268; border-color: #004268; color: #DCE6EF; } .wktips h2 { color: #fff; } .wktips li::before { background: var(--wk-o); color: #fff; }
.wkst i { border-top: 1px solid var(--card); }
.wkleg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); margin-top: 10px; } .wkleg span { display: inline-flex; align-items: center; gap: 5px; }
.wkleg i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.wksrc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: stretch; }
.wkbig > div { border-left: 4px solid var(--wk-n); padding: 2px 0 2px 12px; margin-bottom: 14px; } .wkbig > div.o { border-color: var(--wk-o); }
.wkbig span { display: block; font-size: 13px; color: var(--muted); } .wkbig b { font-size: 32px; color: var(--wk-t); line-height: 1.15; } .wkbig .o b { color: var(--wk-o); }
.wkbig small { display: block; font-size: 12.5px; color: var(--muted); } .wkbig p { font-size: 13px; margin: 0 0 4px; }
.wksrc .wkdays { height: 190px; } .wkd em.o { color: var(--wk-o); font-weight: 700; font-size: 12px; font-style: normal; }
.wkk2 { grid-template-columns: minmax(0, 1fr) 1.2fr 50px 60px; } .wkk2.h b { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 600; padding: 0; }
.wkk2 b.muted { font-weight: 400; } .wkbar i { background: var(--wk-n); }
.wkflow { grid-template-columns: repeat(5, 1fr); } .wkflow b { color: var(--wk-t); } .wkflow .dk { background: var(--wk-n); color: #fff; } .wkflow .dk b { color: #fff; }
.wkflow .rd { background: #D64545; color: #fff; } .wkflow .rd b, .wkflow .rd span, .wkflow .dk span { color: #fff; }
.wkfacts.one { grid-template-columns: 1fr; } .wknc { font-size: 13.5px; margin: 10px 0 0; }
.wkr { display: grid; grid-template-columns: 150px 1fr 40px; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.wkr b { text-align: right; color: var(--wk-t); } .wkr .stc { text-align: center; font-size: 12px; }
table.wkw td small { display: block; color: var(--muted); font-size: 11.5px; }
.wkcfg .wkcl { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 6px 18px; }
.wkci { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 2px 6px 2px 12px; }
.wkci .check { padding: 6px 0; font-size: 14.5px; } .wkci .check input { width: 18px; height: 18px; }
.wkci .cbt:first-child svg { transform: rotate(180deg); } .wkci .cbt[disabled] { opacity: .25; cursor: default; }
@media (max-width: 1000px) { .wkb { grid-template-columns: 1fr; } .wksrc { grid-template-columns: 1fr; } .wkflow { grid-template-columns: repeat(3, 1fr); } }
.logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .logo-pv { height: 48px; max-width: 160px; background: #fff; border-radius: 6px; padding: 4px; border: 1px solid var(--line); }
table.wkt th.n { text-align: right; } .wkk2 { grid-template-columns: minmax(0, 1.4fr) 1fr 50px 64px; } .wkflow span { font-size: 12px; line-height: 1.2; display: block; }
:root[data-theme="dark"] .wk .wkflow .dk { background: var(--wk-n); color: #fff; } :root[data-theme="dark"] .wk .wkflow .dk span { color: #fff; }
table.wkt.wkw { table-layout: fixed; } table.wkt.wkw td:nth-child(3) { width: auto; } table.wkt.wkw th:first-child { width: 190px; }

/* реестр заявок — помещается в ширину экрана: без «Этапа» и «Вида контроля», колонки ужаты, текст переносится */
table.reg { min-width: 0; font-size: 12.5px; }
table.reg th, table.reg td { padding: 4px 5px; overflow-wrap: break-word; hyphens: auto; }
table.reg td.nw { white-space: nowrap; }
table.reg th.our { min-width: 96px; }

table.reg thead th { font-size: 12px; padding: 6px 5px; }
table.reg td.wide { min-width: 170px; }
table.reg .assel, table.reg .stsel, table.reg .psel { min-width: 0; width: 100%; max-width: 150px; font-size: 12px; }
table.reg th.stk, table.reg td.stk { min-width: 54px; }
@media (max-width: 1500px) { table.reg { font-size: 12px; } table.reg th, table.reg td, table.reg thead th { padding: 3px 3px; } table.reg th.our { min-width: 0; }
  table.reg td.wide { min-width: 120px; } table.reg th.stk, table.reg td.stk { min-width: 34px; }
  table.reg .assel, table.reg .stsel, table.reg .psel { width: 68px; padding: 3px 1px; font-size: 11.5px; }
  body.has-side.widepage main { padding-left: 16px; padding-right: 16px; } }
/* копия по кнопке в «Обслуживании» */
.bknow { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: 12px 0 4px; }
.bknow .muted { flex: 1; min-width: 220px; }
/* бетон в карточке заявки */
.betgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 12px; }
/* «Вчера на линии» на главной */
.yd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.yd > div { background: var(--bg); border-radius: var(--radius); padding: 8px 10px; }
.yd b { display: block; font-size: 22px; line-height: 1.15; } .yd b small { font-size: 14px; color: var(--muted); font-weight: 500; }
.yd span { font-size: 12.5px; color: var(--muted); }
.yd .ok b { color: var(--ok); } .yd .bad b { color: var(--bad); } .yd .warn b { color: var(--warn); }
.ydl { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 12px 0 4px; color: var(--ink); }
.ydl .ic { color: var(--bad); margin-top: 2px; } .ydl.ok .ic { color: var(--ok); }

.pendbox { display:flex; align-items:center; gap:10px; flex-wrap:wrap }
.pendbox span { flex:1; min-width:200px }
.t.chg td { vertical-align:top }
.eqneed { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 12px }
.jseg { margin:0 0 8px; display:inline-flex; gap:6px }
.jseg a { padding:4px 12px; font-size:13px }
/* главная: «Работы сегодня» — фильтры, группы, прокрутка внутри блока (27.10.2026) */
.jtools { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:flex-end; margin-bottom:8px }
.jtools .jseg { margin:0 }
.jf { display:flex; flex-direction:column; gap:2px; font-size:12px; color:var(--muted) }
.jf select { font:inherit; font-size:13.5px; color:var(--ink); padding:5px 8px; border:1px solid var(--line); border-radius:8px; background:var(--card); max-width:240px }
.jlist { max-height:460px; overflow:auto; margin-right:-6px; padding-right:6px }
.jgh { display:flex; align-items:center; gap:8px; width:100%; background:none; border:0; border-top:1px solid var(--line); padding:9px 0; cursor:pointer; color:var(--ink); font:inherit; text-align:left }
.jgh b { font-size:14px } .jgh svg { transition:transform .15s; transform:rotate(180deg); color:var(--muted) }
.jgrp.shut .jgh svg { transform:rotate(0) } .jgrp.shut .jgb { display:none }
.jgb .job { padding-left:22px }
@media (max-width: 760px) { .jlist { max-height:55vh } .jf select { max-width:100% } .jtools .jf { flex:1 1 40% } }
/* плитки разделов: материал крупно, ГОСТ — мельче и цветом */
.tile b .gost, .tile .gost { display:block; font-size:13px; font-weight:500; color:#C9580A; margin-top:3px }
:root[data-theme="dark"] .tile .gost { color:var(--acc) }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile .gost { color:var(--acc) } }
.job.my { box-shadow: inset 3px 0 0 var(--acc) }
#outbox .btn.mini { padding: 4px 10px; font-size: 13px; margin-left: 6px; vertical-align: middle; }

/* меню: «Основное» крупнее и ярче, «Вспомогательное» — мельче; «Итоги недели» внизу над учётной записью */
.s-cap { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--side-ink); opacity: .6; padding: 14px 12px 6px; }
.side nav a.core { font-size: 16px; font-weight: 600; color: #fff; padding: 11px 12px; }
.side nav a.core .ic { color: var(--acc); }
.s-cap.aux { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }
.s-cap.aux ~ a { font-size: 14px; padding: 8px 12px; }
.side nav.s-low { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.side nav.s-low a { font-size: 14px; padding: 8px 12px; }
.side nav.s-low + .s-me { margin-top: 0; }
.labseg { margin-bottom: 14px; }
.labseg a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mnl { display: grid; }
.mnl a { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mnl a:last-child { border-bottom: 0; }
.mnl a span { flex: 1; }
.mnl a .ic:last-child { transform: rotate(-90deg); color: var(--muted); }
@media (max-width: 600px) { .mailp { flex-wrap: wrap; } .mailp .pact { width: 100%; } .mailp .pact a { display: block; text-align: center; } }
.pvbar { align-items: center; flex-wrap: wrap; }
.pvbar .muted { font-size: 13px; flex: 1 1 260px; }
.pvlist { max-height: 60vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0 12px; }

/* предпросмотр реестра: на компьютере — таблица как в Excel, на телефоне — блоки */
.pvt { width: 100%; border-collapse: collapse; font-size: 13px; }
.pvt th { position: sticky; top: 0; z-index: 1; background: var(--bg); text-align: left; font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pvt td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pvt tr.pvrow { cursor: pointer; }
.pvt tr.pvrow:hover td { background: var(--hover, rgba(127,127,127,.06)); }
.pvt .pvc { width: 28px; } .pvt .pvno, .pvt .pvday, .pvt .pvtm { white-space: nowrap; }
.pvt .pvctr { min-width: 110px; } .pvt .pvrd { min-width: 120px; word-break: break-word; } .pvt .pvpl { min-width: 140px; }
.pvt .pvwk { min-width: 260px; } .pvt .pvwhy { color: var(--muted); font-size: 12px; min-width: 140px; }
.pvt input { width: 17px; height: 17px; accent-color: var(--acc); }
.pvt tr.off td:not(.pvc) { opacity: .5; }
@media (max-width: 999px) {
  .pvt thead { display: none; }
  .pvt, .pvt tbody { display: block; }
  .pvt tr.pvrow { display: block; position: relative; padding: 10px 12px 10px 44px; border-bottom: 1px solid var(--line); }
  .pvt td { display: block; padding: 0; border: 0; }
  .pvt .pvc { position: absolute; left: 12px; top: 10px; }
  .pvt .pvday, .pvt .pvtm, .pvt .pvpl { display: inline; font-weight: 600; }
  .pvt .pvday::after, .pvt .pvtm::after { content: " · "; }
  .pvt .pvno, .pvt .pvctr, .pvt .pvrd { display: inline; font-size: 12px; color: var(--muted); }
  .pvt .pvno::before { content: "№ "; } .pvt .pvno::after, .pvt .pvctr::after { content: " · "; }
  .pvt .pvwk { margin: 2px 0; } .pvt .pvkind { font-size: 12px; color: var(--muted); }
}

/* исполнительная документация (id.js) */
.idg { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; align-items: start; }
.idg .card { margin: 0; } .idg .full { grid-column: 1 / -1; }
.idg h2 small { font-weight: 400; font-size: 13px; }
.ihead { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 0 12px; }
.rng { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; } .rng i { color: var(--muted); font-style: normal; }
.et { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.et th { font-size: 12px; color: var(--muted); font-weight: 600; text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.et td { padding: 4px 6px; border-bottom: 1px solid var(--line); }
.et input { font-size: 15px; padding: 8px; } .et .unit input { padding-right: 28px; } .et .unit em { right: 8px; }
.et .no { width: 26px; color: var(--muted); font-size: 13px; } .et .x { width: 36px; text-align: center; } .et .ly { width: 72px; }
.et .cbt { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 6px; } .et .cbt:hover { color: var(--bad); background: var(--bad-bg); }
.addrow { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; color: var(--acc); font: inherit; font-weight: 600; font-size: 14px; background: none; border: 0; cursor: pointer; padding: 4px 0; }
.ok2 { font-size: 13px; color: var(--ok); margin-top: 8px; } .bad2 { font-size: 13px; color: var(--bad); margin-top: 6px; } .warn2 { font-size: 13px; color: var(--warn); margin-top: 6px; }
.idsum { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.idsum div { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; min-width: 150px; }
.idsum b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; } .idsum span { font-size: 13px; color: var(--muted); }
.idpl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .idpl h3 { margin: 0 0 6px; }
table.idlist tr[data-go] { cursor: pointer; } table.idlist tr[data-go]:hover td { background: var(--bg); }
@media (max-width: 760px) {
  .idg, .ihead, .idpl { grid-template-columns: 1fr; }
  #ws thead { display: none; } #ws .no { display: none; }
  #ws tr { display: grid; grid-template-columns: 1fr 72px 36px; grid-template-areas: "d l x" "a b b"; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  #ws td { border: 0; padding: 0; } #ws td:nth-child(2) { grid-area: d; } #ws td.ly { grid-area: l; width: auto; } #ws td.x { grid-area: x; }
  #ws td:nth-child(4) { grid-area: a; } #ws td:nth-child(5) { grid-area: b; }
}
.idpl table.t th.n, table.idlist th.n { text-align: right; }
.idg > *, .ihead > *, .idpl > * { min-width: 0; } .rng input { min-width: 0; width: 100%; }
@media (max-width: 760px) { .idg, .ihead, .idpl { grid-template-columns: minmax(0, 1fr); } .idpl { overflow-x: auto; } }
.idtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; }
.idtile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  color: inherit; text-decoration: none; min-height: 140px; transition: border-color .15s; }
.idtile:hover { border-color: var(--acc); } .idtile b { font-size: 19px; margin-top: 8px; } .idtile .sub { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .idtile { flex-direction: row; align-items: center; min-height: 0; padding: 14px 16px; gap: 14px; }
  .idtile b { margin: 0; font-size: 17px; flex: 1; } }
.hint2 { font-size: 13px; color: var(--muted); margin-top: 6px; }
.demobar { background: repeating-linear-gradient(135deg, #2C333A 0 14px, #1D2227 14px 28px); color: #FFB27A; text-align: center;
  font-size: 13px; font-weight: 600; padding: 5px 12px; letter-spacing: .02em; } .demobar[hidden] { display: none; }
/* карточка заявки: кто / проба / результат — сразу под заголовком; результаты на линии */
.rqfacts { display:flex; flex-wrap:wrap; gap:6px 16px; align-items:center; margin:8px 0 2px; font-size:14px }
.rqfacts a { color:inherit; text-decoration:underline; text-underline-offset:3px }
.lrnorms { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:8px 12px; margin-bottom:10px }
.lres .tscroll { overflow-x:auto }
.lrt td input { width:100%; min-width:70px; padding:6px 8px }
.lrt td.lrcalc { font-variant-numeric:tabular-nums }
.lrt tr.lrbad td { background:color-mix(in srgb, var(--bad) 12%, transparent) }
.lrt tr.lrbad td.lrcalc b, .lrt tr.lrbad td.n { color:var(--bad) }
/* «Линия»: дни — сразу над таблицей, без прокрутки вниз */
.daystrip { display:flex; gap:6px; overflow-x:auto; margin:4px 0 10px; padding-bottom:2px }
.daystrip a { flex:none; display:flex; align-items:baseline; gap:6px; padding:7px 12px; border:1px solid var(--line, #D9DEE3); border-radius:8px;
  background:var(--card, #fff); color:inherit; text-decoration:none; font-weight:500; font-size:14px }
.daystrip a small { color:var(--muted); font-size:12px }
.daystrip a.on { background:var(--brand); color:var(--brand-ink); border-color:var(--brand) }
.daystrip a.on small { color:inherit; opacity:.75 }
@media (max-width: 760px) { .lrt td input { min-width:52px; padding:6px 5px; font-size:14px } .lrt th { font-size:12px } }
/* конвейер: поиск и фильтры сверху; колонки во всю высоту окна, прокрутка внутри колонки */
.ptools { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; margin:0 0 10px }
.ptools .pview { margin:0 } .ptools input[type=search] { width:260px; padding:8px 10px } .ptools select { width:auto; padding:8px 10px }
.ptools .check { margin:0 }
.kb { height:calc(100vh - 250px); height:calc(100dvh - 250px); min-height:420px; align-items:stretch }
.kcol { min-height:0; overflow:hidden; padding:8px }
.kcol .kh { flex:none }
.kbody { flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:7px; padding-right:2px; overscroll-behavior:contain }
.kc { padding:8px 10px; gap:3px; flex:none }
.kc .kt { flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:2px 6px } .kc .kt b { font-size:14px; white-space:nowrap }
.kc .kmat { white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.kc .sp { margin-top:2px }
.ptab tr[data-go] { cursor:pointer } .ptab tr[data-go]:hover td { background:var(--bg) }
.ptab td small { display:block; color:var(--muted); font-size:12px } .ptab tr.late td:first-child { box-shadow:inset 3px 0 0 var(--bad) }
@media (max-width: 999px) {
  .kb { height:calc(100dvh - 300px); min-height:360px }
  .ptools input[type=search] { flex:1 1 100%; width:auto } .ptools select { flex:1 }
  .plist2 { overflow-x:auto }
}
.pstages { margin:0 0 10px } .pstages a small { opacity:.7; margin-left:2px }
.pone { display:flex; flex-direction:column; gap:8px; padding-bottom:80px }
.reg td .prno { font-weight:600; white-space:nowrap; display:inline-block; margin-bottom:3px }
.wkrest { margin:8px 0 0; font-size:13.5px; color:var(--muted) } .wkrest b { color:var(--ink) }

/* ============================================================ «Морская волна» (27.10.2026, выбор автора по макетам Stitch)
   морская волна #0F5E5A + янтарь #F59E0B, светлый фон, белые карточки с мягкой тенью без рамок, таблицы с шапкой в цвет меню,
   статусы — мягкие «пилюли»; на телефоне — крупнее текст и кнопки. Всё, что ниже, перекрывает прежние правила. */
:root {
  --bg: #F1F6F5; --card: #fff; --ink: #151C27; --muted: #5A6B69; --line: #DCE5E3;
  --brand: #0F5E5A; --brand-ink: #fff; --acc: #F59E0B; --acc-ink: #2A1700;
  --ok: #137A52; --ok-bg: #DCF3E8; --warn: #93560A; --warn-bg: #FEF3C7; --bad: #C53030; --bad-bg: #FDE4E4;
  --side: #0F5E5A; --side-ink: #CDE7E4; --side-on: #0A4542; --tint: #E6F1EF;
  --shadow: 0 1px 2px rgba(15, 94, 90, .06), 0 4px 18px -6px rgba(15, 94, 90, .14);
  --radius: 10px;
}
:root[data-theme="dark"] {
  --bg: #091312; --card: #11201F; --ink: #E3EEEC; --muted: #92A9A6; --line: #23403D;
  --brand: #5CC2BA; --brand-ink: #052725; --acc: #F5A524; --acc-ink: #2A1700;
  --ok: #4CC38A; --ok-bg: #133024; --warn: #F2C14E; --warn-bg: #3A2C12; --bad: #FF7A70; --bad-bg: #3A1E1C;
  --side: #062A28; --side-ink: #A6CDC9; --side-on: #0C3D3A; --tint: #15302E;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 6px 18px rgba(0,0,0,.35);
}
/* карточки: без рамки, с тенью */
.card, .kpi, .tile, .list a, .list .row, .kc, .rqhero, .wxgrid .wxc, details.filters, .mlinks a, .dfold button, .seg.chips a {
  border-color: transparent; box-shadow: var(--shadow); }
.card { border-radius: 12px; padding: 16px 18px; }
.kpi:hover, .kc:hover, .tile:hover { border-color: transparent; box-shadow: 0 2px 4px rgba(15,94,90,.08), 0 10px 26px -8px rgba(15,94,90,.22); }
.kpi:first-child { box-shadow: var(--shadow), inset 0 3px 0 var(--acc); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .kpi, :root[data-theme="dark"] .rqhero, :root[data-theme="dark"] .kc,
:root[data-theme="dark"] .tile, :root[data-theme="dark"] .list a, :root[data-theme="dark"] .wxgrid .wxc { border-color: transparent; }
input, select, textarea { background: var(--card); border-color: var(--line); }
input:focus, select:focus, textarea:focus { outline-color: var(--brand); }
/* кнопки: главная — янтарь, второстепенная — белая с тенью */
.btn { border-radius: 9px; box-shadow: 0 2px 6px -2px rgba(245,158,11,.5); }
.btn.ghost { background: var(--card); color: var(--brand); border: 0; box-shadow: var(--shadow); }
.btn.ghost:hover { filter: none; background: var(--tint); }
.btn.danger { box-shadow: none; }
:root[data-theme="dark"] .btn.ghost { color: var(--ink); }
/* переключатели: «пилюли» на подложке */
.seg { background: color-mix(in srgb, var(--brand) 9%, var(--bg)); padding: 4px; border-radius: 11px; gap: 4px; }
.seg a { border: 0; background: transparent; color: var(--muted); font-weight: 500; border-radius: 8px; }
.seg a:hover { color: var(--brand); background: color-mix(in srgb, var(--card) 60%, transparent); }
.seg a.on { background: var(--brand); color: var(--brand-ink); font-weight: 600; box-shadow: 0 2px 6px -2px rgba(15,94,90,.5); }
:root[data-theme="dark"] .seg a { border: 0; }
/* статусы и метки — мягкие «пилюли» */
.chip, .stc, .days { border-radius: 99px; font-weight: 600; }
.chip.ok, .stc.k-ok, .stc.st-ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn, .stc.k-work, .stc.st-work { background: var(--warn-bg); color: var(--warn); }
.chip.bad, .stc.k-fail, .stc.k-false, .stc.st-fail, .stc.st-false { background: var(--bad-bg); color: var(--bad); }
/* меню слева (компьютер) */
.side { background: linear-gradient(180deg, #0C4E4B 0, var(--side) 76px); box-shadow: 4px 0 24px -12px rgba(0,0,0,.35); }
:root[data-theme="dark"] .side { background: var(--side); }
.side nav a { border-radius: 9px; font-weight: 500; }
.side nav a:hover { background: rgba(255,255,255,.08); }
.side nav a.on { background: var(--side-on); box-shadow: inset 4px 0 0 var(--acc); }
.side nav a.on .ic { color: var(--acc); }
.s-me { border-top-color: rgba(255,255,255,.12); }
.av { background: var(--acc); color: var(--acc-ink); }
/* верхняя строка: на компьютере — белая полоса с тенью, на телефоне — в цвет меню */
@media (min-width: 1000px) {
  body.has-side .top { background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(8px); box-shadow: 0 1px 10px rgba(15,94,90,.07); margin-bottom: 12px; }
  body.has-side .tbtn, body.has-side .ksearch, body.has-side .live { border-color: transparent; background: var(--bg); }
  body.has-side main { padding-top: 0; }
}
/* нижние вкладки (телефон) */
.tabs { box-shadow: 0 -2px 14px rgba(15,94,90,.08); border-top: 0; }
.tabs a.on { color: var(--brand); } .tabs a.on .ic { color: var(--brand); }
.tabs a.on::before { background: var(--acc); }
/* реестр «Линии»: шапка таблицы в цвет меню, без чёрных линий, строки — мягкая подкраска статуса */
.regwrap { border: 0; border-radius: 12px; box-shadow: var(--shadow); }
table.reg th, table.reg td { border: 0; border-bottom: 1px solid var(--line); }
table.reg thead th, table.reg thead th.stk { background: var(--brand); color: #fff; box-shadow: none; font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; padding: 10px 6px; }
table.reg th.our { background: #0C4E4B; }
table.reg td.our { background-image: none; }
table.reg th.stk, table.reg td.stk { box-shadow: inset -1px 0 0 var(--line); }
table.reg tr.crit td.stk { box-shadow: inset 4px 0 0 var(--bad), inset -1px 0 0 var(--line); }
table.reg tr.dayrow td { background: var(--tint); color: var(--brand); border-bottom: 0; }
table.reg tr.dayrow:not(.open) td { background: color-mix(in srgb, var(--tint) 60%, var(--card)); color: var(--muted); }
.st-new { background: var(--card) !important; } .st-work { background: #FFFBEB !important; } .st-ok { background: #F2FAF6 !important; }
.st-fail, .st-false, .st-cancel { background: #FEF4F4 !important; }
.list.req li.st-new a { background: var(--card); } .list.req li.st-work a { background: #FFFBEB; } .list.req li.st-ok a { background: #F2FAF6; }
.list.req li.st-fail a, .list.req li.st-false a, .list.req li.st-cancel a { background: #FEF4F4; }
:root[data-theme="dark"] table.reg thead th, :root[data-theme="dark"] table.reg thead th.stk { background: #0C3D3A; color: #E3EEEC; }
:root[data-theme="dark"] table.reg th.our { background: #0A3331; }
:root[data-theme="dark"] .st-work, :root[data-theme="dark"] .list.req li.st-work a { background: #2B2512 !important; }
:root[data-theme="dark"] .st-ok, :root[data-theme="dark"] .list.req li.st-ok a { background: #10261C !important; }
:root[data-theme="dark"] .st-fail, :root[data-theme="dark"] .st-false, :root[data-theme="dark"] .st-cancel,
:root[data-theme="dark"] .list.req li.st-fail a, :root[data-theme="dark"] .list.req li.st-false a, :root[data-theme="dark"] .list.req li.st-cancel a { background: #2E1817 !important; }
:root[data-theme="dark"] table.reg th, :root[data-theme="dark"] table.reg td { border-color: var(--line); }
table.reg td .prno { color: var(--brand); }
.daystrip a { border: 0; box-shadow: var(--shadow); border-radius: 9px; }
.daystrip a.on small { background: var(--acc); color: var(--acc-ink); opacity: 1; border-radius: 5px; padding: 0 6px; }
/* главная */
.kpi b { color: var(--brand); } .kpi.bad b { color: var(--bad); } .kpi.ok b { color: var(--ok); }
:root[data-theme="dark"] .kpi b { color: var(--ink); }
.job { border-top-color: var(--line); }
/* конвейер проб */
.kcol { background: color-mix(in srgb, var(--brand) 7%, var(--bg)); border-radius: 12px; }
.kh span { background: var(--card); box-shadow: var(--shadow); border-radius: 99px; padding: 0 9px; }
.kc.late { box-shadow: var(--shadow), inset 4px 0 0 var(--bad); }
.kt b, .ptab b { color: var(--brand); }
:root[data-theme="dark"] .kt b, :root[data-theme="dark"] .ptab b { color: var(--ink); }
.sp i.d { background: var(--brand); color: #fff; }
/* карточка заявки */
.rqhero { border-radius: 12px; }
.stb { border: 0; box-shadow: var(--shadow); border-radius: 11px; }
.stb:hover { border: 0; background: var(--tint); }
.stb.on.k-new { background: #5A6B69; } .stb.on.k-work { background: var(--acc); color: var(--acc-ink); } .stb.on.k-ok { background: #137A52; }
.stb.on.k-fail, .stb.on.k-false { background: var(--bad); } .stb.on.k-cancel { background: #3D4A49; }
.rqsave { background: #1C2B2A; color: #E8F1EF; border: 0; box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.rqsave > span { color: #E8F1EF; } .rqsave > span svg { color: var(--acc); }
.rqsave .btn.ghost { background: transparent; color: #E8F1EF; box-shadow: none; }
.rqsave .btn:not(.ghost) { background: var(--acc); color: var(--acc-ink); }
.rqp { background: var(--tint); }
.lrt tr.lrbad td { background: var(--bad-bg); }
/* таблицы в карточках */
table.t th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
/* плитки разделов */
.tile { border-radius: 14px; } .tile.off { box-shadow: none; background: color-mix(in srgb, var(--card) 55%, transparent); }
.tile .gost { color: #B45309; } :root[data-theme="dark"] .tile .gost { color: var(--acc); }
/* телефон: крупнее текст и кнопки — читать на улице и попадать пальцем */
@media (max-width: 999px) {
  html, body { font-size: 16.5px; }
  .btn { min-height: 46px; } .btn.sm { min-height: 36px; }
  .stb { min-height: 52px; font-size: 15px; }
  .list .sub, .job small, .kc small { font-size: 14px; }
  .chip, .stc { font-size: 12.5px; padding: 3px 10px; }
  .seg a { padding: 10px 8px; }
  .card { padding: 14px 15px; }
}
/* главная: быстрые фильтры-«чипы» по статусу; ПК — плашкой */
.qchips { display: flex; gap: 6px; overflow-x: auto; margin: 2px 0 10px; padding-bottom: 2px; scrollbar-width: none; }
.qchips a { flex: none; display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border-radius: 99px; background: var(--bg);
  color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.qchips a small { color: var(--muted); font-weight: 600; }
.qchips a.on { background: var(--brand); color: var(--brand-ink); } .qchips a.on small { color: inherit; opacity: .8; }
.qchips a.q-crit { color: var(--bad); } .qchips a.q-crit.on { background: var(--bad); color: #fff; }
.pk { display: inline-block; background: var(--tint); color: var(--brand); border-radius: 6px; padding: 1px 8px; font-weight: 600; }
:root[data-theme="dark"] .pk { color: var(--ink); }
/* реестр: счётчики статусов — фильтры */
.stchips a { text-decoration: none; cursor: pointer; padding: 4px 11px; font-size: 12.5px; }
.stchips a b { margin-left: 3px; } .stchips a.on { outline: 2px solid currentColor; outline-offset: 1px; }
.stchips .k-new, .stchips .k-cancel { background: var(--card); color: var(--muted); box-shadow: var(--shadow); }
.pk { white-space: nowrap; }
.ptools input[type=search], .ptools select { font-size: 14.5px; padding: 8px 10px; }
@media (max-width: 999px) { .job .pk { font-size: 14.5px; } .job { gap: 10px; } .job .tm { min-width: 44px; } }
