/* =====================================================================
   CRM «Контроль» — оформление v2 (спокойный светлый стиль для бухгалтерии)
   Шрифт Inter (SIL OFL 1.1) лежит в static/fonts/inter — всё работает офлайн.
   ===================================================================== */
@font-face{font-family:"Inter CRM";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/inter/inter-cyrillic-ext.woff2") format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Inter CRM";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/inter/inter-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Inter CRM";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/inter/inter-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter CRM";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/inter/inter-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}
:root{
  --bg:#f3f5f9; --card:#fff; --text:#1c2536; --muted:#667085; --line:#e4e8ef; --line2:#eef1f5; --head:#f7f8fb;
  --primary:#2f5fe3; --primary-d:#244dc4; --primary-l:#edf2ff; --ring:rgba(47,95,227,.18);
  --red:#dc2626; --red-bg:#fdecec; --red-t:#b42318;
  --orange:#d99206; --orange-bg:#fdf3d7; --orange-t:#8a5300;            /* «горит / скоро срок» — янтарный */
  --green:#16a34a; --green-bg:#e4f6ea; --green-t:#127a3a;
  --grey:#94a3b8; --grey-bg:#f1f3f7; --grey-t:#5f6b7d;
  --side:#14213b; --side2:#101a30; --side-t:#b8c3d6; --side-m:#6f7d96; --side-a:#7aa7ff;
  --radius:14px; --radius-s:9px;
  --shadow:0 1px 2px rgba(16,24,40,.04), 0 2px 8px rgba(16,24,40,.05);
  --shadow-h:0 2px 4px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.08);
  --font:"Inter CRM","Inter","Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;
  --side-w:244px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:var(--font);font-size:14px;color:var(--text);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:2px}
