/* Дополнения портала к стилям макета: формы, вход, матрица прав */
.side a.nav{text-decoration:none}
.form{display:flex;flex-direction:column;gap:12px}
.form label{display:flex;flex-direction:column;gap:4px}
.form label>span{font-size:12px;color:var(--text-3)}
.form .row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
select.in{appearance:none;font-family:var(--f);font-weight:400}
input.in.txt,textarea.in.txt{font-family:var(--f);font-weight:400}
.err{color:var(--bad);font-size:13px;min-height:18px}
.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:var(--bg)}
.auth .box{width:100%;max-width:380px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:24px;display:flex;flex-direction:column;gap:16px}
.auth h1{font-size:20px;margin:0}
.auth .ck{flex-direction:row!important;align-items:flex-start;gap:8px!important;font-size:13px;color:var(--text-2)}
.auth .ck input{margin-top:2px}
.linkbox{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--accent-line);background:var(--accent-soft);border-radius:var(--r)}
.linkbox code{font-family:var(--m);font-size:12px;word-break:break-all;color:var(--text)}
.mx td.c,.mx th.c{text-align:center;width:120px}
.mx input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}
.fuelrow{display:grid;grid-template-columns:24px 1fr 1fr;gap:8px;align-items:center}
.tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:var(--r);background:var(--surface-2);font-size:12px;color:var(--text-2);margin:0 4px 4px 0}
.checklist{display:flex;flex-direction:column}
.checklist a{display:grid;grid-template-columns:20px 1fr auto;gap:12px;align-items:center;padding:12px 16px;border-top:1px solid var(--line);color:var(--text);text-decoration:none}
.checklist a:first-child{border-top:0}
.checklist a:hover{background:var(--surface-2)}
.dot{width:10px;height:10px;border-radius:50%;background:var(--n3)}
.dot.ok{background:var(--good)}.dot.part{background:var(--warn)}
.actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
@media (max-width:560px){.form .row2{grid-template-columns:1fr}.mx td.c,.mx th.c{width:64px}}
.drawer>div:first-child>h1{flex:1;min-width:0}
/* Павел Пятаев 25.11.2026: «в каждом разделе закрепи шапки таблиц для прокрутки вниз». Таблица крутится внутри своей рамки до низа экрана,
   строка с названиями столбцов остаётся сверху */
.tw{max-height:calc(100vh - 150px);overflow:auto}
.tw .t tr:first-child th{position:sticky;top:0;z-index:3;background:var(--surface);box-shadow:inset 0 -1px 0 var(--line)}
@media (max-width:560px){.tw{max-height:calc(100vh - 110px)}}
/* 002: разделы по макету и приложения на телефоне */
.pnav{display:flex;align-items:center;gap:8px}
.legend i.p0{background:var(--accent)}.legend i.p1{background:var(--n2)}.legend i.p2{background:var(--n3)}
.bars-h{display:flex;flex-direction:column;gap:8px}
.bars-h .bh{display:grid;grid-template-columns:140px 1fr 120px;gap:12px;align-items:center;color:var(--text);text-decoration:none;font-size:13px}
.bars-h .track{height:10px}.bars-h .track i.neg{background:var(--bad)}
.feed a.sig{display:grid;grid-template-columns:18px 1fr;gap:10px;padding:10px 16px;border-top:1px solid var(--line);color:var(--text);text-decoration:none;font-size:13px}
.feed a.sig:first-child{border-top:0}
.feed .fr{padding:8px 16px}
.note-row{display:grid;grid-template-columns:110px 1fr;gap:12px;padding:10px 0;border-top:1px solid var(--line);color:var(--text);text-decoration:none;font-size:13px}
.note-row.new{font-weight:600}
img.blank{width:100%;max-height:560px;object-fit:contain;border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2)}
.pairs.pl{padding:0 16px 16px}.pairs .b{font-weight:600;color:var(--text)}
.pnlt tr.sum td{font-weight:600;background:var(--surface-2)}
table.t tr.hit td{background:var(--accent-soft)}
.bellbtn{position:relative}.bellbtn .cnt{position:absolute;top:2px;right:2px;min-width:16px;height:16px;font-size:10px;padding:0 4px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:var(--bad);color:#fff}
.app{max-width:520px;margin:0 auto;min-height:calc(100vh - 56px)}
.warnb{border-color:var(--warn)!important;background:var(--warn-soft)}
.req{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--accent-line);border-radius:var(--r);background:var(--accent-soft)}
a.mbtn{text-decoration:none}
@media (max-width:760px){.who{display:none}.bars-h .bh{grid-template-columns:96px 1fr 96px}}
.pnlt td:first-child,.pnlt th:first-child{min-width:220px;white-space:nowrap;position:sticky;left:0;background:var(--surface);z-index:2}
.pnlt tr:first-child th:first-child{z-index:4}
.pnlt td.r,.pnlt th.r{white-space:nowrap}
/* сворачивание групп меню (Павел Пятаев 25.11.2026) */
.side .gt{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:none;cursor:pointer;text-align:left;font:inherit;padding-right:8px}
.side .gt .chev{width:14px;height:14px;transition:transform .15s}
.side .gt.shut .chev{transform:rotate(-90deg)}
.side .gt:hover{color:var(--text)}