h1{font-size:23px;margin:0;font-weight:700;letter-spacing:-.018em;line-height:1.25}
h2{font-size:15.5px;margin:0 0 12px;font-weight:650;letter-spacing:-.005em}
h3{font-size:14px;margin:0 0 8px;font-weight:650}
small{color:var(--muted)}
::selection{background:#d6e2ff}
/* ---------- layout: боковое меню */
.sidebar{position:fixed;left:0;top:0;bottom:0;width:var(--side-w);background:linear-gradient(180deg,var(--side) 0%,var(--side2) 100%);display:flex;flex-direction:column;z-index:20;color:var(--side-t)}
.brand{display:flex;gap:11px;align-items:center;padding:18px 18px 16px;color:#fff}
.brand:hover{text-decoration:none}
.brand .logo svg{width:36px;height:36px;display:block;border-radius:10px;box-shadow:0 4px 12px rgba(47,95,227,.35)}
.brand b{display:block;font-size:15px;line-height:1.25;font-weight:650;letter-spacing:-.01em}
.brand small{display:block;font-size:11.5px;margin-top:2px;color:var(--side-m)}
.sidebar nav{flex:1;overflow:auto;padding:4px 12px 12px;scrollbar-width:thin;scrollbar-color:#2a3a5c transparent}
.nav-group{font-size:10.5px;text-transform:uppercase;letter-spacing:.09em;color:var(--side-m);margin:16px 10px 6px;font-weight:650}
.sidebar nav a{position:relative;display:flex;align-items:center;gap:11px;padding:8px 11px;border-radius:9px;color:var(--side-t);font-weight:500;margin:1px 0;font-size:13.5px;line-height:1.3;transition:background .12s,color .12s}
.sidebar nav a .ic{opacity:.75}
.sidebar nav a:hover{background:rgba(255,255,255,.06);color:#fff;text-decoration:none}
.sidebar nav a.active{background:rgba(122,167,255,.16);color:#fff;font-weight:600}
.sidebar nav a.active .ic{opacity:1;color:var(--side-a)}
.sidebar nav a.active::before{content:"";position:absolute;left:-12px;top:7px;bottom:7px;width:3px;border-radius:0 3px 3px 0;background:var(--side-a)}
.ic{display:inline-block;width:18px;height:18px;background:currentColor;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;flex:none;opacity:.9}
.side-foot{padding:12px 20px 16px;border-top:1px solid rgba(255,255,255,.07);font-size:11.5px;color:var(--side-m)}
/* ---------- шапка с названием CRM */
.main{margin-left:var(--side-w);min-height:100vh;min-width:0}
.appbar{position:sticky;top:0;z-index:15;height:56px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.inst{display:flex;align-items:center;gap:10px;min-width:0;color:var(--text)}
.inst:hover{text-decoration:none}
.inst .ic{width:18px;height:18px;color:var(--primary);opacity:1}
.inst-badge{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;background:var(--primary-l);flex:none}
.inst b{font-size:14.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.005em}
.inst small{display:block;font-size:11.5px;line-height:1.2}
.appbar-r{display:flex;align-items:center;gap:14px;flex:none}
.today-chip{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--muted);background:var(--head);border:1px solid var(--line);border-radius:999px;padding:4px 11px 4px 9px;white-space:nowrap}
.today-chip .ic{width:14px;height:14px;opacity:.7}
.me{display:flex;align-items:center;gap:10px;padding-left:14px;border-left:1px solid var(--line)}
.avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#4f7cf0,#2f5fe3);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:650;flex:none;font-size:13.5px}
.me-info{min-width:0;line-height:1.25}.me-info b{display:block;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.me-info small{display:block;font-size:11.5px}
.me-link{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;color:var(--muted);font-size:15px}
.me-link:hover{background:var(--grey-bg);color:var(--text);text-decoration:none}
.topbar{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:24px 28px 14px}
.topbar .sub{color:var(--muted);margin-top:4px;font-size:13.5px}
.top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.today{color:var(--muted);font-size:13px;margin-left:6px;white-space:nowrap}
.content{padding:6px 28px 48px;max-width:1680px}
/* ---------- карточки */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px 22px;margin-bottom:20px}
.card.p0{padding:0;overflow:auto;max-height:calc(100vh - 96px)}
.card-h{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.card-h h2{margin:0}
.card-h a{font-size:13px;font-weight:550}
.grid{display:grid;gap:20px}
.g2{grid-template-columns:1fr 1fr}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}
.g-main{grid-template-columns:minmax(0,1fr) 340px}
.g2>*,.g3>*,.g4>*{min-width:0}
.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px 16px;box-shadow:var(--shadow);display:block;color:var(--text);position:relative;overflow:hidden;transition:box-shadow .15s,transform .15s,border-color .15s}
.stat:hover{text-decoration:none;box-shadow:var(--shadow-h);border-color:#d5dbe5;transform:translateY(-1px)}
.stat .num{font-size:32px;font-weight:700;line-height:1.1;margin-top:8px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat .lbl{color:var(--muted);font-weight:550;font-size:13px;display:flex;align-items:center;gap:9px}
.stat .lbl .ic{width:16px;height:16px;opacity:1}
.stat .si{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:var(--primary-l);color:var(--primary);flex:none}
.stat small{display:block;margin-top:4px;font-size:12.5px}
.stat .extra{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.stat::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:var(--primary);opacity:.85}
.stat.red::before{background:var(--red)}.stat.red .num{color:var(--red-t)}.stat.red .si{background:var(--red-bg);color:var(--red-t)}
.stat.orange::before{background:var(--orange)}.stat.orange .num{color:var(--orange-t)}.stat.orange .si{background:var(--orange-bg);color:var(--orange-t)}
.stat.green::before{background:var(--green)}.stat.green .num{color:var(--green-t)}.stat.green .si{background:var(--green-bg);color:var(--green-t)}
.stat.violet::before{background:#7c3aed}.stat.violet .num{color:#5b21b6}.stat.violet .si{background:#f1ebff;color:#6d28d9}
.stat.calm .num{color:var(--text)}
/* ---------- таблицы */
table.t{width:100%;border-collapse:separate;border-spacing:0}
.t th{text-align:left;font-weight:600;color:#556070;font-size:12px;letter-spacing:.01em;background:var(--head);padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.t thead th{position:sticky;top:0;z-index:2}
.t td{padding:10px 12px;border-bottom:1px solid var(--line2);vertical-align:top;font-variant-numeric:tabular-nums}
.t tr:last-child td{border-bottom:0}
.t tbody tr:nth-child(even)>td:not(.flagbar){background:#fbfcfd}
.t tbody tr:hover>td:not(.flagbar){background:#f4f7fd}
.t .num-c{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.t .c{text-align:center}
.t a.row-title{color:var(--text);font-weight:600}
.t a.row-title:hover{color:var(--primary)}
.t td.nowrap,.nowrap{white-space:nowrap}
.muted{color:var(--muted)}
.tiny{font-size:12px}
.sec-row td{background:#f1f4f9 !important;font-weight:650;color:#374151;font-size:12.5px;letter-spacing:.01em}
.flagbar{width:4px;padding:0 !important}
.flagbar.f-overdue{background:var(--red)}.flagbar.f-hot{background:var(--orange)}.flagbar.f-ok{background:var(--green)}.flagbar.f-done,.flagbar.f-none{background:#d6dbe3}
/* ---------- бейджи-«таблетки» */
.flag{display:inline-flex;align-items:center;gap:6px;padding:2px 10px 2px 8px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;line-height:1.5}
.flag::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.flag-overdue{background:var(--red-bg);color:var(--red-t)}
.flag-hot{background:var(--orange-bg);color:var(--orange-t)}
.flag-ok{background:var(--green-bg);color:var(--green-t)}
.flag-done,.flag-none{background:var(--grey-bg);color:var(--grey-t)}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:4px;vertical-align:1px}
.item .dot{margin-top:6px;box-shadow:0 0 0 3px rgba(148,163,184,.12)}
.dot-overdue{background:var(--red)}.dot-hot{background:var(--orange)}.dot-ok{background:var(--green)}.dot-done,.dot-none{background:var(--grey)}
.st{display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;border:1px solid transparent;line-height:1.5}
.st-new{background:#f1f4f8;color:#475569;border-color:#e2e7ee}
.st-work{background:#e9f0ff;color:#2446b8;border-color:#d4e0ff}
.st-check{background:#f3ecff;color:#6b2bc2;border-color:#e6d9fd}
.st-done{background:var(--green-bg);color:var(--green-t);border-color:#c6ebd2}
.st-cancel{background:#f3f4f6;color:#9ca3af;text-decoration:line-through}
.st-err{background:var(--red-bg);color:var(--red-t)}
.pill{display:inline-block;padding:1px 9px;border-radius:999px;background:#f1f4f8;color:#475569;font-size:12px;white-space:nowrap;font-weight:500}
.pill.blue{background:var(--primary-l);color:var(--primary)}
.pill.violet{background:#f3e8ff;color:#7e22ce}
.pill.amber{background:#fdf3d7;color:#8a5300}
.pill.example{background:#fff1c2;color:#8a5a00;font-weight:700;letter-spacing:.03em}
.prio-Высокий{color:var(--red-t);font-weight:600}
.prio-Низкий{color:var(--muted)}
.dl b{font-weight:600;font-variant-numeric:tabular-nums}
.dl small{display:block;font-size:12px}
.manual{display:inline-block;font-size:11px;font-weight:600;background:#fdf3d7;color:#8a5300;border-radius:999px;padding:0 7px;vertical-align:1px}
/* ---------- кнопки и формы */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 14px;border-radius:var(--radius-s);border:1px solid #d5dbe4;background:#fff;color:#2f3a4c;font-weight:600;font-size:13.5px;cursor:pointer;white-space:nowrap;font-family:inherit;line-height:1.3;box-shadow:0 1px 2px rgba(16,24,40,.05);transition:background .12s,border-color .12s,box-shadow .12s}
.btn:hover{background:#f7f9fc;border-color:#c5cdd9;text-decoration:none}
.btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--ring)}
.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 1px 2px rgba(16,24,40,.08),0 2px 6px rgba(47,95,227,.22)}
.btn-primary:hover{background:var(--primary-d);border-color:var(--primary-d)}
.btn-danger{color:var(--red-t);border-color:#f1c4c0}
.btn-danger:hover{background:#fff5f4;border-color:#eaa9a3}
.btn-sm{min-height:30px;padding:4px 11px;font-size:12.5px;border-radius:8px}
.btn-link{border:0;background:none;color:var(--primary);cursor:pointer;padding:0;font:inherit}
input,select,textarea{font:inherit;color:inherit;border:1px solid #d5dbe4;border-radius:var(--radius-s);padding:7px 11px;background:#fff;max-width:100%;transition:border-color .12s,box-shadow .12s}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select{min-height:36px}
select{padding-right:28px}
input:hover,select:hover,textarea:hover{border-color:#c2cad6}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--ring)}
input[type=checkbox],input[type=radio]{accent-color:var(--primary)}
input::placeholder,textarea::placeholder{color:#9aa4b2}
textarea{width:100%;min-height:80px;resize:vertical}
.fld{display:flex;flex-direction:column;gap:5px;margin-bottom:14px}
.fld>span{font-size:12.5px;font-weight:600;color:#475467}
.fld input:not([type=checkbox]),.fld select,.fld textarea{width:100%}
.fld small{font-weight:400}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
.form-grid .full{grid-column:1/-1}
.form-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px}
.chk{display:inline-flex;align-items:center;gap:7px;font-weight:500;cursor:pointer}
.chk input{width:auto}
.row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:16px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.filters select,.filters input[type=search]{padding:6px 10px;font-size:13px;min-height:34px}
.filters select{padding-right:26px}
.filters input[type=search]{min-width:230px}
.filters .chk{font-size:13px}
.filters .btn{min-height:34px}
.flash{padding:11px 14px;border-radius:10px;margin:0 28px 14px;display:flex;justify-content:space-between;gap:10px;border:1px solid;box-shadow:var(--shadow)}
.flash button{border:0;background:none;font-size:18px;cursor:pointer;color:inherit;line-height:1}
.flash-ok{background:#ecfdf3;border-color:#abefc6;color:#067647}
.flash-error{background:#fef3f2;border-color:#fecdca;color:#b42318}
.flash-warn{background:#fffaeb;border-color:#fedf89;color:#93370d}
details.box{border:1px solid var(--line);border-radius:10px;padding:0 14px;background:#fbfcfe;margin-top:8px}
details.box>summary{cursor:pointer;padding:9px 0;font-weight:600;color:var(--primary);list-style:none}
details.box>summary::-webkit-details-marker{display:none}
details.box>summary::before{content:"▸ ";color:var(--muted)}
details.box[open]>summary::before{content:"▾ "}
details.box[open]{padding-bottom:12px}
.dlform .seg{display:flex;gap:14px;flex-wrap:wrap;margin:4px 0 8px;font-size:13px}
.dlform .seg label{display:inline-flex;gap:5px;align-items:center;cursor:pointer}
.dlform .dl-rel{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.dlform .dl-exact{margin-bottom:8px}
.dlform input.n{width:72px}
.dlform .dl-shift{flex-basis:100%;font-size:12.5px;color:var(--muted)}
/* ---------- прочие компоненты */
.empty{color:var(--muted);text-align:center;padding:28px 10px}
.list-plain{list-style:none;margin:0;padding:0}
.item{display:flex;gap:12px;align-items:flex-start;padding:11px 0;border-bottom:1px solid var(--line2)}
.item:last-child{border-bottom:0}
.item .grow{flex:1;min-width:0}
.item .t1{font-weight:600;color:var(--text);display:block;line-height:1.4}
.item a.t1:hover{color:var(--primary);text-decoration:none}
.item .t2{font-size:12.5px;color:var(--muted)}
.item .rt{text-align:right;white-space:nowrap}
.kv{display:grid;grid-template-columns:170px 1fr;gap:9px 16px;margin:0}
.kv dt{color:var(--muted);font-size:13px}
.kv dd{margin:0}
.desc{white-space:pre-wrap;overflow-wrap:anywhere}
.legend{display:flex;gap:16px;align-items:center;flex-wrap:wrap;font-size:12.5px;color:var(--muted)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.sw{width:12px;height:12px;border-radius:4px;display:inline-block}
.sw-overdue{background:var(--red-bg);border:1px solid #f5b5b5}.sw-hot{background:var(--orange-bg);border:1px solid #efd08a}
.sw-ok{background:var(--green-bg);border:1px solid #a9deb8}.sw-done{background:var(--grey-bg);border:1px solid #d5dae1}.sw-plan{background:#fff;border:1px dashed #9aa3b2}
.progress{height:7px;background:#edf0f5;border-radius:999px;overflow:hidden;min-width:60px}
.progress>i{display:block;height:100%;background:var(--green);border-radius:999px}
.tabs{display:inline-flex;gap:2px;margin-bottom:18px;padding:4px;background:#e9edf3;border-radius:11px;flex-wrap:wrap}
.tabs a{padding:6px 14px;color:#4b5565;font-weight:600;font-size:13px;border-radius:8px}
.tabs a.on{color:var(--text);background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.08),0 1px 4px rgba(16,24,40,.06)}
.tabs a:hover{text-decoration:none;color:var(--text)}
/* ---------- карточка задачи */
.task-head{display:flex;gap:14px;align-items:flex-start;justify-content:space-between}
.task-head h2{font-size:20px;margin:6px 0 4px;letter-spacing:-.01em}
.status-bar{display:flex;gap:6px;flex-wrap:wrap}
.status-bar button{border:1px solid #d5dbe4;background:#fff;border-radius:999px;padding:6px 13px;cursor:pointer;font:inherit;font-size:13px;font-weight:600;color:#344054;transition:background .12s}
.status-bar button:hover{background:#f5f7fb}
.status-bar button.on{background:var(--primary);border-color:var(--primary);color:#fff}
.status-bar button:disabled{opacity:.55;cursor:not-allowed}
.checklist li{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line2)}
.checklist li:last-child{border-bottom:0}
.checklist input[type=checkbox]{width:17px;height:17px;accent-color:var(--green);cursor:pointer}
.checklist li.done .ctext{text-decoration:line-through;color:var(--muted)}
.checklist .ctext{flex:1}
.comment{padding:11px 0;border-bottom:1px solid var(--line2)}
.comment:last-child{border-bottom:0}
.comment .meta{font-size:12.5px;color:var(--muted);margin-bottom:3px}
.comment .meta b{color:var(--text)}
.hist{font-size:12.5px}
.hist li{padding:6px 0;border-bottom:1px dashed var(--line)}
.hist li:last-child{border-bottom:0}
.hist .when{color:var(--muted);white-space:nowrap}
.hist .chg{color:var(--muted)}
.hist .chg s{color:#b42318;text-decoration:none;background:#fef3f2;padding:0 3px;border-radius:3px}
.hist .chg ins{color:#067647;text-decoration:none;background:#ecfdf3;padding:0 3px;border-radius:3px}
.file{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line2)}
.file:last-child{border-bottom:0}
.file .fi{width:30px;height:34px;border-radius:6px;background:#eef2ff;color:#3730a3;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none;text-transform:uppercase}
.file .grow{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.drop{border:1.5px dashed #c7cdd8;border-radius:10px;padding:12px;text-align:center;color:var(--muted);font-size:13px;margin-top:8px;background:#fbfcfe}
/* ---------- канбан */
.board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:start}
.col{background:#e9edf3;border-radius:14px;padding:10px;min-height:300px}
.col.over{outline:2px dashed var(--primary);background:#e5ecff}
.col-h{display:flex;justify-content:space-between;align-items:center;padding:2px 4px 10px;font-weight:650}
.col-h .cnt{background:#fff;border-radius:999px;padding:0 9px;font-size:12px;color:var(--muted);font-weight:600}
.kcard{background:#fff;border-radius:10px;padding:10px 12px;margin-bottom:9px;box-shadow:0 1px 2px rgba(16,24,40,.06),0 1px 4px rgba(16,24,40,.05);border-left:4px solid #d6dbe3;cursor:grab;font-size:13px;transition:box-shadow .12s}
.kcard:hover{box-shadow:var(--shadow-h)}
.kcard:active{cursor:grabbing}
.kcard.dragging{opacity:.5}
.kcard.f-overdue{border-left-color:var(--red)}.kcard.f-hot{border-left-color:var(--orange)}.kcard.f-ok{border-left-color:var(--green)}.kcard.f-done{border-left-color:#cbd5e1}
.kcard a.kt{color:var(--text);font-weight:600;display:block;margin:3px 0 6px}
.kcard .km{display:flex;justify-content:space-between;align-items:center;gap:6px;color:var(--muted);font-size:12px}
.kcard .kp{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ---------- график */
.tl{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}
.tl th,.tl td{border-right:1px solid var(--line2);border-bottom:1px solid var(--line2);padding:6px;vertical-align:top}
.tl th{background:var(--head);font-size:12.5px;font-weight:600;color:#4b5563;text-align:center;position:sticky;top:0;z-index:2}
.tl th.cur{background:var(--primary-l);color:var(--primary)}
.tl td.cur{background:#f7faff}
.tl td.sec{font-weight:600;font-size:13px;background:#fff}
.tl td.sec small{display:block;font-weight:400;margin-top:3px}
.tl th:first-child,.tl td:first-child{width:185px}
.tl th.ov,.tl td.ov{width:120px;background:#fffafa}
.tl th.later,.tl td.later{width:84px}
.tl .chip{overflow-wrap:anywhere;hyphens:auto}
.tl td.sec{font-size:12.5px}
.chip{display:block;border-radius:7px;padding:4px 7px;margin-bottom:5px;font-size:12px;line-height:1.3;color:var(--text);border:1px solid transparent}
.chip:hover{text-decoration:none;filter:brightness(.97)}
.chip b{font-weight:650;margin-right:3px}
.chip small{display:block;color:inherit;opacity:.75;font-size:11px}
.chip.c-overdue{background:var(--red-bg);border-color:#f7c4c4;color:#7a1d15}
.chip.c-hot{background:var(--orange-bg);border-color:#efd08a;color:#6b4200}
.chip.c-ok{background:var(--green-bg);border-color:#b8e3c4;color:#0d5a2a}
.chip.c-done{background:var(--grey-bg);border-color:#e1e5ea;color:#6b7280}
.chip.c-done b{text-decoration:line-through}
.chip.c-none{background:#fff;border-color:var(--line)}
.chip.c-plan{background:#fff;border:1px dashed #a9b1bf;color:#4b5563}
.chip.more{background:none;border:0;color:var(--primary);padding:0 2px;cursor:pointer;font-weight:600}
/* ---------- календарь */
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid var(--line);border-top:1px solid var(--line);background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.cal .wd{background:var(--head);text-align:center;font-weight:600;font-size:12.5px;color:#4b5563;padding:8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.cal .day{min-height:118px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:5px 6px}
.cal .day.off{background:#fafbfc}
.cal .day.other{background:#f6f7fa}
.cal .day.other .dn{color:#b6bdc9}
.cal .day.today{box-shadow:inset 0 0 0 2px var(--primary)}
.cal .dn{font-weight:600;font-size:13px;display:flex;justify-content:space-between;margin-bottom:4px}
.cal .dn small{font-weight:500;font-size:10.5px;color:#b0776b}
.cal .chip{font-size:11.5px;padding:3px 6px;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal .chip .k{font-size:10px;font-weight:700;opacity:.7;margin-right:3px}
.cal .hidden-chip{display:none}
.cal .day.expanded .hidden-chip{display:block}
/* ---------- шкала требования */
.rtl{position:relative;height:150px;margin:6px 60px 4px}
.rtl .axis{position:absolute;left:0;right:0;top:84px;height:6px;background:#e7ebf1;border-radius:3px}
.rtl .tick{position:absolute;top:84px;width:1px;height:6px;background:#fff}
.rtl .tick.off{background:#c9d0da;height:6px}
.rtl .tlabel{position:absolute;top:96px;font-size:10.5px;color:#9aa3b2;transform:translateX(-50%)}
.rtl .today-m{position:absolute;top:10px;bottom:22px;width:2px;background:var(--primary)}
.rtl .today-m span{position:absolute;bottom:-18px;left:50%;transform:translateX(-50%);font-size:11px;color:var(--primary);font-weight:700;white-space:nowrap}
.rtl .pt{position:absolute;transform:translateX(-50%);text-align:center;font-size:11.5px;white-space:nowrap}
.rtl .pt .mk{width:14px;height:14px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #cbd5e1;margin:0 auto;position:absolute;left:50%;transform:translateX(-50%)}
.rtl .pt .lb{background:#fff;border:1px solid var(--line);border-radius:7px;padding:2px 7px;box-shadow:var(--shadow)}
.rtl .pt.k-overdue .mk{background:var(--red)}.rtl .pt.k-hot .mk{background:var(--orange)}.rtl .pt.k-ok .mk{background:var(--green)}
.rtl .pt.k-done .mk,.rtl .pt.k-none .mk{background:var(--grey)}.rtl .pt.k-info .mk{background:#64748b}.rtl .pt.k-stage .mk{background:var(--primary)}
.rtl .pt.k-overdue .lb{border-color:#f5b5b5;background:var(--red-bg)}.rtl .pt.k-hot .lb{border-color:#efd08a;background:var(--orange-bg)}.rtl .pt.k-ok .lb{border-color:#a9deb8;background:var(--green-bg)}
.stages{display:flex;gap:0;margin:4px 0 6px;flex-wrap:wrap}
.stages .sg{flex:1;min-width:110px;text-align:center;font-size:12px;padding:8px 6px 8px 14px;background:#eef1f5;color:#6b7280;position:relative;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%,10px 50%);margin-right:-4px;font-weight:550}
.stages .sg:first-child{clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%);padding-left:8px}
.stages .sg.past{background:#d7ecdd;color:#107a37}
.stages .sg.now{background:var(--primary);color:#fff}
.stages .sg small{display:block;color:inherit;opacity:.85;font-size:11px}
/* ---------- вход */
.login-wrap{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,1fr);background:var(--bg)}
.login-side{position:relative;overflow:hidden;background:linear-gradient(160deg,#1b2c52 0%,#14213b 55%,#0f1a30 100%);color:#dbe4f3;padding:48px 56px;display:flex;flex-direction:column;justify-content:space-between}
.login-side::after{content:"";position:absolute;right:-160px;bottom:-160px;width:480px;height:480px;border-radius:50%;background:radial-gradient(circle,rgba(122,167,255,.22),rgba(122,167,255,0) 70%)}
.login-side .brand{padding:0;color:#fff}
.login-side .brand small{color:#8e9bb5}
.login-hero{position:relative;z-index:1;max-width:520px}
.login-hero .kicker{display:inline-block;font-size:12px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--side-a);margin-bottom:12px}
.login-hero h2{font-size:34px;line-height:1.2;color:#fff;font-weight:700;letter-spacing:-.02em;margin:0 0 14px}
.login-hero p{font-size:15px;line-height:1.6;color:#b8c3d6;margin:0 0 26px}
.login-points{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.login-points li{display:flex;gap:12px;align-items:center;font-size:14px;color:#dbe4f3}
.login-points .ic{width:18px;height:18px;color:var(--side-a);opacity:1}
.login-points .pi{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:rgba(122,167,255,.13);flex:none}
.login-foot{position:relative;z-index:1;font-size:12px;color:#7f8ca6}
.login-main{display:flex;align-items:center;justify-content:center;padding:40px 24px}
.login-card{width:400px;max-width:100%;background:#fff;border-radius:18px;box-shadow:0 1px 2px rgba(16,24,40,.04),0 16px 48px rgba(16,24,40,.10);padding:36px 36px 30px;border:1px solid var(--line)}
.login-card .brand{padding:0 0 22px;color:var(--text)}
.login-card .brand small{color:var(--muted)}
.login-card .inst-name{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--primary);background:var(--primary-l);border-radius:999px;padding:4px 12px 4px 9px;margin-bottom:14px}
.login-card .inst-name .ic{width:14px;height:14px;opacity:1}
.login-card h1{font-size:22px;margin-bottom:6px}
.login-card .btn{width:100%;justify-content:center;min-height:42px;padding:10px;font-size:14.5px;margin-top:8px}
.login-card input{min-height:42px !important}
.login-feat{display:flex;gap:6px;flex-wrap:wrap;margin-top:20px}
/* ---------- адаптивность (ноутбук) */
@media (max-width:1100px){.g-main{grid-template-columns:1fr}.g4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:1280px){
  :root{--side-w:220px}
  .content{padding:4px 22px 40px}.topbar{padding:20px 22px 12px}.appbar{padding:0 22px}.flash{margin:0 22px 12px}
  .t th,.t td{padding:9px 10px}
  .card{padding:18px 18px}
  .me-info{display:none}
}
@media (max-width:980px){
  .login-wrap{grid-template-columns:1fr}.login-side{display:none}
  .g2,.g3{grid-template-columns:1fr}
}
@media (max-height:800px){.sidebar nav a{padding:6px 11px}.nav-group{margin:12px 10px 4px}}
.ic-home{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2010.5L12%203l9%207.5V20a1%201%200%200%201-1%201h-5v-6H9v6H4a1%201%200%200%201-1-1z%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2010.5L12%203l9%207.5V20a1%201%200%200%201-1%201h-5v-6H9v6H4a1%201%200%200%201-1-1z%27/%3E%3C/svg%3E")}
.ic-list{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%206h12M9%2012h12M9%2018h12%27/%3E%3Ccircle%20cx%3D%274%27%20cy%3D%276%27%20r%3D%271.3%27/%3E%3Ccircle%20cx%3D%274%27%20cy%3D%2712%27%20r%3D%271.3%27/%3E%3Ccircle%20cx%3D%274%27%20cy%3D%2718%27%20r%3D%271.3%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%206h12M9%2012h12M9%2018h12%27/%3E%3Ccircle%20cx%3D%274%27%20cy%3D%276%27%20r%3D%271.3%27/%3E%3Ccircle%20cx%3D%274%27%20cy%3D%2712%27%20r%3D%271.3%27/%3E%3Ccircle%20cx%3D%274%27%20cy%3D%2718%27%20r%3D%271.3%27/%3E%3C/svg%3E")}
.ic-kanban{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%275%27%20height%3D%2718%27%20rx%3D%271.5%27/%3E%3Crect%20x%3D%2710%27%20y%3D%273%27%20width%3D%275%27%20height%3D%2712%27%20rx%3D%271.5%27/%3E%3Crect%20x%3D%2717%27%20y%3D%273%27%20width%3D%274%27%20height%3D%278%27%20rx%3D%271.5%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%275%27%20height%3D%2718%27%20rx%3D%271.5%27/%3E%3Crect%20x%3D%2710%27%20y%3D%273%27%20width%3D%275%27%20height%3D%2712%27%20rx%3D%271.5%27/%3E%3Crect%20x%3D%2717%27%20y%3D%273%27%20width%3D%274%27%20height%3D%278%27%20rx%3D%271.5%27/%3E%3C/svg%3E")}
.ic-timeline{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%205h8M7%2010h10M5%2015h7M11%2020h10%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%205h8M7%2010h10M5%2015h7M11%2020h10%27/%3E%3C/svg%3E")}
.ic-calendar{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%2718%27%20height%3D%2716%27%20rx%3D%272%27/%3E%3Cpath%20d%3D%27M3%2010h18M8%203v4M16%203v4%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%2718%27%20height%3D%2716%27%20rx%3D%272%27/%3E%3Cpath%20d%3D%27M3%2010h18M8%203v4M16%203v4%27/%3E%3C/svg%3E")}
.ic-report{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%203h9l4%204v14H6z%27/%3E%3Cpath%20d%3D%27M14%203v5h5M9%2013h7M9%2017h7%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%203h9l4%204v14H6z%27/%3E%3Cpath%20d%3D%27M14%203v5h5M9%2013h7M9%2017h7%27/%3E%3C/svg%3E")}
.ic-repeat{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M17%202l3%203-3%203%27/%3E%3Cpath%20d%3D%27M4%2011V9a4%204%200%200%201%204-4h12%27/%3E%3Cpath%20d%3D%27M7%2022l-3-3%203-3%27/%3E%3Cpath%20d%3D%27M20%2013v2a4%204%200%200%201-4%204H4%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M17%202l3%203-3%203%27/%3E%3Cpath%20d%3D%27M4%2011V9a4%204%200%200%201%204-4h12%27/%3E%3Cpath%20d%3D%27M7%2022l-3-3%203-3%27/%3E%3Cpath%20d%3D%27M20%2013v2a4%204%200%200%201-4%204H4%27/%3E%3C/svg%3E")}
.ic-inbox{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2013l3-8h12l3%208v6a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1z%27/%3E%3Cpath%20d%3D%27M3%2013h5l1%203h6l1-3h5%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2013l3-8h12l3%208v6a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1z%27/%3E%3Cpath%20d%3D%27M3%2013h5l1%203h6l1-3h5%27/%3E%3C/svg%3E")}
.ic-folder{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%206a1%201%200%200%201%201-1h5l2%202h9a1%201%200%200%201%201%201v11a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1z%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%206a1%201%200%200%201%201-1h5l2%202h9a1%201%200%200%201%201%201v11a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1z%27/%3E%3C/svg%3E")}
.ic-building{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%2716%27%20height%3D%2718%27%20rx%3D%271%27/%3E%3Cpath%20d%3D%27M8%207h2M14%207h2M8%2011h2M14%2011h2M8%2015h2M14%2015h2M10%2021v-3h4v3%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%2716%27%20height%3D%2718%27%20rx%3D%271%27/%3E%3Cpath%20d%3D%27M8%207h2M14%207h2M8%2011h2M14%2011h2M8%2015h2M14%2015h2M10%2021v-3h4v3%27/%3E%3C/svg%3E")}
.ic-users{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%279%27%20cy%3D%278%27%20r%3D%273.5%27/%3E%3Cpath%20d%3D%27M2.5%2020a6.5%206.5%200%200%201%2013%200%27/%3E%3Cpath%20d%3D%27M16%204.5a3.5%203.5%200%200%201%200%207M18%2014a6.5%206.5%200%200%201%203.5%206%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%279%27%20cy%3D%278%27%20r%3D%273.5%27/%3E%3Cpath%20d%3D%27M2.5%2020a6.5%206.5%200%200%201%2013%200%27/%3E%3Cpath%20d%3D%27M16%204.5a3.5%203.5%200%200%201%200%207M18%2014a6.5%206.5%200%200%201%203.5%206%27/%3E%3C/svg%3E")}

.orgchips{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}
.orgchips .chip{display:inline-block;margin:0;padding:1px 7px;font-size:11.5px;font-weight:600}
.filepick{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.filepick .fname{color:var(--muted);font-size:12.5px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* «уточнить» и внутренний график */
.unv{display:inline-block;font-size:10.5px;font-weight:700;line-height:16px;padding:0 6px;border-radius:999px;background:#fff7e6;color:#b45309;border:1px solid #fcd9a0;vertical-align:1px;white-space:nowrap;cursor:help}
.plan{display:inline-block;font-size:11px;font-weight:600;line-height:16px;padding:0 6px;border-radius:5px;margin-top:2px;white-space:nowrap}
.plan-prep{background:#eef2ff;color:#4338ca}.plan-check{background:#fef3c7;color:#92400e}.plan-send{background:#fee2e2;color:#b91c1c}
.steps3{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.st3{border:1px solid var(--line,#e5e7eb);border-radius:10px;padding:8px 10px;background:#fafbfd}
.st3 b{font-size:15px}.st3.past{opacity:.55}.st3.final{background:#eff6ff;border-color:#bfdbfe}
.pill.wrap{white-space:normal;max-width:170px;line-height:1.35;padding:2px 8px}
.card.p0{overflow-x:auto}
.t tr:has(+ .sub-row) td{border-bottom:0}.sub-row .fld{margin-bottom:4px}.sub-row .fld span{font-size:11.5px}

/* ---------- Google Таблицы */
.ic-sheet{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%2716%27%20height%3D%2718%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M4%209h16M4%2015h16M10%209v12%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%2716%27%20height%3D%2718%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M4%209h16M4%2015h16M10%209v12%27%2F%3E%3C%2Fsvg%3E")}
.pill.gs-removed{background:#fde8e8;color:#b42318;font-weight:600}
.pill.gs-ok{background:var(--green-bg);color:var(--green-t)}
.pill.gs-warn{background:var(--orange-bg);color:var(--orange-t)}
.pill.gs-error{background:var(--red-bg);color:var(--red-t)}
.pill.gs-mode{background:#eef2ff;color:#3730a3}
.t.kvt th{width:230px;white-space:normal;background:#fafbfd;font-weight:550;border-bottom:1px solid var(--line2)}
.t.kvt td{overflow-wrap:anywhere}
.copybox{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.copybox code{background:#f1f5f9;border:1px solid var(--line);border-radius:6px;padding:5px 9px;font-size:13px;overflow-wrap:anywhere}
.preview-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px}
.preview-wrap .t td,.preview-wrap .t th{white-space:nowrap;font-size:12.5px}
.preview-wrap .t th.mapped{background:#e8f0fe;color:#1d4ed8}
.map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}
.map-row{display:grid;grid-template-columns:200px 1fr;gap:10px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line2)}
.map-row>span{font-size:13px;font-weight:550;color:#374151}
.map-row select{width:100%}
.keys{display:flex;flex-wrap:wrap;gap:6px 14px}
.log-d summary{cursor:pointer;color:var(--primary);font-size:12.5px}
.log-d ul{margin:6px 0 0;padding-left:18px;font-size:12.5px}
.log-d li.l-error{color:var(--red-t)}.log-d li.l-warning{color:var(--orange-t)}.log-d li.l-info{color:#475569}
.steps{margin:0;padding-left:20px;font-size:13px;line-height:1.6}
.notes-list{margin:0;padding:0;list-style:none;font-size:13px;line-height:1.55}
.notes-list li{margin-bottom:5px}
@media (max-width:1100px){.map-grid{grid-template-columns:1fr}.map-row{grid-template-columns:150px 1fr}}
.flash-info{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}
.seg{display:flex;gap:14px;flex-wrap:wrap;margin:4px 0 4px;font-size:13px}
.seg label{display:inline-flex;gap:5px;align-items:center;cursor:pointer}
.wiz{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.wiz span{padding:5px 12px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:12.5px;font-weight:600}
.wiz span.on{background:var(--primary);color:#fff}
.wiz span.done{background:var(--green-bg);color:var(--green-t)}
.gs-result{border-left:4px solid var(--green)}
.gs-result.warn{border-left-color:var(--orange)}.gs-result.bad{border-left-color:var(--red)}
.gs-counts{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.gs-counts>div{min-width:110px;padding:8px 12px;border-radius:8px;background:#f8fafc;border:1px solid var(--line2)}
.gs-counts b{display:block;font-size:22px;line-height:1.1}
.gs-counts span{font-size:12px;color:var(--muted)}
.gs-counts .rm{background:#fff4f2}.gs-counts .err{background:var(--red-bg)}.gs-counts .err b{color:var(--red-t)}
.gs-links{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;margin:6px 0;font-size:13px}
.gs-links .lab{font-weight:600;color:#374151}
.gs-tl{background:#eef4ff;border-radius:6px;padding:2px 8px;max-width:520px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fld input[type=radio]{width:auto}

/* интеграции Диадок / Saby */
.ic-plug{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%203v5M15%203v5%27%2F%3E%3Cpath%20d%3D%27M6%208h12v3a6%206%200%200%201-12%200z%27%2F%3E%3Cpath%20d%3D%27M12%2017v4%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%203v5M15%203v5%27%2F%3E%3Cpath%20d%3D%27M6%208h12v3a6%206%200%200%201-12%200z%27%2F%3E%3Cpath%20d%3D%27M12%2017v4%27%2F%3E%3C%2Fsvg%3E")}
.svc{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.svc-dot{width:10px;height:10px;border-radius:3px;display:inline-block}
.svc-diadoc .svc-dot{background:#1f7ae0}.svc-saby .svc-dot{background:#e8590c}
.edo-auth{border:1px solid var(--line2);border-radius:10px;padding:12px 14px;margin:0 0 12px;background:#fbfdff}
.edo-auth label.opt{display:flex;gap:8px;align-items:flex-start;padding:6px 0;cursor:pointer;font-weight:500}
.edo-auth label.opt input{width:auto;margin-top:3px}
.edo-auth label.opt small{display:block;color:var(--muted);font-weight:400}
.cert-list{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.cert-opt{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line2);border-radius:8px;padding:8px 10px;cursor:pointer;background:#fff}
.cert-opt input{width:auto;margin-top:3px}
.cert-opt.off{opacity:.55;cursor:not-allowed}
.cert-opt .t1{font-weight:600}.cert-opt .t2{font-size:12.5px;color:var(--muted)}
.code-box{font-size:26px;font-weight:700;letter-spacing:3px;padding:8px 14px;background:#f1f5f9;border-radius:8px;display:inline-block}
.unm-row{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-start;padding:10px 0;border-top:1px solid var(--line2)}
.unm-row:first-of-type{border-top:0}
.unm-row .grow{min-width:240px;flex:1}
.unm-row form{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.unm-row select{max-width:320px}
table.t.map input,table.t.map select{font-size:12.5px;padding:4px 6px}
table.t.map td{vertical-align:top}
.t-scroll{overflow-x:auto;max-width:100%}

/* Цвета статусов отчётов: «Сдано» и «Принято (квитанция)» — зелёный, не сдано — красный, требование/ошибка — тёмно-красный */
.st-rs-done{background:#dcfce7;color:#166534;border-color:#86efac}
.st-rs-acc{background:#dcfce7;color:#166534;border-color:#86efac}
.st-rs-todo{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}
.st-rs-err{background:#b91c1c;color:#fff;border-color:#991b1b}
.flag-rs-done{background:#dcfce7;color:#166534}.flag-rs-acc{background:#dcfce7;color:#166534}
.flag-rs-todo{background:#fee2e2;color:#b91c1c}.flag-rs-err{background:#b91c1c;color:#fff}
.flagbar.rs-done{background:#22c55e}.flagbar.rs-acc{background:#22c55e}.flagbar.rs-todo{background:#ef4444}.flagbar.rs-err{background:#991b1b}
.chip.rs-done{background:#dcfce7;border-color:#86efac;color:#14532d}
.chip.rs-acc{background:#dcfce7;border-color:#86efac;color:#14532d}
.chip.rs-todo{background:#fee2e2;border-color:#fca5a5;color:#7f1d1d}
.chip.rs-err{background:#b91c1c;border-color:#991b1b;color:#fff}
.dot.rs-done{background:#22c55e}.dot.rs-acc{background:#22c55e}.dot.rs-todo{background:#ef4444}.dot.rs-err{background:#991b1b}
.sw-rs-done{background:#dcfce7;border:1px solid #86efac}.sw-rs-acc{background:#dcfce7;border:1px solid #86efac}
.sw-rs-todo{background:#fee2e2;border:1px solid #fca5a5}.sw-rs-err{background:#b91c1c;border:1px solid #991b1b}
.rep-legend{margin:0 0 10px}
.ic-coins{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cellipse%20cx%3D%2712%27%20cy%3D%276%27%20rx%3D%277%27%20ry%3D%273%27%2F%3E%3Cpath%20d%3D%27M5%206v6c0%201.7%203.1%203%207%203s7-1.3%207-3V6%27%2F%3E%3Cpath%20d%3D%27M5%2012v6c0%201.7%203.1%203%207%203s7-1.3%207-3v-6%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cellipse%20cx%3D%2712%27%20cy%3D%276%27%20rx%3D%277%27%20ry%3D%273%27%2F%3E%3Cpath%20d%3D%27M5%206v6c0%201.7%203.1%203%207%203s7-1.3%207-3V6%27%2F%3E%3Cpath%20d%3D%27M5%2012v6c0%201.7%203.1%203%207%203s7-1.3%207-3v-6%27%2F%3E%3C%2Fsvg%3E")}
.ic-invoice{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%203h9l4%204v14l-2.5-1.5L14%2021l-2-1.5L10%2021l-2.5-1.5L5%2021V4a1%201%200%200%201%201-1z%27%2F%3E%3Cpath%20d%3D%27M9%209h6M9%2013h6M9%2017h3%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%203h9l4%204v14l-2.5-1.5L14%2021l-2-1.5L10%2021l-2.5-1.5L5%2021V4a1%201%200%200%201%201-1z%27%2F%3E%3Cpath%20d%3D%27M9%209h6M9%2013h6M9%2017h3%27%2F%3E%3C%2Fsvg%3E")}

/* иконки v2 */
.ic-alert{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203l9.5%2017h-19z%27%2F%3E%3Cpath%20d%3D%27M12%2010v4.5M12%2017.6v.1%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203l9.5%2017h-19z%27%2F%3E%3Cpath%20d%3D%27M12%2010v4.5M12%2017.6v.1%27%2F%3E%3C%2Fsvg%3E")}
.ic-gear{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%273%27%2F%3E%3Cpath%20d%3D%27M19.4%2015a1.7%201.7%200%200%200%20.3%201.8l.1.1a2%202%200%201%201-2.8%202.8l-.1-.1a1.7%201.7%200%200%200-1.8-.3%201.7%201.7%200%200%200-1%201.5V21a2%202%200%201%201-4%200v-.1a1.7%201.7%200%200%200-1.1-1.5%201.7%201.7%200%200%200-1.8.3l-.1.1a2%202%200%201%201-2.8-2.8l.1-.1a1.7%201.7%200%200%200%20.3-1.8%201.7%201.7%200%200%200-1.5-1H3a2%202%200%201%201%200-4h.1a1.7%201.7%200%200%200%201.5-1.1%201.7%201.7%200%200%200-.3-1.8l-.1-.1a2%202%200%201%201%202.8-2.8l.1.1a1.7%201.7%200%200%200%201.8.3H9a1.7%201.7%200%200%200%201-1.5V3a2%202%200%201%201%204%200v.1a1.7%201.7%200%200%200%201%201.5%201.7%201.7%200%200%200%201.8-.3l.1-.1a2%202%200%201%201%202.8%202.8l-.1.1a1.7%201.7%200%200%200-.3%201.8V9a1.7%201.7%200%200%200%201.5%201H21a2%202%200%201%201%200%204h-.1a1.7%201.7%200%200%200-1.5%201z%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%273%27%2F%3E%3Cpath%20d%3D%27M19.4%2015a1.7%201.7%200%200%200%20.3%201.8l.1.1a2%202%200%201%201-2.8%202.8l-.1-.1a1.7%201.7%200%200%200-1.8-.3%201.7%201.7%200%200%200-1%201.5V21a2%202%200%201%201-4%200v-.1a1.7%201.7%200%200%200-1.1-1.5%201.7%201.7%200%200%200-1.8.3l-.1.1a2%202%200%201%201-2.8-2.8l.1-.1a1.7%201.7%200%200%200%20.3-1.8%201.7%201.7%200%200%200-1.5-1H3a2%202%200%201%201%200-4h.1a1.7%201.7%200%200%200%201.5-1.1%201.7%201.7%200%200%200-.3-1.8l-.1-.1a2%202%200%201%201%202.8-2.8l.1.1a1.7%201.7%200%200%200%201.8.3H9a1.7%201.7%200%200%200%201-1.5V3a2%202%200%201%201%204%200v.1a1.7%201.7%200%200%200%201%201.5%201.7%201.7%200%200%200%201.8-.3l.1-.1a2%202%200%201%201%202.8%202.8l-.1.1a1.7%201.7%200%200%200-.3%201.8V9a1.7%201.7%200%200%200%201.5%201H21a2%202%200%201%201%200%204h-.1a1.7%201.7%200%200%200-1.5%201z%27%2F%3E%3C%2Fsvg%3E")}
.ic-logout{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%2021H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h4%27%2F%3E%3Cpath%20d%3D%27M16%2017l5-5-5-5M21%2012H9%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%2021H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h4%27%2F%3E%3Cpath%20d%3D%27M16%2017l5-5-5-5M21%2012H9%27%2F%3E%3C%2Fsvg%3E")}
.ic-check{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5%2012.5l4.5%204.5L19%207.5%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5%2012.5l4.5%204.5L19%207.5%27%2F%3E%3C%2Fsvg%3E")}
.ic-clock{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M12%207v5l3%202%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M12%207v5l3%202%27%2F%3E%3C%2Fsvg%3E")}
.ic-settings{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%206h10M18%206h2M4%2012h4M12%2012h8M4%2018h12M20%2018h0%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%276%27%20r%3D%272%27%2F%3E%3Ccircle%20cx%3D%2710%27%20cy%3D%2712%27%20r%3D%272%27%2F%3E%3Ccircle%20cx%3D%2718%27%20cy%3D%2718%27%20r%3D%272%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%206h10M18%206h2M4%2012h4M12%2012h8M4%2018h12M20%2018h0%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%276%27%20r%3D%272%27%2F%3E%3Ccircle%20cx%3D%2710%27%20cy%3D%2712%27%20r%3D%272%27%2F%3E%3Ccircle%20cx%3D%2718%27%20cy%3D%2718%27%20r%3D%272%27%2F%3E%3C%2Fsvg%3E")}
/* дашборд: строка вторичных показателей */
.kpi-strip{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.kpi-strip a{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:#fff;border:1px solid var(--line);color:#475467;font-size:12.5px;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.kpi-strip a:hover{text-decoration:none;border-color:#cfd6e1;color:var(--text)}
.kpi-strip b{color:var(--text);font-variant-numeric:tabular-nums}
.kpi-strip .dot{margin:0}
/* отчётность: цветная полоса статуса и легенда — чуть аккуратнее */
.rep-legend{padding:8px 12px;background:#fff;border:1px solid var(--line);border-radius:999px;display:inline-flex}
.st-rs-done,.st-rs-acc,.st-rs-todo,.st-rs-err{font-weight:650}
/* ноутбук 1280–1440: компактнее таблицы и меню, чтобы широкие таблицы помещались без прокрутки */
@media (max-width:1440px){
  :root{--side-w:216px}
  .sidebar nav{padding:4px 10px 12px}.sidebar nav a{padding:7px 10px;gap:10px;font-size:13px}
  .sidebar nav a.active::before{left:-10px}
  .t{font-size:13px}.t th,.t td{padding:9px 8px}.t th{font-size:11.5px}
  .t .flag,.t .st{font-size:11.5px;padding-left:8px;padding-right:8px}
  .content{padding:4px 20px 40px}.topbar{padding:20px 20px 12px}.appbar{padding:0 20px}.flash{margin:0 20px 12px}
}

/* «Нет данных в Saby» — прошлые сроки, добавленные задним числом: серый, не тревога */
.st-rs-nodata{background:#f1f3f6;color:#64748b;border-color:#e2e8f0}
.flag-rs-nodata{background:#f1f3f6;color:#64748b}
.flagbar.rs-nodata{background:#cbd5e1}
.chip.rs-nodata{background:#f1f3f6;border-color:#e2e8f0;color:#64748b}
.dot.rs-nodata{background:#cbd5e1}
.sw-rs-nodata{background:#f1f3f6;border:1px solid #cbd5e1}
/* быстрые фильтры отчётности */
.quick{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:0 0 12px}
.quick a{padding:5px 13px;border-radius:999px;border:1px solid var(--line);background:#fff;color:#374151;font-size:13px;font-weight:550}
.quick a:hover{text-decoration:none;border-color:#c5cdd9}
.quick a.on{background:var(--primary);border-color:var(--primary);color:#fff}
.quick .tiny{margin-left:6px}
/* Saby: вход по сертификату через ноутбук */
.relay-box{background:#f8fafc;border:1px solid var(--line,#e3e8ef);border-radius:10px;padding:12px 14px}
.relay-note{color:var(--orange-t);margin-top:4px}
.relay-row{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;padding:7px 0;border-top:1px solid var(--line,#eef1f5)}
.cert-select{width:100%}
.cert-select option.off{color:#9aa3b2}
.pill.relay-wait{background:#eef1f5;color:#4b5565}
.pill.relay-wait::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#94a3b8;margin-right:6px;vertical-align:1px;animation:relayPulse 1.2s ease-in-out infinite}
@keyframes relayPulse{0%,100%{opacity:.3}50%{opacity:1}}
