/* ЧОП «Легион» – серый #b2b2b2, белый и градации серого */
:root {
  --brand:#b2b2b2; --brand-l:#d4d4d4; --brand-d:#8e8e8e; --dark:#262626; --ink:#1c1c1c; --ink2:#3f3f3f;
  --muted:#767676; --line:#e2e2e2; --bg:#f2f2f2; --card:#fff; --soft:#f7f7f7;
  --ok:#2f7a48; --err:#b3261e; --warn:#8a6a00; --r:14px; --shadow:0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.04);
}
* { box-sizing:border-box; }
html, body { margin:0; }
body { font:15px/1.5 "Segoe UI", Inter, Roboto, Arial, sans-serif; color:var(--ink); background:var(--bg); }
main { overflow-wrap:break-word; }
.wrapall { overflow-wrap:anywhere; }   /* столбец со свободным текстом: длинное слово не растягивает таблицу */   /* очень длинное слово (вставленная ссылка, набор символов) переносится, а не раздвигает страницу */
a { color:var(--ink); text-underline-offset:3px; }
h1 { font-size:24px; font-weight:650; letter-spacing:-.01em; margin:0 0 4px; }
h2 { font-size:16px; font-weight:650; margin:0 0 12px; }
.ic { width:19px; height:19px; flex:none; }

/* ---------- каркас: боковое меню ---------- */
body.app { display:grid; grid-template-columns:268px minmax(0, 1fr); min-height:100vh; }
.sidebar { position:sticky; top:0; height:100vh; display:flex; flex-direction:column; gap:14px; padding:18px 14px;
  background:linear-gradient(180deg, #c4c4c4 0%, var(--brand) 38%, #a3a3a3 100%); color:var(--ink); overflow-y:auto; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; padding:4px 6px 14px; border-bottom:1px solid rgba(0,0,0,.12); }
.brand img { width:46px; height:auto; }
.brand b { display:block; font-size:19px; letter-spacing:.14em; }
.brand small { display:block; font-size:12px; color:#333; }
.sidebar nav { display:flex; flex-direction:column; gap:2px; flex:1; }
.sidebar nav a { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:10px; text-decoration:none; color:#1f1f1f; font-weight:500; }
.sidebar nav a:hover { background:rgba(255,255,255,.45); }
.sidebar nav a.on { background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.08); }
.sidebar .sep { margin:14px 12px 4px; font-size:11px; text-transform:uppercase; letter-spacing:.09em; color:#3a3a3a; opacity:.75; }
/* Ф.И.О. – целиком (длинное переносится), роль и регионы – не больше двух строк (полностью – в подсказке), значки – строкой ниже */
.sidebar .me { display:grid; grid-template-columns:34px minmax(0, 1fr); align-items:center; gap:4px 10px; padding:12px 8px 2px; border-top:1px solid rgba(0,0,0,.12); }
.sidebar .me .who { min-width:0; line-height:1.25; }
.sidebar .me .who b { display:block; font-size:14px; overflow-wrap:anywhere; }
.sidebar .me .who small { font-size:11.5px; color:#333; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
.sidebar .me .me-acts { grid-column:2; display:flex; align-items:center; gap:2px; margin-left:-4px; }
.sidebar .me .me-acts form { margin:0; }
.sidebar .me a, .sidebar .me button { color:#1f1f1f; background:none; border:0; padding:4px; cursor:pointer; display:grid; place-items:center; border-radius:8px; }
.sidebar .me a:hover, .sidebar .me button:hover { background:rgba(255,255,255,.5); }
.avatar { width:34px; height:34px; border-radius:50%; background:#fff; display:grid; place-items:center; font-weight:700; color:var(--ink2); }
main { padding:26px 32px 60px; max-width:1560px; width:100%; }
body.guest main { max-width:none; min-height:100vh; display:grid; place-items:center;
  background:radial-gradient(circle at 20% 10%, #fff 0, #ececec 40%, #d6d6d6 100%); }

/* ---------- элементы ---------- */
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:18px 20px; margin-bottom:16px; box-shadow:var(--shadow); }
.pagehead { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.eyebrow { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.eyebrow a { color:var(--muted); }
label { display:block; margin:0 0 12px; font-size:13px; color:var(--ink2); font-weight:500; }
label.check { display:flex; gap:9px; align-items:center; font-size:14px; color:var(--ink); font-weight:400; }
label em { color:var(--err); font-style:normal; }
input, select, textarea { width:100%; font:inherit; font-weight:400; color:var(--ink); padding:9px 11px; margin-top:4px;
  border:1px solid #cfcfcf; border-radius:10px; background:#fff; transition:border-color .15s, box-shadow .15s; }
input[type=checkbox] { width:17px; height:17px; margin:0; accent-color:var(--dark); }
textarea { resize:vertical; }
input:focus, select:focus, textarea:focus { outline:none; border-color:#7a7a7a; box-shadow:0 0 0 4px rgba(178,178,178,.35); }
button, .btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; font:inherit; font-weight:500; padding:9px 16px;
  border-radius:10px; border:1px solid #c9c9c9; background:#fff; color:var(--ink); cursor:pointer; text-decoration:none; transition:background .15s; }
button:hover, .btn:hover { background:var(--soft); }
.primary { background:var(--dark); border-color:var(--dark); color:#fff; }
.primary:hover { background:#000; }
.ghost { border-color:transparent; background:transparent; color:var(--muted); padding:6px 9px; }
.wide { width:100%; margin-top:8px; }
.small { font-size:12.5px; } .muted { color:var(--muted); } .mt { margin-top:14px; } .c { text-align:center; }
.flash { padding:11px 16px; border-radius:12px; margin-bottom:14px; background:#fff; border:1px solid var(--line); border-left:5px solid var(--brand-d); box-shadow:var(--shadow); }
.flash.ok { border-left-color:var(--ok); } .flash.error { border-left-color:var(--err); }
.flash ul { margin:6px 0 0; padding-left:20px; }
.pill { display:inline-block; padding:3px 10px; border-radius:999px; background:#e9e9e9; font-size:12.5px; color:var(--ink2); }
.warnpill { background:#f4ecd2; color:var(--warn); }
.tag { display:inline-block; background:#ededed; border-radius:6px; padding:1px 6px; font-size:12px; color:var(--ink2); }
.num { font-family:Consolas, "Roboto Mono", monospace; letter-spacing:.02em; font-weight:600; }
.st { font-size:12px; border-radius:999px; padding:2px 9px; white-space:nowrap; }
.st.sent { background:#e5f1e9; color:var(--ok); } .st.error { background:#f8e4e2; color:var(--err); } .st.pending { background:#f1ecdc; color:var(--warn); } .st.skip { background:#ececec; color:#5c5c5c; }
.err { color:var(--err); }
.links { display:flex; gap:8px; flex-wrap:wrap; }

/* ---------- форма сообщения ---------- */
.layout { display:grid; grid-template-columns:minmax(0, 1fr) 430px; gap:18px; align-items:start; }
.layout.two { grid-template-columns:1fr 1fr; }
.sticky { position:sticky; top:18px; }
.row2, .row3, .row4 { display:grid; gap:0 14px; }
.row2 { grid-template-columns:1fr 1fr; } .row3 { grid-template-columns:repeat(3, 1fr); } .row4 { grid-template-columns:repeat(4, 1fr); }
.narrow { max-width:340px; }
.block h2 { display:flex; align-items:center; gap:11px; }
.block h2 > span { display:inline-grid; place-items:center; width:28px; height:28px; border-radius:9px; background:var(--brand); color:#1c1c1c; font-size:13px; font-weight:700; }
.block h2 small { font-weight:400; }
.ro { background:var(--soft); border:1px solid var(--line); border-radius:10px; padding:7px 12px; margin:4px 0 12px; }
.ro small { display:block; color:var(--muted); font-size:12px; }
.hint { background:#f5f5f5; border:1px dashed var(--brand-d); border-radius:10px; padding:8px 12px; margin:2px 0 0; font-size:14px; }
fieldset.person { border:1px solid var(--line); border-radius:12px; margin:0 0 12px; padding:8px 12px 0; }
fieldset.person legend { font-size:12.5px; color:var(--muted); padding:0 4px; }
table.items { width:100%; border-collapse:collapse; }
table.items th { text-align:left; font-size:12px; color:var(--muted); font-weight:600; padding:4px 5px; }
table.items td { padding:3px 5px; }
table.items input, table.items select { margin:0; }
table.items .qty { width:76px; }
.msgtext { white-space:pre-wrap; font:14px/1.55 "Segoe UI", Arial, sans-serif; background:var(--soft); border:1px solid var(--line);
  border-radius:12px; padding:14px 16px; max-height:60vh; overflow:auto; margin:0 0 8px; }
.msgtext.rich { white-space:normal; max-height:none; background:#fff; }
.side .card h2 { display:flex; justify-content:space-between; }
.warn { color:var(--warn); margin-bottom:6px; } .okline { color:var(--ok); margin-bottom:6px; }
.actions { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
dl.kv { display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:0 0 8px; }
dl.kv dt { color:var(--muted); font-size:13px; } dl.kv dd { margin:0; }

/* ---------- списки ---------- */
.filters { display:flex; flex-wrap:wrap; gap:10px 14px; align-items:flex-end; }
.filters label { margin:0; } .filters .grow { flex:1; min-width:220px; }
.tablewrap { overflow-x:auto; padding:6px 8px; }
table.list { width:100%; border-collapse:separate; border-spacing:0; font-size:14px; }
table.list th { text-align:left; background:#f0f0f0; padding:9px 10px; font-weight:600; font-size:12.5px; color:var(--ink2); text-transform:uppercase; letter-spacing:.03em; }
table.list th:first-child { border-radius:10px 0 0 10px; } table.list th:last-child { border-radius:0 10px 10px 0; }
table.list td { padding:10px; border-bottom:1px solid #ededed; vertical-align:top; }
table.list tbody tr:hover td { background:#fafafa; }
table.list tbody tr[data-href] { cursor:pointer; }
table.users td { vertical-align:middle; }
td.fab { max-width:460px; color:var(--ink2); } .nowrap { white-space:nowrap; }
.pager { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
.pager a, .pager b { padding:5px 11px; border-radius:8px; background:#fff; border:1px solid var(--line); text-decoration:none; }
.pager b { background:var(--dark); color:#fff; border-color:var(--dark); }
.stack { display:flex; flex-direction:column; gap:10px; }
textarea.code { font:13px/1.45 Consolas, monospace; }
.mailpreview table { width:100%; }

/* ---------- регионы ---------- */
.tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:14px; }
.tile { position:relative; display:grid; grid-template-columns:auto 1fr; gap:4px 14px; padding:16px 18px; background:#fff; border:1px solid var(--line);
  border-radius:var(--r); text-decoration:none; box-shadow:var(--shadow); transition:transform .12s, box-shadow .12s; }
.tile:hover { transform:translateY(-2px); box-shadow:0 10px 26px rgba(0,0,0,.08); }
.tile.off { opacity:.55; }
.tile .code { grid-row:span 2; display:grid; place-items:center; width:58px; height:58px; border-radius:14px; background:var(--brand); font-weight:750; letter-spacing:.06em; }
.tile .t-main b { display:block; font-size:16px; } .tile .t-main small { color:var(--muted); }
.t-stats { display:flex; flex-wrap:wrap; gap:4px 10px; font-size:12.5px; color:var(--ink2); }
.tile .pill { position:absolute; top:12px; right:12px; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.tab { border-radius:999px; padding:7px 15px; background:#e7e7e7; border:0; }
.tab.on { background:var(--dark); color:#fff; }
.district { border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-bottom:10px; background:var(--soft); }
.dhead { display:flex; gap:6px; align-items:center; } .dhead input { margin:0 0 6px; font-weight:600; }
.savebar { position:sticky; bottom:0; display:flex; gap:10px; padding:12px 0; background:linear-gradient(0deg, var(--bg) 70%, transparent); }
.regpick summary { cursor:pointer; padding:7px 10px; border:1px solid #cfcfcf; border-radius:10px; list-style:none; white-space:nowrap; background:#fff; }
.regpick[open] summary { background:var(--soft); }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; max-width:420px; }
.chip { display:flex; gap:6px; align-items:center; margin:0; padding:5px 9px; border-radius:999px; background:#efefef; font-size:13px; font-weight:600; }
.chip small { font-weight:400; color:var(--muted); }

/* ---------- вход ---------- */
.auth { width:100%; max-width:420px; text-align:center; }
.auth-logo { width:118px; margin-bottom:16px; filter:drop-shadow(0 6px 14px rgba(0,0,0,.12)); }
.auth .card { text-align:left; padding:26px 28px; border-radius:18px; }
.auth h1 { font-size:22px; }

@media (max-width:1180px) { .layout, .layout.two { grid-template-columns:1fr; } .sticky { position:static; } }
@media (max-width:860px) {
  body.app { grid-template-columns:1fr; }
  .sidebar { position:static; height:auto; padding:12px; }
  .sidebar nav { flex-direction:row; flex-wrap:wrap; }
  .sidebar .sep { display:none; }
  main { padding:16px 14px 40px; }
}
@media (max-width:640px) { .row2, .row3, .row4 { grid-template-columns:1fr; } }
.narrowcard { max-width:560px; }
.auth .narrowcard { margin:0 auto; }
.tile .pill { position:static; grid-column:2; justify-self:start; margin-top:6px; }
table.users select { min-width:150px; }
table.users input:not([type=checkbox]) { min-width:120px; }
/* v3 */
.danger { color:#fff; background:#8f2a22; border-color:#8f2a22; }
.danger:hover { background:#6e1f19; }
.ghost.danger { background:transparent; color:#8f2a22; border-color:transparent; }
.ghost.danger:hover { background:#f6e3e1; }
form.inline { display:inline; }
.dangerzone { border-color:#e3c4c0; margin-top:26px; }
.dangerzone h2 { color:#8f2a22; }
.sheet { overflow-x:auto; }
.sheet table { min-width:760px; }
.fgrid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:0 14px; }
.fgrid > .w1 { grid-column:span 1; } .fgrid > .w2 { grid-column:span 2; } .fgrid > .w3 { grid-column:span 3; } .fgrid > .w4 { grid-column:1 / -1; }
.fgrid .ro { margin-top:22px; }
.note { color:var(--muted); font-size:12.5px; margin:0 0 12px; }
.fhint { display:block; color:var(--muted); font-size:12px; font-weight:400; margin-top:3px; }
.checkline { display:flex; gap:8px; align-items:center; padding-top:26px; font-weight:400; color:var(--ink); }
.tablefield { margin-bottom:12px; overflow-x:auto; }
.tlabel { font-size:13px; font-weight:600; color:var(--ink2); margin-bottom:4px; }
@media (max-width:640px) { .fgrid > * { grid-column:1 / -1 !important; } }
/* конструктор */
.pagehead .tabs { margin:0; }
a.tab { text-decoration:none; color:var(--ink); }
.layout.builder { grid-template-columns:minmax(0, 1fr) 400px; }
.bblock { padding:16px 18px; }
.bhead { display:flex; gap:10px; align-items:center; }
.bnumw { display:flex; align-items:center; gap:4px; font-weight:700; color:var(--muted); }
.bnum { width:54px; margin:0; text-align:center; font-weight:700; }
.btitle { margin:0; font-size:16px; font-weight:650; }
.bhint { margin:8px 0 6px; font-size:13px; color:var(--ink2); }
.fact { display:flex; gap:4px; margin-left:auto; flex:none; }
.fact button { padding:5px 9px; }
.subs { margin:4px 0 10px; }
.subs summary { cursor:pointer; font-size:13px; color:var(--ink2); }
.subs .chips { max-width:none; }
.frow { border:1px solid var(--line); border-radius:12px; padding:8px 10px; margin-bottom:6px; background:var(--soft); }
.frow.hid { opacity:.55; }
.fmain { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.fmain input, .fmain select { margin:0; width:auto; }
.fmain .flabel { flex:1 1 220px; }
.fmain .chk { display:flex; gap:5px; align-items:center; margin:0; font-size:12.5px; color:var(--ink2); }
.tname { font-size:12.5px; color:var(--muted); padding:0 6px; }
code.fkey { font-size:12px; background:#ececec; border-radius:6px; padding:2px 6px; color:var(--ink2); }
.fmore { margin-top:10px; padding-top:10px; border-top:1px dashed #d6d6d6; }
.cols { margin:6px 0 10px; }
.crow { display:flex; gap:6px; align-items:center; margin:6px 0; }
.crow input, .crow select { margin:0; width:auto; flex:1; }
.addf { margin:2px 0 10px; }
.tplbox { background:#fafafa; border:1px solid var(--line); border-radius:12px; padding:10px 12px; }
.tplhead { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; margin-bottom:6px; }
.pal { display:flex; flex-wrap:wrap; gap:5px; }
.chip.k { border:1px solid #d0d0d0; background:#fff; font-weight:500; font-size:12px; padding:3px 9px; cursor:pointer; border-radius:999px; }
.chip.k:hover { background:var(--brand-l); }
textarea.tpl { font:13px/1.5 Consolas, "Roboto Mono", monospace; background:#fff; }
.addblock { width:100%; margin:4px 0 16px; padding:12px; border-style:dashed; }
.help summary { cursor:pointer; font-weight:600; margin-top:12px; }
.help code { background:#efefef; border-radius:5px; padding:0 4px; }
.help ul { padding-left:18px; }
#bpreview { max-height:52vh; }
input.emoji { width:58px; text-align:center; font-size:18px; padding:5px; }
.flist textarea.flabel { flex:1 1 260px; }
/* ---- v3.2: поиск, роли ---- */
.search .searchrow { display:flex; gap:10px; }
.search .searchrow input { margin:0; font-size:16px; padding:11px 14px; }
.search .adv { margin-top:6px; }
.search .adv > summary { cursor:pointer; font-weight:600; padding:6px 0; }
.search .filters { margin:8px 0 12px; }
.ttree { border-top:1px solid var(--line); padding-top:10px; }
.ttree .ttitle { display:flex; align-items:center; gap:10px; margin-bottom:6px; font-weight:600; }
.tgroup { margin:4px 0; }
.tgroup > summary { cursor:pointer; list-style:none; display:flex; align-items:center; gap:8px; }
.tgroup > summary::before { content:"▸"; color:var(--muted); }
.tgroup[open] > summary::before { content:"▾"; }
.tgroup .chips { max-width:none; margin:6px 0 8px 22px; }
.tchip { background:#e4e4e4; }
mark { background:#ffe58a; color:inherit; padding:0 2px; border-radius:3px; }
table.perms th input { min-width:120px; margin:0 0 2px; font-weight:600; text-align:center; }
table.perms th small { display:block; font-weight:400; text-transform:none; letter-spacing:0; }
table.perms tr.grp td { background:#f3f3f3; font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); }
table.perms td.c input { width:18px; height:18px; }
form.delrole { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:8px 0; border-bottom:1px solid var(--line); }
form.delrole label { margin:0; display:flex; align-items:center; gap:6px; }
form.delrole select { margin:0; width:auto; }
.pager span { padding:5px 6px; color:var(--muted); }
.sumlayout { grid-template-columns:minmax(0, 1fr) 300px; }
.sumlayout .sheet table { min-width:720px; }

/* ---- v3.3: СОДЧ, вложения, обучение ---- */
.brand b.solo { font-size:28px; letter-spacing:.2em; }
.attach { margin:4px 0 12px; } .attach label { margin:0; } .attach input[type=file] { padding:7px; background:var(--soft); }
.training-banner { background:#fff4cc; border:1px solid #e3c55b; border-radius:12px; padding:10px 14px; margin-bottom:14px; }
.tour-veil { position:fixed; inset:0; background:rgba(20,20,20,.55); z-index:9998; }
.tour-spot { position:fixed; z-index:9998; border-radius:12px; box-shadow:0 0 0 9999px rgba(20,20,20,.55);
  outline:2px solid #fff; pointer-events:none; transition:left .2s, top .2s, width .2s, height .2s; }
.tour-box { position:fixed; z-index:9999; width:min(390px, calc(100vw - 20px)); background:#fff; border-radius:16px;
  padding:16px 18px; box-shadow:0 14px 44px rgba(0,0,0,.28); }
.tour-box h3 { margin:2px 0 6px; font-size:18px; } .tour-box p { margin:0 0 14px; color:var(--ink2); }
.tour-step { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.tour-btns { display:flex; gap:8px; align-items:center; } .tour-btns span { flex:1; } .tour-btns .ghost { padding-left:0; }
.tour-btns button { white-space:nowrap; }

/* ---- v3.4 ---- */
.brand-text { flex:1; display:flex; flex-direction:column; align-items:center; text-align:center; line-height:1.15; }
.brand-text b { font-size:30px; letter-spacing:.2em; margin-right:-.2em; color:#000; }
.brand-text small { color:#000; font-size:12.5px; font-weight:600; margin-top:4px; letter-spacing:.02em; }
[hidden] { display:none !important; }
@media (max-width:860px) { body.app { grid-template-columns:minmax(0, 1fr); } main { min-width:0; } }

/* ---- v3.5: плавные анимации (короткие, отключаются при «уменьшить движение» в системе) ---- */
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes popIn { 0% { opacity:0; transform:scale(.85); } 70% { opacity:1; transform:scale(1.04); } 100% { opacity:1; transform:none; } }
@keyframes shake { 10%, 90% { transform:translateX(-1px); } 20%, 80% { transform:translateX(3px); } 30%, 50%, 70% { transform:translateX(-7px); } 40%, 60% { transform:translateX(7px); } }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes toastIn { from { opacity:0; transform:translateX(26px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes toastOut { to { opacity:0; transform:translateX(30px) scale(.97); } }
@keyframes tick { 0% { clip-path:inset(calc(100% - 3px) 100% 0 0); } 40% { clip-path:inset(calc(100% - 3px) 0 0 0); } 100% { clip-path:inset(0 0 0 0); } }
@keyframes logoIn { from { opacity:0; transform:translateY(8px) scale(.9); filter:blur(6px) drop-shadow(0 6px 14px rgba(0,0,0,0)); }
  to { opacity:1; transform:none; filter:blur(0) drop-shadow(0 6px 14px rgba(0,0,0,.12)); } }
@keyframes lineIn { from { opacity:0; transform:scaleX(0); } to { opacity:1; transform:scaleX(1); } }
@keyframes shimmer { from { background-position:-150% 0, 50% 8px, 50% 36px, 0 70px; } to { background-position:250% 0, 50% 8px, 50% 36px, 0 70px; } }

/* уведомления */
.toasts { position:fixed; top:var(--toast-top, 16px); right:18px; z-index:9000; transition:top .25s cubic-bezier(.2,.7,.2,1); display:flex; flex-direction:column; gap:10px;
  width:min(430px, calc(100vw - 28px)); pointer-events:none; }
.flash.toast { pointer-events:auto; display:flex; align-items:flex-start; gap:11px; margin:0; padding:12px 10px 12px 14px;
  border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.98);
  box-shadow:0 14px 34px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.06); animation:toastIn .34s cubic-bezier(.2,.8,.2,1) both; }
.toast.error { border-color:#ecc9c5; }
.toast.out { animation:toastOut .28s ease-in forwards; }
.toast-t { flex:1; min-width:0; padding-top:2px; overflow-wrap:anywhere; }
.toast-ic { flex:none; position:relative; width:24px; height:24px; border-radius:50%; background:var(--brand-d); animation:popIn .35s .1s both; }
.toast.ok .toast-ic { background:var(--ok); }
.toast.error .toast-ic { background:var(--err); }
.toast.ok .toast-ic::after { content:""; position:absolute; left:8.5px; top:4.5px; width:6px; height:11px; border:solid #fff;
  border-width:0 2.5px 2.5px 0; transform:rotate(45deg); animation:tick .38s .38s both; }
.toast:not(.ok) .toast-ic::after { content:"!"; position:absolute; inset:0; display:grid; place-items:center; color:#fff; font:800 14px/1 Arial, sans-serif; }
.toast-x { flex:none; padding:3px 8px; border:0; border-radius:8px; background:transparent; color:var(--muted); font-size:12px; line-height:1.4; }
.toast-x:hover { background:var(--soft); color:var(--ink); }
.flash.formerr { animation:fadeUp .3s both, shake .45s .3s; }

/* меню: подсветка переезжает, иконки откликаются */
.sidebar nav { position:relative; }
.navpill { position:absolute; left:0; top:0; z-index:0; border-radius:10px; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.08);
  pointer-events:none; opacity:0; transition:transform .4s cubic-bezier(.3,.8,.25,1), width .4s cubic-bezier(.3,.8,.25,1),
  height .4s cubic-bezier(.3,.8,.25,1), opacity .2s; }
.sidebar nav.pilled > a { position:relative; z-index:1; }
.sidebar nav.pilled > a.on { background:transparent; box-shadow:none; }
.sidebar nav a { transition:background .15s; }
.sidebar nav a .ic, .sidebar .me .ic { transition:transform .22s cubic-bezier(.3,.8,.3,1.5); }
.sidebar nav a:hover .ic { transform:translateX(2px) scale(1.1); }
.sidebar .me a:hover .ic, .sidebar .me button:hover .ic { transform:scale(1.12); }

/* кнопки «нажимаются», плитки и строки откликаются на наведение */
button, .btn, .tab { transition:background .15s, transform .12s, box-shadow .15s, opacity .15s; }
button:active:not(:disabled), .btn:active, .tab:active { transform:translateY(1px) scale(.98); }
.tile { transition:transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s; }
.tile:hover { transform:translateY(-3px); box-shadow:0 14px 30px rgba(0,0,0,.1); }
.tile:active { transform:translateY(-1px) scale(.995); }
.tile .code { transition:transform .25s cubic-bezier(.3,.8,.3,1.4), background .2s; }
.tile:hover .code { transform:scale(1.06) rotate(-2deg); background:#a8a8a8; }
table.list td { transition:background .15s, box-shadow .15s; }
table.list tbody tr[data-href]:hover td:first-child { box-shadow:inset 3px 0 0 var(--brand-d); }
.chip { transition:background .15s, box-shadow .15s; }
.chip:has(input:checked) { box-shadow:inset 0 0 0 1px #9a9a9a; }

/* кнопка «занята» */
button.busy { cursor:progress; }
button:disabled { opacity:.88; }
.spin { flex:none; width:15px; height:15px; border-radius:50%; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; animation:spin .7s linear infinite; }
button:not(.primary):not(.danger) .spin { border-color:rgba(0,0,0,.14); border-top-color:var(--ink); }

/* форма: индикатор заполнения и ✓ на номере блока */
.fprog { margin:-2px 0 14px; }
.fprog-bar { height:6px; border-radius:6px; background:#ececec; overflow:hidden; }
.fprog-bar span { display:block; height:100%; width:0; border-radius:6px; background:linear-gradient(90deg, #9d9d9d, #2b2b2b);
  transition:width .4s cubic-bezier(.2,.8,.2,1); }
.fprog.done .fprog-bar span { background:var(--ok); }
.fprog-txt { display:block; margin-top:5px; font-size:12px; color:var(--muted); transition:color .2s; }
.fprog.done .fprog-txt { color:var(--ok); font-weight:600; }
.block h2 > span { position:relative; transition:background .25s, color .25s; }
.block h2 > span.done { background:var(--dark); color:#fff; }
.block h2 > span.done::after { content:"✓"; position:absolute; right:-6px; top:-6px; width:16px; height:16px; border-radius:50%;
  background:var(--ok); color:#fff; font-size:10px; line-height:16px; text-align:center; box-shadow:0 0 0 2px #fff; animation:popIn .3s both; }

/* вложения: карточки файлов и полоса объёма */
.attachui { margin-top:8px; }
.alist { display:flex; flex-direction:column; gap:6px; }
.alist:empty { display:none; }
.achip { display:flex; align-items:center; gap:8px; padding:5px 5px 5px 10px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:13px; }
.achip.new { animation:popIn .26s both; }
.achip .an { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.achip small { color:var(--muted); white-space:nowrap; }
.achip .ax { padding:2px 8px; border:0; border-radius:7px; background:transparent; color:var(--muted); font-size:12px; }
.achip .ax:hover { background:#f6e3e1; color:var(--err); }
.abar { height:5px; border-radius:5px; background:#ececec; overflow:hidden; margin:8px 0 4px; }
.abar span { display:block; height:100%; width:0; border-radius:5px; background:#7d7d7d; transition:width .35s cubic-bezier(.2,.8,.2,1), background .25s; }
.abar.warn span { background:#c99a1a; }
.abar.over span { background:var(--err); }

/* номер сохранённого сообщения «прокручивается» */
.msgno { white-space:nowrap; font-variant-numeric:tabular-nums; }
.roll { display:inline-block; height:1.5em; overflow:hidden; vertical-align:top; }
.roll-strip { display:block; transition:transform 1.1s cubic-bezier(.15,.85,.25,1); }
.roll-strip > span { display:block; height:1.5em; line-height:1.5em; text-align:center; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

/* сводка: «заготовка» на время формирования, затем плавное появление */
.sheet { position:relative; }
.sheet.loading { min-height:280px; }
.sheet.loading > * { opacity:0; }
.sheet.loading::after { content:""; position:absolute; inset:4px; border-radius:10px; pointer-events:none;
  background:linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 80%) -150% 0 / 50% 100% no-repeat,
    linear-gradient(#e3e3e3, #e3e3e3) 50% 8px / 46% 18px no-repeat,
    linear-gradient(#ebebeb, #ebebeb) 50% 36px / 30% 12px no-repeat,
    repeating-linear-gradient(180deg, #efefef 0 22px, transparent 22px 34px) 0 70px / 100% calc(100% - 70px) no-repeat #fff;
  animation:shimmer 1.15s linear infinite; }
.appear { animation:fadeUp .4s cubic-bezier(.2,.8,.2,1) both; }

/* вход: заголовок сервиса */
.auth { max-width:440px; }
.auth-head { text-align:center; margin-bottom:22px; }
.auth-head .auth-logo { display:block; width:96px; margin:0 auto 18px; animation:logoIn .7s cubic-bezier(.2,.8,.2,1) both; }
.auth-service { font-size:23px; line-height:1.28; font-weight:700; letter-spacing:-.01em; color:#161616; text-shadow:0 1px 0 rgba(255,255,255,.85);
  animation:fadeUp .55s .1s cubic-bezier(.2,.8,.2,1) both; }
.auth-service span { display:block; }
.auth-line { width:64px; height:3px; margin:14px auto 12px; border-radius:3px; background:linear-gradient(90deg, rgba(40,40,40,0), #2a2a2a, rgba(40,40,40,0));
  animation:lineIn .6s .3s cubic-bezier(.2,.8,.2,1) both; }
.auth-org { font-size:13.5px; font-weight:600; letter-spacing:.14em; color:#474747; animation:fadeUp .55s .38s cubic-bezier(.2,.8,.2,1) both; }
.auth .card { animation:fadeUp .55s .45s cubic-bezier(.2,.8,.2,1) both; }
.auth .card h1 { font-size:19px; }
.auth.again .auth-head > * { animation:none; }
.auth .card.shake { animation:shake .48s cubic-bezier(.36,.07,.19,.97) both; }
@media (max-width:480px) { .auth-service { font-size:20px; } .auth-head .auth-logo { width:80px; } }

/* обучение: подсветка плавно переходит между элементами, подсказка «вырастает» */
.tour-veil { transition:opacity .25s; }
.tour-spot { transition:left .38s cubic-bezier(.3,.8,.25,1), top .38s cubic-bezier(.3,.8,.25,1), width .38s cubic-bezier(.3,.8,.25,1),
  height .38s cubic-bezier(.3,.8,.25,1), opacity .25s; }
.tour-box { transition:left .32s cubic-bezier(.3,.8,.25,1), top .32s cubic-bezier(.3,.8,.25,1), transform .32s cubic-bezier(.3,.8,.25,1); }
.tour-box.tin { animation:tourIn .28s cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes tourIn { from { opacity:0; scale:.94; } to { opacity:1; scale:1; } }

@media (max-width:860px) { .toasts { top:var(--toast-top, 10px); right:10px; width:calc(100vw - 20px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; animation-delay:0s !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important; transition-delay:0s !important; scroll-behavior:auto !important; }
}

/* узкие экраны: одна колонка, длинные названия файлов и таблицы не распирают страницу */
@media (max-width:1180px) {
  .layout, .layout.two, .layout.builder, .layout.sumlayout { grid-template-columns:minmax(0, 1fr); }
  .side, .blocks { min-width:0; }
}

/* ---- v3.6: нижняя панель формы, поиск в списках, проверка до отправки, история изменений ---- */
.formbar { position:sticky; bottom:0; z-index:50; display:flex; align-items:center; gap:12px 18px; flex-wrap:wrap; margin-top:4px;
  padding:12px 16px; background:rgba(255,255,255,.97); border:1px solid var(--line); border-radius:16px 16px 0 0;
  box-shadow:0 -8px 24px rgba(0,0,0,.08); }
.formbar .fprog { flex:0 1 250px; min-width:190px; margin:0; }
.fprog.bad .fprog-txt { color:var(--err); font-weight:600; }
.fprog.bad .fprog-bar span { background:var(--err); }
.fb-blocks { display:flex; gap:6px; flex:1 1 auto; flex-wrap:wrap; }
.fbb { position:relative; min-width:32px; height:32px; padding:0 8px; border-radius:9px; border:1px solid #d6d6d6; background:#f3f3f3;
  font-weight:700; font-size:13px; color:var(--ink2); }
.fbb:hover { background:#e9e9e9; }
.fbb.cur { border-color:#6f6f6f; box-shadow:inset 0 0 0 1px #6f6f6f; }
.fbb.done { background:var(--dark); border-color:var(--dark); color:#fff; }
.fbb.done::after { content:"✓"; position:absolute; right:-5px; top:-5px; width:14px; height:14px; border-radius:50%; background:var(--ok);
  color:#fff; font-size:9px; line-height:14px; text-align:center; box-shadow:0 0 0 2px #fff; }
.fb-actions { display:flex; align-items:center; gap:10px; margin-left:auto; flex-wrap:wrap; }
.fb-actions .primary { padding:10px 22px; }
.fb-actions .ghost { padding:9px 12px; }
.fb-send { margin:0; font-size:13.5px; }
section.block { scroll-margin-top:14px; }
.attach.off { opacity:.5; }
@media (max-width:860px) {
  .formbar { padding:10px 12px; gap:10px; border-radius:14px 14px 0 0; }
  .formbar .fprog { flex:1 1 100%; }
  .fb-blocks { flex-wrap:nowrap; overflow-x:auto; padding:5px 2px 2px; }
  .fb-actions { width:100%; margin-left:0; } .fb-actions .primary { flex:1; }
}
/* список с поиском */
.combo { position:relative; margin-top:4px; }
.combo .combo-in { margin-top:0; padding-right:30px; cursor:text;
  background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.6'/></svg>") no-repeat right 11px center / 12px; }
.combo-native { position:absolute !important; left:0; bottom:0; width:1px !important; height:1px !important; opacity:0;
  pointer-events:none; margin:0 !important; padding:0 !important; border:0 !important; }
.combo-list { position:absolute; z-index:70; left:0; right:0; top:calc(100% + 4px); max-height:280px; overflow:auto; padding:4px;
  background:#fff; border:1px solid #cfcfcf; border-radius:12px; box-shadow:0 14px 34px rgba(0,0,0,.16); animation:fadeUp .16s ease-out; }
.combo-opt { padding:7px 10px; border-radius:8px; cursor:pointer; font-size:14px; font-weight:400; color:var(--ink); }
.combo-opt.on { background:#ececec; }
.combo-opt.cur { font-weight:650; }
.combo-opt mark { padding:0; }
.combo-empty { padding:8px 10px; color:var(--muted); font-size:13px; }
/* проверка до отправки и предупреждения */
label.invalid input, label.invalid select, label.invalid textarea, label.invalid .combo-in { border-color:var(--err); box-shadow:0 0 0 3px rgba(179,38,30,.14); }
label.invalid { animation:shake .42s cubic-bezier(.36,.07,.19,.97); }
.ferr { display:block; color:var(--err); font-size:12px; font-weight:500; margin-top:3px; }
input.tm { font-variant-numeric:tabular-nums; letter-spacing:.02em; }
input.tm.bad { border-color:var(--err); }
.warnl { color:#7a5200; background:#fff6dc; border:1px solid #f0d68a; border-radius:10px; padding:7px 10px; margin-bottom:8px; }
/* история изменений сообщения */
.hist .ver { border-top:1px solid var(--line); padding:9px 0; }
.hist .ver summary { cursor:pointer; list-style:none; line-height:1.5; }
.hist .ver summary::-webkit-details-marker { display:none; }
.hist .ver summary .st, .hist .ver summary .pill { margin-left:4px; }
.hist .vch { display:block; font-size:12.5px; color:var(--ink2); }
.hist .vtext { margin-top:8px; font-size:13px; max-height:420px; overflow:auto; }
@media (prefers-reduced-motion: reduce) { label.invalid { animation:none; } }

/* ---------- 3.7: отметка «отправлено на почту» ---------- */
.mst { display:inline-flex; align-items:center; gap:6px; vertical-align:-4px; margin-left:6px; color:#8a8a8a; }
.mst svg { width:20px; height:20px; flex:none; fill:none; stroke-linecap:round; stroke-linejoin:round; overflow:visible; }
.mst .env { stroke:currentColor; stroke-width:1.6; }
.mst .bd { stroke:var(--card); stroke-width:2; fill:#9e9e9e; transform-origin:18.2px 17px; transform-box:view-box; }
.mst .g { stroke:#fff; stroke-width:1.7; display:none; }
.mst.sent .bd { fill:var(--ok); } .mst.sent .g-sent { display:inline; }
.mst.pending .bd { fill:#b08a12; } .mst.pending .g-pending { display:inline; }
.mst.error .bd { fill:var(--err); } .mst.error .g-error { display:inline; }
.mst.none { color:#b9b9b9; } .mst.none .bd { fill:#c9c9c9; } .mst.none .g-none { display:inline; }
.mst.error { color:#9a6b67; }
.mst.pending .bd { animation:mstPulse 1.4s ease-in-out infinite; }
@keyframes mstPulse { 50% { transform:scale(.82); opacity:.75; } }
.mst.changed svg { animation:mstPop .5s cubic-bezier(.2,.7,.2,1.3); }
@keyframes mstPop { 0% { transform:scale(.6); } 60% { transform:scale(1.18); } 100% { transform:none; } }
.mst-t { color:var(--muted); font-size:13px; line-height:1.3; }
.mst.error .mst-t { color:var(--err); }
.mline { margin:2px 0 6px; }
.mline .mst { margin-left:0; }
.mlegend { display:flex; flex-wrap:wrap; align-items:center; gap:2px 6px; margin:10px 2px 0; }
.mlegend .mst { margin-left:0; }
.mlegend .mst svg { width:17px; height:17px; }
td .mst { margin-left:5px; }
@media (prefers-reduced-motion: reduce) { .mst.pending .bd, .mst.changed svg { animation:none; } }

/* ---------- 3.7: шаблоны фабулы ---------- */
.fchip { display:inline-block; padding:0 7px; margin:1px 0; border-radius:6px; background:#ececec; box-shadow:inset 0 0 0 1px #d2d2d2;
  font-size:.92em; line-height:1.55; color:var(--ink2); white-space:nowrap; }
.fchip::before { content:"["; color:#9a9a9a; } .fchip::after { content:"]"; color:#9a9a9a; }
.fchip.unk { background:#fff; box-shadow:inset 0 0 0 1px #e1c9c6; color:#8f2a22; }
.fchip.miss { background:#fbf3dc; box-shadow:inset 0 0 0 1px #e6d39a; color:#6e5400; }
button.fchip { font:inherit; font-size:12.5px; cursor:pointer; border:0; padding:0 7px; }
button.fchip:hover { background:#f5e6b8; }
mark.fv { background:#eef4ef; color:var(--ink); border-radius:4px; padding:0 2px; box-shadow:inset 0 -1px 0 #cfe0d3; }

.fabhead { display:flex; align-items:center; gap:4px; min-height:28px; }
.fabbtn { margin-left:auto; padding:4px 11px 4px 9px; border-radius:999px; font-size:13px; font-weight:600; gap:6px;
  border:1px solid #c6c6c6; background:#fff; color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.05); }
.fabbtn .ic { width:16px; height:16px; }
.fabbtn:hover, .fabbtn.on { background:var(--dark); border-color:var(--dark); color:#fff; }
.fabbtn .fabn { min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:var(--dark); color:#fff; font-size:11px;
  line-height:18px; text-align:center; }
.fabbtn:hover .fabn, .fabbtn.on .fabn { background:#fff; color:var(--dark); }
.fabbtn.demo { display:inline-flex; margin:0 2px; vertical-align:middle; pointer-events:none; font-size:12.5px; padding:2px 9px 2px 7px; }
textarea.fabflash { animation:fabFlash 1.1s ease-out; }
textarea.fabtick { animation:fabTick .7s ease-out; }
@keyframes fabTick { 0% { background:#eef6f0; border-color:#8fbf9f; } 100% { background:#fff; } }
@keyframes fabFlash { 0% { box-shadow:0 0 0 4px rgba(47,122,72,.32); border-color:var(--ok); background:#f2f8f3; } 100% { box-shadow:none; } }
.fabstat { margin-top:6px; padding:7px 10px; border-radius:10px; background:var(--soft); border:1px solid var(--line);
  font-size:12.5px; font-weight:400; line-height:1.6; color:var(--ink2); }
.fabstat .fabok { font-weight:600; }
.fabstat .fabneed { color:#6e5400; }
.linkish { border:0; background:none; padding:0 2px; color:var(--muted); text-decoration:underline; text-underline-offset:3px;
  font-size:12.5px; cursor:pointer; }
.linkish:hover { background:none; color:var(--ink); }
.linkish:disabled { opacity:.45; cursor:default; text-decoration:none; }

.fabpop { position:absolute; z-index:8000; background:#fff; border:1px solid #d6d6d6; border-radius:16px;
  box-shadow:0 18px 44px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.06); padding:12px 12px 10px; max-height:min(560px, 72vh);
  display:flex; flex-direction:column; gap:8px; transform-origin:top right; }
.fabpop[hidden] { display:none; }
.fabpop.sheet { position:fixed; left:0; right:0; bottom:0; top:auto; width:auto; max-height:78vh; border-radius:18px 18px 0 0;
  transform-origin:bottom center; padding-bottom:max(12px, env(safe-area-inset-bottom)); }
.fabpop-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 2px; }
.fabx { border:0; background:transparent; padding:3px 8px; color:var(--muted); font-size:13px; border-radius:8px; }
.fabq { margin:0; }
.fabpop-list { overflow:auto; display:flex; flex-direction:column; gap:6px; padding:2px; margin:0 -2px; overscroll-behavior:contain; }
.fabsec { font-size:11.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin:6px 4px 0; }
.fabsec[hidden] { display:none; }
.fabitem { display:flex; flex-direction:column; align-items:stretch; gap:3px; text-align:left; width:100%; padding:9px 12px;
  border:1px solid var(--line); border-radius:12px; background:#fff; font-weight:400; }
.fabitem:hover, .fabitem:focus-visible { background:var(--soft); border-color:#bdbdbd; outline:none; box-shadow:0 0 0 3px rgba(178,178,178,.3); }
.fabitem[hidden] { display:none; }
.fabitem.just { animation:fabJust 1.6s ease-out; }
@keyframes fabJust { 0% { background:#e6f1e9; border-color:var(--ok); } 100% { background:#fff; } }
.fabit { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.fabmeta { font-size:11.5px; color:var(--muted); white-space:nowrap; }
.fabprev { font-size:13px; color:var(--ink2); line-height:1.5; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; white-space:pre-line; }
.fabprev.big { -webkit-line-clamp:8; padding:9px 11px; background:var(--soft); border-radius:10px; border:1px solid var(--line); }
.fabother summary { cursor:pointer; font-size:12.5px; color:var(--ink2); margin:6px 4px; }
.fabother .fabitem { margin-top:6px; }
.fabempty { padding:6px 6px 2px; color:var(--ink2); } .fabempty p { margin:0 0 6px; }
.fabnote { margin:4px 6px; }
.fabpop-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; border-top:1px solid var(--line); padding:8px 2px 0; }
.fabconfirm p { margin:2px 2px 8px; }
.fabsaveform label { margin-bottom:8px; }
.fabsaveform textarea { font-size:13.5px; }
.fabsaveerr { color:var(--err); min-height:1em; margin:4px 2px 0; }

/* «Мои шаблоны» */
.ttabs { margin-bottom:16px; }
.tab .cnt { display:inline-block; min-width:20px; padding:0 6px; margin-left:4px; border-radius:999px; background:rgba(0,0,0,.08); font-size:12px; text-align:center; }
.tab.on .cnt { background:rgba(255,255,255,.22); }
.tplpage { display:grid; grid-template-columns:minmax(0, 1fr) minmax(360px, 520px); gap:18px; align-items:start; }
.tplpage:not(:has(.tpled)) { grid-template-columns:minmax(0, 860px); }
.tplintro p { margin:0 0 10px; }
.tpl header { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.tpl header .ttl { font-size:15.5px; margin-right:auto; }
.tag.light { background:#f4f4f4; color:var(--muted); }
.tplbody { white-space:pre-line; overflow-wrap:anywhere; line-height:1.6; font-size:14px; padding:10px 12px; background:var(--soft); border-radius:10px; border:1px solid var(--line); }
.tpl footer { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:10px; }
.tact { display:flex; gap:6px; flex-wrap:wrap; }
.btn.small, button.small { padding:5px 11px; font-size:13px; }
.tpl.just { animation:fabJust 2.2s ease-out; }
.tpled { position:sticky; top:16px; }
.fabpal { border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:var(--soft); max-height:300px; overflow:auto; margin-bottom:12px; }
.palhead { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.palhead input { width:auto; flex:1; min-width:140px; margin:0; padding:5px 10px; font-size:13px; }
.palg { margin-top:6px; } .palg[hidden] { display:none; }
.palg small { display:block; color:var(--muted); font-size:11.5px; margin-bottom:3px; }
.palc { display:flex; flex-wrap:wrap; gap:5px; }
.palc .chip.k[hidden] { display:none; }
.tplprev { margin:0 0 4px; } .tplprev small { display:block; margin-bottom:4px; }
.refhead p { margin:6px 0 0; } .refhead label { margin:0; }
@media (max-width:1100px) { .tplpage { grid-template-columns:1fr; } .tpled { position:static; } }
@media (prefers-reduced-motion: reduce) { textarea.fabflash, textarea.fabtick, .fabitem.just, .tpl.just { animation:none; } }
.presets { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:0 0 10px; }
.updprev { margin:12px 0 4px; } .updprev summary { cursor:pointer; margin-bottom:6px; }
/* вкладки и кнопка шаблонов меняют фон и цвет текста одновременно – без плавного фона, иначе текст на миг пропадает */
.tab, .fabbtn, .fbb { transition:transform .12s, box-shadow .15s, opacity .15s; }
/* правая колонка (текст сообщения, пример в конструкторе) остаётся на экране при прокрутке формы */
.layout > .side { align-self:stretch; }
@media (min-width:1181px) { .side > .sticky { max-height:calc(100vh - 118px); overflow-y:auto; overscroll-behavior:contain; } }

/* ---------- 3.8: подсветка подставленных значений в фабуле ---------- */
label.fabwrap { position:relative; }
.fabhl { position:absolute; z-index:2; box-sizing:border-box; margin:0; border:0; overflow:hidden; pointer-events:none;
  white-space:pre-wrap; overflow-wrap:break-word; word-break:normal; color:transparent; opacity:0; }
/* слой должен совпадать с текстом поля до пикселя: у общего mark (поиск) есть отступы – здесь их нет */
.fabhl mark { padding:0; margin:0; border:0; font:inherit; letter-spacing:inherit; word-spacing:inherit; vertical-align:baseline;
  color:transparent; background:rgba(47,122,72,.2); border-radius:4px; box-shadow:0 0 0 2px rgba(47,122,72,.2);
  -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.fabhl.on { animation:fabHl 2.3s ease-out forwards; }
.fabhl.on mark { animation:fabHlMark 2.3s ease-out forwards; }
@keyframes fabHl { 0% { opacity:0; } 10% { opacity:1; } 62% { opacity:1; } 100% { opacity:0; } }
@keyframes fabHlMark { 0% { box-shadow:0 0 0 0 rgba(47,122,72,.45); } 18% { box-shadow:0 0 0 4px rgba(47,122,72,.18); }
  100% { box-shadow:0 0 0 2px rgba(47,122,72,.12); } }

/* ---------- 3.8: письмо не ушло – уведомление автору; только что сохранённое сообщение в списке ---------- */
.mailalert .toast-t b { display:block; font-weight:650; }
.mailalert .ma-r { display:block; margin-top:2px; color:var(--ink2); font-size:12.5px; line-height:1.4; }
.ma-acts { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.ma-acts button, .ma-acts .btn { padding:5px 12px; font-size:13px; }
.toast.again { animation:shake .42s cubic-bezier(.36,.07,.19,.97); }
.toast.ok.morphed .toast-ic { animation:popAgain .42s cubic-bezier(.3,.8,.3,1.4) both; }
@keyframes popAgain { 0% { transform:scale(.35); } 65% { transform:scale(1.18); } 100% { transform:none; } }
tr.fresh > td { animation:freshRow 4.2s ease-out; }
@keyframes freshRow { 0%, 40% { background:#e4f0e7; } 100% { background:transparent; } }
@media (prefers-reduced-motion: reduce) { tr.fresh > td { animation:none; background:#e4f0e7; } .fabhl.on, .fabhl.on mark { animation:none; } }
.tpl.gone { pointer-events:none; }

/* ---------- 3.9: «Требует внимания», срочные сообщения, похожее сообщение ---------- */
.navcnt { margin-left:auto; min-width:22px; height:20px; padding:0 6px; border-radius:999px; background:#b08a12; color:#fff;
  font-size:11.5px; font-weight:700; line-height:20px; text-align:center; }
.navcnt.bump { animation:popAgain .42s cubic-bezier(.3,.8,.3,1.4); }
.attn-intro p { margin:0 0 8px; } .attn-intro .tabs { margin:10px 0 0; }
.attn { padding:14px 18px; } .attn.off { opacity:.7; }
.attn-h { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px; }
.attn-p, .ap-row { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.ap { display:inline-block; padding:2px 9px; border-radius:999px; font-size:12.5px; background:#f6eccc; color:#6e5400; }
.ap-mail { background:#f8e4e2; color:var(--err); } .ap-gbr { background:#e8eef6; color:#2e4a6b; } .ap-later { background:#ececec; color:var(--muted); }
.attn-a { display:flex; flex-wrap:wrap; gap:6px; }
.toast.attnrem .toast-ic { background:#b08a12; }
.toast.urgent { border-color:#ecc9c5; border-left:5px solid var(--err); }
.toast.urgent .toast-ic { background:var(--err); animation:popIn .35s .1s both, urgPulse 1.3s .5s 3; }
.toast.urgent .toast-ic::after { content:"‼"; font-size:13px; }
@keyframes urgPulse { 0% { box-shadow:0 0 0 0 rgba(179,38,30,.45); } 100% { box-shadow:0 0 0 12px rgba(179,38,30,0); } }
.toast .ap { font-size:12px; }
.dupdlg { position:fixed; inset:0; z-index:9500; display:grid; place-items:center; padding:16px; background:rgba(20,20,20,.38); }
.dupbox { width:min(560px, 100%); max-height:90vh; overflow:auto; background:#fff; border-radius:18px; padding:20px 22px;
  box-shadow:0 24px 60px rgba(0,0,0,.25); }
.dupbox h3 { margin:0 0 8px; font-size:18px; }
.duplist { list-style:none; margin:8px 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.duplist li { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline; padding:9px 12px; border:1px solid var(--line); border-radius:12px; background:var(--soft); }
.duplist small { width:100%; }
@media (prefers-reduced-motion: reduce) { .toast.urgent .toast-ic { animation:none; } .navcnt.bump { animation:none; } }

/* ---------- 3.9.1: уведомления-напоминания – заголовок и строка ниже; во время обучения уведомления не показываются ---------- */
.toast.sticky .toast-t b { display:block; font-weight:650; }
.toast .ma-r { display:block; margin-top:2px; color:var(--ink2); font-size:12.5px; line-height:1.4; }
body.touring .toasts .toast.sticky, body.touring .toasts .mailalert { display:none; }

/* ---------- 4.0: лента и приём ДЧ «Легион», нормативы, смена, фото в карточке, аналитика, черновик формы ---------- */
.phacts { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.phacts form { margin:0; }
.handbar { display:flex; align-items:center; justify-content:space-between; gap:10px 16px; flex-wrap:wrap; border-left:5px solid #b08a12; }
.handbar .actions { margin:0; }
.draftbar { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:12px 16px;
  background:#fff8e1; border-color:#e3c55b; }
.draftbar .draft-a { display:flex; gap:6px; }
.attn.late { position:relative; }
.attn.late::before { content:""; position:absolute; left:6px; top:14px; bottom:14px; width:4px; border-radius:4px; background:var(--err); }
.ap-accept { background:#efe7f6; color:#5a3e7a; }
.ap.ap-over { background:#f8e4e2; color:var(--err); font-weight:600; }
.pwtemp { margin:4px 0 0; font-size:12px; color:var(--muted); }
.attach.keep label > span { color:var(--ok); }
.radios { display:flex; flex-wrap:wrap; gap:4px 18px; }
.radios label { margin:0; }

/* приём ДЧ «Легион» в списках и карточке */
.acc { display:inline-block; margin-top:4px; padding:1px 7px; border-radius:999px; font-size:11.5px; font-weight:600; white-space:nowrap; }
.acc.ok { background:#e5f1e9; color:var(--ok); }
.acc.wait { background:#f1ecdc; color:var(--warn); }
.acc.overdue { background:#f8e4e2; color:var(--err); }
.mline .acc { margin:0 4px 0 0; }

/* уведомления 4.0 */
.toast.accalert .toast-ic { background:var(--err); }
.toast.escal { border-left:5px solid var(--err); }
.toast.escal .toast-ic { background:#8f2a22; }
.toast.handover .toast-ic { background:#b08a12; }
.navcnt.feedcnt { background:var(--err); }

/* лента */
.feed-intro .tabs { margin:10px 0 0; }
.fitem { display:grid; grid-template-columns:62px minmax(0, 1fr) auto; gap:4px 16px; align-items:start; padding:14px 16px; margin-bottom:10px; }
.fitem.urgent { border-left:5px solid var(--err); }
.fitem.st-wait { background:#fffdf6; }
.fitem.st-overdue { background:#fff6f5; box-shadow:0 0 0 2px #f0c6c1, var(--shadow); }
.fitem.st-ok, .fitem.st-none { opacity:.82; }
.fitem.fnew { animation:freshRow 4.2s ease-out; }
.ftime { text-align:center; line-height:1.15; }
.ftime b { display:block; font-size:18px; font-family:Consolas, "Roboto Mono", monospace; }
.ftime small { color:var(--muted); font-size:11.5px; }
.fhead { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 9px; }
.femo { font-size:15px; }
.fkind { font-size:12px; color:var(--ink2); background:#eef2f6; border-radius:6px; padding:1px 7px; }
.fkind.add { background:#f3eefa; color:#5a3e7a; }
.flines { margin:6px 0 0; padding-left:18px; font-size:13.5px; color:var(--ink2); }
.flines li { margin:1px 0; }
.fstate { display:flex; flex-direction:column; align-items:flex-end; gap:4px; min-width:150px; text-align:right; }
.fst { font-size:12.5px; font-weight:600; }
.fst.ok { color:var(--ok); } .fst.none { color:var(--muted); font-weight:400; }
.fdue { font-size:12px; color:var(--muted); } .fdue.late { color:var(--err); font-weight:600; }
@media (max-width:760px) { .fitem { grid-template-columns:52px minmax(0, 1fr); } .fstate { grid-column:1 / -1; align-items:flex-start; text-align:left; } }

/* фото и видео в карточке */
.gallery { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:12px; }
.gitem { margin:0; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--soft); display:flex; flex-direction:column; }
.gitem img, .gitem video { display:block; width:100%; height:130px; object-fit:cover; background:#e9e9e9; }
.gitem video { object-fit:contain; background:#111; }
.gfile { display:grid; place-items:center; height:130px; font-weight:700; font-size:20px; letter-spacing:.06em; color:var(--ink2); text-decoration:none; background:#ececec; }
.gfile small { font-size:12px; font-weight:400; color:var(--muted); letter-spacing:0; }
.gitem figcaption { padding:7px 9px; font-size:12.5px; line-height:1.35; overflow-wrap:anywhere; }
.gitem figcaption form { margin:4px 0 0; }

/* нормативы */
.nlist { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.nlist li { display:flex; flex-direction:column; padding:7px 10px; border-radius:10px; background:var(--soft); border-left:4px solid #c9c9c9; font-size:13.5px; }
.nlist li.n-ok { border-left-color:var(--ok); } .nlist li.n-late { border-left-color:#c99a1a; }
.nlist li.n-pending { border-left-color:#7a8ca3; } .nlist li.n-overdue { border-left-color:var(--err); background:#fff3f2; }
.nlist li.n-overdue span, .nlist li.n-late span { font-weight:600; }
.nlist li.n-overdue span { color:var(--err); }
.nhelp { margin:0 0 6px; padding-left:18px; } .nhelp li { margin:3px 0; }
table.norms th small { display:block; text-transform:none; font-weight:400; letter-spacing:0; }
table.norms td input { width:76px; margin:0 auto; text-align:center; padding:6px; }
table.norms tr.grp td { background:#f3f3f3; font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); }

/* смена */
.shiftregs { max-width:none; }
pre.shifttext { max-height:none; }

/* аналитика */
.an-bar .tabs { margin:0; }
.an-custom { margin-top:10px; }
.an-line { display:flex; align-items:center; gap:10px 16px; flex-wrap:wrap; margin-top:10px; }
.an-regs .chips { max-width:640px; }
.an-editbar { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; background:#fbfaf4; border-color:#e6dcb5; }
.an-editbar .actions { margin:0; }
.an-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; align-items:start; }
.anw { margin:0; min-width:0; padding:14px 16px; }
.anw.size-s { grid-column:span 1; } .anw.size-m { grid-column:span 2; } .anw.size-l { grid-column:1 / -1; }
.an-grid.editing .anw { outline:2px dashed #d7cfae; outline-offset:-2px; }
.anw-h { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:8px; }
.anw-t { min-width:0; }
.anw-t h3 { margin:0; font-size:15px; font-weight:650; }
.anw-t small { display:block; font-size:12px; line-height:1.35; }
.anw-a { display:flex; gap:3px; flex-wrap:wrap; justify-content:flex-end; }
.anw-a button { padding:3px 8px; }
.kpi { padding:4px 0 2px; }
.kval { font-size:34px; font-weight:700; letter-spacing:-.02em; line-height:1.1; }
.kval small { font-size:15px; font-weight:500; color:var(--muted); margin-left:4px; }
.kdelta { margin-top:6px; font-size:12.5px; }
.kdelta.good { color:var(--ok); } .kdelta.bad { color:var(--err); } .kdelta.flat { color:var(--ink2); }
.hbars { display:flex; flex-direction:column; gap:3px; }
.hb { display:grid; grid-template-columns:minmax(90px, 38%) minmax(0, 1fr) auto; gap:8px; align-items:center; padding:3px 4px; border-radius:7px;
  text-decoration:none; color:var(--ink); font-size:13px; }
a.hb:hover { background:#f4f4f4; }
.hb-l { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hb-b { height:14px; border-radius:4px; }
.hb-b i { display:block; height:100%; border-radius:4px; }
.view-bar .hb.rest .hb-b i { background:#c3c3c3; }
.hb-v { font-weight:650; font-variant-numeric:tabular-nums; white-space:nowrap; }
.hb-v small { font-weight:400; color:var(--muted); }
.lchart { width:100%; height:auto; display:block; }
.lchart .gl { stroke-width:1; }
.lchart .ax { font-size:11px; }
.lchart .ln { fill:none; stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.lchart .ar { stroke:none; }
.lchart .dt { stroke-width:1.6; }
table.antable { font-size:13px; } table.antable td, table.antable th { padding:6px 8px; } table.antable tr.rest td { color:var(--muted); }
.an-none { margin:8px 0; }
.an-skel { height:96px; border-radius:10px; background:linear-gradient(90deg, #f1f1f1 0, #f8f8f8 40%, #f1f1f1 80%); background-size:200% 100%;
  animation:shimmerAn 1.2s linear infinite; }
@keyframes shimmerAn { from { background-position:150% 0; } to { background-position:-50% 0; } }
.andlg { width:min(940px, 100%); }
.presets { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:8px; margin:10px 0; }
.preset { display:flex; flex-direction:column; align-items:flex-start; text-align:left; gap:2px; padding:10px 12px; border-radius:12px; background:#fafafa; }
.preset:hover { background:#f1f1f1; border-color:#bdbdbd; }
.preset small { color:var(--muted); font-weight:400; font-size:12.5px; }
.aned { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; align-items:start; }
.aned-f label { margin-bottom:10px; }
.seg { margin:0 0 12px; }
.seg > .small { display:block; color:var(--ink2); font-weight:500; margin-bottom:4px; }
.segb { display:flex; flex-wrap:wrap; gap:4px; }
.segb button { padding:6px 12px; font-size:13px; border-radius:9px; }
.segb button.on { background:var(--dark); border-color:var(--dark); color:#fff; }
.segb button:disabled { opacity:.4; cursor:not-allowed; }
.ftree summary { cursor:pointer; margin:6px 0; }
.ftree .ttree { max-height:240px; overflow:auto; border-top:0; padding-top:0; }
.aned-p { position:sticky; top:0; }
.anprev { margin-top:6px; }
@media (max-width:1180px) { .an-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } .anw.size-m { grid-column:1 / -1; } }
@media (max-width:760px) { .an-grid { grid-template-columns:1fr; } .anw.size-s, .anw.size-m { grid-column:1 / -1; } .aned { grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce) { .an-skel { animation:none; } .fitem.fnew { animation:none; } }
#snd.sndwait { background:#f4ecd2; color:var(--warn); border-color:#e4d4a0; }

/* ---- v4.1: анимации новых разделов ---- */
/* галочка, которая «прорисовывается» */
svg.ck { width:1em; height:1em; vertical-align:-.14em; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; overflow:visible; }
svg.ck.draw path { stroke-dasharray:1; stroke-dashoffset:1; animation:ckDraw .45s cubic-bezier(.4,.1,.3,1) .06s forwards; }
@keyframes ckDraw { to { stroke-dashoffset:0; } }
/* число «прокручивается» */
.rollbox { display:inline-grid; overflow:hidden; vertical-align:bottom; }
.rollbox > span { grid-area:1 / 1; }
/* приём ДЧ «Легион»: цвет плашки меняется плавно */
.acc { transition:background-color .5s ease, color .5s ease; }
.acc svg.ck { margin-right:1px; }
.accline .acc { min-width:18px; text-align:center; }
.fst.just { display:inline-flex; align-items:center; gap:4px; }
.fst.just svg.ck { width:1.15em; height:1.15em; }
/* «Требует внимания»: шкала оставшегося времени */
.ap.ap-timed { position:relative; padding-bottom:6px; overflow:hidden; transition:background-color .4s ease, color .4s ease; }
.ap-bar { position:absolute; left:9px; right:9px; bottom:2px; height:3px; border-radius:3px; background:rgba(0,0,0,.08); overflow:hidden; }
.ap-bar b { display:block; height:100%; width:100%; border-radius:3px; background:#8a7a3a; transition:width .9s linear, background-color .4s; }
.ap.ap-warn { background:#f9e2b0; color:#7a5200; }
.ap.ap-warn .ap-bar b { background:#d08a00; }
.ap.ap-over .ap-bar b { background:var(--err); }
/* карточка сообщения: полосы «Нормативов доклада» */
.nlist .nbar { position:relative; display:block; height:8px; margin:6px 0 4px; border-radius:6px; background:#e9e9e9; overflow:visible; }
.nbar i { position:absolute; top:0; bottom:0; display:block; transition:width .8s cubic-bezier(.2,.7,.2,1), left .8s cubic-bezier(.2,.7,.2,1), background-color .4s; }
.nbar .nb-in { left:0; width:0; border-radius:6px 0 0 6px; background:#7a8ca3; }
.nbar .nb-over { left:0; width:0; background:var(--err); border-radius:0 6px 6px 0; }
.nbar .nb-mark { left:0; width:2px; top:-3px; bottom:-3px; margin-left:-1px; border-radius:2px; background:#3f3f3f; }
.n-ok .nbar .nb-in, .n-late .nbar .nb-in { background:var(--ok); }
.n-warn .nbar .nb-in { background:#d08a00; }
.n-overdue .nbar .nb-in { background:#d08a00; }
.nlist li { transition:background-color .4s ease, border-color .4s ease; }
.nlist li.n-warn { border-left-color:#d08a00; }
/* уведомление руководителю: «Понятно» с галочкой */
.toast button.okdone { color:var(--ok); border-color:#b9d9c3; background:#eef7f1; }
/* смена принята */
.handbar.hb-ok { border-left-color:var(--ok); background:#f3faf5; }
.hb-done { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hb-ic { display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--ok); color:#fff; font-size:15px; }
/* сдача смены: текст собирается по блокам */
#sh_text .shb { display:block; }
/* полоса загрузки фото и видео */
.upbar { flex:1 1 100%; display:flex; flex-direction:column; gap:5px; padding:8px 10px; border-radius:10px; background:#f4f6f8; border:1px solid #dfe4ea; }
.upbar-t { font-size:12.5px; color:var(--ink2); font-variant-numeric:tabular-nums; }
.upbar-b { height:6px; border-radius:6px; background:#dfe3e8; overflow:hidden; }
.upbar-b i { display:block; height:100%; width:0; border-radius:6px; background:#4a5d75; transition:width .25s linear; }
.upbar.saving .upbar-b i { background:linear-gradient(90deg, #4a5d75 0 40%, #8ea0b5 50%, #4a5d75 60% 100%); background-size:250% 100%; animation:upSave 1.1s linear infinite; }
.upbar.fail { background:#fbeceb; border-color:#efc8c4; } .upbar.fail .upbar-t { color:var(--err); font-weight:600; } .upbar.fail .upbar-b i { background:var(--err); }
@keyframes upSave { from { background-position:100% 0; } to { background-position:-150% 0; } }
.formbar > .upbar { order:-1; }
/* черновик: тихая отметка «черновик сохранён» и подсветка восстановленных полей */
.draftsaved { position:absolute; right:18px; top:-30px; padding:4px 10px; border-radius:999px; background:#fff; border:1px solid var(--line);
  box-shadow:0 4px 12px rgba(0,0,0,.08); font-size:12px; color:var(--muted); white-space:nowrap; pointer-events:none;
  opacity:0; transform:translateY(4px); transition:opacity .25s ease, transform .25s ease; }
.draftsaved.on { opacity:1; transform:none; }
.draftsaved svg.ck { color:var(--ok); margin-right:3px; }
.rst { animation:rstHl 1.9s ease-out both; }
@keyframes rstHl { 0%, 30% { background-color:#e4f1e8; border-color:#8fbf9f; box-shadow:0 0 0 3px rgba(47,122,72,.16); } 100% { background-color:#fff; } }
/* просмотр фото в карточке */
.gallery a[data-view] { cursor:zoom-in; display:block; }
.lb { position:fixed; inset:0; z-index:1000; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:rgba(14,14,14,.9); color:#fff; outline:none; }
.lb[hidden] { display:none; }
.lb-stage { position:relative; flex:1 1 auto; width:100%; display:flex; align-items:center; justify-content:center; min-height:0; padding:56px 64px 8px; }
.lb-img { max-width:100%; max-height:100%; object-fit:contain; border-radius:6px; box-shadow:0 18px 50px rgba(0,0,0,.45); user-select:none; will-change:transform; }
.lb-cap { flex:none; display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:center; padding:10px 16px 18px; font-size:13px; text-align:center; }
.lb-cap small { color:#c9c9c9; }
.lb-cap a { color:#fff; }
.lb button { position:absolute; border:0; background:rgba(255,255,255,.12); color:#fff; border-radius:50%; width:44px; height:44px; font-size:22px;
  line-height:44px; padding:0; cursor:pointer; transition:background .15s; }
.lb button:hover, .lb button:focus-visible { background:rgba(255,255,255,.26); }
.lb-x { top:12px; right:14px; }
.lb-prev { left:12px; top:50%; margin-top:-22px; } .lb-next { right:12px; top:50%; margin-top:-22px; }
.lb-n { position:absolute; top:22px; left:20px; font-size:13px; color:#d6d6d6; font-variant-numeric:tabular-nums; }
@media (max-width:640px) { .lb-stage { padding:56px 8px 8px; } .lb-prev, .lb-next { top:auto; bottom:72px; margin:0; } }
/* надёжность пароля */
.pwmeter { display:flex; align-items:center; gap:10px; margin:-4px 0 12px; font-size:12.5px; color:var(--muted); }
.pwm-b { flex:1; height:6px; border-radius:6px; background:#e6e6e6; overflow:hidden; }
.pwm-b i { display:block; height:100%; width:0; border-radius:6px; background:#c4c4c4; transition:width .35s cubic-bezier(.2,.7,.2,1), background-color .35s; }
.pwmeter[data-l="0"] .pwm-b i, .pwmeter[data-l="1"] .pwm-b i { background:var(--err); }
.pwmeter[data-l="2"] .pwm-b i { background:#d08a00; }
.pwmeter[data-l="3"] .pwm-b i { background:#6e9f3d; }
.pwmeter[data-l="4"] .pwm-b i { background:var(--ok); }
.pwmeter[data-l="0"] .pwm-t, .pwmeter[data-l="1"] .pwm-t { color:var(--err); }
.pwmeter[data-l="4"] .pwm-t, .pwmeter[data-l="3"] .pwm-t { color:var(--ok); }
.pwm-t { min-width:118px; font-weight:600; transition:color .3s; }
.pwmatch { min-height:18px; margin:-6px 0 10px; font-size:12.5px; font-weight:600; }
.pwmatch.ok { color:var(--ok); } .pwmatch.bad { color:var(--err); }
/* аналитика: при смене периода прежние значения видны, пока грузятся новые */
#an_grid.loading .anw-b { opacity:.5; transition:opacity .2s; }
.lchart .dt { transform-box:fill-box; transform-origin:center; }
@media (prefers-reduced-motion: reduce) {
  svg.ck.draw path { animation:none; stroke-dashoffset:0; }
  .acc, .ap.ap-timed, .ap-bar b, .nbar i, .nlist li, .upbar-b i, .pwm-b i, .draftsaved { transition:none; }
  .upbar.saving .upbar-b i, .rst { animation:none; }
}
html.lb-on { overflow:hidden; }

/* ---------- постовые ведомости (1.0.2): список, ведомость, общества ---------- */
.pvnew { align-items:flex-end; }
.pvnew label:first-of-type { width:180px; }
.pvlist td { vertical-align:middle; }
.pvlist td a { text-decoration:none; }
.pvacts { text-align:right; }
.pv-orgpick { max-width:520px; margin:0 0 12px; }
.pv-orgpick select { font-weight:600; font-size:15px; }
.pvlead { margin-top:0; }
.pvl-fill { display:inline-block; width:64px; height:6px; margin-right:8px; border-radius:3px; background:#e6e6e6; vertical-align:middle; overflow:hidden; }
.pvl-fill i { display:block; height:100%; width:var(--p); border-radius:3px; background:var(--ink2); }
.pvl-fill.full i { background:var(--ok); }

/* ведомость: заголовок и итоги */
.pv-head h1 { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:12px; }
.pv-wd { font-size:16px; font-weight:500; color:var(--muted); }
.pv-org { margin:2px 0 0; font-size:14px; color:var(--ink2); }
.pv-sum { display:grid; grid-template-columns:170px repeat(3, minmax(0, 1fr)); gap:14px 28px; align-items:end; padding:16px 20px; }
.pv-date { margin:0; }
.pv-stat { display:flex; flex-direction:column; gap:3px; min-width:0; }
.pv-stat > span { font-size:12.5px; color:var(--muted); }
.pv-stat b { font-size:18px; font-weight:650; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.pv-meter { display:block; height:6px; margin-top:5px; border-radius:3px; background:#e8e8e8; overflow:hidden; }
.pv-meter i { display:block; width:0; height:100%; border-radius:3px; background:var(--ink); transition:width .25s ease; }
.pv-meter.full i { background:var(--ok); }
.pv-saved { grid-column:1 / -1; margin:-4px 0 0; }
.pv-alert { grid-column:1 / -1; padding:10px 14px; border-radius:10px; background:#fbeceb; color:#7d1f19; font-size:13.5px; }
.pv-jump { padding:0 2px; border:0; background:none; color:inherit; font:inherit; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.pv-jump:hover { background:none; }
.pv-tools { display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; margin:0 0 10px; }
.pv-tools input[type=search] { width:340px; max-width:100%; margin:0; }
.pv-tools .check { margin:0; }
.pv-legend { flex-basis:100%; margin:0; max-width:980px; }

/* посты: слева № п/п – он же отметка заполнения (пусто – серый круг, частично – обведён, всё – закрашен) */
.pv-sheet { background:var(--card); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow); margin-bottom:14px; overflow:hidden; }
.pvp { display:grid; grid-template-columns:78px minmax(0, 1fr); border-top:1px solid var(--line); }
.pvp:first-child { border-top:0; }
.pvp.cont { border-top:1px dashed #d6d6d6; }
.pvp-no { display:flex; flex-direction:column; align-items:center; gap:6px; padding:16px 4px 12px; border-right:1px solid var(--line); background:#fbfbfb; }
.pvp-stamp { min-width:42px; height:42px; padding:0 7px; display:grid; place-items:center; border:2px solid #d4d4d4; border-radius:21px;
  background:#fff; color:var(--muted); font-size:16px; font-weight:700; font-variant-numeric:tabular-nums; }
.pvp.part .pvp-stamp { border-color:var(--ink); color:var(--ink); }
.pvp.full .pvp-stamp { border-color:var(--ink); background:var(--ink); color:#fff; }
.pvp.cont .pvp-stamp { border-style:dashed; font-weight:500; }
.pvp-cnt { font-size:11.5px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.pvp-main { min-width:0; padding:14px 18px 16px 20px; }
.pvp-top { display:flex; align-items:flex-start; gap:12px; }
.pvp-view { flex:1; min-width:0; display:flex; flex-wrap:wrap; gap:6px 30px; }
.pvp-title { flex:1 1 300px; min-width:0; }
.pvp-title b { display:block; font-size:15.5px; font-weight:650; line-height:1.35; }
.pvp-title span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; margin-top:2px;
  white-space:pre-line; font-size:13px; line-height:1.45; color:var(--muted); }
.pvp-meta { flex:0 1 auto; display:flex; flex-wrap:wrap; gap:4px 24px; max-width:540px; margin:0; }
.pvp-meta div { min-width:0; }
.pvp-meta dt { font-size:11.5px; color:var(--muted); }
.pvp-meta dd { margin:0; font-size:13.5px; line-height:1.4; }
.pvp-tog { flex:none; font-size:13px; margin:-4px -6px 0 0; }
.pvp-tog:hover { background:var(--soft); color:var(--ink); }
.pvp-edit { display:grid; grid-template-columns:2fr 1.3fr 110px 110px 1.2fr; gap:0 12px; margin:12px 0 2px; padding:12px 14px 2px;
  border-radius:12px; background:var(--soft); }
.pvp-edit[hidden] { display:none; }
.pvp-edit label { margin-bottom:10px; }
.pvp-edit p { grid-column:1 / -1; margin:0 0 10px; }
.pvp-edit textarea { min-height:40px; overflow:hidden; resize:none; }
.pvp-groups { display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.pvgr { display:grid; grid-template-columns:120px minmax(0, 1fr); gap:10px; align-items:start; }
.pvgr.nolabel { grid-template-columns:minmax(0, 1fr); }
.pvgr-l { padding-top:9px; font-size:13px; font-weight:600; color:var(--ink2); overflow-wrap:anywhere; }
.pvgr-rows { display:grid; grid-template-columns:repeat(auto-fill, minmax(400px, 1fr)); gap:8px 14px; }
/* строка охранника (1.0.9): пост | Ф.И.О. | заступил – сменился (серым – как в бланке) | примечание */
.pvf { display:grid; grid-template-columns:56px minmax(0, 1fr) 52px 52px 24px; gap:4px; align-items:center; min-width:0; }
.pvf-in { position:relative; min-width:0; }
.pvf input { margin:0; background:#fff; }
.pvf-in input { padding-right:38px; }
.pvf.many .pvf-in input { padding-right:62px; }
.pvf input::placeholder { color:#ababab; }
.pvf-in button { position:absolute; top:50%; width:28px; height:28px; padding:0; transform:translateY(-50%); border:0; border-radius:8px;
  background:transparent; color:var(--muted); line-height:1; }
.pvf-clear { right:6px; font-size:19px; }
.pvf.many .pvf-clear { right:33px; }
.pvf-clear:hover { background:#ececec; color:var(--ink); }
.pvf-in input:placeholder-shown ~ .pvf-clear { display:none; }
.pvf-del { right:4px; opacity:0; }
.pvf:hover .pvf-del, .pvf:focus-within .pvf-del { opacity:1; }
.pvf-del:hover { background:#f6e3e1; color:var(--err); }
.pvf.dup .pvf-in input { border-color:#d98b83; background:#fdf1f0; }
.pvf.notin .pvf-in input { text-decoration:underline dotted #b08a12; text-underline-offset:4px; }
.pvf-post, .pvf-tm { padding-left:4px !important; padding-right:4px !important; text-align:center; font-variant-numeric:tabular-nums; }
.pvf-post { font-weight:600; }
.pvf-post::placeholder { font-weight:400; }
.pvf .pvf-tm::placeholder { color:#8f8f8f; }
.pvf.chg .pvf-tm:not(:placeholder-shown) { border-color:#c99a2e; background:#fff7e3; color:#6b4b00; font-weight:650; }
.pvf-nb { width:24px; height:28px; padding:0; border:0; border-radius:8px; background:transparent; color:#9a9a9a; display:grid;
  place-items:center; opacity:0; transition:opacity .15s; }
.pvf:hover .pvf-nb, .pvf:focus-within .pvf-nb, .pvf-nb.on { opacity:1; }
.pvf-nb.on { color:var(--ink); }
.pvf-nb:hover { background:#ececec; color:var(--ink); }
.pvf-nb:focus-visible { outline:2px solid var(--ink); outline-offset:1px; opacity:1; }
.pvf-note { grid-column:2 / -1; padding:7px 10px !important; font-size:13px; background:#fffdf6 !important; }
.pvf-note.req { border-color:#d4a01c; background:#fff7df !important; box-shadow:0 0 0 3px rgba(212,160,28,.16); }
.pvf-note.req::placeholder { color:#9a6c00; }
.pv-alert.pv-alert-note { background:#fdf3dc; color:#6b4b00; }
.pvgr-add { justify-self:start; width:41px; height:41px; padding:0; border:1px dashed #c2c2c2; border-radius:10px; background:transparent;
  color:var(--muted); font-size:20px; line-height:1; }
.pvgr-add:hover { border-style:solid; border-color:#8c8c8c; background:var(--soft); color:var(--ink); }
.pvf-clear:focus-visible, .pvf-del:focus-visible, .pvgr-add:focus-visible, .pvp-tog:focus-visible, .pv-jump:focus-visible {
  outline:2px solid var(--ink); outline-offset:1px; opacity:1; }
.pv-none { margin:6px 2px 16px; }
.pvdoc { margin-top:4px; } .pvdoc summary { cursor:pointer; font-weight:600; font-size:14px; color:var(--ink2); }
.pvdoc .row2 { margin-top:12px; }
.pv-wide { grid-column:1 / -1; }
.pvbar { justify-content:flex-start; align-items:center; }
#pv_state.pv-dirty { color:var(--warn); font-weight:600; }
.pvdel { margin:4px 0 30px; text-align:right; }
@media (hover:none) { .pvf-del, .pvf-nb { opacity:1; } }
@media (prefers-reduced-motion:reduce) { .pv-meter i { transition:none; } }
/* настройка постов: общество */
.pv-orgbar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:6px 18px; padding:14px 18px; }
.pv-orgcur { flex:1 1 320px; min-width:0; }
.pv-orgcur label { margin:0; max-width:520px; }
.pv-orgcur select { font-weight:600; font-size:15px; }
.pv-orgcur small { display:block; font-size:12.5px; } .pv-orgcur b { display:block; font-size:17px; }
.pv-orgact summary { padding:8px 4px; cursor:pointer; font-weight:500; color:var(--ink2); }
.pv-orgact[open] { order:5; flex-basis:100%; }
.pv-orgform { display:flex; flex-wrap:wrap; align-items:flex-end; gap:0 12px; margin-top:4px; }
.pv-orgform label { flex:1 1 260px; }
.pv-orgform button { margin-bottom:12px; }
.pv-orgdel { margin:0 0 2px; }
.pv-orgdel button[disabled] { opacity:.45; cursor:not-allowed; }
/* настройка постов */
.pstools { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:12px; }
.pstools .small { margin-left:auto; }
details.pvb { padding:0; margin-bottom:10px; }
details.pvb > summary { display:flex; align-items:center; gap:12px; padding:12px 16px; cursor:pointer; list-style:none; }
details.pvb > summary::-webkit-details-marker { display:none; }
details.pvb[open] > summary { border-bottom:1px solid var(--line); }
.pvb-n { flex:none; min-width:42px; height:30px; padding:0 8px; display:grid; place-items:center; border-radius:9px; background:#ececec; font-weight:700; }
.pvb-t { font-weight:600; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pvb-m { flex:none; font-size:12.5px; color:var(--muted); max-width:38%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
details.pvb .fact { margin-left:auto; }
.pvb-body { padding:14px 16px 6px; }
.pvb-row { display:flex; gap:14px; align-items:flex-start; } .pvb-row .grow { flex:1; }
.pvb-num { width:110px; flex:none; }
.pvb-row4 { display:grid; grid-template-columns:1.4fr .7fr .7fr 1.2fr; gap:0 14px; }
.pvg { border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:var(--soft); margin-bottom:12px; }
.pvg-h { font-size:13px; font-weight:600; color:var(--ink2); margin-bottom:6px; }
.pvl textarea { font:13.5px/1.5 "Segoe UI", Inter, Roboto, Arial, sans-serif; }
@media (max-width:860px) {
  .pvb-row { flex-direction:column; gap:0; } .pvb-num { width:100%; }
  .pvb-row4 { grid-template-columns:1fr 1fr; }
  .pvb-m { display:none; }
  .pv-sum { grid-template-columns:1fr 1fr; gap:12px 18px; }
  .pvp { grid-template-columns:56px minmax(0, 1fr); }
  .pvp-no { padding:14px 2px 10px; }
  .pvp-stamp { min-width:36px; height:36px; font-size:14px; }
  .pvp-main { padding:12px 12px 14px 14px; }
  .pvgr { grid-template-columns:minmax(0, 1fr); gap:6px; }
  .pvgr-l { padding-top:0; }
  .pvgr-rows { grid-template-columns:minmax(0, 1fr); }
  .pvf-tm, .pvf-post { font-size:13px; }
  .pvp-edit { grid-template-columns:1fr 1fr; }
  .pvp-edit .pvp-e-name, .pvp-edit .pvp-e-eq, .pvp-edit .pvp-e-note { grid-column:1 / -1; }
  .pv-tools input[type=search] { width:100%; }
  #pv_state:not(.pv-dirty):not(.pv-busy):not(.pv-ok):not(.pv-err) { display:none; }
  .pvbar #pv_resync_btn { font-size:13px; text-align:left; }
}

/* ---------- постовые ведомости (1.0.3): сохранение без перезагрузки, подсказки Ф.И.О., перетаскивание, табель, почта ---------- */
.pvp-stamp { position:relative; transition:background-color .35s ease, color .35s ease, border-color .35s ease; }
.pvs-n { transition:opacity .2s ease; }
.pvs-ok { position:absolute; inset:0; display:grid; place-items:center; opacity:0; transition:opacity .2s ease; font-size:20px; }
.pvp-stamp.ok-on .pvs-n { opacity:0; }
.pvp-stamp.ok-on .pvs-ok { opacity:1; }
.pv-state { display:inline-flex; align-items:center; gap:6px; }
.pv-state .spin { width:13px; height:13px; border-color:rgba(0,0,0,.14); border-top-color:var(--ink); }
#pv_state.pv-ok { color:var(--ok); font-weight:600; }
#pv_state.pv-err { color:var(--err); font-weight:600; }
.pv-savebtn svg.ck { margin-right:5px; }
.pv-savebtn.pv-saved { background:var(--ok); border-color:var(--ok); color:#fff; }
.pv-savebtn { transition:background-color .25s ease, border-color .25s ease; }
.pv-mailst.ok { color:var(--ok); } .pv-mailst.err { color:var(--err); } .pv-mailst.wait { color:var(--ink2); }
/* подсказки Ф.И.О. */
.pv-ac { position:absolute; z-index:70; overflow:auto; padding:6px; background:#fff; border:1px solid #d9d9d9; border-radius:12px;
  box-shadow:0 10px 28px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.06); overscroll-behavior:contain; }
.pv-ac-h { padding:6px 10px 4px; font-size:11.5px; font-weight:600; letter-spacing:.02em; text-transform:uppercase; color:var(--muted); }
.pv-ac-h:not(:first-child) { margin-top:4px; border-top:1px solid var(--line); padding-top:9px; }
.pv-ac-it { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; padding:7px 10px; border-radius:8px; cursor:pointer; }
.pv-ac-it:hover, .pv-ac-it.on { background:#f0f2f5; }
.pv-ac-n { font-weight:600; color:var(--ink); }
.pv-ac-n mark { background:#fff0a6; color:inherit; border-radius:3px; padding:0 1px; }
.pv-ac-p { font-size:12.5px; color:var(--muted); }
.pv-ac-b { font-size:11.5px; font-weight:600; padding:1px 7px; border-radius:999px; white-space:nowrap; }
.pv-ac-b.busy { background:#fbeee0; color:#8a5300; }
.pv-ac-b.prev { background:#e9eef6; color:#2d4a72; }
/* перетаскивание */
.pvf-grip { left:4px; width:22px !important; cursor:grab; touch-action:none; opacity:.55; }
.pvf-grip:hover { opacity:1; background:#ececec !important; color:var(--ink) !important; }
.pvf-in input:placeholder-shown ~ .pvf-grip { display:none; }
.pvf-in input:not(:placeholder-shown) { padding-left:28px; }
.pv-ghost { position:fixed; left:0; top:0; z-index:90; pointer-events:none; padding:8px 14px; border-radius:10px; background:var(--ink);
  color:#fff; font-weight:600; font-size:14px; white-space:nowrap; box-shadow:0 10px 26px rgba(0,0,0,.25); }
.pvf.pv-dragsrc .pvf-in input { opacity:.45; border-style:dashed; }
.pvf.pv-droptgt .pvf-in input { border-color:var(--ink); background:#f5f8fc; box-shadow:0 0 0 3px rgba(38,38,38,.14); }
body.pv-dragging, body.pv-dragging * { cursor:grabbing !important; user-select:none; }
/* табель */
.pvt-bar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px 18px; }
.pvt-bar label { margin:0; min-width:220px; }
.pvt-sum { display:flex; flex-wrap:wrap; gap:10px 28px; margin-left:auto; }
.pvt-wrap { padding:0; overflow:auto; max-height:72vh; }
table.pvt { border-collapse:separate; border-spacing:0; font-size:13px; min-width:100%; }
table.pvt th, table.pvt td { border-bottom:1px solid var(--line); border-right:1px solid #efefef; padding:6px 6px; text-align:center;
  white-space:nowrap; background:#fff; }
table.pvt thead th { position:sticky; top:0; z-index:2; background:#f4f4f4; font-size:12px; font-weight:600; color:var(--ink2); }
table.pvt thead th small { display:block; font-size:10.5px; font-weight:500; color:var(--muted); }
table.pvt .pvt-n { width:34px; color:var(--muted); }
table.pvt .pvt-fio { position:sticky; left:0; z-index:1; text-align:left; font-weight:600; min-width:170px; box-shadow:1px 0 0 var(--line); }
table.pvt thead .pvt-fio { z-index:3; }
table.pvt .pvt-pos { text-align:left; color:var(--muted); font-size:12px; max-width:170px; overflow:hidden; text-overflow:ellipsis; }
table.pvt .pvt-d { min-width:30px; padding:6px 2px; font-variant-numeric:tabular-nums; }
table.pvt .pvt-d.we { background:#f7f7f7; }
table.pvt thead .pvt-d.we { background:#ececec; }
table.pvt thead .pvt-d.none { color:#b5b5b5; }
table.pvt td.pvt-d.on { font-weight:600; color:var(--ink); background:#eef3f9; }
table.pvt td.pvt-d.two { background:#fbe9e7; color:var(--err); }
table.pvt .pvt-t { font-variant-numeric:tabular-nums; min-width:54px; }
table.pvt .pvt-posts { text-align:left; color:var(--ink2); font-size:12px; }
table.pvt tfoot td { font-weight:600; background:#fafafa; border-top:2px solid var(--line); }
.pvt-note { margin:8px 2px 18px; }
/* почта в настройке */
.pv-mailform { max-width:760px; }
.pv-mailform textarea { font:14px/1.5 "Segoe UI", Inter, Roboto, Arial, sans-serif; }
.layout.builder:has(#ps_side[hidden]) { grid-template-columns:minmax(0, 1fr); }
@media (prefers-reduced-motion:reduce) {
  .pvp-stamp, .pvs-n, .pvs-ok, .pv-savebtn { transition:none; }
}
@media (max-width:860px) {
  .pvt-sum { margin-left:0; }
  .pv-ac-it { padding:9px 10px; }
  .pvf-grip { opacity:.8; }
}

/* ---------- постовые ведомости (1.0.4): группы строк со своим временем и оружием, «Всего», столбцы и подписи ---------- */
/* раскладка – по ширине самого блока (а не окна): в настройке справа панель «Сохранение» */
.pvg, .pvd-sec, .pvp-edit { container-type:inline-size; }
/* настройка постов: группа строк – поля в две строки, «Своё время, оружие…» раскрывается под ними */
.pvb-sub { margin:2px 0 6px; font-size:12.5px; font-weight:600; color:var(--ink2); }
.pvb-sub .muted { font-weight:400; }
.pvg-r { padding:8px 0 4px; border-top:1px solid var(--line); }
.pvg-r:first-of-type { border-top:0; padding-top:2px; }
.pvg-main { display:grid; grid-template-columns:minmax(0, 1.3fr) minmax(0, 1fr) 76px; gap:0 10px; align-items:end; }
.pvg-main .pvg-list { grid-column:1 / 2; }
.pvg-acts { grid-column:2 / 4; display:flex; align-items:center; justify-content:flex-end; gap:2px; margin-bottom:6px; }
.pvg-main label, .pvg-own label { margin-bottom:6px; }
.pvg-main label > span, .pvg-own label > span { display:block; font-size:12px; font-weight:600; color:var(--muted); white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; }
.pvg-main input, .pvg-main select, .pvg-own input, .pvg-own textarea { margin-top:2px; }
.pvg-acts .ghost { padding:6px 8px; }
.pvg-ownbtn { margin-right:auto; white-space:nowrap; font-size:12.5px; border:1px dashed #c4c4c4 !important; color:var(--ink2) !important; }
.pvg-ownbtn.on { border-style:solid !important; border-color:var(--ink2) !important; color:var(--ink) !important; font-weight:600; }
.pvg-ownbtn[aria-expanded="true"] { background:#fff; }
.pvg-own { display:grid; grid-template-columns:110px 110px minmax(0, 1.4fr) minmax(0, 1fr); gap:0 10px; margin:2px 0 4px;
  padding:8px 10px 2px; border-radius:10px; background:#fff; border:1px solid var(--line); }
.pvg-own[hidden] { display:none; }
.pvg-own textarea { min-height:38px; resize:vertical; }
.pvg-own-h { grid-column:1 / -1; margin:0 0 4px; font-size:12px; color:var(--muted); }
.pvg-foot { display:flex; flex-wrap:wrap; align-items:center; gap:6px 18px; padding-top:8px; border-top:1px solid var(--line); }
.pvg-foot .check { margin:0; font-size:13.5px; }
@container (min-width:900px) {
  .pvg-main { grid-template-columns:minmax(0, 1.3fr) minmax(0, 1fr) 76px minmax(0, 1.2fr) auto; }
  .pvg-main .pvg-list { grid-column:auto; }
  .pvg-acts { grid-column:auto; }
}
@container (max-width:560px) {
  .pvg-main { grid-template-columns:minmax(0, 1fr) 76px; }
  .pvg-main label:first-child, .pvg-main .pvg-list { grid-column:1 / -1; }
  .pvg-acts { grid-column:1 / -1; justify-content:flex-start; flex-wrap:wrap; }
  .pvg-own { grid-template-columns:1fr 1fr; }
  .pvg-own .pvg-w { grid-column:1 / -1; }
}
/* редактор шапки, столбцов и подписей (настройка постов и ведомость) */
.pvdoc-set .pvd-sec { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:18px 20px; margin-bottom:16px; box-shadow:var(--shadow); }
.pvdoc-in .pvd-sec { padding:14px 0 4px; border-top:1px solid var(--line); margin-top:12px; }
.pvd-sec h3 { margin:0 0 4px; font-size:15px; font-weight:650; }
.pvd-sec > p.small { margin:0 0 10px; }
.pvd-cols { display:flex; flex-direction:column; gap:6px; margin:4px 0 12px; }
.pvd-col { display:grid; grid-template-columns:auto 210px minmax(0, 1fr); gap:10px; align-items:center; padding:4px 8px; border-radius:10px; background:var(--soft); }
.pvd-col.off { opacity:.62; }
.pvd-col.off input[data-ctitle] { text-decoration:line-through; text-decoration-color:#aaa; }
.pvd-col input[data-ctitle] { margin:0; }
.pvd-col .check { margin:0; }
.pvd-ord { display:flex; gap:0; }
.pvd-ord .ghost { padding:4px 8px; }
.pvd-duty { max-width:620px; }
.pvd-duty small { display:block; margin-top:4px; font-weight:400; }
.pvd-signs { display:flex; flex-direction:column; gap:10px; margin:6px 0 12px; }
.pvd-sign { border:1px solid var(--line); border-radius:12px; background:var(--soft); }
.pvd-sign-h { display:flex; align-items:center; gap:10px; padding:8px 10px 6px 14px; border-bottom:1px solid var(--line); font-size:13.5px; }
.pvd-sign-b { display:grid; grid-template-columns:minmax(0, 1.3fr) minmax(0, 1fr); gap:14px; padding:10px 14px 4px; }
.pvd-sign-f { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; align-content:start; }
.pvd-sign-f label { margin-bottom:8px; }
.pvd-sign-f textarea { min-height:42px; resize:vertical; }
.pvd-checks { grid-column:1 / -1; display:flex; flex-direction:column; gap:4px; margin:0 0 10px; }
.pvd-checks .check { margin:0; font-size:13px; }
@container (max-width:780px) {
  .pvd-sign-b { grid-template-columns:1fr; gap:0; }
  .pvd-col { grid-template-columns:auto 180px minmax(0, 1fr); }
}
@container (max-width:520px) {
  .pvd-sign-f { grid-template-columns:1fr; }
  .pvd-col { grid-template-columns:auto 1fr; }
  .pvd-col input[data-ctitle] { grid-column:1 / -1; }
}
/* предпросмотр подписи – как в печати */
.pvd-prev { align-self:start; margin-bottom:10px; padding:10px 12px; border-radius:10px; background:#fff; border:1px dashed #cfcfcf;
  font:13px/1.35 "Times New Roman", Times, serif; color:#111; }
.pvd-prev .pp-t { margin-bottom:4px; white-space:pre-line; }
.pvd-prev .pp-row { display:grid; grid-template-columns:36% 22% 42%; align-items:end; gap:0; }
.pvd-prev .pp-who { text-align:right; padding-right:6px; white-space:pre-line; }
.pvd-prev .pp-u, .pvd-prev .pp-f { text-align:center; }
.pvd-prev .pp-f i { display:block; font-style:normal; border-bottom:1px solid #111; min-height:1.3em; }
.pvd-prev small { display:block; font-size:9.5px; color:#444; }
.pvd-prev .pp-r { text-align:right; margin-top:2px; }
/* ведомость: заголовок над группой, своё время и оружие группы, «Всего» в конце поста; правка групп */
.pvgr-head { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 12px; margin:2px 0 -2px; }
.pvgr-head b { font-size:13.5px; font-weight:650; color:var(--ink); }
.pvgr-own { font-size:12.5px; color:var(--ink2); padding:1px 8px; border-radius:7px; background:#f1f1f1; }
.pvgr-total { margin-top:2px; padding:8px 12px; border-radius:10px; background:var(--soft); font-size:13.5px; color:var(--ink2); }
.pvgr-total b { color:var(--ink); font-variant-numeric:tabular-nums; }
.pvp-e-total { grid-column:1 / -1; margin:0 0 10px; }
.pvge-wrap { grid-column:1 / -1; margin:0 0 8px; }
.pvge-h { font-size:12.5px; font-weight:600; color:var(--ink2); margin:0 0 4px; }
.pvge-h .muted { font-weight:400; }
.pvge { display:grid; grid-template-columns:22px minmax(0, 1.2fr) minmax(0, 1fr) 92px 92px minmax(0, 1.3fr) minmax(0, 1fr); gap:0 8px;
  align-items:start; padding:6px 0 0; border-top:1px dashed #dcdcdc; }
.pvge:first-of-type { border-top:0; }
.pvge label { margin-bottom:6px; font-size:12px; }
.pvge input, .pvge textarea { margin-top:2px; padding:7px 9px; }
.pvge textarea { min-height:38px; }
.pvge-n { display:grid; place-items:center; width:22px; height:22px; margin-top:27px; border-radius:6px; background:#ececec;
  font-size:12px; font-weight:700; color:var(--ink2); }
@container (max-width:900px) {
  .pvge { grid-template-columns:22px repeat(4, minmax(0, 1fr)); }
  .pvge label:nth-of-type(1), .pvge label:nth-of-type(2) { grid-column:span 2; }
  .pvge label:nth-of-type(5), .pvge label:nth-of-type(6) { grid-column:2 / -1; }
}
@container (max-width:520px) {
  .pvge { grid-template-columns:22px 1fr 1fr; }
  .pvge label:nth-of-type(n) { grid-column:2 / -1; }
  .pvge label:nth-of-type(3), .pvge label:nth-of-type(4) { grid-column:auto; }
}
/* 1.0.5: жирный фрагмент («Ж»), «Всего» под группой строк, вкладка «Оформление печати» */
.pv-lab { display:flex; align-items:center; flex-wrap:wrap; gap:4px; }
.pv-lab .pv-bold { margin-left:auto; }
button.pv-bold { font:700 14px/1 "Times New Roman", Times, serif; min-width:30px; padding:4px 8px; border:1px solid var(--line);
  border-radius:7px; background:#fff; color:var(--ink); }
button.pv-bold:hover { background:var(--soft); }
.pvg-tot { margin:0 8px 0 0; font-size:12.5px; white-space:nowrap; }
.pvge label.pvge-tot { grid-column:2 / -1; margin:-2px 0 8px; font-size:12.5px; }
.pvgr-total.sub { margin:2px 0 8px; padding:5px 12px; background:#f6f6f6; font-size:13px; }
.pvs-card { container-type:inline-size; }
.pvs-card .pvs-t { max-width:720px; }
@container (max-width:560px) { .pvs-m { grid-template-columns:repeat(2, minmax(0, 1fr)); width:100%; } }
/* 1.0.6: резервная копия базы */
.bk h2 { margin-bottom:6px; }
.bk-row { max-width:420px; grid-template-columns:1fr 1fr; }
.bk-alert { margin:0 0 12px; }
.bk-need { color:#8f2a22; font-weight:600; }
.bk-state { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.bk-acts { display:flex; flex-wrap:wrap; gap:8px; }
/* 1.0.26: подтверждение своим паролем – скачать копию, пароль и адреса копий, восстановление */
.bk-dl { display:flex; gap:6px; align-items:center; }
.bk-dl input[type=password] { width:150px; margin:0; }
.bk-me { max-width:560px; grid-template-columns:1fr; }
.bk-attn { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px; border-left:4px solid #8f2a22; }
.bk-attn p { margin:2px 0 0; color:#7d1f19; }

/* ======================= 1.0.7 ======================= */
:root {
  --ok-soft:#e5f1e9; --err-soft:#f8e4e2; --warn-soft:#f6eed3; --info:#2b6cb0; --info-soft:#e7eef8;
  --input:#fff; --input-line:#cfcfcf; --hover:var(--soft); --sb-thumb:rgba(0,0,0,.2); --sb-thumb-h:rgba(0,0,0,.42);
  --side-ink:#1f1f1f; color-scheme:light;
}
/* цвет шаблона карточки: --acc – значок и акценты, --acc-soft – фон, --acc-ink – текст на фоне */
.acc-graphite { --acc:#4b5260; --acc-soft:#eceef1; --acc-ink:#2f343c; }
.acc-blue { --acc:#2b6cb0; --acc-soft:#e6eef8; --acc-ink:#1d4f86; }
.acc-teal { --acc:#1f7f78; --acc-soft:#e2f2f0; --acc-ink:#155e59; }
.acc-green { --acc:#2f7a48; --acc-soft:#e5f1e9; --acc-ink:#235c36; }
.acc-amber { --acc:#a8650a; --acc-soft:#f6ecdc; --acc-ink:#7c4a06; }
.acc-chat { --acc:#5f646b; --acc-soft:#eceef1; --acc-ink:#3b3f46; }
.acc-red { --acc:#b3261e; --acc-soft:#f8e4e2; --acc-ink:#8a1d17; }
.acc-violet { --acc:#6b4fb8; --acc-soft:#eee9f8; --acc-ink:#4f3990; }

/* ---------- полоса прокрутки меню: тонкая, скруглённая, без стрелок; заметнее при наведении ---------- */
.sidebar { scrollbar-gutter:stable; }
.sidebar::-webkit-scrollbar { width:10px; height:10px; }
.sidebar::-webkit-scrollbar-track { background:transparent; margin:10px 0; }
.sidebar::-webkit-scrollbar-thumb { background-color:var(--sb-thumb); border:3px solid transparent; border-radius:999px; background-clip:padding-box;
  min-height:44px; }
.sidebar::-webkit-scrollbar-thumb:hover { background-color:var(--sb-thumb-h); border-width:2px; }
.sidebar::-webkit-scrollbar-thumb:active { background-color:var(--sb-thumb-h); border-width:2px; }
.sidebar::-webkit-scrollbar-button { display:none; width:0; height:0; }
.sidebar::-webkit-scrollbar-corner { background:transparent; }
@supports not selector(::-webkit-scrollbar) {
  .sidebar { scrollbar-width:thin; scrollbar-color:var(--sb-thumb) transparent; }
  .sidebar:hover { scrollbar-color:var(--sb-thumb-h) transparent; }
}
/* такие же полосы прокрутки – у всех прокручиваемых блоков внутри страниц (поля текста, таблицы, панели, списки) */
*:not(html):not(body)::-webkit-scrollbar { width:12px; height:12px; }
*:not(html):not(body)::-webkit-scrollbar-track { background:transparent; }
*:not(html):not(body)::-webkit-scrollbar-thumb { background-color:var(--sb-thumb); border:3px solid transparent; border-radius:999px;
  background-clip:padding-box; min-height:36px; }
*:not(html):not(body)::-webkit-scrollbar-thumb:hover, *:not(html):not(body)::-webkit-scrollbar-thumb:active {
  background-color:var(--sb-thumb-h); border-width:2px; }
*:not(html):not(body)::-webkit-scrollbar-button { display:none; width:0; height:0; }
*:not(html):not(body)::-webkit-scrollbar-corner { background:transparent; }
@supports not selector(::-webkit-scrollbar) { *:not(html):not(body) { scrollbar-width:thin; scrollbar-color:var(--sb-thumb) transparent; } }

/* ---------- переключатель темы ---------- */
.themesw { position:relative; display:grid; grid-template-columns:repeat(3, 1fr); gap:0; padding:3px; margin:0 2px;
  border-radius:12px; background:rgba(0,0,0,.09); box-shadow:inset 0 1px 2px rgba(0,0,0,.08); }
.themesw button { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; gap:4px; padding:6px 2px;
  border:0; border-radius:9px; background:transparent; color:var(--side-ink); font-size:12px; font-weight:550; opacity:.7; white-space:nowrap;
  transition:opacity .2s, color .2s; }
.themesw button:hover { background:transparent; opacity:1; }
.themesw button .ic { width:15px; height:15px; }
.themesw button[aria-checked="true"] { opacity:1; }
.themesw button:focus-visible { outline:2px solid var(--ink); outline-offset:-2px; }
.tsw-glide { position:absolute; z-index:0; top:3px; bottom:3px; left:3px; width:calc((100% - 6px) / 3); border-radius:9px;
  background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06); transition:transform .32s cubic-bezier(.3,.8,.3,1.1); }
.themesw[data-pos=dark] .tsw-glide { transform:translateX(100%); }
.themesw[data-pos=auto] .tsw-glide { transform:translateX(200%); }
.themesw.mini { display:inline-grid; width:auto; grid-template-columns:repeat(3, 38px); }
.themesw.mini button { padding:7px 0; }
.guestsw { position:fixed; top:14px; right:14px; z-index:5; background:rgba(255,255,255,.55); backdrop-filter:blur(6px); }
@media (prefers-reduced-motion: reduce) { .tsw-glide { transition:none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration:.22s; }

/* ---------- обсуждение ---------- */
.talk-h { display:flex; align-items:center; gap:8px; }
.talk-ic { display:inline-grid; place-items:center; width:30px; height:30px; border-radius:9px; background:var(--info-soft); color:var(--info); }
.talk-ic .ic { width:17px; height:17px; }
.talk-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.talk-list:empty { display:none; }
.tk { display:grid; grid-template-columns:32px minmax(0, 1fr); gap:10px; align-items:start; }
.tk-av { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--brand-l); color:var(--ink2); font-weight:700; font-size:13.5px; }
.tk.mine .tk-av { background:var(--info-soft); color:var(--info); }
.tk-b { min-width:0; padding:8px 12px 9px; border-radius:4px 14px 14px 14px; background:var(--soft); border:1px solid var(--line); }
.tk.mine .tk-b { background:var(--info-soft); border-color:transparent; }
.tk-h { display:flex; align-items:center; gap:8px; font-size:12.5px; }
.tk-h b { font-weight:650; } .tk-h time { color:var(--muted); }
.tk-del { margin:0 0 0 auto; } .tk-del button { padding:0 6px; line-height:20px; opacity:.45; } .tk:hover .tk-del button { opacity:1; }
.tk-t { white-space:pre-wrap; overflow-wrap:anywhere; margin-top:2px; font-size:14px; }
.tk.del .tk-t { color:var(--muted); font-size:13px; }
.talk-empty { margin:0 0 10px; }
.talk-form { margin-top:12px; }
.talk-form textarea { min-height:44px; margin:0; resize:none; }
.talk-acts { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px; }
.toast.talkn .toast-ic { background:var(--info); }
.toast.talkn .toast-ic::after { content:"…"; font-size:13px; line-height:0; margin-top:-6px; }
.toast .tn-t { display:block; margin:6px 0 2px; padding:6px 10px; border-radius:4px 10px 10px 10px; background:var(--soft); font-size:13px;
  white-space:pre-wrap; overflow-wrap:anywhere; max-height:7.5em; overflow:hidden; }
.pp-link { display:inline-flex; align-items:center; gap:4px; margin-left:8px; font-size:12.5px; color:var(--info); text-decoration:none; white-space:nowrap; }
.pp-link .ic { width:15px; height:15px; } .pp-link:hover { text-decoration:underline; }

/* ---------- подсказки формулировок ---------- */
.phr { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:6px 0 2px; font-size:13px; }
.phr-l { color:var(--muted); font-size:12px; font-weight:500; }
.phr-i { display:inline-flex; align-items:center; gap:7px; max-width:100%; padding:4px 10px; border-radius:999px; border:1px dashed var(--brand-d);
  background:var(--card); color:var(--ink); font-size:13px; font-weight:450; text-align:left; }
.phr-i:hover { background:var(--hover); border-style:solid; }
.phr-i.first { border-style:solid; border-color:var(--info); background:var(--info-soft); color:var(--ink); }
.phr-i kbd { font:600 10.5px/1 "Segoe UI", Arial, sans-serif; padding:3px 5px; border-radius:5px; background:var(--card); border:1px solid var(--line); color:var(--muted); }
.phr-x { padding:2px 7px; border:0; background:transparent; color:var(--muted); font-size:12px; }
.phr-x:hover { background:var(--hover); }

/* ---------- списки паспортов и карточек ---------- */
.cl-head { display:flex; align-items:center; justify-content:space-between; gap:12px 16px; flex-wrap:wrap; margin-bottom:16px; }
.cl-title { display:flex; align-items:center; gap:14px; }
.cl-ic { display:grid; place-items:center; width:52px; height:52px; border-radius:16px; background:var(--acc-soft); color:var(--acc); flex:none; }
.cl-ic .ic { width:27px; height:27px; }
.cl-n { display:inline-grid; place-items:center; min-width:30px; height:26px; padding:0 9px; margin-left:4px; border-radius:999px; background:var(--card);
  border:1px solid var(--line); font-size:14px; font-weight:650; color:var(--ink2); vertical-align:4px; }
.cl-acts { display:flex; flex-wrap:wrap; gap:8px; }
.cl-acts .pill { padding:1px 7px; font-size:12px; }
.cl-alerts { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 12px; }
.cl-alert { display:inline-flex; align-items:center; gap:8px; padding:9px 14px; border-radius:12px; font-weight:450; text-align:left; }
.cl-alert .dot { flex:none; }
.cl-alert b { font-size:16px; } .cl-alert small { color:var(--muted); margin-left:4px; text-decoration:underline; }
.cl-alert .dot { width:9px; height:9px; border-radius:50%; }
.cl-alert.over { background:var(--err-soft); border-color:transparent; color:var(--err); } .cl-alert.over .dot { background:var(--err); }
.cl-alert.soon { background:var(--warn-soft); border-color:transparent; color:var(--warn); } .cl-alert.soon .dot { background:#c99a12; }
.cl-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; padding:12px 14px; margin-bottom:8px; }
.cl-search { position:relative; flex:1 1 280px; margin:0; }
.cl-search .ic { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--muted); width:18px; height:18px; }
.cl-search input { margin:0; padding-left:38px; font-size:15px; }
.cl-filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; }
.cl-filters select { width:auto; margin:0; padding:8px 10px; font-size:13.5px; }
.cl-arch { margin:0; font-size:13.5px; white-space:nowrap; }
.cl-count { min-height:18px; margin:0 4px 6px; }
.cgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:14px; align-items:start; }
.ctile { position:relative; display:flex; flex-direction:column; gap:10px; padding:16px 16px 12px; border-radius:var(--r); background:var(--card);
  border:1px solid var(--line); box-shadow:var(--shadow); color:var(--ink); text-decoration:none; overflow:hidden;
  transition:transform .14s, box-shadow .14s, border-color .14s; }
.ctile::before { content:""; position:absolute; left:0; top:0; right:0; height:3px; background:var(--acc); opacity:.85; }
.ctile:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(0,0,0,.09); border-color:var(--brand-l); }
.ctile:focus-visible { outline:3px solid var(--acc); outline-offset:2px; }
.ctile.arch { opacity:.62; } .ctile.arch::before { background:var(--muted); }
.ct-top { display:flex; align-items:flex-start; gap:12px; }
.ct-ic { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:var(--acc-soft); color:var(--acc); flex:none; }
.ct-ic .ic { width:22px; height:22px; }
.ct-name { min-width:0; flex:1; }
.ct-name b { display:block; font-size:15.5px; line-height:1.3; font-weight:650; overflow-wrap:anywhere; }
.ct-name small { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; margin-top:2px; color:var(--ink2); font-size:13px; }
.ct-flag { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; flex:none; font-weight:800; font-size:13px; color:#fff; }
.ct-flag.dl-over { background:var(--err); } .ct-flag.dl-soon { background:#c99a12; }
.ct-kv { display:flex; flex-direction:column; gap:4px; padding:8px 10px; border-radius:10px; background:var(--soft); }
.ct-row { display:grid; grid-template-columns:minmax(0, 46%) minmax(0, 1fr); gap:10px; font-size:13px; align-items:baseline; }
.ct-row > small { color:var(--muted); font-size:12px; line-height:1.3; }
.ct-row > span { overflow-wrap:anywhere; }
.ct-row .dl-t { margin-left:6px; font-size:11.5px; white-space:nowrap; }
.ct-dls { display:flex; flex-wrap:wrap; gap:5px; }
.ct-foot { display:flex; align-items:center; gap:10px; margin-top:auto; padding-top:4px; font-size:12px; color:var(--muted); }
.ct-fill { display:inline-flex; align-items:center; gap:6px; }
.ct-fill i, .cv-fill i { position:relative; display:inline-block; width:46px; height:5px; border-radius:99px; background:var(--line); overflow:hidden; }
.ct-fill i::after, .cv-fill i::after { content:""; position:absolute; inset:0 auto 0 0; width:var(--p); border-radius:inherit; background:var(--acc); }
.ct-com { display:inline-flex; align-items:center; gap:3px; } .ct-com .ic { width:15px; height:15px; }
.ct-upd { margin-left:auto; }
.ct-foot .pill { padding:1px 8px; font-size:11.5px; }
.dl { display:inline-block; padding:1px 8px; border-radius:7px; font-weight:600; font-variant-numeric:tabular-nums; }
.dl.dl-ok { background:var(--ok-soft); color:var(--ok); } .dl.dl-soon { background:var(--warn-soft); color:var(--warn); }
.dl.dl-over { background:var(--err-soft); color:var(--err); }
.dl-t { font-size:12.5px; } .dl-t.dl-over { color:var(--err); } .dl-t.dl-soon { color:var(--warn); } .dl-t.dl-ok { color:var(--muted); }
.dlchip { display:inline-flex; align-items:center; gap:6px; padding:3px 9px; border-radius:999px; font-size:12px; font-weight:500; max-width:100%; }
.dlchip.dl-over { background:var(--err-soft); color:var(--err); } .dlchip.dl-soon { background:var(--warn-soft); color:var(--warn); }
.dlchip.dl-ok { background:var(--ok-soft); color:var(--ok); }
.dlchip.big { flex-direction:column; align-items:flex-start; gap:0; padding:7px 12px; border-radius:12px; font-size:12.5px; }
.dlchip.big b { font-weight:650; font-size:12.5px; }
.cl-none { display:flex; flex-direction:column; align-items:center; gap:6px; padding:34px 20px; text-align:center; }
.cl-none .ic { width:30px; height:30px; color:var(--muted); }
.cl-zero { max-width:760px; margin:24px auto; padding:34px 36px; text-align:center; }
.cl-zero-ic { display:inline-grid; place-items:center; width:76px; height:76px; border-radius:24px; background:var(--acc-soft); color:var(--acc); margin-bottom:6px; }
.cl-zero-ic .ic { width:38px; height:38px; }
.cl-zero h2 { font-size:20px; margin:8px 0; }
.cl-zero p { max-width:600px; margin:0 auto 6px; }
.cl-zero .actions { justify-content:center; }
@media (prefers-reduced-motion: no-preference) {
  .ctile { animation:fadeUp .32s both; }
  .cgrid .ctile:nth-child(2) { animation-delay:.03s; } .cgrid .ctile:nth-child(3) { animation-delay:.06s; }
  .cgrid .ctile:nth-child(4) { animation-delay:.09s; } .cgrid .ctile:nth-child(n+5) { animation-delay:.12s; }
}

/* ---------- паспорт / карточка: просмотр ---------- */
.cv-hero { position:relative; padding:0; overflow:hidden; background:linear-gradient(120deg, var(--acc-soft) 0%, var(--card) 62%); }
.cv-hero::before { content:""; position:absolute; inset:0 0 auto 0; height:4px; background:var(--acc); }
.cv-hero-in { display:flex; align-items:flex-start; gap:18px; padding:24px 24px 18px; flex-wrap:wrap; }
.cv-ic { display:grid; place-items:center; width:64px; height:64px; border-radius:18px; background:var(--acc); color:#fff; flex:none;
  box-shadow:0 8px 20px -8px var(--acc); }
.cv-ic .ic { width:32px; height:32px; stroke-width:1.7; }
.cv-ht { flex:1 1 320px; min-width:0; }
.cv-ht h1 { font-size:27px; line-height:1.2; margin:2px 0 8px; overflow-wrap:anywhere; }
.cv-chips { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.cv-chips .pill { display:inline-flex; align-items:center; gap:5px; background:var(--card); border:1px solid var(--line); }
.cv-chips .pill .ic { width:14px; height:14px; }
.cv-chips .pill.arch { background:var(--warn-soft); color:var(--warn); border-color:transparent; }
.cv-chips .pill.alias { color:var(--muted); }
.cv-fill { display:inline-flex; align-items:center; gap:7px; margin-left:4px; font-size:12.5px; color:var(--muted); }
.cv-acts { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.cv-more { position:relative; }
.cv-more > summary { list-style:none; padding:9px 10px; }
.cv-more > summary::-webkit-details-marker { display:none; }
.cv-menu { position:absolute; right:0; top:calc(100% + 6px); z-index:20; min-width:230px; padding:6px; border-radius:14px; background:var(--card);
  border:1px solid var(--line); box-shadow:0 14px 34px rgba(0,0,0,.16); }
.cv-menu form { margin:0; } .cv-menu button { width:100%; justify-content:flex-start; padding:9px 12px; color:var(--ink); }
.cv-menu button.danger { color:var(--err); }
.cv-strip { display:flex; flex-wrap:wrap; gap:8px; padding:12px 24px 16px; border-top:1px solid var(--line); background:color-mix(in srgb, var(--card) 70%, transparent); }
.qcall { display:inline-flex; align-items:center; gap:9px; padding:6px 12px 6px 8px; border-radius:12px; background:var(--card); border:1px solid var(--line);
  text-decoration:none; color:var(--ink); transition:border-color .15s, transform .15s; }
.qcall:hover { border-color:var(--acc); transform:translateY(-1px); }
.qcall .ic { width:28px; height:28px; padding:6px; border-radius:9px; background:var(--ok-soft); color:var(--ok); }
.qcall b { display:block; font-size:13.5px; font-variant-numeric:tabular-nums; } .qcall small { display:block; color:var(--muted); font-size:11.5px; line-height:1.2; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cv-grid { display:grid; grid-template-columns:minmax(0, 1fr) 380px; gap:16px; align-items:start; margin-top:16px; }
.cv-sec h2, .ce-sec h2 { display:flex; align-items:center; gap:10px; }
.cv-sic { display:inline-grid; place-items:center; width:32px; height:32px; border-radius:10px; background:var(--acc-soft); color:var(--acc); flex:none; }
.cv-sic .ic { width:18px; height:18px; }
.cv-se { margin-left:auto; font-weight:400; }
.cv-kv { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:2px 22px; margin:0; }
.cv-row { display:flex; flex-direction:column; gap:1px; padding:9px 0; border-bottom:1px solid var(--line); min-width:0; }
.cv-row.wide { grid-column:1 / -1; }
.cv-row dt { color:var(--muted); font-size:12.5px; }
.cv-row dd { margin:0; font-size:15px; overflow-wrap:anywhere; }
.cv-row.empty dd { color:var(--muted); font-size:13px; font-style:italic; }
.cv-text { white-space:pre-wrap; line-height:1.5; }
.cv-tw { overflow-x:auto; margin-top:4px; }
table.cv-t { width:100%; border-collapse:separate; border-spacing:0; font-size:14px; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.cv-t th { background:var(--soft); color:var(--ink2); font-weight:600; font-size:12.5px; text-align:left; padding:7px 10px; }
.cv-t td { padding:7px 10px; border-top:1px solid var(--line); vertical-align:top; }
.cv-t tr:hover td { background:var(--soft); }
a.tel { display:inline-flex; align-items:center; gap:5px; color:var(--ok); text-decoration:none; font-weight:550; white-space:nowrap; font-variant-numeric:tabular-nums; }
a.tel .ic { width:15px; height:15px; } a.tel:hover { text-decoration:underline; }
.cv-ln { display:inline-flex; align-items:center; gap:5px; color:var(--info); text-decoration:none; } .cv-ln .ic { width:16px; height:16px; }
.cv-ln:hover { text-decoration:underline; }
.yes { color:var(--ok); font-weight:600; }
.cv-toggle { margin:0 0 16px; }
.cv-orph h2 small { font-weight:400; }
.cv-blank { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.cv-blank > .ic { width:40px; height:40px; color:var(--acc); }
.cv-blank > div { flex:1 1 260px; } .cv-blank p { margin:4px 0 0; }
.cv-box h2 { display:flex; align-items:center; gap:8px; font-size:15px; }
.cv-box h2 .ic { width:18px; height:18px; color:var(--muted); }
.cv-box h2 .pill { margin-left:auto; }
.cv-posts, .cv-msgs, .cv-people, .cv-shifts { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.cv-posts li { padding:9px 11px; border-radius:11px; background:var(--soft); border:1px solid var(--line); }
.cvp-h { display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.cvp-who { margin-top:5px; } .cvp-who a { margin-left:6px; white-space:nowrap; }
.cv-msgs li { display:flex; flex-direction:column; padding-bottom:7px; border-bottom:1px solid var(--line); }
.cv-msgs li:last-child { border-bottom:0; padding-bottom:0; }
.cv-msgs a { text-decoration:none; } .cv-msgs a:hover b { text-decoration:underline; }
.cv-shifts li { display:grid; grid-template-columns:44px minmax(0, 1fr) auto; gap:10px; align-items:center; padding:6px 8px; border-radius:10px; background:var(--soft); }
.cvs-d { display:flex; flex-direction:column; align-items:center; line-height:1.1; } .cvs-d small { color:var(--muted); font-size:11px; }
.cvs-p { font-size:13px; min-width:0; } .cvs-p small { display:block; }
.cvs-a { text-decoration:none; padding:2px 8px; border-radius:8px; color:var(--muted); } .cvs-a:hover { background:var(--card); color:var(--ink); }
.cv-meta { margin:4px 6px 16px; line-height:1.5; }
.cv-all { display:inline-block; margin-top:10px; }
.cv-side .talk { margin-bottom:12px; }
@media (max-width:1180px) { .cv-grid { grid-template-columns:1fr; } }
@media (max-width:700px) {
  .cv-kv { grid-template-columns:1fr; } .cv-hero-in { padding:18px 16px 14px; } .cv-strip { padding:10px 16px 14px; }
  .cv-ht h1 { font-size:22px; } .cv-ic { width:52px; height:52px; border-radius:15px; } .cv-acts { width:100%; }
  .cv-t thead { display:none; } .cv-t, .cv-t tbody, .cv-t tr, .cv-t td { display:block; width:100%; }
  .cv-t tr { padding:6px 0; border-top:1px solid var(--line); } .cv-t tr:first-child { border-top:0; }
  .cv-t td { border:0; padding:2px 10px; } .cv-t td:empty { display:none; }
  .cv-t td::before { content:attr(data-l); display:block; color:var(--muted); font-size:11.5px; }
}

/* ---------- заполнение ---------- */
.ce-head { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:14px; }
.ce-head .cv-ic { width:54px; height:54px; border-radius:16px; } .ce-head .cv-ic .ic { width:27px; height:27px; }
.ce-ht { flex:1 1 300px; min-width:0; } .ce-ht h1 { overflow-wrap:anywhere; }
.ce-tpl { margin:0; } .ce-tpl select { min-width:220px; }
.ce-note { border-left-color:var(--info); }
.ce-grid { display:grid; grid-template-columns:minmax(0, 1fr) 270px; gap:16px; align-items:start; }
.ce-sec { scroll-margin-top:16px; }
.ce-fields { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:2px 16px; }
.ce-f { min-width:0; margin-bottom:12px; }
.ce-f.wide { grid-column:1 / -1; }
.ce-f > label:not(.check) { margin:0; }
.ce-f input, .ce-f select, .ce-f textarea { margin-top:4px; }
.ce-f.invalid input, .ce-f.invalid select, .ce-f.invalid textarea { border-color:var(--err); box-shadow:0 0 0 3px var(--err-soft); }
.ce-check { padding:10px 12px; margin:20px 0 0; border:1px solid var(--line); border-radius:10px; background:var(--soft); }
.ce-lbl { font-size:13px; color:var(--ink2); font-weight:500; margin-bottom:4px; }
.ce-date { display:flex; align-items:center; gap:10px; flex-wrap:wrap; } .ce-date input { width:150px; flex:none; }
.dlv { font-size:12.5px; font-weight:500; padding:2px 8px; border-radius:7px; margin-top:4px; }
.dlv:empty { display:none; }
.dlv.dl-ok { background:var(--ok-soft); color:var(--ok); } .dlv.dl-soon { background:var(--warn-soft); color:var(--warn); }
.dlv.dl-over { background:var(--err-soft); color:var(--err); }
.ce-tw { overflow-x:auto; }
table.ce-t { width:100%; border-collapse:collapse; }
.ce-t th { text-align:left; font-size:12px; font-weight:600; color:var(--muted); padding:2px 4px; }
.ce-t td { padding:2px 4px; } .ce-t input { margin:0; padding:7px 9px; }
.ce-t .ce-tx { width:34px; text-align:center; } .ce-t .ce-tx button { padding:4px 7px; }
.ce-addrow { margin-top:4px; padding:5px 10px; }
.ce-alias-row { display:flex; gap:8px; align-items:center; } .ce-alias-row input { margin:0; } .ce-alias-row button { flex:none; }
.ce-chips { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 8px; }
.ce-chip { display:inline-flex; align-items:center; gap:4px; padding:3px 4px 3px 11px; border-radius:999px; background:var(--acc-soft); color:var(--acc-ink); font-size:13.5px; }
.ce-chip button { padding:1px 6px; border:0; border-radius:999px; background:transparent; color:inherit; font-size:11px; opacity:.7; }
.ce-chip button:hover { opacity:1; background:rgba(0,0,0,.08); }
.ce-posts { margin-top:4px; border:1px solid var(--line); border-radius:12px; padding:0 12px; background:var(--soft); }
.ce-posts > summary { cursor:pointer; display:flex; align-items:center; gap:8px; padding:10px 0; font-weight:600; font-size:14px; }
.ce-posts > summary .ic { width:18px; height:18px; color:var(--muted); }
.ce-pf { border:0; margin:0 0 10px; padding:0; } .ce-pf legend { font-weight:600; font-size:13px; color:var(--ink2); margin-bottom:4px; }
.ce-pf label.check { margin:0 0 4px; font-size:13.5px; }
.ce-side { position:sticky; top:16px; }
.ce-nav { padding:14px; }
.ce-nav-h { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:6px; }
.ce-nav nav { display:flex; flex-direction:column; gap:1px; margin-bottom:12px; }
.ce-nav nav a { display:flex; align-items:center; gap:9px; padding:7px 9px; border-radius:9px; text-decoration:none; color:var(--ink2); font-size:13.5px; }
.ce-nav nav a:hover { background:var(--soft); }
.ce-nav nav a.cur { background:var(--acc-soft); color:var(--acc-ink); font-weight:600; }
.ce-nav nav a i { width:9px; height:9px; border-radius:50%; border:2px solid var(--brand-d); flex:none; transition:background .2s, border-color .2s; }
.ce-nav nav a.part i { border-color:var(--acc); background:linear-gradient(90deg, var(--acc) 50%, transparent 50%); }
.ce-nav nav a.done i { border-color:var(--acc); background:var(--acc); }
.ce-prog { display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
.ce-prog span { height:6px; border-radius:99px; background:var(--line); overflow:hidden; }
.ce-prog i { display:block; height:100%; width:0; border-radius:inherit; background:var(--acc); transition:width .3s; }
.ce-prog small { color:var(--muted); font-size:12px; }
.ce-nav .wide { margin-top:6px; }
.ce-bar { display:none; }
@media (max-width:1100px) {
  .ce-grid { grid-template-columns:1fr; } .ce-side { display:none; }
  .ce-bar { position:sticky; bottom:0; z-index:5; display:flex; justify-content:flex-end; gap:10px; padding:12px 0;
    background:linear-gradient(0deg, var(--bg) 72%, transparent); }
}
@media (max-width:640px) { .ce-fields { grid-template-columns:1fr; } .ce-date input { width:100%; } }

/* ---------- шаблоны ---------- */
.tp-lead { max-width:760px; margin:4px 0 0; }
.tp-list { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 14px; }
.tp-item { display:flex; align-items:center; gap:10px; padding:8px 14px 8px 9px; border-radius:13px; text-decoration:none; color:var(--ink);
  background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); }
.tp-item:hover { border-color:var(--brand-d); }
.tp-item.on { background:var(--acc-soft); border-color:var(--acc); }
.tp-item b { display:block; font-size:13.5px; font-weight:600; line-height:1.25; } .tp-item small { color:var(--muted); font-size:11.5px; }
.tp-ic { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; background:var(--acc-soft); color:var(--acc); flex:none; }
.tp-item.on .tp-ic { background:var(--acc); color:#fff; }
.tp-ic .ic { width:18px; height:18px; }
.tp-new { margin:0; } .tp-new button { font-size:13px; padding:8px 10px; color:var(--ink2); }
.tp { display:grid; grid-template-columns:minmax(0, 1fr) 360px; gap:16px; align-items:start; }
.te-head label { margin-bottom:10px; } .te-name { font-size:17px; font-weight:600; }
.te-row { display:flex; flex-wrap:wrap; align-items:center; gap:12px 22px; }
.te-lab { font-size:12.5px; color:var(--ink2); font-weight:500; margin-right:8px; }
.te-acc, .te-iconw { display:flex; align-items:center; gap:6px; }
.te-sw { width:26px; height:26px; padding:0; border-radius:50%; background:var(--acc); border:2px solid var(--card); box-shadow:0 0 0 1px var(--line); }
.te-sw:hover { background:var(--acc); transform:scale(1.08); }
.te-sw.on { box-shadow:0 0 0 2px var(--ink); }
.te-ibig { width:40px; height:40px; padding:0; border-radius:12px; background:var(--acc-soft); color:var(--acc); border:1px dashed var(--acc); }
.te-ibig:hover { background:var(--acc-soft); filter:brightness(.97); }
.te-def { margin:0; font-size:13.5px; }
.te-used { margin:10px 0 0; }
.te-sec { padding:14px 16px 10px; }
.te-sh { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.te-sic { width:36px; height:36px; padding:0; border-radius:11px; background:var(--acc-soft); color:var(--acc); border:1px dashed transparent; flex:none; }
.te-sic:hover { border-color:var(--acc); background:var(--acc-soft); }
.te-sic .ic { width:19px; height:19px; }
.te-stitle { margin:0; font-weight:650; font-size:15.5px; border-color:transparent; background:transparent; padding:6px 8px; }
.te-stitle:hover { border-color:var(--line); } .te-stitle:focus { background:var(--input); }
.te-sn { white-space:nowrap; }
.te-sa { display:flex; gap:2px; } .te-sa button, .te-more-b, .te-del { padding:5px 6px; }
.te-sa .ic, .te-more-b .ic, .te-del .ic { width:17px; height:17px; }
.te-fields { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.te-f { border:1px solid var(--line); border-radius:12px; background:var(--soft); transition:background .2s, border-color .2s; }
.te-f.open { background:var(--card); border-color:var(--brand-d); }
.te-f.bad { border-color:var(--err); }
.te-fr { display:grid; grid-template-columns:auto minmax(0, 1fr) minmax(150px, 230px) auto auto; align-items:center; gap:4px 6px; padding:6px 8px; }
.te-ord { grid-column:1; grid-row:1 / span 2; display:flex; flex-direction:column; align-self:center; }
.te-ord button { padding:1px 4px; line-height:0; } .te-ord .ic { width:15px; height:15px; }
.te-label { grid-column:2; grid-row:1; margin:0; padding:7px 9px; font-weight:500; }
.te-type { grid-column:3; grid-row:1; margin:0; padding:7px 8px; font-size:13px; }
.te-fr .te-more-b { grid-column:4; grid-row:1; } .te-fr .te-del { grid-column:5; grid-row:1; }
.te-flags { grid-column:2 / -1; grid-row:2; display:flex; gap:4px; flex-wrap:wrap; padding:0 0 2px; }
.te-flag { padding:3px 9px; border-radius:999px; font-size:12px; font-weight:500; background:var(--card); color:var(--muted); border:1px solid var(--line); }
.te-flag.on { background:var(--acc-soft); color:var(--acc-ink); border-color:var(--acc); }
.te-flag:disabled { opacity:.45; cursor:default; }
.te-more { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0 14px; padding:4px 12px 2px 40px; border-top:1px dashed var(--line); }
.te-more > label, .te-more > p { grid-column:1 / -1; } .te-more label { margin:8px 0; } .te-more p { margin:0 0 8px; }
.te-warn input { width:110px; display:block; }
.te-add { margin:8px 0 2px; padding:6px 10px; color:var(--ink2); }
.te-add .ic, .te-adds .ic { width:17px; height:17px; }
.te-empty { margin:4px 0; }
.te-adds { width:100%; margin:0 0 14px; padding:12px; border-style:dashed; color:var(--ink2); background:transparent; }
.te-bar { position:sticky; bottom:0; z-index:6; display:flex; align-items:center; justify-content:flex-end; gap:12px; padding:12px 14px; margin:0 -2px;
  border-radius:14px; background:var(--card); border:1px solid var(--line); box-shadow:0 -6px 24px rgba(0,0,0,.08); }
.te-st { font-size:13px; } .te-st.ok { color:var(--ok); } .te-st.warn { color:var(--warn); } .te-st.err { color:var(--err); }
.te-pop { position:absolute; z-index:60; display:grid; grid-template-columns:repeat(6, 38px); gap:4px; padding:8px; border-radius:14px; background:var(--card);
  border:1px solid var(--line); box-shadow:0 16px 40px rgba(0,0,0,.18); }
.te-ib { width:38px; height:38px; padding:0; border-radius:10px; border:1px solid transparent; background:transparent; color:var(--ink2); }
.te-ib:hover { background:var(--soft); } .te-ib.on { background:var(--ink); color:var(--card); }
.te-ib .ic { width:19px; height:19px; }
.tp-prev { position:sticky; top:16px; max-height:calc(100vh - 32px); overflow:auto; }
.tp-ph { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin:2px 4px 8px; }
.tp-card { border-radius:var(--r); background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); overflow:hidden; font-size:13px; }
.tp-hero { display:flex; align-items:center; gap:12px; padding:16px; background:linear-gradient(120deg, var(--acc-soft), var(--card) 70%); border-top:4px solid var(--acc); }
.tp-hero .cv-ic { width:44px; height:44px; border-radius:13px; } .tp-hero .cv-ic .ic { width:22px; height:22px; }
.tp-hero small { display:block; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.tp-hero b { font-size:16px; }
.tp-sec { padding:10px 14px 4px; border-top:1px solid var(--line); }
.tp-sh { display:flex; align-items:center; gap:7px; font-weight:650; font-size:13px; margin-bottom:4px; color:var(--ink); }
.tp-sh .ic { width:16px; height:16px; color:var(--acc); }
.tp-kv { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; margin:0; }
.tp-row { padding:5px 0; border-bottom:1px dashed var(--line); min-width:0; }
.tp-row.wide { grid-column:1 / -1; }
.tp-row dt { color:var(--muted); font-size:11px; } .tp-row dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.tp-row.inlist dt::after { content:" · в списке"; color:var(--acc); }
.tp-row .cv-t { font-size:11.5px; } .tp-row .cv-t th, .tp-row .cv-t td { padding:3px 6px; }
.tp-note { margin:8px 4px; }
.tp-del { margin-top:10px; }
@media (max-width:1300px) { .tp { grid-template-columns:minmax(0, 1fr) 300px; } }
@media (max-width:1100px) { .tp { grid-template-columns:1fr; } .tp-prev { position:static; max-height:none; } }
@media (max-width:640px) {
  .te-fr { grid-template-columns:auto minmax(0, 1fr) auto auto; }
  .te-type { grid-column:2 / -1; grid-row:2; } .te-flags { grid-column:2 / -1; grid-row:3; } .te-ord { grid-row:1 / span 3; }
  .te-fr .te-more-b { grid-column:3; } .te-fr .te-del { grid-column:4; }
  .te-more { padding-left:12px; grid-template-columns:1fr; }
}

/* ---------- из постовых ведомостей ---------- */
.si-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.si-top label { margin:0; } .si-top select { width:auto; margin-left:6px; }
.si-g { border:1px solid var(--line); border-radius:12px; padding:8px 14px 10px; margin:0 0 12px; }
.si-g legend { font-weight:600; padding:0 6px; }
.si-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:4px 16px; }
.si-list label { margin:0; font-size:14px; }

/* ---------- меню на телефоне: переключатель темы – во всю ширину ---------- */
@media (max-width:860px) { .themesw:not(.mini) { width:100%; margin:4px 0 0; } }

/* ================================================================ 1.0.8 ================================================================ */
/* ---------- значки событий и цвета типов ---------- */
.acc-orange { --acc:#c2570c; --acc-soft:#fbeadb; --acc-ink:#8f3f07; }
.acc-indigo { --acc:#4553b8; --acc-soft:#e8eaf8; --acc-ink:#323d8e; }
.evs { width:18px; height:18px; flex:none; display:block; }
.evi { position:relative; display:inline-grid; place-items:center; width:30px; height:30px; flex:none; border-radius:9px;
  background:var(--acc-soft, #eceef1); color:var(--acc, #4b5260); vertical-align:middle; }
.evi .evs { width:18px; height:18px; }
.evi.sm { width:26px; height:26px; border-radius:8px; } .evi.sm .evs { width:16px; height:16px; }
.evi.lg { width:44px; height:44px; border-radius:13px; } .evi.lg .evs { width:26px; height:26px; }
.evi.xl { width:56px; height:56px; border-radius:16px; } .evi.xl .evs { width:32px; height:32px; }
.evi.urg::after { content:"!"; position:absolute; top:-5px; right:-5px; width:15px; height:15px; border-radius:50%; background:#d93025; color:#fff;
  font:800 10.5px/15px system-ui, sans-serif; text-align:center; box-shadow:0 0 0 2px var(--card); }
.evi.lg.urg::after, .evi.xl.urg::after { width:18px; height:18px; font-size:12px; line-height:18px; top:-6px; right:-6px; }
.evchip { display:inline-flex; align-items:center; gap:9px; min-width:0; }
.evchip .evt { display:flex; flex-direction:column; min-width:0; line-height:1.25; }
.evchip .evt small { color:var(--acc-ink, var(--muted)); font-size:11.5px; font-weight:600; letter-spacing:.01em; }
.evchip .evt b, .evchip .evt span { font-weight:500; color:var(--ink); }
.tcdot { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--acc); flex:none; }

/* ---------- Конструктор → «Значки» ---------- */
.icbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; padding:12px 14px; margin-bottom:14px; }
.icbar .tabs { margin:0; } .icbar .tab small { opacity:.7; margin-left:3px; }
.icbar > .primary { margin-left:auto; display:inline-flex; align-items:center; gap:6px; }
.icgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:10px; }
.ictile { display:flex; align-items:center; justify-content:flex-start; gap:11px; min-width:0; min-height:62px; padding:11px 12px; text-align:left; border:1px solid var(--line);
  border-radius:14px; background:var(--card); color:var(--ink); box-shadow:var(--shadow); font-weight:400; }
.ictile:hover { background:var(--card); border-color:#cfd3da; transform:translateY(-1px); box-shadow:0 8px 20px rgba(0,0,0,.08); }
.ictile .ict-t { display:flex; flex-direction:column; min-width:0; gap:2px; }
.ictile .ict-t b { font-weight:550; font-size:13.5px; line-height:1.25; overflow:hidden; text-overflow:ellipsis; display:-webkit-box;
  -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.ictile .ict-t small { display:flex; gap:5px; flex-wrap:wrap; font-size:11px; color:var(--muted); min-height:14px; }
.ictile i { font-style:normal; padding:0 6px; border-radius:6px; background:var(--soft); }
.ictile i.ict-k { background:var(--info-soft); color:var(--info); }
.icdlg { width:min(860px, 100%); padding:0; }
.icd-h { display:flex; align-items:center; gap:14px; padding:18px 20px 12px; border-bottom:1px solid var(--line); }
.icd-ht { flex:1; min-width:0; } .icd-ht h3 { margin:0 0 2px; }
.icd-x { padding:6px 10px; }
.icd-b { display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); gap:18px; padding:16px 20px; }
.icd-l label { margin-bottom:10px; }
textarea.mono, .mono { font-family:ui-monospace, Consolas, "Cascadia Mono", monospace; font-size:12.5px; line-height:1.5; }
.icd-tools { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:8px; }
.icd-tools label.btn { margin:0; cursor:pointer; }
.icd-pv { border:1px solid var(--line); border-radius:14px; padding:14px; background:var(--soft); display:flex; flex-direction:column; gap:14px; }
.icd-sizes { display:flex; align-items:flex-end; gap:18px; color:var(--ink); }
.icd-sz svg { width:var(--s); height:var(--s); display:block; }
.icd-chips { display:flex; flex-wrap:wrap; gap:8px; }
.icd-msg { min-height:18px; margin:10px 0 6px; } .icd-msg.err { color:var(--err); } .icd-msg.ok { color:var(--ok); } .icd-msg.warn { color:var(--warn); }
.icd-use { color:var(--ink2); }
.icd-a { padding:12px 20px 18px; border-top:1px solid var(--line); margin:0; }
@media (max-width:760px) { .icd-b { grid-template-columns:1fr; } .icbar > .primary { margin-left:0; } }

/* окошко выбора значка */
.icpick { position:absolute; z-index:9600; padding:10px; border-radius:14px; box-shadow:0 18px 44px rgba(0,0,0,.2); }
.icp-h .cl-search input { padding-left:12px; font-size:14px; }
.icp-g { display:grid; grid-template-columns:repeat(auto-fill, minmax(42px, 1fr)); gap:4px; max-height:260px; overflow:auto; margin-top:8px; padding:2px; }
.icp-i { display:flex; flex-direction:column; align-items:center; gap:2px; padding:5px 2px; border:1px solid transparent; border-radius:10px;
  background:transparent; font-size:10px; color:var(--muted); }
.icp-i:hover { background:var(--hover, #f2f2f2); }
.icp-i.on { border-color:var(--acc, #4b5260); background:var(--soft); }
.icp-i.auto { grid-column:span 2; flex-direction:row; justify-content:center; gap:6px; font-size:11.5px; }
.icp-none { margin:8px 4px 2px; }

/* Конструктор → «Типы и подтипы»: значок и цвет */
.bt-ic { padding:0; border:0; background:transparent; border-radius:11px; line-height:0; flex:none; }
.bt-ic:hover { background:transparent; transform:scale(1.06); }
.bt-ic:focus-visible { outline:2px solid var(--acc); outline-offset:2px; }
#types .bblock { border-top:3px solid var(--acc); }
.bt-colrow { display:flex; align-items:center; gap:8px; margin:10px 0 0 54px; flex-wrap:wrap; }
.bt-cols { display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; }
.bt-col { width:22px; height:22px; padding:0; border-radius:50%; border:2px solid var(--card); background:var(--acc);
  box-shadow:0 0 0 1px rgba(0,0,0,.12); }
.bt-col:hover { background:var(--acc); transform:scale(1.12); }
.bt-col.on { outline:2px solid var(--ink); outline-offset:2px; }
.bt-col.on.guess { outline:2px dashed var(--acc); }
.bt-auto { padding:3px 9px; border-radius:999px; font-size:12px; }
.bt-auto.on { background:var(--dark); border-color:var(--dark); color:#fff; }
.bt-emo { display:flex; flex-direction:column; align-items:center; gap:0; margin:0; }
.bt-emo input.emoji { width:50px; font-size:16px; padding:3px; }
.bt-emo small { font-size:10px; color:var(--muted); line-height:1.1; }
@media (max-width:640px) { .bt-colrow { margin-left:0; } }

/* ---------- единые заголовки страниц и пустые состояния ---------- */
.phead { display:flex; align-items:center; gap:12px 16px; flex-wrap:wrap; margin-bottom:16px; }
.ph-ic { display:grid; place-items:center; width:48px; height:48px; border-radius:15px; background:var(--acc-soft); color:var(--acc); flex:none; }
.ph-ic .ic { width:25px; height:25px; }
.ph-t { flex:1 1 auto; min-width:0; }
.ph-t h1 { margin:0; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ph-n { display:inline-flex; min-width:30px; height:26px; padding:0 9px; align-items:center; justify-content:center; border-radius:999px;
  background:var(--soft); color:var(--ink2); font-size:14px; font-weight:650; font-variant-numeric:tabular-nums; }
.ph-sub { margin:2px 0 0; color:var(--muted); font-size:13.5px; }
.ph-a { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-left:auto; }
.ph-a .btn, .ph-a button { display:inline-flex; align-items:center; gap:6px; }
.ph-a .ic { width:17px; height:17px; }
.emptyst { display:flex; flex-direction:column; align-items:center; gap:6px; padding:34px 22px 30px; text-align:center; }
.es-ic { display:grid; place-items:center; width:64px; height:64px; border-radius:20px; background:var(--acc-soft); color:var(--acc); margin-bottom:6px; }
.es-ic .ic { width:31px; height:31px; }
.es-t { font-size:17px; font-weight:650; }
.es-p { max-width:560px; margin:0; }
.emptyst .actions { justify-content:center; margin-top:8px; }
.emptyst.slim { padding:20px 16px; } .emptyst.slim .es-ic { width:46px; height:46px; border-radius:14px; } .emptyst.slim .es-ic .ic { width:23px; height:23px; }

/* ---------- журнал: компактные строки, значок события, шапка остаётся видна при прокрутке ---------- */
table.jlist td { padding:9px 10px; }
table.jlist .jnum .num { font-weight:650; }
table.jlist .jnum .mst { margin-left:4px; }
table.jlist .jnum .tag, table.jlist .jnum .jacc { display:block; width:max-content; margin-top:5px; }
table.jlist .jtime { color:var(--ink2); font-variant-numeric:tabular-nums; } table.jlist .jtime span { white-space:nowrap; }
table.jlist .jreg { color:var(--ink2); font-weight:550; }
table.jlist .jev { min-width:130px; max-width:300px; }
table.jlist .jev .evchip { align-items:flex-start; }
table.jlist .jobj { max-width:250px; } table.jlist .jobj .small { margin-top:2px; }
.clamp2, .clamp1 { display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; } .clamp2 { -webkit-line-clamp:2; } .clamp1 { -webkit-line-clamp:1; }
table.jlist td.fab { min-width:140px; max-width:460px; }
table.jlist .jauth { white-space:nowrap; }
.clamp { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.clamp.open { display:block; -webkit-line-clamp:unset; }
.jmore { margin-top:3px; padding:1px 8px; border:0; border-radius:7px; background:var(--soft); color:var(--ink2); font-size:12px; font-weight:600; }
.jmore:hover { background:var(--line); }
.tchip .tcdot { margin:0 2px 0 1px; }
/* шапка «прилипает», когда таблица помещается по ширине (иначе – прокрутка вбок, как раньше); класс fit ставит ui.js */
.jwrap.fit { overflow:visible; }
.jwrap.fit table.jlist thead th { position:sticky; top:0; z-index:3; box-shadow:0 1px 0 var(--line), 0 6px 12px -8px rgba(0,0,0,.18); }
@media (max-width:700px) {
  .jwrap.card { padding:0; background:transparent; border:0; box-shadow:none; overflow:visible; }
  table.jlist, table.jlist tbody { display:block; }
  table.jlist thead { display:none; }
  table.jlist tbody tr { display:grid; grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"num time" "ev ev" "obj obj" "fab fab" "reg auth";
    gap:6px 10px; padding:12px 14px; margin-bottom:10px; border:1px solid var(--line); border-radius:16px; background:var(--card); box-shadow:var(--shadow); }
  table.jlist td { display:block; padding:0; border:0; max-width:none; min-width:0; }
  table.jlist tbody tr:hover td { background:transparent; }
  table.jlist .jnum { grid-area:num; white-space:normal; } table.jlist .jnum .tag, table.jlist .jnum .jacc { display:inline-block; margin:0 0 0 6px; }
  table.jlist .jtime { grid-area:time; text-align:right; font-size:13px; }
  table.jlist .jev { grid-area:ev; max-width:none; min-width:0; }
  table.jlist .jobj { grid-area:obj; max-width:none; font-size:13.5px; } table.jlist .jobj:empty { display:none; }
  table.jlist td.fab { grid-area:fab; max-width:none; font-size:13.5px; }
  table.jlist .jreg { grid-area:reg; font-size:12.5px; } table.jlist .jauth { grid-area:auth; font-size:12.5px; color:var(--muted); text-align:right; }
  table.jlist tbody tr[data-href]:hover td:first-child { box-shadow:none; }
  .jwrap .mlegend { padding:0 4px; }
}

/* значки событий в ленте, «Требует внимания», уведомлениях */
.fhead { align-items:center; }
.fhead .evi { margin-right:1px; }
.attn-h { align-items:center; }
.attn-h .evi { margin-right:2px; }
.urgdot { display:inline-grid; place-items:center; width:16px; height:16px; margin-left:3px; border-radius:50%; background:#d93025; color:#fff;
  font:800 10.5px/1 system-ui, sans-serif; vertical-align:1px; }
.toast.sticky .toast-t b.tn-h { display:flex; align-items:center; gap:8px; }
.toast.sticky .toast-t b.tn-h .evi { flex:none; }
.toast.sticky .toast-t b.tn-h .evi.urg::after { box-shadow:0 0 0 2px var(--card); }

/* ---------- карточка сообщения: шапка со значком, текст по блокам, история – лентой ---------- */
.mcard { padding-top:20px; }
.mhero { display:flex; align-items:flex-start; gap:16px; margin-bottom:16px; }
.mh-t { flex:1; min-width:0; }
.mh-t h1 { margin:1px 0 3px; }
.mh-ev { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 7px; font-size:15px; }
.mh-type { color:var(--acc-ink); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.mh-sep { color:var(--muted); }
.mh-ev b { font-weight:600; }
.mh-urg { padding:1px 8px; border-radius:999px; background:#fbe3e1; color:#b3261e; font-size:11.5px; font-weight:700; letter-spacing:.02em; }
.mh-st { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; margin-top:7px; }
.mh-st .mline { margin:0; }
.mh-chip { color:var(--muted); }
.mh-a { margin:0; flex:none; }
.msecs { display:flex; flex-direction:column; gap:0; border:1px solid var(--line); border-radius:14px; overflow:hidden; margin:0 0 10px; }
.msec { padding:11px 16px 12px; border-top:1px solid var(--line); }
.msec:first-child { border-top:0; }
.ms-h { display:flex; align-items:center; gap:8px; margin-bottom:5px; font-size:11.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.ms-n { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 5px; border-radius:6px; background:var(--acc-soft); color:var(--acc-ink); font-size:11px; letter-spacing:0; }
.ms-t { font:14.5px/1.6 "Segoe UI", Arial, sans-serif; overflow-wrap:anywhere; }
.msec:first-child .ms-t { font-weight:500; }
.msec.foot { background:var(--soft); color:var(--ink2); }
.msec.foot .ms-t { font-size:13.5px; }
@media (max-width:640px) { .mhero { flex-wrap:wrap; } .mh-a { width:100%; } .mh-a button { width:100%; } .mhero > .evi.xl { width:48px; height:48px; } }

/* история изменений – лента событий */
.tl { list-style:none; margin:4px 0 0; padding:0; position:relative; }
.tl::before { content:""; position:absolute; left:7px; top:12px; bottom:14px; width:2px; border-radius:2px; background:var(--line); }
.tl-i { position:relative; }
.hist .tl .ver { border-top:0; padding:7px 0 7px 26px; }
.tl-dot { position:absolute; left:1px; top:12px; width:14px; height:14px; border-radius:50%; background:var(--card); border:2.5px solid #9aa3b2; }
.tl-i.first .tl-dot { border-color:var(--acc, #4b5260); background:var(--acc-soft, #eee); }
.tl-i.last .tl-dot { border-color:#2b6cb0; background:#2b6cb0; box-shadow:0 0 0 3px rgba(43,108,176,.18); }
.tl-h { display:flex; flex-direction:column; gap:1px; }
.tl-st { display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
.tl-st:empty { display:none; }
.hist .tl .ver summary .st, .hist .tl .ver summary .pill { margin-left:0; }
.hist .tl .ver[open] .tl-dot { box-shadow:0 0 0 4px var(--acc-soft, rgba(0,0,0,.06)); }
.hist .tl .ver summary:hover .tl-h b { text-decoration:underline; text-underline-offset:3px; }

/* ---------- главная «Сегодня» ---------- */
.td-kpis { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; margin-bottom:16px; }
.td-k { display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:12px; align-items:center; padding:14px 16px;
  border:1px solid var(--line); border-radius:16px; background:var(--card); box-shadow:var(--shadow); color:var(--ink); text-decoration:none;
  transition:transform .18s, box-shadow .18s, border-color .18s; }
.td-k:hover { transform:translateY(-2px); box-shadow:0 10px 26px rgba(0,0,0,.09); border-color:#cfd3da; }
.td-ki { grid-row:1 / span 2; display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:var(--acc-soft); color:var(--acc); }
.td-ki .ic { width:22px; height:22px; }
.td-kn { font-size:28px; font-weight:700; line-height:1.1; font-variant-numeric:tabular-nums; letter-spacing:-.01em; }
.td-kl { font-size:12.5px; color:var(--muted); line-height:1.25; }
.td-k.hot { border-color:#efc4bf; background:linear-gradient(135deg, #fff5f4, var(--card) 60%); }
.td-k.hot .td-kn { color:#b3261e; }
.td-k.warn .td-kn { color:#9a5b06; }
.td-grid { display:grid; grid-template-columns:minmax(0, 1.35fr) minmax(0, 1fr); gap:16px; align-items:start; }
.td-side { display:flex; flex-direction:column; gap:16px; min-width:0; }
.td-sec { padding:16px 18px; min-width:0; }
.td-h { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.td-h h2 { margin:0; font-size:16px; }
.td-all { display:inline-flex; align-items:center; gap:4px; font-size:13px; color:var(--ink2); text-decoration:none; white-space:nowrap; }
.td-all .ic { width:15px; height:15px; transition:transform .18s; } .td-all:hover .ic { transform:translateX(3px); }
.td-tl { list-style:none; margin:0; padding:0; position:relative; }
.td-tl::before { content:""; position:absolute; left:66px; top:10px; bottom:10px; width:2px; background:var(--line); border-radius:2px; }
.td-ev { position:relative; display:grid; grid-template-columns:40px 26px minmax(0, 1fr) auto; align-items:center; gap:10px; padding:7px 8px 7px 4px;
  border-radius:12px; color:var(--ink); text-decoration:none; }
.td-ev:hover { background:var(--hover, #f5f5f5); }
.td-ev time { font-variant-numeric:tabular-nums; font-weight:600; color:var(--ink2); font-size:13.5px; text-align:right; white-space:nowrap; }
.td-ev .evi { position:relative; z-index:1; box-shadow:0 0 0 3px var(--card); }
.td-evt { display:flex; flex-direction:column; min-width:0; }
.td-evt b { font-weight:550; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.td-evt small { color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.td-acc .acc { white-space:nowrap; }
.td-row { position:relative; display:flex; align-items:center; gap:10px; padding:8px 6px; border-radius:12px; color:var(--ink); text-decoration:none; }
.td-row + .td-row { border-top:1px solid var(--line); border-radius:0; }
.td-row:hover { background:var(--hover, #f5f5f5); border-radius:12px; }
.td-row.late::before { content:""; position:absolute; left:-8px; top:10px; bottom:10px; width:3px; border-radius:3px; background:var(--err); }
.td-rt { display:flex; flex-direction:column; gap:3px; min-width:0; }
.td-rt b { font-weight:550; font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.td-rt small { color:var(--muted); font-size:12px; }
.td-probs { display:flex; flex-wrap:wrap; gap:4px; } .td-probs .ap { font-size:11.5px; padding:1px 7px; }
.td-late { color:var(--err); font-weight:600; }
.td-sec .emptyst.slim { padding:14px 10px 10px; }
@media (max-width:1100px) { .td-grid { grid-template-columns:1fr; } }
@media (max-width:640px) {
  .td-kpis { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
  .td-k { padding:11px 12px; column-gap:9px; } .td-ki { width:34px; height:34px; border-radius:10px; } .td-kn { font-size:23px; }
  .td-ev { grid-template-columns:44px 26px minmax(0, 1fr); } .td-acc { grid-column:3; }
  .td-ev time { font-size:13px; }
  .td-tl::before { left:70px; }
}

/* ---------- центр уведомлений ---------- */
.nc-btn { position:relative; }
.nc-n { position:absolute; top:-3px; right:-4px; min-width:17px; height:17px; padding:0 4px; border-radius:999px; background:#d93025; color:#fff;
  font:700 10.5px/17px system-ui, sans-serif; text-align:center; box-shadow:0 0 0 2px var(--side-bg, #e9e9e9); pointer-events:none; }
.ncp { position:fixed; z-index:9700; left:280px; bottom:16px; width:min(400px, calc(100vw - 24px)); max-height:min(70vh, 640px); display:flex;
  flex-direction:column; padding:0; border-radius:18px; box-shadow:0 24px 60px rgba(0,0,0,.24); overflow:hidden; }
.ncp-h { display:flex; align-items:center; gap:8px; padding:14px 14px 10px 18px; border-bottom:1px solid var(--line); }
.ncp-h b { font-size:16px; } .ncp-h small { color:var(--muted); flex:1; }
.ncp-h button { padding:5px 9px; }
.ncp-l { list-style:none; margin:0; padding:6px; overflow:auto; flex:1; }
.nci a { display:grid; grid-template-columns:30px minmax(0, 1fr) auto; gap:10px; align-items:start; padding:9px 10px; border-radius:12px;
  color:var(--ink); text-decoration:none; position:relative; }
.nci a:hover { background:var(--hover, #f5f5f5); }
.nci .nci-ic { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:var(--soft); color:var(--ink2); }
.nci .nci-ic .ic { width:17px; height:17px; }
.nci-b { display:flex; flex-direction:column; gap:2px; min-width:0; }
.nci-b b { font-weight:550; font-size:13.5px; line-height:1.3; }
.nci-b small { color:var(--muted); font-size:12px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.nci time { font-size:11.5px; color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; padding-top:2px; }
.nci.unread .nci-b b::before { content:""; display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; background:#2b6cb0; vertical-align:1px; }
.nci.read { opacity:.72; }
.nci .nci-live { display:inline-block; margin-top:3px; padding:0 7px; border-radius:999px; background:#fbe3e1; color:#b3261e; font-size:11px; font-weight:650; width:max-content; }
.ncp .emptyst { padding:26px 16px; border:0; box-shadow:none; }
.toasts .nc-ctl { align-self:flex-end; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; pointer-events:none; }
.toasts .nc-ctl button { pointer-events:auto; display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px;
  border:1px solid var(--line); background:var(--card); box-shadow:var(--shadow); font-size:12.5px; font-weight:600; color:var(--ink); }
.toasts .nc-ctl button.nc-show { border-color:#efc4bf; color:#b3261e; }
.toast.nc-col { display:none; }
@media (max-width:860px) { .ncp { left:12px; right:12px; width:auto; bottom:12px; } }

/* ---------- переключатель «Анимации» ---------- */
.motsw { display:flex; align-items:center; gap:7px; margin:0 4px; padding:2px 6px; font-size:12.5px; font-weight:550; color:var(--side-ink);
  cursor:pointer; user-select:none; opacity:.85; }
.motsw:hover { opacity:1; }
.motsw .ic { width:16px; height:16px; }
.motsw span { flex:1; }
.motsw input { position:absolute; opacity:0; width:1px; height:1px; pointer-events:none; }
.msw-track { position:relative; width:34px; height:20px; border-radius:999px; background:rgba(0,0,0,.18); transition:background .2s; flex:none; }
.msw-track i { position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25);
  transition:transform .22s cubic-bezier(.3,.8,.3,1.2); }
.motsw input:checked + .msw-track { background:#2f7a48; }
.motsw input:checked + .msw-track i { transform:translateX(14px); }
.motsw input:focus-visible + .msw-track { outline:2px solid var(--ink); outline-offset:2px; }
.toast.nc-hid { display:none; }

/* ---------- «Анимации: меньше» – как «уменьшить движение» в системе ---------- */
html[data-motion=less] *, html[data-motion=less] *::before, html[data-motion=less] *::after {
  animation-duration:.01ms !important; animation-delay:0s !important; animation-iteration-count:1 !important;
  transition-duration:.01ms !important; transition-delay:0s !important; scroll-behavior:auto !important; }
.toast.has-ev > .toast-ic { display:none; }
.toast.has-ev .toast-t b.tn-h .evi { width:30px; height:30px; border-radius:9px; } .toast.has-ev .toast-t b.tn-h .evi .evs { width:18px; height:18px; }

/* ---------- аналитика: цвета через переменные (светлая и тёмная тема), прошлый период, подсказки ---------- */
:root { --an-line:#2b6cb0; --an-area:rgba(43,108,176,.10); --an-prev:#98a2b3; --an-bar:#5c7aa6; --an-grid:#ececec; --an-axis:#8a8a8a; --an-track:#f0f0f0; }
.lchart .gl { stroke:var(--an-grid); }
.lchart .ax { fill:var(--an-axis); }
.lchart .ln { stroke:var(--an-line); stroke-width:2.2; }
.lchart .ln.pv { stroke:var(--an-prev); stroke-width:1.7; stroke-dasharray:5 4; }
.lchart .ar { fill:var(--an-area); }
.lchart .dt { fill:var(--card); stroke:var(--an-line); transition:r .12s; }
.lchart .dt.on { r:5px; stroke-width:2.4; }
.lchart .lc-guide { stroke:var(--an-axis); stroke-width:1; stroke-dasharray:3 3; opacity:.7; pointer-events:none; }
.lchart { cursor:crosshair; touch-action:pan-y; }
.lc-leg { display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:4px; color:var(--muted); }
.lc-leg span { display:inline-flex; align-items:center; gap:6px; }
.lg-now, .lg-pv { display:inline-block; width:16px; height:0; border-top:2.4px solid var(--an-line); border-radius:2px; vertical-align:middle; }
.lg-pv { border-top:2px dashed var(--an-prev); }
.hb-b { position:relative; background:var(--an-track); overflow:visible; }
.hb-b i { background:var(--an-bar); }
.hb.typed .hb-b i { background:var(--acc); }
.hb-pv { position:absolute; top:-3px; bottom:-3px; width:2px; margin-left:-1px; border-radius:2px; background:var(--ink2); opacity:.55; }
.hb-l { display:flex; align-items:center; gap:6px; min-width:0; }
.hb-lt { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hb-ic { display:inline-grid; place-items:center; width:20px; height:20px; border-radius:6px; background:var(--acc-soft); color:var(--acc); flex:none; }
.hb-ic .evs { width:13px; height:13px; }
.dmk { font-size:10px; } .dmk.bad { color:var(--err); } .dmk.good { color:var(--ok); }
.an-cmp { margin:0; display:inline-flex; align-items:center; gap:6px; }
.antip { position:fixed; left:0; top:0; z-index:9800; display:flex; flex-direction:column; gap:3px; min-width:150px; max-width:300px; padding:9px 12px;
  border-radius:12px; background:rgba(25,27,31,.94); color:#f2f3f5; font-size:12.5px; line-height:1.35; pointer-events:none;
  box-shadow:0 10px 28px rgba(0,0,0,.25); }
.antip b { font-size:13px; font-weight:650; }
.antip small { color:#b9bec7; }
.antip .at-v { display:flex; align-items:center; gap:7px; }
.antip .lg-now { border-top-color:#8cb8ee; } .antip .lg-pv { border-top-color:#aab2c0; }
.antip .at-d { font-weight:700; color:#d5d9e0; } .antip .at-d.bad { color:#ff9d93; } .antip .at-d.good { color:#86d6a3; }
.antip .at-h { margin-top:2px; color:#9aa1ac; }

/* ================= анимации 1.0.8 ================= */
/* 1. переходы между страницами (View Transitions): меню на месте, содержимое мягко сменяется */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion=less]) body.app .sidebar { view-transition-name:sidebar; }
  html:not([data-motion=less]) body.app > main { view-transition-name:page; }
}
::view-transition-group(sidebar), ::view-transition-old(sidebar), ::view-transition-new(sidebar) { animation:none; }
::view-transition-old(page) { animation:vtOut .1s ease-in both; }
::view-transition-new(page) { animation:vtIn .22s .02s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vtOut { to { opacity:0; } }
@keyframes vtIn { from { opacity:0; transform:translateY(10px); } }
/* 2. плитка «вырастает» в карточку, номер сообщения переезжает из журнала в карточку, строки журнала – на новые места */
.ctile, .cv-hero { view-transition-class:morph; }
.ct-ic, .cv-ic { view-transition-class:morphic; }
table.jlist tbody tr { view-transition-class:row; }
a.num, .msgno { view-transition-class:num; }
::view-transition-group(.morph) { animation-duration:.34s; animation-timing-function:cubic-bezier(.2,.75,.2,1); overflow:clip; border-radius:16px; }
::view-transition-old(.morph), ::view-transition-new(.morph) { height:100%; object-fit:cover; object-position:left top; animation-duration:.34s; }
::view-transition-group(.morphic), ::view-transition-group(.num) { animation-duration:.34s; animation-timing-function:cubic-bezier(.2,.75,.2,1); }
::view-transition-group(.row) { animation-duration:.32s; animation-timing-function:cubic-bezier(.2,.75,.2,1); }
::view-transition-old(.row):only-child, ::view-transition-old(.morph):only-child, ::view-transition-old(.morphic):only-child,
::view-transition-old(.num):only-child { animation:vtOut .1s ease-in both; }
::view-transition-new(.row):only-child, ::view-transition-new(.morph):only-child, ::view-transition-new(.morphic):only-child,
::view-transition-new(.num):only-child { animation:vtIn .22s cubic-bezier(.2,.7,.2,1) both; }
/* 3. смена темы – круг «разливается» от кнопки переключателя */
html.vt-theme .sidebar, html.vt-theme > body > main, html.vt-theme [style*="view-transition-name"] { view-transition-name:none !important; }
html.vt-theme::view-transition-old(root) { animation:none; }
html.vt-theme::view-transition-new(root) { animation:vtReveal .55s cubic-bezier(.4,0,.2,1); }
@keyframes vtReveal { from { clip-path:circle(0 at var(--vtx, 50%) var(--vty, 50%)); } to { clip-path:circle(var(--vtr, 150vmax) at var(--vtx, 50%) var(--vty, 50%)); } }
/* 6. сроки: просроченное один раз «пульсирует», цифры счётчиков перелистываются */
@keyframes dlPulse { 0%, 100% { box-shadow:0 0 0 0 rgba(217,48,37,0); } 45% { box-shadow:0 0 0 6px rgba(217,48,37,.22); } }
.dlchip.dl-over, .ct-flag.dl-over, .ap.ap-over, .cl-alert.over, .td-row.late::before, .ap-timed.ap-over { animation:dlPulse 1.3s .6s 2 ease-out; }
.odo { display:inline-flex; line-height:1; vertical-align:top; }
.odo-c { display:inline-block; height:1em; overflow:hidden; position:relative; line-height:1; }
.odo-s { display:block; white-space:pre; line-height:1; text-align:center; will-change:transform; }
.td-kn .odo, .ph-n .odo, .cl-n .odo { height:1em; }
/* 8. «Сохранить» → «✓ Сохранено», комментарий «улетает» в обсуждение */
button.btn-done, .btn.btn-done { background:var(--ok) !important; border-color:var(--ok) !important; color:#fff !important; display:inline-flex;
  align-items:center; justify-content:center; gap:6px; }
button.btn-done svg.ck { width:1.05em; height:1.05em; }
.tk-fly { position:fixed; z-index:9900; margin:0; padding:8px 12px 9px; border-radius:4px 14px 14px 14px; background:var(--info-soft); color:var(--ink);
  font-size:14px; line-height:1.45; white-space:pre-wrap; overflow:hidden; pointer-events:none; box-shadow:0 12px 30px rgba(0,0,0,.15); }
.btabs { margin:-6px 0 14px; } .btabs .tabs { margin:0; }
.nsub { display:inline-flex; align-items:center; gap:8px; }
.cv-msgs li.cv-msg { flex-direction:row; align-items:flex-start; gap:10px; }
.cv-msgs li.cv-msg > span:last-child { display:flex; flex-direction:column; min-width:0; }
.tag.tag-ev { display:inline-flex; align-items:center; gap:6px; padding-left:3px; }
.tag.tag-ev .evi.sm { width:20px; height:20px; border-radius:6px; } .tag.tag-ev .evi.sm .evs { width:13px; height:13px; }
.tag.tag-ev .evi.urg::after { width:11px; height:11px; font-size:8px; line-height:11px; top:-4px; right:-4px; }
.toasts.allcol { top:auto; bottom:16px; }
.ms-dot { width:7px; height:7px; border-radius:50%; background:var(--acc); flex:none; }
table.jlist .jobj, table.jlist .jev .evt span, table.jlist td.fab { overflow-wrap:anywhere; }

/* ---------- 1.0.9: «Доп. информация» – пункт меню и страница: номер сообщения или выбор из последних ---------- */
.ai-find { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 14px; }
.ai-in { flex:1 1 320px; margin:0; }
.ai-box { position:relative; display:block; margin-top:4px; }
.ai-box .ic { position:absolute; left:12px; top:50%; width:18px; height:18px; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
.ai-box input { width:100%; margin:0; padding-left:40px; font-size:15px; }
.ai-find button { display:inline-flex; align-items:center; gap:6px; }
.ai-find button .ic { width:16px; height:16px; }
.ai-note { flex-basis:100%; margin:0; }
.ai-list .td-row { padding:9px 8px; }
.ai-go { margin-left:auto; display:inline-flex; align-items:center; gap:4px; flex:none; font-size:12.5px; font-weight:600; color:var(--ink2);
  padding:5px 10px; border-radius:999px; background:var(--soft); white-space:nowrap; }
.ai-go .ic { width:14px; height:14px; transition:transform .18s; }
.ai-row:hover .ai-go { background:var(--ink); color:#fff; }
.ai-row:hover .ai-go .ic { transform:translateX(2px); }
@media (max-width:640px) { .ai-go { font-size:0; padding:6px; gap:0; } .ai-go .ic { width:16px; height:16px; } }
/* телефон: Ф.И.О. – во всю строку рядом с постом, время «заступил – сменился» и примечание – строкой ниже */
@media (max-width:600px) {
  .pvgr-rows { grid-template-columns:minmax(0, 1fr); }
  .pvf { grid-template-columns:52px minmax(0, 1fr) minmax(0, 1fr) 28px; grid-template-areas:"post fio fio fio" ". t0 t1 nb" ". note note note";
    gap:4px; padding-bottom:4px; }
  .pvf-post { grid-area:post; } .pvf-in { grid-area:fio; } .pvf-nb { grid-area:nb; justify-self:center; }
  .pvf-tm[data-x=start] { grid-area:t0; } .pvf-tm[data-x=end] { grid-area:t1; } .pvf-note { grid-area:note; }
}

/* ================= 1.0.10: рабочие места – «Рабочее место ОД» и «Лента ДЧ «Легион»» =================
   Шапка-пульт: тёмная панель с часами МСК, полосой оперативных суток и вкладками. Цвета пульта – через переменные:
   панель тёмная в обеих темах (tools/gen_dark.py такие правила не перекрашивает). */
.vh { position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.wp { --wp-bg:#1c2431; --wp-bg2:#2a3850; --wp-ink:#f2f5fa; --wp-ink2:#a9b5c8; --wp-line:rgba(255,255,255,.085); --wp-chip:rgba(255,255,255,.075);
  --wp-hover:rgba(255,255,255,.07); --wp-on:#ffffff; --wp-on-ink:#172030; --wp-sh:0 18px 38px -24px rgba(16,24,38,.75), 0 2px 6px rgba(16,24,38,.12);
  --wp-id1:#3d7ff0; --wp-id2:#2257c9; --wp-idg:rgba(61,127,240,.55); --wp-snow:#ffffff; --wp-amber-ink:#3b2700; --wp-on-sh:0 10px 20px -12px rgba(0,0,0,.7);
  --l-blue:#5b9cf0; --l-indigo:#8c97f5; --l-teal:#36bfb3; --l-amber:#f2b13d; --l-red:#f0645a; --l-green:#46c27a; --l-violet:#a68bf0;
  --l-orange:#f08a4b; --l-graphite:#9aa6b8;
  --g-amber:0 0 0 3px rgba(242,177,61,.2), 0 0 14px rgba(242,177,61,.5); --g-red:0 0 0 3px rgba(240,100,90,.24), 0 0 16px rgba(240,100,90,.6);
  --g-red2:0 0 0 5px rgba(240,100,90,.12), 0 0 22px rgba(240,100,90,.85); --g-green:0 0 0 3px rgba(70,194,122,.22), 0 0 12px rgba(70,194,122,.7);
  position:relative; margin:-4px 0 18px; border-radius:20px; color:var(--wp-ink); overflow:hidden;
  background:radial-gradient(130% 160% at 0% 0%, var(--wp-bg2) 0%, var(--wp-bg) 58%); box-shadow:var(--wp-sh); }
.wp-dch { --wp-id1:#7b63f2; --wp-id2:#5440d6; --wp-idg:rgba(123,99,242,.55); --wp-bg2:#2f2f55; }
.wp::after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; box-shadow:inset 0 1px 0 var(--wp-line); }
.wp-top { display:flex; align-items:center; gap:12px 18px; padding:18px 22px 14px; flex-wrap:wrap; }
.wp-ic { display:grid; place-items:center; width:48px; height:48px; flex:none; border-radius:15px; color:var(--wp-snow);
  background:linear-gradient(135deg, var(--wp-id1), var(--wp-id2)); box-shadow:0 8px 20px -8px var(--wp-idg); }
.wp-ic .ic { width:26px; height:26px; }
.wp-id { min-width:0; flex:1 1 260px; }
.wp-title { margin:0; font-size:24px; font-weight:700; letter-spacing:-.015em; line-height:1.15; color:var(--wp-ink); }
.wp-meta { display:flex; flex-wrap:wrap; gap:2px 0; margin:4px 0 0; font-size:13.5px; color:var(--wp-ink2); }
.wp-meta span + span::before { content:""; display:inline-block; width:4px; height:4px; margin:0 10px 2px; border-radius:50%; background:var(--wp-ink2); opacity:.6; }
.wp-clock { display:grid; justify-items:end; gap:3px; margin-left:auto; text-align:right; }
.wp-time { display:flex; align-items:baseline; gap:6px; line-height:1; }
.wp-time b { font-size:34px; font-weight:650; letter-spacing:.01em; font-variant-numeric:tabular-nums; color:var(--wp-ink); }
.wp-time small { font-size:12px; font-weight:700; letter-spacing:.06em; color:var(--wp-ink2); }
.wp-local { font-size:12.5px; color:var(--wp-ink2); } .wp-local b { color:var(--wp-ink); font-weight:600; font-variant-numeric:tabular-nums; }
.wp-day { display:flex; align-items:center; gap:8px; font-size:11.5px; color:var(--wp-ink2); white-space:nowrap; }
.wp-dayb { display:block; width:118px; height:6px; overflow:hidden; border-radius:6px; background:var(--wp-chip); }
.wp-dayb b { display:block; height:100%; border-radius:6px; background:linear-gradient(90deg, var(--l-teal), var(--l-blue)); transition:width 1.2s ease; }
.wp-snd { display:inline-flex; align-items:center; gap:7px; padding:8px 13px; border-radius:12px; border:1px solid var(--wp-line); background:var(--wp-chip);
  color:var(--wp-ink); font-size:13px; font-weight:550; }
.wp-snd:hover { background:var(--wp-hover); }
.wp-snd .ic { width:18px; height:18px; color:var(--l-green); }
.wp-snd .wp-snd-off { display:none; } .wp-snd.off .wp-snd-on { display:none; } .wp-snd.off .wp-snd-off { display:inline-flex; }
.wp-snd.off .ic { color:var(--wp-ink2); } .wp-snd.sndwait .ic { color:var(--l-amber); }
.wp-snd > span { display:inline-flex; }
.wp-tabs { display:flex; gap:6px; padding:8px 12px 12px; border-top:1px solid var(--wp-line); overflow-x:auto; scrollbar-width:none; }
.wp-tabs::-webkit-scrollbar { display:none; }
.wp-tabs.fade-r { -webkit-mask-image:linear-gradient(90deg, #000 88%, transparent); mask-image:linear-gradient(90deg, #000 88%, transparent); }
.wp-tabs.fade-l { -webkit-mask-image:linear-gradient(90deg, transparent, #000 12%); mask-image:linear-gradient(90deg, transparent, #000 12%); }
.wp-tabs.fade-l.fade-r { -webkit-mask-image:linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image:linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.wp-tab { position:relative; display:inline-flex; align-items:center; gap:9px; flex:none; padding:7px 14px 7px 8px; border-radius:13px;
  color:var(--wp-ink); font-size:14px; font-weight:550; text-decoration:none; white-space:nowrap; transition:background .15s, color .15s, transform .12s; }
.wp-tab:hover { background:var(--wp-hover); }
.wp-tab:active { transform:scale(.97); }
.wp-tab:focus-visible { outline:2px solid var(--l-blue); outline-offset:2px; }
.wp-ti { display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:10px; background:var(--wp-chip); color:var(--lamp, var(--wp-ink)); transition:background .15s, color .15s; }
.wp-ti .ic { width:18px; height:18px; }
.wp-ti.acc-blue { --lamp:var(--l-blue); } .wp-ti.acc-indigo { --lamp:var(--l-indigo); } .wp-ti.acc-teal { --lamp:var(--l-teal); }
.wp-ti.acc-amber { --lamp:var(--l-amber); } .wp-ti.acc-red { --lamp:var(--l-red); } .wp-ti.acc-green { --lamp:var(--l-green); }
.wp-ti.acc-violet { --lamp:var(--l-violet); } .wp-ti.acc-orange { --lamp:var(--l-orange); } .wp-ti.acc-graphite { --lamp:var(--l-graphite); }
.wp-tab.on { background:var(--wp-on); color:var(--wp-on-ink); box-shadow:var(--wp-on-sh); }
.wp-tab.on .wp-ti { background:var(--lamp); color:var(--wp-on); }
/* «Новое сообщение» – главное действие: крупная кнопка в шапке, на странице формы – «нажата» */
.wp-act { display:inline-flex; align-items:center; gap:10px; flex:none; padding:9px 18px 9px 9px; border-radius:14px; color:var(--wp-snow); font-size:15px;
  font-weight:650; text-decoration:none; white-space:nowrap; background:linear-gradient(135deg, var(--wp-id1), var(--wp-id2));
  box-shadow:0 10px 22px -10px var(--wp-idg), inset 0 1px 0 var(--wp-line); transition:filter .15s, transform .12s; }
.wp-act:hover { filter:brightness(1.12); }
.wp-act:active { transform:scale(.97); }
.wp-act:focus-visible { outline:2px solid var(--wp-ink); outline-offset:3px; }
.wp-act-i { display:grid; place-items:center; width:30px; height:30px; border-radius:10px; background:var(--wp-chip); }
.wp-act-i .ic { width:19px; height:19px; stroke-width:2.4; }
.wp-act.on { color:var(--wp-on-ink); background:var(--wp-on); box-shadow:var(--wp-on-sh); }
.wp-act.on .wp-act-i { color:var(--wp-snow); background:linear-gradient(135deg, var(--wp-id1), var(--wp-id2)); }
.wp-act + .wp-clock { margin-left:6px; }
.wp-top > .wp-act, .wp-top > .wp-snd { margin-left:auto; }
.wp-snd + .wp-clock { margin-left:6px; }
.wp-n { display:inline-grid; place-items:center; min-width:22px; height:21px; padding:0 7px; border-radius:999px; font-size:12px; font-weight:750;
  font-variant-numeric:tabular-nums; line-height:1; }
.wp-n[hidden] { display:none; }
.wp-n.lamp-amber { background:var(--l-amber); color:var(--wp-amber-ink); box-shadow:var(--g-amber); }
.wp-n.lamp-red { background:var(--l-red); color:var(--wp-snow); box-shadow:var(--g-red); }
.wp-n.bump { animation:popAgain .42s cubic-bezier(.3,.8,.3,1.4); }
.wp-dot { width:9px; height:9px; border-radius:50%; background:var(--l-green); box-shadow:var(--g-green); }
@media (prefers-reduced-motion: no-preference) {
  .wp-n.lamp-red.lamp-blink { animation:lampPulse .9s ease-in-out 3; }
  .wp-n.lamp-red.bump.lamp-blink { animation:popAgain .42s cubic-bezier(.3,.8,.3,1.4), lampPulse .9s .42s ease-in-out 3; }
  .wp-dot { --g-red:var(--g-green); --g-red2:0 0 0 5px rgba(70,194,122,.12), 0 0 18px rgba(70,194,122,.9); }
  .wp-dot.lamp-blink { animation:lampPulse .9s ease-in-out 3; }
  html:not([data-motion=less]) .wp { view-transition-name:wp; }
  html:not([data-motion=less]) .wp-tab.on { view-transition-name:wp-on; }
}
@keyframes lampPulse { 0%, 100% { box-shadow:var(--g-red); } 50% { box-shadow:var(--g-red2); } }
::view-transition-group(wp) { animation:none; }
::view-transition-old(wp) { display:none; }
::view-transition-new(wp) { animation:none; }
::view-transition-group(wp-on) { animation-duration:.34s; animation-timing-function:cubic-bezier(.2,.75,.2,1); }
::view-transition-old(wp-on) { animation:vtOut .14s ease-in both; }
::view-transition-new(wp-on) { animation:vtFade .26s .06s ease-out both; }
@keyframes vtFade { from { opacity:0; } }
/* заголовок раздела под шапкой (доп. информация к сообщению, текст сдачи смены) */
.wp-h { margin:0 0 12px; font-size:20px; font-weight:650; letter-spacing:-.01em; }
.attn-ih { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 12px; margin-bottom:6px; }
.attn-ih h2 { display:flex; align-items:center; gap:8px; margin:0; font-size:18px; }
.attn-ih .btn .ic { width:16px; height:16px; }
.ai-h { flex-basis:100%; margin:0 0 2px; font-size:18px; }
/* меню: два рабочих места – крупнее, со значком своего цвета */
.sidebar nav a.wpnav { --wpn1:#3d7ff0; --wpn2:#2257c9; gap:9px; padding:8px 8px 8px 9px; font-weight:600; white-space:nowrap; }
.sidebar nav a.wpnav-dch { --wpn1:#7b63f2; --wpn2:#5440d6; }
.sidebar nav a.wpnav > .ic { width:30px; height:30px; padding:6px; border-radius:10px; color:#fff; background:linear-gradient(135deg, var(--wpn1), var(--wpn2));
  box-shadow:0 5px 12px -6px var(--wpn1); }
.sidebar nav a.wpnav + a.wpnav { margin-top:2px; }
/* «Обстановка»: плитки-показатели сочнее – значок на цветной заливке, у «есть дела» – цветная подложка */
.td-ki { background:linear-gradient(135deg, var(--acc), var(--acc-ink)); color:#fff; box-shadow:0 6px 14px -7px var(--acc); }
.td-k.warn { border-color:#ecd8a8; background:linear-gradient(135deg, #fff8e6, var(--card) 62%); }
.td-k.hot { border-color:#efc4bf; background:linear-gradient(135deg, #ffefed, var(--card) 62%); }
.td-kl b { font-weight:650; }
.td-kl .td-kl2 { display:block; }
.td-sec.td-hot { border-color:#eec3bd; box-shadow:0 0 0 1px #eec3bd, var(--shadow); }
.td-sec.td-hot > .td-h h2::before { content:""; display:inline-block; width:9px; height:9px; margin-right:9px; border-radius:50%; vertical-align:2px;
  background:#d93025; box-shadow:0 0 0 3px rgba(217,48,37,.16); }
.td-h .seg { margin-left:auto; }
.td-h .seg + .td-all { margin-left:4px; }
.seg { display:inline-flex; gap:2px; padding:3px; border-radius:11px; background:#efefef; }
.seg button { padding:4px 11px; border:0; border-radius:8px; background:transparent; color:var(--ink2); font-size:12.5px; font-weight:550; }
.seg button:hover { background:rgba(255,255,255,.6); }
.seg button.on { background:var(--card); color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.14); }
.td-arow { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; }
.td-arow > .td-rt { color:var(--ink); text-decoration:none; }
.td-arow > .td-rt:hover b { text-decoration:underline; text-underline-offset:3px; }
.td-go { gap:5px; padding:5px 10px; font-size:12.5px; white-space:nowrap; }
.td-go .ic { width:15px; height:15px; }
.td-go:hover { background:var(--dark); border-color:var(--dark); color:#fff; }
@media (max-width:1500px) { .td-go { padding:5px 9px 5px 7px; font-size:12px; gap:4px; } .td-go .ic { width:14px; height:14px; } }
.td-shift .td-h .btn { padding:6px 12px; font-size:12.5px; }
.td-shift .td-h .btn .ic { width:15px; height:15px; }
.td-note { margin:2px 6px 4px; }
.td-tl li[hidden] { display:none; }
/* регион – короткий код (метка) */
.rg-tag { display:inline-block; margin-right:6px; padding:0 6px; border-radius:6px; background:#e7eef9; color:#24508f; font-size:11px; font-weight:700;
  letter-spacing:.03em; line-height:17px; vertical-align:1px; }
.td-probs .rg-tag { margin-right:0; }
/* «Лента ДЧ «Легион»» – «Обстановка»: очередь приёма, плитки регионов */
.dch-grid .td-main { display:flex; flex-direction:column; gap:16px; min-width:0; }
.dch-grid .td-main > .card { margin-bottom:0; }
.dch-q { padding-bottom:8px; }
.dch-qn { margin:-2px 0 10px; }
/* «Принято» – зелёная кнопка подтверждения (лента и «Обстановка») */
.fstate button[data-acc] { background:#2f7a48; border-color:#2f7a48; color:#fff; box-shadow:0 4px 12px -6px rgba(47,122,72,.8); }
.fstate button[data-acc]:hover { background:#256a3d; border-color:#256a3d; }
.dch-list .fitem { grid-template-columns:54px minmax(0, 1fr); gap:2px 12px; margin-bottom:8px; padding:12px 14px; box-shadow:none; }
.dch-list .ftime b { font-size:16px; }
.dch-list .fstate { grid-column:2; flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:4px 12px; min-width:0;
  margin-top:6px; text-align:left; }
.dch-list .flines { margin-top:4px; }
.dch-list .flines li { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dch-list .flines li:nth-child(n+4) { display:none; }
.dch-list .fitem:last-child { margin-bottom:6px; }
.dch-new { display:inline-flex; align-items:center; gap:6px; margin-left:auto; padding:4px 11px; border:0; background:#e3edfc; color:#1d4f86;
  font-weight:600; cursor:pointer; }
.dch-new .ic { width:14px; height:14px; }
.dch-new + .td-all { margin-left:6px; }
.rg-legend { display:inline-flex; align-items:center; flex-wrap:wrap; gap:2px 6px; }
.rgl { display:inline-block; width:9px; height:9px; margin-left:4px; border-radius:3px; background:var(--rg); }
.rg.st-red, .rgl.st-red { --rg:#d93025; --rg-ink:#b3261e; } .rg.st-amber, .rgl.st-amber { --rg:#e09a14; --rg-ink:#8d5a04; }
.rg.st-green, .rgl.st-green { --rg:#2f9e5b; --rg-ink:#23784a; } .rg.st-idle, .rgl.st-idle { --rg:#b6bcc6; --rg-ink:#5d6573; }
.rg-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(178px, 1fr)); gap:10px; }
.rg-grid.rg-wide { grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); }
.rg { position:relative; display:flex; flex-direction:column; gap:7px; min-width:0; padding:11px 12px 10px 15px; overflow:hidden; border-radius:14px;
  border:1px solid var(--line); background:var(--card); color:var(--ink); text-decoration:none; transition:transform .16s, box-shadow .16s; }
.rg::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--rg); }
a.rg:hover { transform:translateY(-2px); box-shadow:0 10px 22px rgba(0,0,0,.09); }
.rg.st-red { border-color:#f0c8c3; background:linear-gradient(135deg, #fff0ee, #ffffff 68%); }
.rg.st-amber { border-color:#eedcb0; background:linear-gradient(135deg, #fff7e5, #ffffff 68%); }
.rg.st-green { border-color:#cfe7d8; background:linear-gradient(135deg, #edf8f1, #ffffff 68%); }
.rg-top { display:flex; align-items:baseline; gap:8px; min-width:0; }
.rg-code { flex:none; font-size:16px; font-weight:800; letter-spacing:.05em; color:var(--rg-ink); }
.rg-name { min-width:0; overflow:hidden; font-size:12.5px; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; }
.rg-stats { display:flex; flex-direction:column; gap:1px; font-size:12.5px; color:var(--ink2); }
.rg-s b { color:var(--ink); font-variant-numeric:tabular-nums; }
.rg-urg b, .rg-open b { color:#b3261e; } .rg-attn b { color:#8d5a04; }
.rg-n { display:flex; align-items:baseline; flex-wrap:wrap; gap:0 6px; font-size:12.5px; color:var(--ink2); }
.rg-n b { font-size:21px; font-weight:750; line-height:1.05; color:var(--ink); font-variant-numeric:tabular-nums; }
.rg-n small { flex-basis:100%; font-size:11.5px; color:var(--muted); }
.rg-chips { display:flex; flex-wrap:wrap; gap:4px; }
.rg-c { display:inline-flex; align-items:center; gap:3px; padding:1px 7px 1px 5px; border-radius:999px; font-size:12px; font-weight:700;
  font-variant-numeric:tabular-nums; line-height:19px; }
.rg-c .ic { width:13px; height:13px; stroke-width:2.2; }
.rg-c.rg-open { background:#fde4e1; color:#b3261e; } .rg-c.rg-urg { background:#fde9d9; color:#a94408; } .rg-c.rg-attn { background:#fbefd0; color:#7d5200; }
.rg-legend .rg-c { padding:1px 3px; margin-left:4px; } .rg-legend .rg-c .ic { width:12px; height:12px; }
.rg-sep { display:inline-block; width:1px; height:12px; margin:0 6px; background:var(--line); }
.rg.st-idle .rg-n b { color:var(--muted); }
.rg.st-idle { background:var(--soft); }
.dch-regs .rg-grid { grid-template-columns:repeat(auto-fill, minmax(168px, 1fr)); }
.rg-hand { display:flex; align-items:center; gap:5px; margin-top:auto; padding-top:7px; border-top:1px dashed var(--line); font-size:11.5px; color:var(--muted); }
.rg-hand .ic { width:14px; height:14px; flex:none; }
.rg-hand em { font-style:normal; font-weight:650; color:#8d5a04; }
/* «Смены регионов» */
.shf-f { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 18px; padding:14px 18px; }
.shf-f label { margin:0; } .shf-f select { width:auto; min-width:220px; }
.shf-f .check { padding-bottom:9px; }
.shf-n { margin-left:auto; padding-bottom:10px; }
.shf-t td .rg-tag { margin:1px 4px 1px 0; }
@media (max-width:1100px) { .rg-grid { grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); } }
@media (max-width:1400px) {
  .wp-tab { gap:7px; padding:6px 12px 6px 7px; font-size:13.5px; }
  .wp-ti { width:27px; height:27px; border-radius:9px; } .wp-ti .ic { width:16px; height:16px; }
}
@media (max-width:760px) {
  .wp { margin:-2px 0 14px; border-radius:16px; }
  .wp-top { padding:14px 14px 10px; gap:10px 12px; }
  .wp-ic { width:40px; height:40px; border-radius:12px; } .wp-ic .ic { width:22px; height:22px; }
  .wp-id { flex:1 1 0; order:1; }
  .wp-ic { order:0; } .wp-clock { order:2; margin-left:0; }
  .wp-top > .wp-act, .wp-top > .wp-snd { order:3; flex:1 1 100%; justify-content:center; margin:2px 0 0; }
  .wp-act + .wp-clock, .wp-snd + .wp-clock { margin-left:0; }
  .wp-title { font-size:19px; }
  .wp-meta { font-size:12.5px; }
  .wp-time b { font-size:26px; }
  .wp-dayb { width:70px; }
  .wp-snd { padding:7px 10px; }
  .wp-tabs { padding:6px 8px 10px; gap:4px; }
  .wp-tab { padding:6px 11px 6px 6px; font-size:13.5px; gap:7px; }
  .wp-ti { width:28px; height:28px; border-radius:9px; }
  .td-h { flex-wrap:wrap; }
  .shf-f select { min-width:0; width:100%; } .shf-f label:first-child { flex:1 1 100%; }
}
@media (max-width:480px) {
  .wp-meta span + span::before { display:none; }
  .wp-meta { flex-direction:column; }
  .wp-day small { display:none; }
  .rg-grid, .rg-grid.rg-wide { grid-template-columns:1fr 1fr; gap:8px; }
  .rg { padding:10px 10px 9px 13px; }
}

/* ================= 1.0.11 ================= */
/* 1.3 переход между вкладками рабочего места с направлением: вкладка правее – содержимое уезжает влево, левее – вправо */
@keyframes vtOutL { to { opacity:0; transform:translateX(-42px); } }
@keyframes vtOutR { to { opacity:0; transform:translateX(42px); } }
@keyframes vtInR { from { opacity:0; transform:translateX(60px); } }
@keyframes vtInL { from { opacity:0; transform:translateX(-60px); } }
html:active-view-transition-type(wp-fwd)::view-transition-old(page) { animation:vtOutL .17s ease-in both; }
html:active-view-transition-type(wp-fwd)::view-transition-new(page) { animation:vtInR .3s .03s cubic-bezier(.2,.75,.2,1) both; }
html:active-view-transition-type(wp-back)::view-transition-old(page) { animation:vtOutR .17s ease-in both; }
html:active-view-transition-type(wp-back)::view-transition-new(page) { animation:vtInL .3s .03s cubic-bezier(.2,.75,.2,1) both; }

/* 1.4 местное время региона: солнце – день, луна – ночь (с 22:00 до 07:00); часы идут сами */
.rg-top { align-items:center; }
.rg-lt, .rz-t { display:inline-flex; align-items:center; gap:3px; flex:none; padding:1px 6px 1px 4px; border-radius:7px; font-size:11.5px;
  font-variant-numeric:tabular-nums; color:#7a5608; background:#fbf0d4; }
.rg-lt { margin-left:auto; }
.rg-lt b, .rz-t b { font-weight:650; }
.rg-lt .ic, .rz-t .ic { width:12px; height:12px; stroke-width:2.2; }
.rg-lt .dn-moon, .rz-t .dn-moon, .rg-lt.night .dn-sun, .rz-t.night .dn-sun { display:none; }
.rg-lt.night .dn-moon, .rz-t.night .dn-moon { display:inline-flex; }
.rg-lt.night, .rz-t.night { color:#33427a; background:#e3e8f7; }
/* плитки по часовым поясам: от Москвы на восток; «Все вместе» – одна сетка (подписи поясов прячутся) */
.rz-seg { margin:0 0 0 12px; }
.rg-zones { display:flex; flex-wrap:wrap; gap:12px; }
.rz { flex:var(--n, 1) 1 calc(var(--n, 1) * 172px); min-width:0; padding:8px 8px 9px; border:1px solid var(--line); border-radius:16px; background:var(--soft); }
.rz.night { background:linear-gradient(180deg, #eceff8, var(--soft) 70%); }
.rz-h { display:flex; align-items:center; gap:8px; min-width:0; margin:0 4px 8px; font-size:12px; color:var(--muted); }
.rz-tz { flex:none; font-size:13px; font-weight:750; letter-spacing:.02em; color:var(--ink); }
.rz-names { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dch-regs .rz .rg-grid { grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:8px; }
.rg-zones[data-mode=zones] .rg .rg-lt { display:none; }
.rg-zones.flat { display:grid; grid-template-columns:repeat(auto-fill, minmax(168px, 1fr)); gap:10px; }
.rg-zones.flat .rz, .rg-zones.flat .rz > .rg-grid { display:contents; }
.rg-zones.flat .rz-h { display:none; }
/* 1.5 мини-график на плитке: 24 часа оперативных суток (с 09:00 МСК), срочные – красным, текущий час отмечен */
.rg-spark { display:flex; align-items:flex-end; gap:1.5px; height:26px; padding-bottom:2px; border-bottom:1px solid var(--line); }
.rg-spark i { flex:1 1 0; min-width:0; height:var(--h); min-height:2px; border-radius:2px 2px 1px 1px; background:#dfe3e9;
  transition:height .55s cubic-bezier(.2,.8,.2,1); }
.rg-spark i.on { background:linear-gradient(0deg, #d93025 0 var(--u), #8796ad var(--u) 100%); }
.rg-spark i.f { background:#eef0f3; }
.rg-spark i.now { box-shadow:0 3px 0 -1px #3d7ff0; }
.rg-spark i.now:not(.on) { background:#b9cdf3; }
.rg.st-idle .rg-spark i.on { background:linear-gradient(0deg, #d93025 0 var(--u), #a7b0bd var(--u) 100%); }
.rg-ax { position:relative; display:block; height:11px; margin-top:-5px; font-size:9.5px; line-height:11px; color:var(--muted); font-variant-numeric:tabular-nums; }
.rg-ax i { position:absolute; left:calc(var(--k) / 24 * 100%); font-style:normal; }
.rg-chips[hidden] { display:none; }
/* «Все вместе»: время – справа от кода региона, название – строкой ниже (не обрезается) */
.rg-zones.flat .rg-top { flex-wrap:wrap; row-gap:1px; }
.rg-zones.flat .rg-name { order:3; flex-basis:100%; }

/* 6. свёрнутое меню: только значки (подписи – во всплывающих подсказках); кнопка – под логотипом. Во время обучения меню
   показывается полностью – подсказки обучения указывают на его пункты и переключатели. */
.navtog { display:flex; align-items:center; gap:7px; align-self:flex-start; margin:-8px 0 -6px 4px; padding:5px 10px 5px 6px; border:0; border-radius:9px;
  background:transparent; color:#2b2b2b; font:inherit; font-size:12.5px; cursor:pointer; }
.navtog:hover { background:rgba(255,255,255,.5); }
.navtog:focus-visible { outline:2px solid #2b2b2b; outline-offset:1px; }
.navtog .ic { width:18px; height:18px; }
.navtog .nt-ch { transition:transform .25s; transform-origin:14.5px 12px; }
html[data-menu=mini] body:not(.touring) .navtog .nt-ch { transform:scaleX(-1); }
@media (min-width:861px) {
  html[data-menu=mini] body.app:not(.touring) { grid-template-columns:76px minmax(0, 1fr); }
  html[data-menu=mini] body:not(.touring) .sidebar { gap:10px; padding:16px 10px; }
  html[data-menu=mini] body:not(.touring) .brand { justify-content:center; padding:2px 0 10px; }
  html[data-menu=mini] body:not(.touring) .brand img { width:40px; }
  html[data-menu=mini] body:not(.touring) .brand-text, html[data-menu=mini] body:not(.touring) .sidebar .nl, html[data-menu=mini] body:not(.touring) .nt-t,
  html[data-menu=mini] body:not(.touring) .sidebar .themesw, html[data-menu=mini] body:not(.touring) .sidebar .motsw, html[data-menu=mini] body:not(.touring) .sidebar .me .who { display:none; }
  html[data-menu=mini] body:not(.touring) .navtog { align-self:center; margin:-2px 0 0; padding:7px; }
  html[data-menu=mini] body:not(.touring) .sidebar nav a { position:relative; justify-content:center; padding:9px 0; }
  html[data-menu=mini] body:not(.touring) .sidebar nav a.wpnav { padding:6px 0; }
  html[data-menu=mini] body:not(.touring) .sidebar .sep { height:1px; margin:9px 10px 5px; padding:0; overflow:hidden; font-size:0; background:rgba(0,0,0,.16); opacity:1; }
  html[data-menu=mini] body:not(.touring) .sidebar .navcnt { position:absolute; top:0; right:0; min-width:18px; height:17px; margin:0; padding:0 4px; font-size:10.5px; line-height:17px; }
  html[data-menu=mini] body:not(.touring) .sidebar .me { grid-template-columns:1fr; justify-items:center; padding:10px 0 2px; }
  html[data-menu=mini] body:not(.touring) .sidebar .me .me-acts { grid-column:1; flex-direction:column; align-items:center; width:100%; margin:0; }
  html[data-menu=mini] body:not(.touring) .ncp { left:88px; }
}
@media (max-width:860px) {
  .sidebar { position:relative; }
  .navtog { position:absolute; top:16px; right:12px; margin:0; background:rgba(255,255,255,.45); }
  html[data-menu=mini] body:not(.touring) .sidebar nav, html[data-menu=mini] body:not(.touring) .sidebar .themesw, html[data-menu=mini] body:not(.touring) .sidebar .motsw,
  html[data-menu=mini] body:not(.touring) .sidebar .me { display:none; }
  html[data-menu=mini] body:not(.touring) .brand { padding-bottom:4px; border-bottom:0; }
}
@media (max-width:640px) {
  .rz { flex-basis:100%; }
  .dch-regs .rz .rg-grid { grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); }
  .rg-zones.flat { grid-template-columns:1fr 1fr; }
  .rz-seg { margin:6px 0 0; }
}
/* свернуть / развернуть меню – страница мягко перетекает в новую ширину (ui.js: SODCH.setNav) */
html.vt-nav * { view-transition-name:none !important; }
html.vt-nav::view-transition-old(root), html.vt-nav::view-transition-new(root) { animation-duration:.24s; }
/* новое событие и обновлённая плитка (live.js) */
.td-tl > li.lv-new > .td-ev { animation:lvNew 1.8s ease-out; }
@keyframes lvNew { from { background-color:#d9e7fb; } to { background-color:transparent; } }
.td-tl > li.lv-new.lv-urg > .td-ev { animation-name:lvUrg; }
@keyframes lvUrg { from { background-color:#f8d2cd; } to { background-color:transparent; } }
@media (prefers-reduced-motion: reduce) { .td-tl > li.lv-new > .td-ev { animation:none; } }

/* ================= 1.0.12 ================= */
/* окна: права пользователя, настройка «Регионов за сутки» */
.sdlg { width:min(720px, calc(100vw - 24px)); max-height:min(86vh, 900px); padding:0; border:1px solid var(--line); border-radius:18px;
  background:var(--card); color:var(--ink); box-shadow:0 24px 60px rgba(0,0,0,.25); }
.sdlg::backdrop { background:rgba(20,20,20,.42); }
.sdlg[open] { animation:sdlgIn .22s cubic-bezier(.2,.8,.2,1); }
@keyframes sdlgIn { from { opacity:0; transform:translateY(8px) scale(.98); } }
.sdlg-in { display:flex; flex-direction:column; max-height:min(86vh, 900px); margin:0; }
.sdlg-h { display:flex; align-items:center; gap:10px; padding:16px 20px 6px; }
.sdlg-h h2 { flex:1; margin:0; font-size:18px; }
.sdlg-x { padding:6px 9px; border:0; border-radius:9px; background:transparent; color:var(--muted); font-size:16px; cursor:pointer; }
.sdlg-x:hover { background:#f0f0f0; }
.sdlg-in > p { margin:0 20px 8px; }
.sdlg-f { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px 20px 16px; border-top:1px solid var(--line); }
.sdlg-sp { flex:1; }
/* права отдельного пользователя */
.up-list { overflow:auto; padding:0 20px 8px; }
.up-g { margin:0 0 8px; padding:0; border:0; }
.up-g legend { padding:8px 0 4px; font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.up-r { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:6px 8px; border-radius:10px; }
.up-r + .up-r { border-top:1px solid var(--line); }
.up-r.set { background:#f1f5fd; }
.up-tt { display:flex; flex-direction:column; min-width:0; font-size:13.5px; }
.up-tt small { font-size:11.5px; color:var(--muted); }
.up-tt small.yes { color:#23784a; }
.up-seg { flex:none; }
.up-seg button { padding:4px 9px; font-size:12px; }
.up-seg button:disabled { opacity:.35; cursor:default; }
.up-seg button[data-v="1"].on { background:#e1f3e8; color:#1d6b40; }
.up-seg button[data-v="0"].on { background:#fde3df; color:#a1271f; }
.up-fix { flex:none; }
.up-btn { display:inline-flex; align-items:center; gap:5px; margin-top:6px; padding:3px 9px 3px 7px; border:1px solid var(--line); border-radius:999px;
  background:transparent; color:var(--ink2); font-size:12px; cursor:pointer; }
.up-btn .ic { width:14px; height:14px; }
.up-btn:hover { background:#f3f3f3; }
.up-btn.own { border-color:#b9c9ee; background:#eef3fd; color:#24508f; }
.up-n { font-variant-numeric:tabular-nums; }
.up-n[hidden] { display:none; }
/* поиск и отбор пользователей */
.uf-bar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 14px; padding:12px 16px; }
.uf-bar label { display:flex; flex-direction:column; gap:3px; margin:0; font-size:12px; color:var(--muted); }
.uf-q { position:relative; flex:1 1 240px; }
.uf-q .ic { position:absolute; left:10px; bottom:10px; width:16px; height:16px; color:var(--muted); }
.uf-q input { padding-left:32px; }
.uf-n { margin-left:auto; align-self:center; }
.uf-more { display:flex; justify-content:center; padding:12px; }
.uf-more[hidden] { display:none; }
/* «Регионы за сутки»: настройка администратором */
.rz-edit { display:inline-flex; align-items:center; gap:5px; margin-left:8px; white-space:nowrap; cursor:pointer; }
.rz-seg button { white-space:nowrap; }
.dch-regs > .td-h { flex-wrap:wrap; row-gap:6px; }
.dch-regs > .td-h .rg-legend { margin-left:auto; }
.rz-edit .ic { width:14px; height:14px; }
.rz-edit small { color:var(--muted); }
.bd-list { margin:0; padding:0 20px 8px; overflow:auto; list-style:none; }
.bd-r { display:flex; align-items:center; gap:10px; padding:6px 4px; border-bottom:1px solid var(--line); background:var(--card); }
.bd-r.off .bd-show b, .bd-r.off .bd-show span { opacity:.45; text-decoration:line-through; }
.bd-mv { display:flex; gap:2px; flex:none; }
.bd-mv button { width:28px; height:28px; padding:0; border:1px solid var(--line); border-radius:8px; background:transparent; color:var(--ink2); cursor:pointer; }
.bd-mv button:hover { background:#f0f0f0; }
.bd-show { display:flex; align-items:center; gap:8px; flex:1; min-width:0; margin:0; cursor:pointer; }
.bd-show b { min-width:46px; }
.bd-show span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bd-grp { flex:none; width:160px; }
/* постовые ведомости: доступ регионов */
.pv-accform .chips { margin:6px 0 10px; }
.pv-accinfo { align-self:center; }
/* загрузка карточек из Excel */
.ci-steps { display:grid; gap:12px; }
.ci-step { display:flex; align-items:flex-start; gap:14px; margin:0; }
.ci-num { display:grid; place-items:center; flex:none; width:32px; height:32px; border-radius:50%; background:#3d4350; color:#fff; font-weight:750; }
.ci-step h2 { margin:2px 0 4px; font-size:17px; }
.ci-row { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 14px; margin-top:8px; }
.ci-row label { margin:0; }
.ci-cols ol { columns:2; margin:8px 0 0; font-size:13px; }
.ci-sum { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin-bottom:10px; }
.ci-pills { display:flex; flex-wrap:wrap; gap:6px; margin-left:auto; }
.pill.ci-new { background:#e1f3e8; color:#1d6b40; }
.pill.ci-upd { background:#e7eef9; color:#24508f; }
.pill.ci-err { background:#fde3df; color:#a1271f; }
table.ci-t tr.bad td { background:#fff6f4; }
@media (max-width:640px) {
  .bd-r { flex-wrap:wrap; }
  .bd-grp { width:100%; }
  .up-r { flex-direction:column; align-items:flex-start; }
  .ci-cols ol { columns:1; }
}
/* меню свёрнуто – страница занимает освободившееся место (на очень широком экране – по центру) */
@media (min-width:861px) {
  html[data-menu=mini] body.app:not(.touring) > main { max-width:1960px; }
}
@media (min-width:2040px) {
  html[data-menu=mini] body.app:not(.touring) > main { margin-inline:auto; }
}

/* ================= 1.0.13 ================= */
/* табло – во весь экран для большого монитора: крупно, без меню и вкладок, блоки листаются сами (wp.js) */
.wp-tablo { display:inline-flex; align-items:center; gap:7px; flex:none; padding:8px 13px; border:1px solid var(--wp-line); border-radius:12px;
  background:var(--wp-chip); color:var(--wp-ink); font:inherit; font-size:13.5px; cursor:pointer; }
.wp-tablo:hover { background:var(--wp-hover); }
.wp-tablo:focus-visible { outline:2px solid var(--wp-ink); outline-offset:2px; }
.wp-tablo .ic { width:18px; height:18px; color:var(--l-teal); }
.wp-top > .wp-tablo { margin-left:auto; }
.wp-top > .wp-act ~ .wp-tablo, .wp-top > .wp-snd ~ .wp-tablo { margin-left:0; }
html.tablo body.app { grid-template-columns:minmax(0, 1fr) !important; }
html.tablo body.app > main { zoom:var(--tbz, 1.2); max-width:none; margin:0; padding:14px 18px 24px; }
html.tablo .sidebar, html.tablo .tb-hide, html.tablo .wp-tabs, html.tablo .wp-act, html.tablo .rz-seg, html.tablo .rz-edit,
html.tablo .td-all, html.tablo .bm-note { display:none !important; }
html.tablo .wp { margin-top:0; }
html.tablo .wp-tablo { border-color:rgba(240,100,90,.45); }
html.tablo { scrollbar-width:none; }
html.tablo::-webkit-scrollbar { display:none; }
html.tablo.tb-still, html.tablo.tb-still * { cursor:none !important; }

/* кольцо-таймер срока: заполняется к сроку норматива, цвет – зелёный → жёлтый → красный; просрочено – «+N» */
.ring { --rc:#2f9e5b; position:relative; display:inline-flex; flex-direction:column; align-items:center; justify-content:center; flex:none;
  width:44px; height:44px; line-height:1; }
.ring svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); overflow:visible; }
.ring .rr-bg { fill:none; stroke:#e6e8ec; stroke-width:3.4; }
.ring .rr-fg { fill:none; stroke:var(--rc); stroke-width:3.4; stroke-linecap:round; stroke-dasharray:var(--p, 0) 100;
  transition:stroke-dasharray .9s cubic-bezier(.2,.7,.2,1), stroke .4s; }
.ring b { position:relative; font-size:13px; font-weight:780; color:var(--rc); font-variant-numeric:tabular-nums; letter-spacing:-.01em; }
.ring small { position:relative; margin-top:1px; font-size:8.5px; font-weight:600; color:var(--muted); }
.ring.rr-amber { --rc:#c98500; }
.ring.rr-red, .ring.rr-over { --rc:#d93025; }
.ring.rr-over .rr-bg { stroke:#f6d3cf; }
.ring.sm { width:36px; height:36px; }
.ring.sm b { font-size:11.5px; }
.ring.sm small { display:none; }
@media (prefers-reduced-motion: no-preference) {
  .ring.rr-blink { animation:ringBlink .9s ease-in-out 3; }
}
@keyframes ringBlink { 50% { transform:scale(1.12); filter:drop-shadow(0 0 6px rgba(217,48,37,.75)); } }
.td-row > .ring { margin-left:auto; }
.td-arow { grid-template-columns:auto minmax(0, 1fr) auto auto; }
.td-arow > .ring { margin-left:0; }
.attn-h > .ring { margin-left:auto; }
.fstate .ring { margin-bottom:2px; }

/* «Рабочее место руководителя»: карта регионов и список «где хуже» */
.sidebar nav a.wpnav-boss { --wpn1:#22a39a; --wpn2:#137a73; white-space:normal; line-height:1.2; }
.bs-grid { display:grid; grid-template-columns:minmax(0, 2.1fr) minmax(280px, 1fr); gap:16px; margin-bottom:16px; }
/* доработка 1.0.25: под картой больше нет «Сутки за 12 секунд» – карточка карты по своей высоте, без пустого места внизу */
.bs-grid { align-items:start; }
.bs-grid > .card { margin:0; }
.bm { position:relative; }
.bm-svg { display:block; width:100%; height:auto; }
.bm-note { margin:6px 0 0; }
.br-list { display:flex; flex-direction:column; }
.br { display:flex; align-items:center; gap:8px; min-width:0; padding:7px 4px; border-bottom:1px solid var(--line); }
.br:last-child { border-bottom:0; }
.br-dot { flex:none; width:10px; height:10px; border-radius:50%; background:var(--rg, #b6bcc6); box-shadow:0 0 0 3px color-mix(in srgb, var(--rg, #b6bcc6) 18%, transparent); }
.br.st-red { --rg:#d93025; } .br.st-amber { --rg:#e09a14; } .br.st-green { --rg:#2f9e5b; } .br.st-idle { --rg:#b6bcc6; }
.br-code { flex:none; min-width:42px; font-weight:780; letter-spacing:.03em; }
.br-name { flex:1; min-width:0; overflow:hidden; color:var(--muted); font-size:12.5px; text-overflow:ellipsis; white-space:nowrap; }
.br .rg-lt { margin-left:0; }
.br-n { flex:none; min-width:26px; font-weight:750; text-align:right; font-variant-numeric:tabular-nums; }
.br-chips { display:flex; flex:none; gap:3px; }
.br-chips:empty { display:none; }
@media (max-width:1100px) { .bs-grid { grid-template-columns:1fr; } }
@media (max-width:640px) { .br-name { display:none; } }

/* шапка рабочего места в серых тонах «Легиона» (переключатель в меню: «Шапка «Легион»») */
html[data-wphead=legion] .wp { --wp-bg:#a9a9a9; --wp-bg2:#d9d9d9; --wp-ink:#1d1d1d; --wp-ink2:#4b4b4b; --wp-line:rgba(0,0,0,.12);
  --wp-chip:rgba(255,255,255,.42); --wp-hover:rgba(255,255,255,.5); --wp-on:#ffffff; --wp-on-ink:#1d1d1d;
  --wp-sh:0 18px 38px -24px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.08); --wp-id1:#5c5c5c; --wp-id2:#2e2e2e; --wp-idg:rgba(0,0,0,.35);
  --wp-on-sh:0 10px 20px -12px rgba(0,0,0,.45); }
html[data-wphead=legion] .wp-dayb b { background:linear-gradient(90deg, #4a4a4a, #1d1d1d); }
html[data-wphead=legion] .wp-dch, html[data-wphead=legion] .wp-boss { --wp-id1:#5c5c5c; --wp-id2:#2e2e2e; --wp-bg2:#d9d9d9; }
.wp-boss { --wp-id1:#22a39a; --wp-id2:#137a73; --wp-idg:rgba(34,163,154,.5); --wp-bg2:#1f3b45; }


/* ================= 1.0.14 ================= */
/* сводка региона за сутки – карточка-дэшборд при наведении */
.bm-card { position:fixed; z-index:9100; width:312px; padding:12px 14px 11px; border-radius:16px; background:#1d222c; color:#eef1f6;
  box-shadow:0 20px 44px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.06); pointer-events:none; font-size:12.5px; line-height:1.35;
  animation:bcIn .16s ease-out; }
.bm-card[hidden] { display:none; }
@keyframes bcIn { from { opacity:0; transform:translateY(4px); } }
.bm-card.st-red { --rg:#f0645a; } .bm-card.st-amber { --rg:#f2b13d; } .bm-card.st-green { --rg:#46c27a; } .bm-card.st-idle { --rg:#9aa6b8; }
.bc-h { display:flex; align-items:center; gap:7px; margin-bottom:9px; }
.bc-dot { width:10px; height:10px; flex:none; border-radius:50%; background:var(--rg); box-shadow:0 0 0 3px rgba(255,255,255,.08), 0 0 10px var(--rg); }
.bc-h b { font-size:15px; letter-spacing:.04em; }
.bc-h span { flex:1; min-width:0; overflow:hidden; color:#aeb7c6; text-overflow:ellipsis; white-space:nowrap; }
.bc-time { flex:none; padding:2px 7px; border-radius:8px; font-style:normal; font-size:11.5px; background:rgba(255,255,255,.08); }
.bc-time { display:inline-flex; align-items:center; gap:5px; }
.bc-dn { width:8px; height:8px; flex:none; border-radius:2px; background:#e9edf3; }
.bc-time.dusk .bc-dn { background:linear-gradient(90deg, #e9edf3 50%, #5b6b8f 50%); } .bc-time.night .bc-dn { background:#5b6b8f; }
.bc-kpi { display:grid; grid-template-columns:repeat(4, 1fr); gap:6px; }
.bc-kpi > div { display:flex; flex-direction:column; align-items:flex-start; padding:7px 8px; border-radius:10px; background:rgba(255,255,255,.06); }
.bc-kpi b { font-size:19px; font-weight:750; line-height:1.05; font-variant-numeric:tabular-nums; }
.bc-kpi small { font-size:10.5px; color:#9aa6b8; }
.bc-kpi .hot b { color:#ff8a80; } .bc-kpi .warn b { color:#ffd479; }
.bc-late { margin-top:7px; padding:4px 8px; border-radius:8px; background:rgba(240,100,90,.18); color:#ffb4ab; font-weight:650; }
.bc-sp { display:flex; align-items:flex-end; gap:2px; height:34px; margin-top:10px; padding-bottom:2px; border-bottom:1px solid rgba(255,255,255,.12); }
.bc-sp i { flex:1 1 0; height:var(--h); min-height:2px; border-radius:2px 2px 1px 1px; background:rgba(255,255,255,.12); }
.bc-sp i.on { background:linear-gradient(0deg, #f0645a 0 var(--u), #8fb0e8 var(--u) 100%); }
.bc-sp i.f { background:rgba(255,255,255,.05); }
.bc-sp i.now { box-shadow:0 3px 0 -1px #ffd479; }
.bc-ax { display:flex; justify-content:space-between; margin:2px 0 0; font-size:9.5px; color:#7d8799; }
.bc-sub { margin:9px 0 3px; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#7d8799; }
.bc-top { margin:0; padding:0; list-style:none; }
.bc-top li { position:relative; display:flex; justify-content:space-between; gap:8px; padding:3px 6px; overflow:hidden; border-radius:6px; }
.bc-top li i { position:absolute; left:0; top:0; bottom:0; width:var(--w); background:rgba(143,176,232,.16); }
.bc-top li span, .bc-top li b { position:relative; }
.bc-top li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bc-last, .bc-hand { margin-top:7px; color:#c3cad6; }
.bc-hand em { font-style:normal; color:#ffd479; }
.bc-go { margin-top:8px; color:#7d8799; font-size:11.5px; }
/* рабочее место ОД: две плашки времени – Москва и регион */
.wp-tcs { display:flex; gap:8px; }
.wp-tc { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-width:96px; padding:7px 12px 8px;
  border:1px solid var(--wp-line); border-radius:13px; background:var(--wp-chip); color:var(--wp-ink); }
.wp-tc small { display:inline-flex; align-items:center; gap:4px; max-width:150px; overflow:hidden; font-size:11.5px; font-weight:650;
  letter-spacing:.02em; color:var(--wp-ink2); white-space:nowrap; text-overflow:ellipsis; }
.wp-tc b { font-size:26px; font-weight:650; line-height:1; letter-spacing:.01em; font-variant-numeric:tabular-nums; }
.wp-tc .ic { width:13px; height:13px; }
.wp-tc .dn-moon, .wp-tc.night .dn-sun { display:none; } .wp-tc.night .dn-moon { display:inline-flex; }
.wp-tc .dn-sun { color:#f2b13d; } .wp-tc .dn-moon { color:#a9b8ff; }
.wp-tc-reg { cursor:pointer; }
.wp-tc-reg:hover { background:var(--wp-hover); }
.wp-tc-reg select { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.wp-tc-dd { font-style:normal; opacity:.7; }
.wp-clock2 { justify-items:end; }
@media (max-width:640px) { .wp-tc { min-width:0; padding:6px 10px; } .wp-tc b { font-size:21px; } }
/* «История действий» */
.ah-bar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 14px; padding:12px 16px; }
.ah-bar label { display:flex; flex-direction:column; gap:3px; margin:0; font-size:12px; color:var(--muted); }
.ah-bar select { max-width:280px; }
.ah-q { flex:1 1 200px; }
.ah-bar label.ah-bad { flex-direction:row; align-items:center; gap:6px; align-self:center; color:var(--ink); }
.ah-dirs { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; }
.ah-dir { display:inline-flex; align-items:center; gap:6px; padding:6px 12px 6px 9px; border:1px solid var(--line); border-radius:999px;
  background:var(--card); color:var(--ink2); font-size:13px; text-decoration:none; }
.ah-dir .ic { width:15px; height:15px; }
.ah-dir b { font-size:12px; font-weight:700; color:var(--muted); font-variant-numeric:tabular-nums; }
.ah-dir:hover { border-color:#c6ccd5; }
.ah-dir.on { border-color:#2b2f36; background:#2b2f36; color:#fff; }
.ah-dir.on b { color:#cfd5de; }
.ah-list { padding:6px 16px 10px; }
.ah-day { position:sticky; top:0; z-index:1; margin:0 -16px; padding:10px 16px 6px; background:var(--card); font-size:12.5px; font-weight:750;
  letter-spacing:.06em; text-transform:uppercase; color:var(--muted); border-bottom:1px solid var(--line); }
.ah-r { display:grid; grid-template-columns:44px 30px minmax(0, 1fr); gap:10px; align-items:start; padding:9px 0; border-bottom:1px solid var(--line); }
.ah-r:last-child { border-bottom:0; }
.ah-r time { padding-top:4px; font-size:12.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.ah-ic { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:#eef1f5; color:#4b5563; }
.ah-ic .ic { width:16px; height:16px; }
.ah-r.d-msg .ah-ic { background:#e7eef9; color:#24508f; } .ah-r.d-mail .ah-ic { background:#ece9fb; color:#4c3fb0; }
.ah-r.d-posts .ah-ic, .ah-r.d-shift .ah-ic { background:#e3f4ea; color:#1d6b40; } .ah-r.d-cards .ah-ic { background:#e0f3f1; color:#136b64; }
.ah-r.d-users .ah-ic, .ah-r.d-login .ah-ic { background:#fbefd0; color:#7d5200; }
.ah-r.bad .ah-ic { background:#fde3df; color:#a1271f; }
.ah-h { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; }
.ah-h b { font-weight:650; }
.ah-who { font-size:12.5px; color:var(--muted); text-decoration:none; }
.ah-who:hover { color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.ah-d { margin-top:2px; font-size:13px; color:var(--ink2); overflow-wrap:anywhere; }
.ah-m { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-top:4px; }
.ah-m form { margin:0; }


/* ================= 1.0.15 ================= */
/* карта руководителя: Россия по субъектам – как на образце (море, соседи, серые субъекты, белые границы); субъект с регионом –
   цветом состояния. Цвета – переменными: тёмная тема задаёт свои (tools/dark_extra.css), а не пересчитывает светлые */
.bm { --bm-sea:#8fd3f4; --bm-fg:#e9e9ea; --bm-fg-line:#ffffff; --bm-land:#c8c3c5; --bm-line:#ffffff; --bm-lb:#8f8f8f;
  --bm-red:#e2483c; --bm-red2:#f2877c; --bm-amber:#f5a524; --bm-green:#5db57c; --bm-idle:#e6cfa4; --bm-sel:#2b2f36;
  --bm-night:#0b1d47; --bm-tw1:.09; --bm-tw2:.11; --bm-nt:.15; --bm-term:rgba(24,36,70,.55); --bm-mer:rgba(24,36,70,.5);
  --bm-tag:#ffffff; --bm-tag-ink:#26324a; --bm-ink:#1f242c; --bm-halo:#ffffff; --bm-dot-line:#ffffff;
  overflow:hidden; border-radius:14px; background:var(--bm-sea); }
.bm-sea { fill:var(--bm-sea); }
.bm-fg { fill:var(--bm-fg); }
.bm-ru { fill:var(--bm-line); }
.bm-s { fill:var(--bm-land); transition:fill .45s; }                 /* 1.0.23: без обводки – границы общей сетью линий */
.bm-s.on { cursor:pointer; }
.bm-s.on.st-red { fill:var(--bm-red); } .bm-s.on.st-amber { fill:var(--bm-amber); }
.bm-s.on.st-green { fill:var(--bm-green); } .bm-s.on.st-idle { fill:var(--bm-idle); }
.bm-lb { fill:none; stroke:var(--bm-lb); stroke-width:1.2; stroke-linejoin:round; stroke-linecap:round; pointer-events:none; }  /* 1.0.16: серым – в цветах «Легиона» */
.bm-shade, .bm-term, .bm-terml, .bm-mer { pointer-events:none; }
.bm-tw1, .bm-tw2, .bm-nt { fill:var(--bm-night); }
.bm-tw1 { fill-opacity:var(--bm-tw1); } .bm-tw2 { fill-opacity:var(--bm-tw2); } .bm-nt { fill-opacity:var(--bm-nt); }
.bm-shade path { transition:d .6s ease; }
.bm-term { fill:none; stroke:var(--bm-term); stroke-width:1; stroke-dasharray:5 3; }
.bm-tlbl { font-size:13px; font-style:italic; letter-spacing:.02em; fill:var(--bm-tag-ink); paint-order:stroke; stroke:var(--bm-tag);
  stroke-width:3px; stroke-linejoin:round; opacity:.85; }
.bm-m line { stroke:var(--bm-mer); stroke-width:1; stroke-dasharray:2 3; }
.bm-mt rect { fill:var(--bm-tag); fill-opacity:.92; stroke:var(--bm-mer); stroke-width:.8; }
.bm-mt text { font-size:12px; font-weight:650; letter-spacing:.06em; text-transform:uppercase; fill:var(--bm-tag-ink); }
.bm-m-mid .bm-mt rect { fill:var(--bm-tag-ink); stroke:none; } .bm-m-mid .bm-mt text { fill:var(--bm-tag); }
.bm-pt { cursor:pointer; outline:none; }
.bm-pt .bm-dot { fill:var(--rg, #b6bcc6); stroke:var(--bm-dot-line); stroke-width:1.8; transition:fill .4s, r .2s; }
.bm-pt .bm-halo { fill:var(--rg, #b6bcc6); opacity:0; transition:fill .4s, opacity .2s; }
.bm-pt.st-red { --rg:#d93025; } .bm-pt.st-amber { --rg:#e08a0b; } .bm-pt.st-green { --rg:#2f9e5b; } .bm-pt.st-idle { --rg:#9aa3af; }
.bm-pt:hover .bm-dot, .bm-pt:focus-visible .bm-dot, .bm-pt.sel .bm-dot { r:7px; }
.bm-pt:focus-visible .bm-halo, .bm-pt.sel .bm-halo { opacity:.22; }
.bm-lbl { font-size:12.5px; font-weight:760; letter-spacing:.04em; fill:var(--bm-ink); paint-order:stroke; stroke:var(--bm-halo);
  stroke-width:3.2px; stroke-linejoin:round; }                    /* наведение на код региона – тоже сводка */
.bm-rip { fill:none; stroke-width:2; pointer-events:none; }
@media (prefers-reduced-motion: no-preference) {
  .bm-s.on.st-red { animation:bmRed 2.6s ease-in-out infinite; }
  .bm-pt.st-red .bm-halo { animation:bmHalo 2.6s ease-in-out infinite; }
}
@keyframes bmRed { 50% { fill:var(--bm-red2); } }
@keyframes bmHalo { 50% { opacity:.3; } }
/* легенда: день, сумерки, ночь – те же цвета, что на карте */
.bm-dl, .bm-tl, .bm-nl { display:inline-block; width:12px; height:9px; margin:0 4px 0 2px; border-radius:2px; vertical-align:-1px;
  border:1px solid rgba(0,0,0,.12); }
.bm-dl { background:#c8c3c5; } .bm-tl { background:#a7a6b3; } .bm-nl { background:#7d8299; }
.bs-map .rgl.st-red { --rg:#e2483c; } .bs-map .rgl.st-amber { --rg:#f5a524; } .bs-map .rgl.st-green { --rg:#5db57c; }
.bs-map .rgl.st-idle { --rg:#e6cfa4; box-shadow:inset 0 0 0 1px rgba(0,0,0,.1); }   /* как субъекты на карте */
@media (max-width:640px) {                               /* телефон: схема мельче – подписи и точки крупнее */
  .bm-lbl { font-size:26px; stroke-width:6px; }
  .bm-pt .bm-dot { r:10px; }
  .bm-mt, .bm-tlbl { display:none; }
}
html.tablo .bm { border-radius:18px; }


/* ================= 1.0.16 ================= */
/* постовая ведомость: убрать можно и последнюю строку группы, заголовок («Бюро пропусков:») – целиком на этот день;
   убранное – строкой «убрано из ведомости на этот день · Вернуть строку» (в печать и Word не попадает) */
.pvgr-offg { grid-template-columns:minmax(0, 1fr); }
.pvgr-off { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; padding:6px 8px 6px 12px;
  border:1px dashed var(--line); border-radius:10px; color:var(--muted); font-size:13px; }
.pvgr-off-t b { font-weight:650; color:var(--ink2); text-decoration:line-through; text-decoration-thickness:1px; }
.pvgr-back { flex:none; }
.pvgr-hdel { display:inline-flex; align-items:center; gap:5px; margin-left:auto; padding:3px 9px; font-size:12px; color:var(--muted); }
.pvgr-hdel:hover { color:var(--err); }
.pvgr-hdel svg { width:13px; height:13px; }
.pvp.off .pvp-top, .pvp.off .pvp-stamp { opacity:.5; }
.pvp.off .pvp-cnt { color:var(--muted); }

/* ================= 1.0.17 ================= */
/* паспорта и карточки: сотни плиток – браузер рисует только те, что видны на экране (остальные – по мере прокрутки) */
.cgrid > .ctile { content-visibility:auto; contain-intrinsic-size:auto 172px; }

/* ================= 1.0.19 ================= */
/* журнал: сообщение в боковой панели справа (страница сообщения ?embed=1 – без меню), плотность строк */
.jbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; margin:0 0 8px; }
.jdn { display:inline-flex; flex:none; padding:3px; border:1px solid var(--line); border-radius:11px; background:var(--card); }
.jdn button { padding:5px 12px; border:0; border-radius:8px; background:transparent; color:var(--ink2); font:inherit; font-size:13px; cursor:pointer; }
.jdn button:hover { color:var(--ink); }
.jdn button[aria-checked=true] { background:var(--ink); color:var(--card); }
html.jdense table.jlist td { padding-top:4px; padding-bottom:4px; }
html.jdense table.jlist .jnum .tag, html.jdense table.jlist .jnum .jacc { display:inline-block; margin:0 0 0 6px; }
html.jdense table.jlist .jobj .small { display:none; }
html.jdense table.jlist .clamp, html.jdense table.jlist .clamp2 { -webkit-line-clamp:1; }
table.jlist tbody tr.jsel td { background:var(--soft); }
table.jlist tbody tr.jsel td:first-child { box-shadow:inset 3px 0 0 var(--ink); }
.jp { position:fixed; top:12px; right:12px; bottom:12px; z-index:9000; display:flex; flex-direction:column; width:min(780px, 54vw);
  overflow:hidden; border:1px solid var(--line); border-radius:18px; background:var(--card);
  box-shadow:0 28px 64px -24px rgba(0,0,0,.38), 0 2px 10px rgba(0,0,0,.08); }
.jp[hidden] { display:none; }
.jp-h { display:flex; align-items:center; gap:8px; padding:9px 10px 9px 18px; border-bottom:1px solid var(--line); }
.jp-t { flex:1; min-width:0; overflow:hidden; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.jp-nav { display:inline-flex; gap:2px; }
.jp-b { width:34px; height:34px; padding:0; border-radius:10px; font-size:16px; line-height:1; }
.jp-b:disabled { opacity:.35; cursor:default; }
.jp-body { position:relative; flex:1; min-height:0; }
.jp-f { display:block; width:100%; height:100%; border:0; background:var(--bg); transition:opacity .15s; }
.jp.loading .jp-f { opacity:0; }
.jp-load { position:absolute; inset:0; display:none; flex-direction:column; gap:12px; padding:22px; }
.jp.loading .jp-load { display:flex; }
.jp-load i { display:block; height:18px; border-radius:8px; background:var(--soft); }
.jp-load i:nth-child(1) { width:55%; height:26px; } .jp-load i:nth-child(2) { width:90%; height:120px; } .jp-load i:nth-child(3) { width:75%; height:80px; }
@media (prefers-reduced-motion: no-preference) { .jp-load i { animation:jpPulse 1.1s ease-in-out infinite alternate; } }
@keyframes jpPulse { to { opacity:.45; } }
html.embed body.app { display:block; min-height:0; }
html.embed body.app > main { max-width:none; padding:16px 20px 28px; view-transition-name:none; }

/* ---------- 1.0.20: перевахтовка персонала – список записок и форма служебной записки ---------- */
.rtnew label:first-of-type { width:auto; flex:1 1 240px; min-width:220px; max-width:380px; }
.rtnew label:nth-of-type(2) { width:130px; flex:none; }
.rtnew label.grow { flex:1 1 170px; min-width:160px; }
.rtnew > button { flex:none; }
.rtflt { display:flex; flex-wrap:wrap; gap:8px 10px; align-items:center; margin:0 0 12px; }
.rtflt select, .rtflt input { width:auto; margin:0; }
.rtflt input[type=search] { flex:0 1 340px; min-width:220px; }
.rtlist td { vertical-align:middle; }
.rtlist td a { text-decoration:none; }
.layout.rtlayout { grid-template-columns:minmax(0, 1fr) 330px; }
.rthead .ph-sub { margin-top:2px; }
.rthead .ph-a { display:flex; align-items:center; gap:8px; }
.rthead .ph-a form { margin:0; }
.rt-conflict { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; border-color:#e8c98f; background:#fff8ea; color:#5c4100; }
.rt-cf-a { display:flex; gap:8px; margin-left:auto; }
.rtform .block h2 small { font-size:13px; }
.fgrid .rt-reg { margin-top:0; }
.rt-to { margin-top:2px; }
.rt-to summary { cursor:pointer; padding:6px 0; color:var(--ink2); font-size:14px; list-style-position:inside; }
.rt-to summary:hover { color:var(--ink); }
.rt-to[open] summary { margin-bottom:8px; }
.rt-sub { margin:16px 0 8px; font-size:14px; font-weight:650; color:var(--ink2); }
.rt-sub small { font-weight:400; }
.rt-note { margin:0 0 10px; font-size:13.5px; color:var(--ink2); }
.rt-note .bad, #a1_cnt.bad { color:#8a5a00; font-weight:600; }
.rt-acts { display:flex; flex-wrap:wrap; gap:8px 10px; align-items:center; margin-top:10px; }
.rt-acts small { flex:1 1 260px; }
.rtform textarea { resize:vertical; min-height:38px; line-height:1.4; }
.rtform input.qn { text-align:center; }

/* переключатели: вариант из нескольких (seg) и отметка «+ / – / н/т» (mk) */
.seg, .mk { display:inline-flex; margin-top:4px; border:1px solid #cfcfcf; border-radius:10px; overflow:hidden; background:#fff; vertical-align:middle; }
.seg label, .mk label { position:relative; display:block; margin:0; font-size:14px; }
.seg input, .mk input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.seg span, .mk span { display:block; padding:8px 13px; border-left:1px solid #e4e4e4; color:var(--ink2); font-weight:500; cursor:pointer;
  user-select:none; transition:background .15s, color .15s; }
.seg label:first-child span, .mk label:first-child span { border-left:0; }
.seg span:hover, .mk span:hover { background:var(--soft); }
.seg input:checked + span { background:var(--dark); color:#fff; }
.seg input:focus-visible + span, .mk input:focus-visible + span { box-shadow:inset 0 0 0 2px #6f6f6f; }
.mk span { min-width:44px; padding:7px 9px; text-align:center; font-weight:700; }
.mk .mk1 input:checked + span { background:var(--ok); color:#fff; }
.mk .mk2 input:checked + span { background:var(--err); color:#fff; }
.mk .mk3 input:checked + span { background:#646464; color:#fff; }
.mkx { display:inline-grid; place-items:center; min-width:30px; height:22px; margin:0 3px 0 10px; padding:0 6px; border-radius:7px; color:#fff; font-size:12.5px; font-weight:700; }
.mkx:first-child { margin-left:0; }
.mkx.mk1 { background:var(--ok); } .mkx.mk2 { background:var(--err); } .mkx.mk3 { background:#646464; }

/* раздел 2 и строки списков */
.r2p-h, .r2p { display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap:8px; align-items:start; }
.r2p-h, .rr-h { padding:0 0 4px; color:var(--muted); font-size:12px; font-weight:600; }
.r2p { padding:7px 0; border-top:1px solid #efefef; }
.r2p-role { padding-top:7px; font-size:13.5px; line-height:1.35; }
.r2p-role b { color:var(--muted); font-weight:600; }
.rr { display:grid; gap:8px; align-items:start; padding:6px 0; border-top:1px dashed #e6e6e6; }
.rr input, .rr textarea, .r2p input, .r2p textarea { margin:0; }
.rr-h { display:grid; gap:8px; }
.rr-x { width:32px; height:38px; padding:0; border-color:transparent; background:transparent; color:#767676; font-size:14px; }
.rr-x:hover { background:#f8e8e6; color:var(--err); }
.rr-n { padding-top:9px; color:var(--muted); font-size:13px; text-align:right; }
.r32 { grid-template-columns:minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 32px; }
.r5 { grid-template-columns:118px minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.4fr) 32px; }
.r6 { grid-template-columns:minmax(0, 1.7fr) minmax(0, 1.2fr) minmax(0, 1fr) 32px; }
.r1 { grid-template-columns:30px minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1.35fr) 62px 62px 32px; }
.r1 input.qn { padding-left:4px; padding-right:4px; }
.r31 { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:10px; }
.r31 label { display:flex; flex-direction:column; justify-content:flex-end; margin:0; font-size:12.5px; line-height:1.3; }
.r32g { margin:0 0 10px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; }
.r32g-h { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:14px; }
.r32g [data-list] > .rr:first-child { margin-top:8px; }
.rt-none { margin:0 0 10px; }
.rt-rows > [data-list] { margin-bottom:8px; }

/* раздел 4: мероприятия с отметками */
.rt-legend { margin:0 0 6px; font-size:13px; color:var(--ink2); }
.rt-tot { position:sticky; top:0; z-index:5; margin:0 -20px 4px; padding:8px 20px; background:var(--card); border-bottom:1px solid #efefef;
  font-size:13.5px; }
.rt-tot b { margin-right:2px; font-weight:700; } .rt-tot .mk1 { color:var(--ok); } .rt-tot .mk2 { color:var(--err); } .rt-tot .mk3 { color:#555; }
.rt-tot span { color:#8a5a00; font-weight:600; }
.rag { margin-top:14px; }
.ra-g { display:flex; align-items:baseline; gap:8px; margin:0 0 6px; font-size:14.5px; }
.ra-g > span { color:var(--muted); }
.ra-gc { margin-left:auto; color:var(--muted); font-weight:600; font-size:12.5px; white-space:nowrap; }
.ra { margin:0 0 8px; padding:10px 12px; border:1px solid var(--line); border-left:4px solid var(--line); border-radius:12px; background:var(--card);
  transition:border-color .2s, background .2s; }
.ra.m-plus { border-left-color:var(--ok); }
.ra.m-minus { border-left-color:var(--err); background:#fdf7f6; }
.ra.m-na { border-left-color:#8c8c8c; }
.ra-h { display:flex; gap:10px; }
.ra-n { flex:none; min-width:46px; padding-top:1px; color:var(--ink2); font-weight:700; font-size:13.5px; }
.ra-t { margin:0; font-size:14px; line-height:1.45; }
.ra-f { display:grid; grid-template-columns:auto minmax(130px, .75fr) minmax(0, 2fr); gap:6px 12px; align-items:start; margin-top:8px; padding-left:56px; }
.ra-f label { margin:0; }
.ra-f > label > span { display:block; color:var(--muted); font-size:11.5px; font-weight:500; }
.ra-f .mk { justify-self:start; margin-top:17px; }
.ra-f input, .ra-f textarea { margin-top:2px; }
.ra.need textarea { border-color:#dba59f; background:#fff7f6; }
.ra-help { margin-top:6px; }

/* раздел 7 */
.rt-concl { margin:6px 0 0; padding:12px 16px; border:1px solid var(--line); border-radius:12px; background:var(--soft);
  font:15px/1.55 "Times New Roman", Times, serif; color:var(--ink); text-indent:1.25em; }

/* приложение 2: таблица имущества */
.r2t { overflow:hidden; border:1px solid var(--line); border-radius:12px; }
.r2 { display:grid; grid-template-columns:30px minmax(0, 2.1fr) 42px 66px 66px minmax(0, 1.35fr) minmax(0, 1.45fr) 30px; gap:6px; align-items:center;
  padding:5px 8px; border-top:1px solid #efefef; font-size:13.5px; }
.r2:first-child { border-top:0; }
.r2 input { margin:0; padding:6px 8px; font-size:13.5px; }
.r2h { align-items:end; background:#f4f4f4; color:var(--ink2); font-size:11.5px; font-weight:600; line-height:1.25; }
.r2-n { color:var(--muted); text-align:right; font-size:12.5px; }
.r2-u { color:var(--muted); text-align:center; font-size:12.5px; }
.r2-name { line-height:1.3; }
.r2-out { display:block; padding:6px 0; border-radius:8px; background:var(--soft); text-align:center; font-weight:700; }
.r2g { padding:6px 12px; background:#eeeeee; font-size:13px; font-weight:650; }
.r2.diff { background:#fff8ec; }
.r2 .need { border-color:#dba59f; background:#fff7f6; }

/* приложение 3 и фото машин: ячейки для фото */
.rf { margin:12px 0 0; padding:12px 14px; border:1px solid var(--line); border-radius:14px; }
.rf-h { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.rf-n { display:inline-grid; place-items:center; flex:none; width:28px; height:28px; border-radius:50%; background:#efefef; font-size:13px; }
.rf-t { flex:1 1 260px; font-weight:600; font-size:14px; }
.rf-st { color:var(--muted); font-size:12.5px; white-space:nowrap; }
.rf-date { display:flex; align-items:center; gap:6px; margin:0; font-size:12.5px; }
.rf-date input { width:118px; margin:0; padding:6px 8px; }
.rf-na { margin:0; font-size:13.5px; }
.rf-why { margin:10px 0 0; }
.rf.na { background:#fafafa; }
.rf.na .rf-t { color:var(--muted); }
.rph-row { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; margin-top:10px; }
.rph { margin:0; min-width:0; }
.rph-box { position:relative; display:grid; place-items:center; overflow:hidden; aspect-ratio:4 / 3; border:1.5px dashed #c6c6c6;
  border-radius:12px; background:#fafafa; cursor:pointer; transition:border-color .15s, background .15s, box-shadow .15s; }
.rph-box:hover { border-color:#8e8e8e; background:#f3f3f3; }
.rph-box:focus-visible { outline:none; box-shadow:0 0 0 4px rgba(178,178,178,.45); }
.rph.has .rph-box { border-style:solid; border-color:var(--line); background:#ededed; cursor:default; }
.rph.drop .rph-box { border-color:var(--ok); background:#eef6f0; }
.rph.gone .rph-box { border-color:#e3c3be; background:#fbf4f3; }
.rph-add { display:flex; flex-direction:column; align-items:center; gap:3px; padding:10px; color:var(--muted); text-align:center; pointer-events:none; }
.rph-add .ic { width:28px; height:28px; margin-bottom:2px; }
.rph-add b { color:var(--ink2); font-size:13.5px; font-weight:600; }
.rph-add small { font-size:11.5px; line-height:1.3; }
.rph-a { position:absolute; inset:0; cursor:zoom-in; }
.rph-a img { display:block; width:100%; height:100%; object-fit:cover; }
.rph-tools { position:absolute; top:6px; right:6px; display:flex; gap:4px; opacity:0; transition:opacity .15s; }
.rph:hover .rph-tools, .rph-box:focus-within .rph-tools { opacity:1; }
.rph-tools button { padding:4px 9px; border:0; border-radius:8px; background:rgba(255,255,255,.94); color:var(--ink); font-size:12px;
  box-shadow:0 1px 4px rgba(0,0,0,.18); }
.rph-tools button:hover { background:#fff; }
.rph-tools [data-ph=del]:hover { color:var(--err); }
.rph-until { position:absolute; left:6px; bottom:6px; padding:1px 8px; border-radius:999px; background:rgba(0,0,0,.55); color:#fff; font-size:11px;
  pointer-events:none; }
.rph-prog { position:absolute; left:0; right:0; bottom:0; padding:6px 9px 7px; background:rgba(255,255,255,.95); }
.rph-prog i { display:block; width:0; height:4px; border-radius:4px; background:var(--dark); transition:width .2s; }
.rph-prog small { display:block; margin-top:3px; color:var(--ink2); font-size:11.5px; }
.rph.busy .rph-box { cursor:progress; }
.rph figcaption { margin-top:5px; color:var(--ink2); font-size:12.5px; line-height:1.35; }
.rph-n { margin-right:3px; font-weight:700; }
.rph figcaption input { margin-top:4px; padding:6px 8px; font-size:13px; }
@media (hover:none) { .rph-tools { opacity:1; } }

/* приложение 4: число машин и карточка осмотра */
.rv-cnt { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; padding:10px 14px; border:1px solid var(--line); border-radius:12px; background:var(--soft); }
.rv-cnt .lbl { font-weight:600; font-size:14px; }
.rv-cnt small { flex:1 1 280px; }
.rv-step { display:inline-flex; align-items:center; overflow:hidden; border:1px solid #cfcfcf; border-radius:10px; background:#fff; }
.rv-step button { width:38px; height:38px; padding:0; border:0; border-radius:0; font-size:19px; line-height:1; }
.rv-step input { width:52px; margin:0; padding:7px 0; border:0; border-radius:0; text-align:center; font-weight:700; font-size:16px; }
.rv-step input:focus { box-shadow:none; }
.rv { margin:14px 0 0; padding:12px 14px 14px; border:1px solid var(--line); border-left:4px solid var(--line); border-radius:14px; }
.rv.ok { border-left-color:var(--ok); } .rv.bad { border-left-color:var(--err); }
.rv-h { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin-bottom:10px; }
.rv-h h3 { margin:0; font-size:15px; }
.rv-tt { display:flex; flex-direction:column; gap:1px; flex:1 1 auto; min-width:0; }
.rv-ic { display:inline-grid; place-items:center; width:32px; height:32px; border-radius:10px; background:#efefef; color:var(--ink2); }
.rv-del { font-size:13px; }
/* 1.0.21: машина в приложении 4 – гос. номер в шапке, слева акт приёма-передачи (лист A4), справа 8 фото по бланку */
.rv { container-type:inline-size; }
.rv-plate { display:inline-flex; align-items:center; gap:8px; margin:0; font-size:13px; font-weight:600; color:var(--ink2); }
.rv-plate > span { white-space:nowrap; }
.rv-plate input { width:150px; margin:0; padding:7px 10px; font-size:15px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.rv-plate input::placeholder { font-weight:400; letter-spacing:0; text-transform:none; }
.rv-st { color:var(--muted); font-size:12.5px; font-weight:500; white-space:nowrap; }
.rv-del { flex:none; display:inline-flex; align-items:center; gap:6px; }
.rv-del .ic { display:none; width:17px; height:17px; }
.rv.ok .rv-st { color:var(--ok); font-weight:600; }
.rv-was { margin:0 0 10px; padding:8px 11px; border:1px dashed var(--line); border-radius:10px; background:var(--soft); color:var(--ink2); font-size:12.5px; line-height:1.4; }
.rv-body { display:grid; grid-template-columns:190px minmax(0, 1fr); gap:14px 18px; align-items:start; }
.rv-pht { margin-bottom:2px; color:var(--ink2); font-size:13px; font-weight:600; }
.rph-row.rph-row4 { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; margin-top:6px; }
.rph-act .rph-box { aspect-ratio:210 / 297; }
.rph-act.has .rph-box { background:#fff; }
.rph-act .rph-a { cursor:pointer; }
.rph-act .rph-a img { object-fit:contain; background:#fff; }
.ra-acts { display:flex; flex-wrap:wrap; gap:2px 12px; margin-top:4px; font-size:12.5px; font-weight:600; }
.ra-acts:empty { display:none; }
.ra-acts a, .ra-acts button { padding:0; border:0; background:none; color:var(--ink2); font:inherit; text-decoration:underline; text-decoration-color:var(--line); text-underline-offset:3px; cursor:pointer; }
.ra-acts a:hover, .ra-acts button:hover { color:var(--ink); text-decoration-color:currentColor; }
.ra-acts .danger { color:var(--err); }
.ra-pdf { display:grid; place-items:center; width:100%; height:100%; color:var(--muted); font-size:22px; font-weight:800; letter-spacing:.06em; }
.ra-meta { display:block; margin-top:2px; color:var(--muted); font-size:11.5px; }
.rph-act figcaption .rph-n { margin-right:2px; }
.ra-cap { flex:1 1 auto; min-width:0; }
.blk-dl { flex:none; margin:0 0 0 auto; padding:5px 11px; font-size:13px; font-weight:600; white-space:nowrap; }
.blk-dl .ic { width:16px; height:16px; }
.rtform .blk-h .blk-dl ~ .blk-tg { margin-left:8px; }
.rtform .block.fold .blk-dl { margin-left:4px; }
.rv-howto { margin:10px 0 0; }
/* уже 900 точек: акт – строкой над фото (лист слева, подпись справа), фото – по 4 в ряд; уже 600 – по 2 в ряд */
@container (max-width:899px) {
  .rv-body { grid-template-columns:minmax(0, 1fr); }
  .rph-act { display:grid; grid-template-columns:150px minmax(0, 1fr); column-gap:14px; align-items:start; }
  .rph-act .rph-box { grid-row:1 / span 2; }
  .rph-act figcaption { grid-column:2; margin-top:0; font-size:13px; }
  .rph-act .rph-info { grid-column:2; }
}
@container (max-width:640px) {
  .rv-tt { flex:1 1 0; }
  .rv-plate { order:3; flex:1 1 100%; min-width:0; }
  .rv-plate input { flex:1 1 auto; width:auto; min-width:0; }
  .rv-del { padding:7px 9px; }
  .rv-del .ic { display:block; }
  .rv-del-t { display:none; }
}
@container (max-width:599px) {                 /* телефон: фото по 2 в ряд, кнопки на снимке – короче («Заменить» – значком) */
  .rph-row.rph-row4 { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .rph-act { grid-template-columns:120px minmax(0, 1fr); }
  .rph-row4 .rph-tools { top:4px; right:4px; gap:3px; }
  .rph-row4 .rph-tools button { padding:4px 7px; }
  .rph-row4 .rph-tools [data-ph=pick] { font-size:0; }
  .rph-row4 .rph-tools [data-ph=pick]::before { content:"↻"; font-size:13px; }
}
/* телефон: кнопка «Шаблон акта» – второй строкой шапки приложения 4, номер, значок и сворачивание остаются в первой */
@media (max-width:640px) {
  .rtform .blk-h.has-dl { flex-wrap:wrap; row-gap:8px; }
  .rtform .blk-h.has-dl > .blk-t { flex:1 1 calc(100% - 180px); min-width:0; }
  .rtform .blk-h.has-dl > .blk-dl { order:9; margin:0; }
  .rtform .blk-h.has-dl > .blk-dl ~ .blk-tg { margin-left:auto; }
}
@media (max-width:360px) {                 /* узкий телефон: без значка блока – заголовок и кнопки помещаются */
  .rtform .block h2 > span.blk-ic { display:none; }
  .rtform .blk-h > .blk-t { min-width:0; overflow-wrap:anywhere; }
}

/* панель готовности справа и нижняя панель */
.rtside .rts-top { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.rtside h2 { margin:0; }
.rts-pct { font-size:26px; font-weight:750; letter-spacing:-.02em; }
.rts-bar { height:8px; margin:6px 0 12px; overflow:hidden; border-radius:8px; background:#ececec; }
.rts-bar span { display:block; height:100%; border-radius:8px; background:linear-gradient(90deg, #9d9d9d, #2b2b2b); transition:width .4s; }
.rts-blocks { display:flex; flex-direction:column; gap:1px; margin:0 0 12px; padding:0; list-style:none; }
.rts-blocks a { display:grid; grid-template-columns:32px minmax(0, 1fr) auto; gap:8px; align-items:center; padding:4px 8px; border-radius:9px;
  text-decoration:none; font-size:13px; line-height:1.3; }
.rts-blocks a:hover { background:var(--soft); }
.rts-n { display:inline-grid; place-items:center; min-width:30px; height:24px; border-radius:7px; background:#efefef; font-size:11.5px; font-weight:700; }
.rts-blocks li.done .rts-n { background:var(--dark); color:#fff; }
.rts-blocks small { color:var(--muted); font-size:11.5px; white-space:nowrap; }
.rts-blocks li.done small { color:var(--ok); font-weight:700; }
.rts-blocks li.cur a { background:var(--soft); box-shadow:inset 0 0 0 1px var(--line); }
.rts-miss { font-size:13px; }
.rts-miss ul { margin:6px 0 4px; padding-left:18px; }
.rts-miss li { margin:2px 0; }
.rts-miss a { color:#7c4a06; text-underline-offset:2px; }
.rts-ok { margin:0; color:var(--ok); font-weight:600; }
.rts-warn p { margin:8px 0 0; padding:7px 10px; border:1px solid #efd9a8; border-radius:10px; background:#fff7e6; color:#6a4a00; font-size:12.5px; }
.rts-save { margin:12px 0 0; }
.rt-state { max-width:340px; }
.rt-state.error { color:var(--err); font-weight:600; }
.rt-state.saved { color:var(--ok); }
.rt-dlg { width:min(660px, 94vw); padding:20px 22px; border:0; border-radius:18px; background:var(--card); color:var(--ink);
  box-shadow:0 28px 64px -20px rgba(0,0,0,.4); }
.rt-dlg::backdrop { background:rgba(0,0,0,.38); }
.rt-dlg form { margin:0; }
.rt-dlg textarea { font-family:ui-monospace, Consolas, monospace; font-size:13px; }
.rt-dlg-a { display:flex; justify-content:flex-end; gap:10px; margin-top:12px; }
@media (max-width:1180px) { .layout.rtlayout { grid-template-columns:minmax(0, 1fr); } .rtside { display:none; } }
@media (max-width:980px) {
  .r1 { grid-template-columns:24px minmax(0, 1fr) minmax(0, 1fr) 32px;
    grid-template-areas:"n fio fio x" "n pos obj obj" "n main side side"; }
  .r1 .rr-n { grid-area:n; } .r1 [data-f=fio] { grid-area:fio; } .r1 [data-f=pos] { grid-area:pos; } .r1 [data-f=obj] { grid-area:obj; }
  .r1 [data-f=main] { grid-area:main; } .r1 [data-f=side] { grid-area:side; } .r1 .rr-x { grid-area:x; }
  .rr-h.r1 { display:none; }
  .ra-f { grid-template-columns:1fr; padding-left:0; } .ra-f .mk { margin-top:4px; }
  .r31 { grid-template-columns:repeat(4, minmax(0, 1fr)); }
  .r2 { grid-template-columns:26px minmax(0, 1fr) 60px 60px 30px; }
  .r2 .r2-u, .r2h { display:none; } .r2 .r2-where, .r2 .r2-note { grid-column:2 / -1; }
}
@media (max-width:640px) {
  .r2p-h, .rr-h { display:none; }
  .r2p, .r32, .r5, .r6 { grid-template-columns:1fr; }
  .rph-row { grid-template-columns:1fr; }
  .r31 { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
.rtform .narrow input { max-width:170px; }
.rtform .pair { display:flex; align-items:center; gap:8px; margin-top:4px; }
.rtform .pair input { width:150px; margin:0; }
.rtform .pair input.qn { width:96px; }
.rtform .pair input.tm { width:96px; }
.rtform .pair i { color:var(--muted); font-style:normal; font-size:14px; }
.rtform div.f { display:block; margin:0 0 12px; font-size:13px; color:var(--ink2); font-weight:500; }
.rtform div.f em { color:var(--err); font-style:normal; }
.rtform .narrow input { display:block; }
.r2p-h, .r2p { grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); }
@media (min-width:861px) { .rtbar .fprog { flex:0 1 180px; min-width:150px; } }
/* ---------- 1.0.20: перевахтовка – блоки сворачиваются; даты, заказчики, участники карточками; поля – понятной сеткой ---------- */
.rtform .blk-h { cursor:pointer; user-select:none; margin:0; }
.block h2 > span.blk-t { display:inline; width:auto; height:auto; border-radius:0; background:none; color:inherit; font-size:inherit; font-weight:inherit; }
.rtform .blk-sum { display:none; flex:1 1 auto; min-width:0; color:var(--muted); font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rtform .block.fold .blk-sum { display:block; }
.rtform .blk-tg { margin-left:auto; flex:none; display:grid; place-items:center; width:32px; height:32px; padding:0; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink2); cursor:pointer; }
.rtform .blk-tg:hover { border-color:var(--brand-d); }
.rtform .blk-tg svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; transition:transform .2s; }
.rtform .block.fold .blk-tg svg { transform:rotate(-90deg); }
.rtform .blk-body { margin-top:16px; }
.rtform .block.fold .blk-body { display:none; }
.rtform .block.fold { padding-top:12px; padding-bottom:12px; }
.rx-sub { margin-top:20px; padding-top:18px; border-top:1px solid var(--line); }
.blk-body > .rx-sub:first-child, .blk-body > .rx-hint:first-child + .rx-sub { margin-top:0; padding-top:0; border-top:0; }
.rx-h { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 10px; margin:0 0 10px; font-size:14.5px; font-weight:650; color:var(--ink); }
.rx-h > b, .rx-num { display:inline-block; padding:1px 8px; border:1px solid var(--line); border-radius:7px; background:var(--soft); color:var(--ink2); font-size:12px; font-weight:700; letter-spacing:.02em; }
.rx-num { margin-right:4px; }
.rx-hint { margin:-2px 0 12px; color:var(--muted); font-size:13px; line-height:1.45; }
.rx-grid { display:grid; grid-template-columns:repeat(12, minmax(0, 1fr)); gap:14px 16px; align-items:start; }
.rx-grid > .c3 { grid-column:span 3; } .rx-grid > .c4 { grid-column:span 4; } .rx-grid > .c5 { grid-column:span 5; }
.rx-grid > .c6 { grid-column:span 6; } .rx-grid > .c7 { grid-column:span 7; } .rx-grid > .c9 { grid-column:span 9; }
.rx-grid > .c12 { grid-column:1 / -1; }
.rx-f { display:flex; flex-direction:column; gap:6px; min-width:0; margin:0; }
.rx-l { font-size:12.5px; font-weight:600; color:var(--ink2); line-height:1.3; }
.rx-l em.req { color:var(--err); font-style:normal; }
.rx-f > input[type=text], .rx-f > select, .rx-f > textarea, .rx-f > output { width:100%; margin:0; }
.rx-f.ro b { font-size:14.5px; }
.rx-f .pair { margin:0; } .rx-f .pair input { flex:1 1 0; width:auto; min-width:0; }
.rx-card { position:relative; padding:12px 14px 14px; border:1px solid var(--line); border-radius:14px; background:var(--soft); }
.rx-card + .rx-card { margin-top:10px; }
.rx-card-h { display:flex; align-items:center; gap:10px; margin:0 0 10px; min-height:28px; }
.rx-card-h .rx-n { color:var(--muted); font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }
.rx-card-h .rr-x { margin-left:auto; }
.rx-days > .rx-day:only-child .rx-card-h { display:none; }
.rx-line { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; }
.rx-line .rx-grow { flex:1 1 220px; width:auto; margin:0; }
.rx-line input.dt { width:132px; margin:0; } .rx-line input.tm { width:88px; margin:0; }
.rx-acts { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.rx-chips { display:flex; flex-wrap:wrap; gap:8px; }
.rx-chip { display:inline-flex; align-items:center; gap:2px; padding:2px 4px 2px 2px; border:1px solid var(--line); border-radius:12px; background:var(--card); }
.rx-chip input { width:min(340px, 64vw); margin:0; border:0; box-shadow:none; background:transparent; }
.rx-chip:focus-within { border-color:var(--brand-d); }
.rx-chips > .rx-chip:only-child .rr-x { visibility:hidden; }
.rx-add { margin-top:10px; }
.rx-person .rx-card-h .rx-n { min-width:20px; }
.rx-role { font-size:14px; font-weight:650; color:var(--ink); }
.rx-role-in { flex:1 1 auto; max-width:560px; margin:0; font-weight:600; }
.rx-auto { display:block; min-height:40px; padding:9px 12px; border:1px dashed var(--brand-d); border-radius:10px; background:var(--card); color:var(--ink); font-size:13.5px; line-height:1.4; }
.rx-auto.empty { color:var(--muted); font-style:italic; }
.rx-auto.manual { border-style:solid; }
.rx-note { margin-top:6px !important; }
.rx-boxes { display:grid; grid-template-columns:minmax(0, 3fr) minmax(0, 4fr); gap:14px; }
.rx-box { display:grid; grid-template-columns:repeat(auto-fit, minmax(104px, 1fr)); gap:10px 12px; margin:0; padding:8px 14px 14px; border:1px solid var(--line); border-radius:14px; }
.rx-box legend { padding:0 6px; color:var(--muted); font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }
.rx-box label { display:flex; flex-direction:column; justify-content:flex-end; gap:6px; margin:0; font-size:12.5px; font-weight:600; color:var(--ink2); }
.rx-box input { width:100%; margin:0; text-align:center; }
.ra-who select { width:100%; margin:0; }
.rv-plan { flex:1 1 100%; margin:2px 0 0; font-size:13px; color:var(--ink2); }
.rv-plan.bad { color:var(--warn); font-weight:600; }
.rph-cam { position:absolute; right:8px; bottom:8px; z-index:2; padding:6px 12px; border-radius:10px; font-size:13px; font-weight:600; }
.rph-info { display:flex; flex-direction:column; gap:3px; margin-top:6px; padding:7px 9px; border:1px solid var(--line); border-radius:10px; background:var(--soft); font-size:12px; line-height:1.35; }
.rph-info[hidden] { display:none; }
.rpi-line { color:var(--ink2); font-weight:600; }
.rpi-m { color:var(--ok); } .rpi-m.warn { color:var(--warn); font-weight:600; } .rpi-m.fresh { color:var(--ok); font-weight:700; }
.rts-fold { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 4px; }
.rts-fold button { padding:5px 10px; font-size:12.5px; }
@media (max-width:900px) {
  .rx-grid > .c3, .rx-grid > .c4, .rx-grid > .c5, .rx-grid > .c6, .rx-grid > .c7, .rx-grid > .c9 { grid-column:1 / -1; }
  .rx-boxes { grid-template-columns:1fr; }
}
/* ---------- 1.0.20: бланк записки о перевахтовке (админ) ---------- */
.rtb .card h2 small { font-weight:400; }
.rtb-ta { width:100%; font:13px/1.55 Consolas, "Cascadia Mono", "Courier New", monospace; }
.rtb-ex { margin:0; padding:10px 12px; border:1px dashed var(--line); border-radius:10px; background:var(--soft); color:var(--ink2); font:12.5px/1.5 Consolas, "Courier New", monospace; white-space:pre-wrap; }
.rtb-err { border-color:var(--warn); background:var(--warn-soft); }
.rtb-err ul { margin:6px 0 0; padding-left:20px; }
.rtb-bar { justify-content:flex-start; }
.rtb-bar .rtb-reset { margin:0 0 0 auto; }
/* ---------- 1.0.20: просмотр записки о перевахтовке – лист как в Word (всегда белый), печать ---------- */
.rpg-wrap { overflow-x:auto; padding:4px 0 24px; }
.rpg { box-sizing:border-box; width:210mm; min-height:297mm; margin:0 auto 18px; padding:20mm 10mm 12mm 20mm; background:#fff; color:#111; font:12pt/1.3 "Times New Roman", Times, serif; border-radius:6px; box-shadow:0 2px 14px rgba(0,0,0,.14); }
.rpg.land { width:297mm; min-height:210mm; padding:14mm 20mm 10mm 10mm; }
.rpg h3 { margin:12pt 0 4pt; color:#111; font-size:12pt; font-weight:700; }
.rpg h4 { margin:8pt 0 3pt; color:#111; font-size:11pt; font-weight:700; }
.rpg p { margin:0 0 6pt; }
.rpg table { width:100%; margin:0 0 6pt; border-collapse:collapse; font-size:10pt; }
.rpg th, .rpg td { padding:2pt 4pt; border:1px solid #111; color:#111; text-align:left; vertical-align:top; }
.rpg th { background:#e6e6e6; font-size:9.5pt; font-weight:700; text-align:center; vertical-align:middle; }
.rpg tr.g td { background:#f0f0f0; font-weight:700; }
.rpg .c { text-align:center; } .rpg .b { font-weight:700; } .rpg .r { text-align:right; } .rpg .pre { white-space:pre-line; }
.rpg-org { margin:0 0 12pt !important; padding-bottom:6pt; border-bottom:1px solid #111; font-size:11pt; font-weight:700; text-align:center; }
.rpg-hd { display:flex; justify-content:space-between; gap:18pt; margin-bottom:14pt; }
.rpg-hl { display:flex; flex-direction:column; align-items:center; gap:2pt; width:52%; text-align:center; }
.rpg-hl > span { margin:8pt 0 4pt; }
.rpg-subj { align-self:flex-start; margin-top:6pt; }
.rpg-hr { display:flex; flex-direction:column; gap:2pt; width:40%; }
.rpg-c { margin:14pt 0 8pt !important; text-align:center; }
.rpg-j { text-align:justify; text-indent:12.5mm; }
.rpg-s { font-size:10pt; }
.rpg-list { margin:0 0 12pt; padding-left:12mm; }
.rpg-sign { display:flex; align-items:flex-end; justify-content:space-between; gap:12pt; margin:18pt 0 12pt; }
.rpg-sign .ln { display:flex; flex-direction:column; align-items:center; font-size:10pt; } .rpg-sign small { font-size:8pt; }
.rpg-att { margin:0 0 10pt 62%; font-size:11pt; } .rpg.land .rpg-att { margin-left:70%; }
.rpg-title { margin:6pt 0 10pt !important; font-weight:700; text-align:center; }
.rpg-sec { margin:10pt 0 0; break-inside:avoid; }
.rpg-sh { display:flex; justify-content:space-between; gap:12pt; padding:3pt 6pt; border:1px solid #111; background:#f0f0f0; font-size:10pt; }
.rpg-phs { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); border:1px solid #111; border-top:0; }
.rpg-ph { display:flex; flex-direction:column; gap:3pt; margin:0; padding:4pt; border-right:1px solid #111; border-bottom:1px solid #111; }
.rpg-ph:nth-child(3n) { border-right:0; }
.rpg-ph > a, .rpg-ph > .rpg-none { display:grid; place-items:center; height:52mm; }
.rpg-ph img { max-width:100%; max-height:52mm; object-fit:contain; }
.rpg-none { color:#777; font-size:9pt; font-style:italic; text-align:center; }
.rpg-ph figcaption { color:#333; font-size:8.5pt; font-style:italic; text-align:center; }
.rpg-meta { display:flex; flex-direction:column; gap:1pt; margin-top:2pt; color:#555; font-size:8pt; font-style:normal; }
.rpg-meta .warn { color:#9c5700; font-weight:700; } .rpg-meta .ok, .rpg-meta .fresh { color:#2e7d32; }
.rpg-na { margin:0 !important; padding:10pt; border:1px solid #111; border-top:0; color:#333; font-style:italic; text-align:center; }
/* 1.0.21: приложение 4 – листы акта приёма-передачи (картинкой, как загружен) и фототаблица по бланку «Легиона»:
   таблица шире полей (19,5 см со сдвигом влево 1,25 см), серая шапка с г.р.з., фото по два в ряд */
.rpg-a4 { padding:20mm 10mm 10mm 20mm; }
.rpg-vh { display:flex; justify-content:space-between; gap:12pt; }
.rpg-act { display:flex; flex-direction:column; align-items:stretch; padding:5mm; }
.rpg-act .rpg-att { width:80mm; margin:6mm 0 3mm auto; }
.rpg-acta { display:flex; flex:1 1 auto; justify-content:center; align-items:flex-start; min-height:0; }
.rpg-acta img { display:block; max-width:100%; max-height:287mm; object-fit:contain; }
.rpg-act .rpg-att + .rpg-acta img { max-height:262mm; }
.rpg-actn { margin:3pt 0 0 !important; color:#555; font-size:9pt; text-align:center; }
.rpg-fph { width:195mm; max-width:none; margin:0 0 0 -12.5mm !important; table-layout:fixed; }
.rpg .rpg-fph td { width:50%; padding:2pt 3pt; border:0; vertical-align:middle; }
.rpg .rpg-fph tr.g td { padding:5pt 6pt; background:#d0cece; font-size:12pt; font-weight:700; }
.rpg-fph .rpg-ph { padding:3pt 2pt; border:0; }
.rpg-fph .rpg-ph > a, .rpg-fph .rpg-ph > .rpg-none { height:55mm; }
.rpg-fph .rpg-ph img { max-height:55mm; }
.rpg-fph .rpg-ph figcaption { color:#404040; font-size:8.5pt; }
.rpg-nact { margin:8pt 0 !important; border:1px dashed #999 !important; }
.rpg-was { margin:0 0 8pt !important; color:#333; font-size:9.5pt; text-align:justify; }
@page { size:A4; margin:0; }
@page land { size:A4 landscape; margin:0; }
@media print {
  .sidebar, .toasts, .rpg-top, .formbar, .rpg-actn { display:none !important; }
  html, body, main { background:#fff !important; padding:0 !important; margin:0 !important; }
  .rpg-wrap { overflow:visible; padding:0; }
  .rpg { margin:0; border-radius:0; box-shadow:none; break-after:page; }
  .rpg.land { page:land; }
}
.rts-fold { flex-wrap:nowrap; }
.rts-fold button { flex:1 1 0; width:auto; min-width:0; padding:6px 8px; border:1px solid var(--line); border-radius:9px; background:var(--card); color:var(--ink2); font-size:12px; white-space:nowrap; }
.rts-fold button:hover { border-color:var(--brand-d); color:var(--ink); }
.rx-h em.req { color:var(--err); font-style:normal; }
.rx-auto.over { color:var(--muted); font-size:12.5px; text-decoration:line-through; }
.rx-man { align-self:flex-start; margin-top:4px; padding:4px 10px; font-size:12.5px; }
.rtside .rts-fold button.ghost { border-color:var(--line); background:var(--card); }
/* ---------- 1.0.20: список записок – готовность по блокам, миниатюры фото, замечания ---------- */
.rt-strip { display:inline-flex; gap:2px; vertical-align:middle; margin-right:4px; }
.rt-strip i { width:8px; height:14px; border-radius:3px; background:var(--line); }
.rt-strip i.part { background:var(--brand); } .rt-strip i.done { background:var(--ok); }
.rt-thumbs { display:flex; gap:4px; margin-top:6px; }
.rt-thumbs img { width:44px; height:33px; object-fit:cover; border-radius:6px; border:1px solid var(--line); }
.rt-rmk-b { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:8px; background:var(--err-soft, #f8e4e2); color:var(--err); font-size:12px; font-weight:700; }
.rt-rmk-b.fixed { background:var(--warn-soft, #f6eed3); color:var(--warn); }
.rpg-meta .note { color:#555; }
/* ---------- 1.0.20: выбор вариантов – мягкие скругления; фото по датам; места в приложении 2; ошибки у полей ---------- */
.rtform .seg { gap:3px; padding:3px; border:1px solid var(--line); border-radius:12px; background:var(--soft); overflow:visible; }
.rtform .seg span { border-left:0; border-radius:9px; padding:7px 14px; transition:background .18s, color .18s, box-shadow .18s; }
.rtform .seg span:hover { background:var(--card); }
.rtform .seg input:checked + span { background:var(--dark); color:#fff; box-shadow:0 1px 4px rgba(0,0,0,.18); }
.rtform .mk { gap:3px; padding:3px; border-color:var(--line); border-radius:12px; background:var(--soft); overflow:visible; }
.rtform .mk span { border-left:0; border-radius:9px; }
.rtform .mk span:hover { background:var(--card); }
.rf-day { margin-top:12px; padding-top:12px; border-top:1px dashed var(--line); }
.rf-dh { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; }
.rf-dl { color:var(--muted); font-size:11.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.rf-dd { font-size:14px; }
.rf-dh .rf-na { margin-left:auto; }
.rf-tools { margin:0 0 6px; }
.rx-days > .rx-day:first-child .rr-x { display:none; }
.r2pl { display:flex; flex-direction:column; gap:4px; min-width:0; }
.r2pl-r { display:flex; gap:4px; align-items:center; }
.r2pl-r .r2pl-p { flex:1 1 auto; min-width:0; margin:0; }
.r2pl-r .r2pl-q { width:54px; flex:none; margin:0; text-align:center; }
.r2pl-x { flex:none; width:24px; height:24px; padding:0; border:0; border-radius:7px; background:transparent; color:var(--muted); cursor:pointer; }
.r2pl-x:hover { background:var(--soft); color:var(--err); }
.r2pl-st { font-size:11.5px; color:var(--muted); }
.r2pl-st.ok { color:var(--ok); font-weight:600; } .r2pl-st.bad { color:var(--warn); font-weight:600; }
.r2pl.off .r2pl-r { display:none; }
.r2pl.off::before { content:"–"; color:var(--muted); }
.rx-bad { border-color:var(--err) !important; box-shadow:0 0 0 3px rgba(179,38,30,.13) !important; }
.rx-errmsg { display:block; margin-top:4px; color:var(--err); font-size:12px; font-weight:600; }
.rph-pre { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.82; animation:rphIn .25s ease; }
.rph-a img { animation:rphIn .3s ease; }
@keyframes rphIn { from { opacity:0; transform:scale(.985); } to { opacity:1; transform:none; } }
#gallery.moving .rph:not(.move-src) .rph-box { outline:2px dashed var(--ok); outline-offset:2px; cursor:copy; }
.rph.move-src .rph-box { opacity:.55; }
.rph-tools [data-ph=edit], .rph-tools [data-ph=move] { padding:4px 8px; font-size:13px; }
/* ---------- поворот и обрезка, все фото, замечания проверяющего ---------- */
.ph-ed { width:min(940px, 96vw); }
.ph-ed h2 { margin:0 0 12px; }
.ph-ed-stage { display:grid; place-items:center; min-height:240px; padding:8px; border-radius:12px; background:#1d1f22; }
.ph-ed-stage canvas { max-width:100%; border-radius:4px; touch-action:none; }
.ph-ed-stage canvas.crop { cursor:crosshair; }
.ph-ed-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0 4px; }
.ph-ed-bar button.on { background:var(--dark); color:#fff; }
.ph-ed-bar small { flex:1 1 240px; }
.rt-dlg-a { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }
.pa-dlg { width:min(1180px, 96vw); max-height:90vh; }
.pa-top { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-bottom:12px; }
.pa-top h2 { margin:0; flex:1 1 auto; }
.pa-flt { margin:0; }
.pa-flt button.on { background:var(--card); color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.14); }
.pa-x { padding:6px 10px; }
.pa-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:12px; overflow:auto; max-height:calc(90vh - 110px); padding:2px; }
.pa-t { display:flex; flex-direction:column; gap:4px; padding:6px; border:1px solid var(--line); border-radius:12px; background:var(--card); color:var(--ink); text-align:left; cursor:zoom-in; }
.pa-t:hover { border-color:var(--brand-d); }
.pa-t.warn { border-color:var(--warn); }
.pa-t img { width:100%; aspect-ratio:4 / 3; object-fit:cover; border-radius:8px; }
.pa-n { font-weight:700; font-size:12.5px; } .pa-c { color:var(--ink2); font-size:12px; line-height:1.3; }
.pa-m { display:flex; flex-direction:column; gap:2px; font-size:11.5px; line-height:1.3; }
.rmk-add { flex:none; width:28px; height:28px; padding:0; border:1px solid var(--line); border-radius:9px; background:var(--card); color:var(--muted); font-size:13px; cursor:pointer; }
.rmk-add:hover { border-color:var(--err); color:var(--err); }
.ra-h .rmk-add, .rph figcaption .rmk-add { margin-left:auto; }
.rph figcaption { display:flex; align-items:flex-start; gap:6px; }
.blk-rmk { flex:none; padding:1px 8px; border-radius:8px; background:var(--err-soft, #f8e4e2); color:var(--err); font-size:12px; }
.rmk { margin:8px 0; padding:9px 12px; border:1px solid var(--err); border-left-width:4px; border-radius:12px; background:var(--card); font-size:13px; }
.rmk.st-fixed { border-color:var(--warn); }
.rmk.rmk-new { border-color:var(--brand-d); }
.rmk-h { margin-bottom:4px; color:var(--err); font-weight:700; } .rmk.st-fixed .rmk-h { color:var(--warn); } .rmk-new .rmk-h { color:var(--ink); }
.rmk-l { margin:3px 0; } .rmk-l small { display:block; color:var(--muted); font-size:11.5px; } .rmk-l span { white-space:pre-line; }
.rmk-a { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:6px; }
.rmk-a .rmk-t { flex:1 1 220px; margin:0; min-height:34px; }
.rts-rmk { margin:10px 0 4px; font-size:13px; }
.rts-rmk:empty { display:none; }
.rts-rmk small { display:block; color:var(--muted); }
.rts-rmk ul { margin:6px 0 0; padding-left:18px; } .rts-rmk li.st-open a { color:var(--err); } .rts-rmk li.st-fixed a { color:var(--warn); }
.rts-allph { width:100%; margin-top:6px; }
.ra.need .rmk textarea, .rmk textarea { background:var(--card); border-color:var(--line); }
/* приложение 2: места – отдельной строкой под наименованием, чтобы было где писать */
@media (min-width:861px) {
  #b-a2 .r2 { grid-template-columns:30px minmax(0, 2fr) 42px 66px 66px minmax(0, 1.6fr) 30px; grid-template-areas:"n name u plan fact note x" ". pl pl pl pl note x"; row-gap:6px; }
  #b-a2 .r2 > .r2-n, #b-a2 .r2h > span:nth-child(1) { grid-area:n; }
  #b-a2 .r2 > .r2-name, #b-a2 .r2h > span:nth-child(2) { grid-area:name; }
  #b-a2 .r2 > .r2-u, #b-a2 .r2h > span:nth-child(3) { grid-area:u; }
  #b-a2 .r2 > [data-k$="/plan"], #b-a2 .r2 > [data-k="a2/veh_plan"], #b-a2 .r2 > .r2-plan, #b-a2 .r2h > span:nth-child(4) { grid-area:plan; }
  #b-a2 .r2 > [data-k$="/fact"], #b-a2 .r2 > .r2-out, #b-a2 .r2 > .r2-fact, #b-a2 .r2h > span:nth-child(5) { grid-area:fact; }
  #b-a2 .r2h > span:nth-child(6) { display:none; }
  #b-a2 .r2 > .r2-note, #b-a2 .r2h > span:nth-child(7) { grid-area:note; }
  #b-a2 .r2 > .r2pl { grid-area:pl; }
  #b-a2 .r2 > .rr-x { grid-area:x; }
}
@media (max-width:860px) { #b-a2 .r2 > .r2pl { grid-column:2 / -1; } }
#b-a2 .r2pl.off { display:none; }
#b-a2 .r2pl:not(.off)::before { content:"Где находится принятое:"; color:var(--muted); font-size:11.5px; font-weight:600; }
#b-a2 .r2pl-r .r2pl-p { max-width:300px; }
.rtside .rts-allph.ghost { border:1px solid var(--line); border-radius:9px; background:var(--card); color:var(--ink2); }
/* ---------- 1.0.20: предупреждение «программа обновлена, но не перезапущена» ---------- */
.rt-stale { margin:0 0 12px; border-color:var(--err); background:var(--err-soft, #f8e4e2); color:var(--ink); }
.rt-stale code { padding:1px 5px; border-radius:5px; background:var(--card); }
/* 1.0.20: почта пользователя для уведомлений – под Ф.И.О. */
table.users input.u-mail, table.users input.u-pos { display:block; width:100%; margin-top:5px; font-size:12.5px; padding-top:5px; padding-bottom:5px; }
table.users input.u-mail:placeholder-shown, table.users input.u-pos:placeholder-shown { background:transparent; border-style:dashed; }
table.users input.u-pos { font-weight:600; }
/* 1.0.20: статус записки о перевахтовке, правки закрыты, работа без связи */
.rt-stl { margin:6px 0 0; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.rt-st { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:999px; font-size:12.5px; font-weight:600; line-height:1.3;
  background:var(--soft); color:var(--ink2); border:1px solid var(--line); white-space:nowrap; }
.rt-st::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; opacity:.75; }
.rt-st.st-sent { background:#e7eef8; color:#2a5d9f; border-color:#c9d9ef; }
.rt-st.st-returned { background:#fdf1dc; color:#8a5a00; border-color:#f1d9a8; }
.rt-st.st-accepted { background:#e5f3ea; color:#1f7a45; border-color:#bfe2cc; }
.rt-note { border-radius:12px; padding:10px 14px; }
.rt-note.lock { border-color:#c9d9ef; background:#f2f6fc; }
.rt-note.back { border-color:#f1d9a8; background:#fef8ec; }
.rt-note-t { display:block; margin:6px 0; padding:8px 10px; border-radius:10px; background:var(--card); border:1px solid var(--line); white-space:pre-line; }
.rts-log { margin:10px 0 0; font-size:12.5px; }
.rts-log summary { cursor:pointer; color:var(--ink2); }
.rts-log ol { list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.rts-log li { padding:6px 9px; border-radius:10px; background:var(--soft); border-left:3px solid var(--line); }
.rts-log li.a-send { border-left-color:#2a5d9f; } .rts-log li.a-accept { border-left-color:#1f7a45; } .rts-log li.a-return { border-left-color:#b07800; }
.rts-log li span { display:block; margin-top:3px; white-space:pre-line; }
.rt-sts { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 12px; }
.rt-sts a { padding:5px 12px; border-radius:999px; border:1px solid var(--line); background:var(--card); color:var(--ink2); text-decoration:none; font-size:13px; }
.rt-sts a small { margin-left:4px; color:var(--muted); }
.rt-sts a.on { background:var(--ink); color:var(--card); border-color:var(--ink); }
.rt-sts a.on small { color:inherit; opacity:.75; }
.rt-locked .blocks input:disabled, .rt-locked .blocks select:disabled, .rt-locked .blocks textarea:disabled { opacity:1; color:var(--ink); background:var(--soft); cursor:default; }
.rt-locked .blocks button:disabled { display:none; }
.rt-locked .rph-box { cursor:default; }
.rph.queued .rph-box { outline:2px dashed #b07800; outline-offset:-2px; }
.rph-wait { position:absolute; left:6px; right:6px; bottom:6px; padding:3px 8px; border-radius:8px; background:rgba(255,248,230,.95); color:#7a5200;
  font-size:11.5px; font-weight:600; text-align:center; }
.rt-draft { margin:0 0 12px; border-color:#f1d9a8; background:#fef8ec; border-radius:12px; }
.rt-draft .rt-cf-a { display:inline-flex; gap:8px; margin-left:8px; flex-wrap:wrap; }
.rt-stdlg textarea { width:100%; margin-top:8px; }
.rt-stale { border-radius:12px; }
/* 1.0.20: просмотр записки – панель внизу (к заполнению, приложения, печать) */
.rpg-bar { justify-content:space-between; }
.rpg-jump { display:flex; gap:4px; flex-wrap:wrap; }
.rpg-jump a { padding:6px 11px; border-radius:999px; color:var(--ink2); text-decoration:none; font-size:13px; border:1px solid transparent; }
.rpg-jump a:hover { background:var(--soft); }
.rpg-jump a.on { background:var(--card); border-color:var(--line); color:var(--ink); font-weight:600; }
.rpg-wrap .rpg { scroll-margin-top:12px; }
@media (max-width:720px) { .rpg-jump { display:none; } .rpg-bar .rpg-up { display:none; } }
@media print { .rpg-bar { display:none !important; } }
.rtm-list input { width:100%; }
@media (max-width:720px) { .rpg-bar #rpg_print2 { display:none; } }
/* 1.0.20: упоминания «@» – подсказка при вводе и выделение в тексте */
.mn-box { position:absolute; z-index:60; margin:0; padding:5px; list-style:none; background:var(--card); border:1px solid var(--line);
  border-radius:12px; box-shadow:0 10px 28px rgba(0,0,0,.14); max-width:360px; }
.mn-box li { display:flex; flex-direction:column; gap:1px; padding:7px 10px; border-radius:8px; cursor:pointer; }
.mn-box li small { color:var(--muted); font-size:11.5px; }
.mn-box li.on, .mn-box li:hover { background:var(--soft); }
b.mention { font-weight:600; color:var(--brand-d, #3d4a5c); background:rgba(120,130,145,.14); border-radius:6px; padding:0 4px; }
.talk form, .rmk-a { position:relative; }
/* 1.0.20: копия в сетевую папку */
.bk-dir { border:1px solid var(--line); border-radius:12px; padding:10px 14px 12px; margin:12px 0; }
.bk-dir legend { padding:0 6px; font-weight:600; font-size:13.5px; }
.bk-dir input[name=backup_dir] { width:100%; }
/* 1.0.20: обновление программы из «Настроек» и ход установки */
.upd-up { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 12px; margin:10px 0 4px; }
.upd-up label { flex:1 1 280px; margin:0; }
.upd-pre { margin:12px 0 6px; padding:12px 16px; border:1px solid var(--line); border-radius:12px; background:var(--soft); }
.upd-pre > p { margin:4px 0; }
.upd-d { margin:8px 0; }
.upd-d > summary { cursor:pointer; font-size:13.5px; font-weight:600; color:var(--ink2); padding:3px 0; }
.upd-files { margin:6px 0 2px; padding:8px 12px 8px 28px; max-height:240px; overflow:auto; columns:2 260px; column-gap:24px;
  font:12.5px/1.6 ui-monospace, Consolas, monospace; background:var(--card); border:1px solid var(--line); border-radius:10px; }
.upd-files li { break-inside:avoid; }
.upd-files li.new small { font-family:"Segoe UI", Inter, Roboto, Arial, sans-serif; color:var(--ok); font-weight:600; }
.upd-notes, .upd-err pre, .upd-log { margin:6px 0 2px; padding:10px 12px; max-height:320px; overflow:auto; white-space:pre-wrap;
  font:12.5px/1.5 ui-monospace, Consolas, monospace; background:var(--card); border:1px solid var(--line); border-radius:10px; }
.upd-acts { margin-top:12px; align-items:flex-end; }
.upd-go, .upd-rev form { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px 10px; }
.upd-go label, .upd-rev label { margin:0; min-width:220px; }
.upd-err { margin:10px 0; padding:10px 14px; border-radius:10px; background:var(--err-soft); font-size:13.5px; }
.upd-busy { display:flex; align-items:center; gap:8px; margin:10px 0; padding:9px 14px; border-radius:10px; background:var(--info-soft); }
.upd-spin { width:16px; height:16px; border-radius:50%; border:2px solid currentColor; border-right-color:transparent; flex:none; opacity:.7;
  animation:updspin .8s linear infinite; }
@keyframes updspin { to { transform:rotate(360deg); } }
.upd-hist { width:100%; margin-top:14px; border-collapse:collapse; }
.upd-hist caption { text-align:left; font-weight:600; padding:0 0 6px; }
.upd-hist th, .upd-hist td { text-align:left; vertical-align:top; padding:6px 8px; border-top:1px solid var(--line); }
.upd-hist tr.r-failed td:last-child, .upd-hist tr.r-rolledback td:last-child { color:var(--err); }
.upd-hist tr.r-installed td:last-child, .upd-hist tr.r-reverted td:last-child { color:var(--ok); }
.upd-hist td .muted { color:var(--muted); }
.upd-prog { max-width:720px; }
.upd-steps { list-style:none; margin:6px 0 14px; padding:0; display:grid; gap:4px; }
.upd-steps li { display:flex; align-items:center; gap:10px; padding:7px 10px; border-radius:10px; color:var(--muted);
  transition:background-color .25s, color .25s; }
.upd-steps li.cur { background:var(--soft); color:var(--ink); font-weight:600; }
.upd-steps li.ok { color:var(--ink2); }
.upd-steps li.fail { background:var(--err-soft); color:var(--err); font-weight:600; }
.upd-ic { width:20px; height:20px; border-radius:50%; border:2px solid var(--line); flex:none; display:grid; place-items:center;
  font-size:11px; font-weight:700; line-height:1; }
.upd-steps li.ok .upd-ic { border-color:var(--ok); background:var(--ok); color:#fff; }
.upd-steps li.ok .upd-ic::after { content:"✓"; }
.upd-steps li.cur .upd-ic { border-color:var(--ink2); border-right-color:transparent; animation:updspin .8s linear infinite; }
.upd-steps li.fail .upd-ic { border-color:var(--err); background:var(--err); color:#fff; }
.upd-steps li.fail .upd-ic::after { content:"✕"; }
.upd-msg { margin:0 0 10px; }
.upd-prog.is-ok .upd-msg { color:var(--ok); font-weight:600; }
.upd-prog.is-fail .upd-msg { color:var(--err); font-weight:600; }
@media (prefers-reduced-motion:reduce) { .upd-spin, .upd-steps li.cur .upd-ic { animation-duration:2.4s; } }
.upd-hist td { overflow-wrap:anywhere; }
@media (max-width: 640px) {
  .upd-hist, .upd-hist tbody, .upd-hist tr, .upd-hist td { display:block; }
  .upd-hist tr:first-child { display:none; }
  .upd-hist tr { padding:8px 0; border-top:1px solid var(--line); }
  .upd-hist td { display:inline; border:0; padding:0 10px 0 0; }
  .upd-hist td:last-child { display:block; padding-top:2px; }
  .upd-go label, .upd-rev label { min-width:0; flex:1 1 100%; }
}

/* ---------- 1.0.20 (сборка 07.11.2026): раздел меню «Отчёты» – раскрывается по нажатию ---------- */
.ngrp { position:relative; z-index:1; display:flex; flex-direction:column; }
.ngrp-h { position:relative; z-index:1; display:flex; align-items:center; gap:10px; width:100%; margin:0; padding:9px 12px; border:0;
  border-radius:10px; background:transparent; color:#1f1f1f; font:inherit; font-weight:500; text-align:left; cursor:pointer; }
.ngrp-h:hover { background:rgba(255,255,255,.45); }
.ngrp-h:focus-visible { outline:2px solid #2b2b2b; outline-offset:-2px; }
.ngrp-h .nl { flex:1 1 auto; min-width:0; }
.ngrp-h .ic { transition:transform .22s cubic-bezier(.3,.8,.3,1.5); }
.ngrp-h:hover .ic { transform:translateX(2px) scale(1.1); }
.ngrp-h.has-on .nl { font-weight:650; }
.ngrp-ch { flex:none; width:15px; height:15px; opacity:.55; transition:transform .32s cubic-bezier(.3,.8,.25,1), opacity .2s; }
.ngrp-h:hover .ngrp-ch { opacity:.85; }
.ngrp.open .ngrp-ch { transform:rotate(90deg); }
.ngrp-b { display:grid; grid-template-rows:0fr; transition:grid-template-rows .36s cubic-bezier(.3,.8,.25,1); }
.ngrp.open .ngrp-b { grid-template-rows:1fr; }
.ngrp-in { min-height:0; overflow:hidden; display:flex; flex-direction:column; gap:2px; margin-left:21px; padding-left:8px;
  border-left:1.5px solid rgba(0,0,0,.14); }
.ngrp-in > a { position:relative; z-index:1; opacity:0; transform:translateX(-8px); transition:opacity .2s ease, transform .28s cubic-bezier(.3,.8,.25,1), background .15s; }
.ngrp-in > a:first-child { margin-top:2px; } .ngrp-in > a:last-child { margin-bottom:2px; }
.ngrp.open .ngrp-in > a { opacity:1; transform:none; transition-delay:calc(var(--i, 0) * 55ms + 80ms), calc(var(--i, 0) * 55ms + 80ms), 0s; }
.sidebar nav.pilled .ngrp a.on { background:transparent; box-shadow:none; }
.sidebar nav:not(.pilled) .ngrp:not(.open) .ngrp-h.has-on { background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.08); }
html[data-motion=less] .ngrp-b, html[data-motion=less] .ngrp-in > a, html[data-motion=less] .ngrp-ch { transition:none !important; }
@media (prefers-reduced-motion: reduce) { .ngrp-b, .ngrp-in > a, .ngrp-ch { transition:none !important; } }
body.touring .ngrp-b { grid-template-rows:1fr; transition:none; }
body.touring .ngrp-in > a { opacity:1; transform:none; transition:none; }
@media (min-width:861px) {
  html[data-menu=mini] body:not(.touring) .ngrp-h { justify-content:center; padding:9px 0; }
  html[data-menu=mini] body:not(.touring) .ngrp-ch { position:absolute; right:2px; bottom:4px; width:11px; height:11px; }
  html[data-menu=mini] body:not(.touring) .ngrp-in { margin:0 2px; padding:0; border-left:0; border-radius:12px; background:rgba(255,255,255,.3); }
  html[data-menu=mini] body:not(.touring) .ngrp-in > a { justify-content:center; padding:8px 0; }
}
@media (max-width:860px) {
  .ngrp { display:contents; }
  .ngrp-h { width:auto; }
  .ngrp-b { flex-basis:100%; }
  .ngrp-in { flex-direction:row; flex-wrap:wrap; margin-left:12px; }
}

/* ---------- 1.0.20: отчёт ЛРР – список обществ за квартал ---------- */
.lr-qbar { display:flex; align-items:center; gap:10px 14px; flex-wrap:wrap; padding:12px 16px; margin-bottom:14px; }
.lr-qnav { display:grid; place-items:center; flex:none; width:38px; height:38px; border:1px solid var(--line); border-radius:11px;
  background:var(--card); color:var(--ink); text-decoration:none; transition:border-color .15s, transform .12s; }
.lr-qnav svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.lr-qnav:hover { border-color:var(--brand-d); }
.lr-qnav:active { transform:scale(.96); }
.lr-qnav.off { opacity:.3; }
.lr-qt { display:flex; flex-direction:column; min-width:0; }
.lr-qt b { font-size:18px; font-weight:650; letter-spacing:-.01em; }
.lr-qt small { color:var(--muted); font-size:13px; }
.lr-q-run { color:#2a5d9f; } .lr-q-late { color:var(--err); font-weight:600; }
.lr-qcur { margin-left:auto; }
.lr-sum { padding:14px 16px; margin-bottom:14px; }
.lr-sum-h { display:flex; align-items:baseline; gap:6px 16px; flex-wrap:wrap; }
.lr-sum-h b { font-size:16px; }
.lr-sum-l { display:flex; align-items:center; gap:4px 12px; flex-wrap:wrap; color:var(--muted); font-size:13px; }
.lr-sum-l i { display:inline-block; width:10px; height:10px; margin-right:-6px; border-radius:3px; }
.lr-sbar { display:flex; gap:3px; height:10px; margin-top:10px; overflow:hidden; border-radius:6px; background:var(--soft); }
.lr-sbar i { display:block; min-width:8px; transition:flex-grow .5s; }
.lr-sum-l i.st-accepted, .lr-sbar i.st-accepted { background:#3d8b57; }
.lr-sum-l i.st-sent, .lr-sbar i.st-sent { background:#3f72b8; }
.lr-sum-l i.st-returned, .lr-sbar i.st-returned { background:#d39a1e; }
.lr-sum-l i.st-draft, .lr-sbar i.st-draft { background:#9e9e9e; }
.lr-sum-l i.st-none, .lr-sbar i.st-none { background:#dedede; }
.rt-st.st-none { background:transparent; border-style:dashed; color:var(--muted); }
.rt-st.st-none::before { opacity:.4; }
table.lrlist td { vertical-align:middle; }
table.lrlist td.c { white-space:nowrap; }
.lr-co { display:block; color:var(--muted); font-size:12px; font-weight:400; }
tr.lr-late td { opacity:.62; }
.lr-dc { display:inline-block; padding:1px 8px; border-radius:8px; background:#fff3d6; color:#8a5a00; font-size:12px; font-weight:700; }
.lr-dc.bad { background:var(--err-soft, #f8e4e2); color:var(--err); }
.lr-okm { color:var(--ok); font-size:12.5px; font-weight:600; white-space:nowrap; }
.lr-newf { display:inline; margin:0; }
.lr-hint, .lr-others { margin:8px 4px 14px; }
.lr-note { padding:14px 16px; }
.lr-note h2 small { font-weight:400; font-size:13px; }
.lr-note-f textarea { display:block; width:100%; margin:0; }
.lr-note-a { display:flex; align-items:center; gap:8px 10px; flex-wrap:wrap; margin-top:8px; }
.lr-my { padding:16px 18px; margin-bottom:14px; }
.lr-my-h { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.lr-my-ic { display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:14px; background:var(--acc-soft); color:var(--acc); }
.lr-my-ic .ic { width:23px; height:23px; }
.lr-my-t { display:flex; flex-direction:column; flex:1 1 220px; min-width:0; }
.lr-my-t b { font-size:16px; } .lr-my-t small { color:var(--muted); }
.lr-my-p { display:flex; align-items:center; gap:8px 12px; flex-wrap:wrap; margin:14px 0 12px; }
.lr-my-p .rts-bar { flex:1 1 220px; margin:0; }
.lr-my-a { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.lr-my-new { margin:12px 0; color:var(--ink2); }
.lr-h2 { margin:22px 4px 10px; }
.lrset-t input[type=text], .lrset-t select { width:100%; min-width:110px; margin:0; }
.lrset-t input.lrset-n { width:64px; min-width:0; text-align:center; }
.lrset section.card { margin-bottom:14px; }

/* ---------- 1.0.20: отчёт ЛРР – форма общества ---------- */
.lrform .lr-when { display:inline-block; margin-left:6px; padding:1px 8px; border:1px solid var(--line); border-radius:999px; background:var(--soft);
  color:var(--muted); font-size:11.5px; font-weight:600; vertical-align:2px; white-space:nowrap; }
.lrform .lr-when.stock { border-color:#d5e2f2; background:#eef4fb; color:#2a5d9f; }
.rx-boxes.lr-two { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.rx-boxes.lr-one { grid-template-columns:minmax(0, 1fr); margin-top:14px; }
.lrform .rx-box { grid-template-columns:repeat(auto-fit, minmax(118px, 1fr)); }
.lrform .rx-box.lr-wide { grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); }
.lrform .rx-box legend { text-transform:none; letter-spacing:0; font-size:12.5px; color:var(--ink2); }
.lrform .rx-box legend .rmk-add { margin-left:6px; width:24px; height:24px; font-size:12px; vertical-align:middle; }
.lrform .lr-negbox { border-color:#efdcb5; }
.lr-out { display:flex; flex-direction:column; justify-content:flex-end; gap:6px; font-size:12.5px; font-weight:600; color:var(--muted); }
.lr-out output { display:flex; align-items:center; justify-content:center; min-height:38px; padding:6px 8px; border:1px dashed var(--line); border-radius:10px;
  background:var(--soft); color:var(--ink); font-weight:700; font-variant-numeric:tabular-nums; }
.lrform input.lr-n { font-weight:600; font-variant-numeric:tabular-nums; transition:background .2s, border-color .2s, color .2s; }
.lrform input.lr-n::placeholder { color:#b5b5b5; font-weight:400; }
.lrform input.lr-n.neg { border-color:#e5c27f; background:#fff6e4; color:#7a4b00; }
.lrform input.lr-n.bad { border-color:#e3a29b; background:#fdecea; color:#8f1d16; }
.lr-auto-l { margin:10px 2px 0; color:var(--muted); font-size:13px; }
.lr-auto-l output { color:var(--ink); font-weight:700; }
.lr-tools { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; margin-top:12px; }
.lr-tools button { padding:5px 11px; font-size:12.5px; }
.lr-early { border-color:#c9d9ef; background:#f2f6fc; }
/* оружие и спецсредства – таблица ввода */
.lr-mxw { overflow-x:auto; margin:0 -2px; padding:0 2px 2px; }
.lr-mx { width:100%; border-collapse:separate; border-spacing:0; font-size:13px; }
.lr-mx th { padding:7px 6px; border-bottom:1px solid var(--line); background:var(--soft); color:var(--ink2); font-size:11.5px; font-weight:700; text-align:center; }
.lr-mx thead tr:first-child th { font-size:11.5px; letter-spacing:.04em; text-transform:uppercase; }
.lr-mx thead tr:first-child th:first-child { border-radius:10px 0 0 0; }
.lr-mx thead tr:first-child th:last-child { border-radius:0 10px 0 0; }
.lr-mx td { padding:5px 4px; border-bottom:1px solid var(--line); text-align:center; }
.lr-mx tbody th.lr-mx-k { min-width:170px; padding-left:10px; background:transparent; color:var(--ink); font-size:13px; font-weight:600; text-align:left; white-space:nowrap; }
.rx-boxes.lr-one > .rx-box:not(.lr-wide) { max-width:380px; }
.lr-mx thead th.lr-mx-k { text-align:left; padding-left:10px; }
.lr-mx th.lr-mx-k b { display:inline-block; min-width:28px; color:var(--muted); font-weight:700; }
.lr-mx td input { width:100%; min-width:68px; margin:0; text-align:center; }
.lr-mx6 tbody td:nth-of-type(4), .lr-mx6 thead tr:nth-child(2) th:nth-child(4), .lr-mx6 thead tr:first-child th:nth-child(3) { border-left:2px solid var(--line); }
.lr-mx tr.lr-mx-t td, .lr-mx tr.lr-mx-t th { background:var(--soft); font-weight:700; font-variant-numeric:tabular-nums; }
.lr-mx tr.lr-mx-t th.lr-mx-k { background:var(--soft); }
.lr-mx .lr-mx-c { width:78px; }
.lr-mx tr[data-r] th .rmk-add { margin-left:6px; width:24px; height:24px; font-size:12px; }
.lr-ctl { font-size:15px; font-weight:700; cursor:default; }
.lr-ctl.ok { color:var(--ok); }
.lr-ctl.bad { color:var(--err); }
/* расхождение в контроле – с пояснением */
.lr-dx { margin:10px 0 0; padding:10px 12px; border:1px solid #f0d49a; border-left:4px solid #d39a1e; border-radius:12px; background:#fffaf0; }
.lr-dx.need { border-color:#eab0a8; border-left-color:#c0392b; background:#fff5f4; }
.lr-dx-h { margin:0 0 6px; color:#6a4a00; font-size:13px; }
.lr-dx.need .lr-dx-h { color:#8f1d16; }
.lr-dx-f { display:flex; flex-direction:column; gap:4px; margin:0; color:var(--muted); font-size:12px; font-weight:600; }
.lr-dx-f textarea { width:100%; min-height:38px; margin:0; font-weight:400; resize:vertical; }
/* «окно» пояснений – по строке на каждый случай */
.lx { display:grid; grid-template-rows:0fr; opacity:0; margin:0; transition:grid-template-rows .36s cubic-bezier(.3,.8,.25,1), opacity .26s ease, margin .36s cubic-bezier(.3,.8,.25,1); }
.lx.on { grid-template-rows:1fr; opacity:1; margin:14px 0 0; }
.lx > .lx-in { min-height:0; overflow:hidden; }
.lx-box { padding:12px 14px; border:1px solid #c6e3df; border-left:4px solid #1f7f78; border-radius:14px; background:#f3faf9; }
.lx-h { display:flex; align-items:center; gap:8px 12px; flex-wrap:wrap; margin-bottom:8px; }
.lx-t { color:#155e59; font-size:14px; }
.lx-c { padding:1px 9px; border:1px solid #c6e3df; border-radius:999px; background:#fff; color:var(--muted); font-size:12px; font-weight:700; }
.lx-c.ok { border-color:#bfe2cc; background:#eef8f1; color:var(--ok); }
.lx-c.bad { border-color:#eab0a8; background:#fdeeec; color:var(--err); }
.lx-same { margin-left:auto; }
.lx-hd, .lx-r { display:grid; grid-template-columns:30px minmax(0, 5fr) minmax(0, 7fr) 30px; gap:8px; align-items:center; }
.lx-hd.q, .lx-rows.q .lx-r { grid-template-columns:30px minmax(0, 5fr) 96px minmax(0, 7fr) 30px; }
.lx-hd { padding:0 0 4px; color:var(--muted); font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.lx-rows { display:flex; flex-direction:column; gap:6px; }
.lx-r input { width:100%; margin:0; background:#fff; }
.lx-r input.qn { text-align:center; }
.lx-n { display:grid; place-items:center; width:28px; height:28px; border-radius:9px; background:#dcefec; color:#155e59; font-size:12px; font-weight:700;
  transition:background .2s, color .2s; }
.lx-r.done .lx-n { background:#1f7f78; color:#fff; }
.lx-r.extra { padding:4px; border-radius:10px; background:#fdeeec; }
.lx-r.extra .lx-n { background:#c0392b; color:#fff; }
.lx-xn { grid-column:2 / -1; color:var(--err); font-size:12px; }
.lx-r .rr-x { width:28px; height:28px; padding:0; }
.lx-f { margin-top:8px; }
.lx .rmk { margin:6px 0 10px; }
.lx-ml { display:none; }
@media (max-width:640px) {
  .lx-hd { display:none; }
  .lx-r, .lx-rows.q .lx-r { grid-template-columns:28px minmax(0, 1fr) 28px; row-gap:3px; }
  .lx-r > .lx-n { grid-column:1; grid-row:1; }
  .lx-r > .lx-ml { display:block; grid-column:2; margin-top:4px; color:var(--muted); font-size:11px; font-weight:700; letter-spacing:.03em;
    text-transform:uppercase; }
  .lx-r > .lx-n + .lx-ml { margin-top:0; align-self:center; }
  .lx-r > input { grid-column:2; }
  .lx-r > .rr-x, .lx-r > .lx-sp { grid-column:3; grid-row:1; }
  .rx-boxes.lr-two { grid-template-columns:1fr; }
  .lx-same { margin-left:0; }
}
/* сторона: контроль и пояснения */
.lrs-ctl { margin:10px 0 4px; font-size:13px; }
.lrs-ctl:empty { display:none; }
.lrs-ctl b { display:block; margin-top:6px; }
.lrs-ctl ul { margin:4px 0 6px; padding-left:18px; }
.lrs-ctl li.bad a { color:var(--err); } .lrs-ctl li.ok a { color:var(--ok); } .lrs-ctl li.part a { color:#8a5a00; }
.lrs-okh { color:var(--ok); }
.rts-log li.a-edit { border-left-color:#7b63f2; }
.rts-log li.a-edit span { font-size:12px; }

/* ---------- 1.0.20: листы отчёта ЛРР – как в отчёте ОЛРР (лист всегда белый, как и при печати) ---------- */
.lrs-who { display:flex; flex-wrap:wrap; gap:6px; padding:10px 12px; margin-bottom:12px; }
.lrs-chip { display:inline-flex; align-items:baseline; gap:6px; padding:4px 10px; border:1px dashed var(--line); border-radius:999px; color:var(--muted); font-size:13px; }
.lrs-chip.on { border-style:solid; background:var(--soft); color:var(--ink); }
.lrs-chip small { color:var(--muted); font-size:11.5px; }
.rpg.lrs { padding:11mm 12mm 10mm; color:#1a1a1a; font:10pt/1.35 Calibri, "Segoe UI", Arial, sans-serif; }
.rpg .lrs-h { display:flex; align-items:center; gap:12px; padding-bottom:7px; border-bottom:2px solid #262626; }
.rpg .lrs-logo { width:auto; height:15mm; }
.rpg .lrs-ht h2 { margin:0; color:#000; font-size:18pt; font-weight:700; letter-spacing:-.01em; }
.rpg .lrs-ht p { margin:2px 0 0; color:#595959; font-size:10.5pt; }
.rpg .lrs-warn { margin:6px 0 0 !important; color:#000; font-size:9.5pt; font-weight:700; }
.rpg .lrs-warn.bad { color:#b3261e; }
.rpg .lrs-body { display:grid; grid-template-columns:minmax(0, 32%) minmax(0, 1fr); gap:0 8mm; margin-top:6mm; }
.rpg.lrs h3 { margin:0 0 4pt; color:#000; font-size:10.5pt; font-weight:700; }
.rpg .lrs-tot { align-self:start; }
.rpg .lrs-big { display:grid; grid-template-columns:1fr 1fr; padding:6pt 8pt 4pt; background:#f2f2f2; }
.rpg .lrs-big.one { grid-template-columns:1fr; }
.rpg .lrs-big b { display:block; color:#1a1a1a; font-size:26pt; font-weight:700; line-height:1.1; font-variant-numeric:tabular-nums; }
.rpg .lrs-big small { display:block; color:#595959; font-size:9pt; }
.rpg .lrs-list { width:100%; border-collapse:collapse; background:#f2f2f2; font-size:9.5pt; }
.rpg .lrs-list td { padding:2.5pt 8pt; border:0; color:#1a1a1a; }
.rpg .lrs-list td.n { font-size:10pt; font-weight:700; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.rpg .lrs-list td.at { background:#d9d9d9; }
.rpg .lrs-list tr.lh td { padding-top:4pt; color:#595959; font-size:8.5pt; font-weight:400; }
.rpg .lrs-list tr.b td { font-weight:700; }
.rpg .lrs-toph { margin:0 !important; padding:5pt 8pt 2pt; background:#f2f2f2; color:#595959; font-size:8.5pt; font-weight:700; }
.rpg .lrs-t { width:100%; border-collapse:collapse; font-size:9pt; }
.rpg .lrs-t th { padding:4pt; border:1px solid #fff; background:#262626; color:#fff; font-size:9pt; font-weight:700; text-align:center; vertical-align:middle; }
.rpg .lrs-t thead tr.sub th { background:#595959; font-size:8pt; }
.rpg .lrs-t th.k { min-width:25mm; }
.rpg .lrs-t td { padding:2.5pt 4pt; border:1px solid #d0d0d0; color:#1a1a1a; text-align:left; vertical-align:middle; }
.rpg .lrs-t td.n { text-align:center; white-space:nowrap; font-variant-numeric:tabular-nums; }
.rpg .lrs-t td.b { font-weight:700; }
.rpg .lrs-t tbody tr:nth-child(odd):not(.tot) td { background:#f2f2f2; }
.rpg .lrs-t tr.tot td { background:#d9d9d9; font-weight:700; }
.rpg .lrs-t tbody tr:nth-child(n) td.at { background:#d9d9d9; font-weight:700; }
.rpg .lrs-t tbody tr.tot:nth-child(n) td.at { background:#bfbfbf; }
.rpg .lrs-t tr.nd td { color:#7a7a7a; font-style:italic; }
.rpg .lrs-t tr.nd td.k { color:#6e6e6e; font-style:normal; }
.rpg .lrs-leg { margin:6pt 0 0 !important; color:#595959; font-size:8.5pt; }
.rpg .lrs-ex { margin-top:7mm; break-inside:avoid; }
.rpg .lrs-exh { display:flex; align-items:baseline; justify-content:space-between; gap:12pt; margin-bottom:3pt; }
.rpg .lrs-exh h3 { margin:0; font-size:11pt; }
.rpg .lrs-exh span { color:#595959; font-size:9.5pt; font-weight:700; }
.rpg .lrs-exh span.bad { color:#b3261e; }
.rpg .lrs-et td { vertical-align:top; }
.rpg .lrs-et td.bad { color:#b3261e; font-weight:700; }
.rpg .lrs-ch { margin-top:6mm; break-inside:avoid; }
.rpg .lrs-svg { display:block; width:100%; height:auto; }
.rpg .lrs-svg .lg, .rpg .lrs-svg .ct { fill:#1a1a1a; font:12px Calibri, "Segoe UI", Arial, sans-serif; }
.rpg .lrs-svg .vl { fill:#404040; font:11px Calibri, "Segoe UI", Arial, sans-serif; }
.rpg .lrs-svg .vl.sm { font-size:10px; }
.rpg .lrs-svg .ax { stroke:#a6a6a6; stroke-width:1; }
.rpg .lrs-dt { margin-top:5mm; font-size:8pt; }
.rpg .lrs-dt th.cn { font-size:7.5pt; }
.rpg .lrs-dt td { padding:1.5pt 3pt; }
.rpg .lrs-dt tbody tr.sec:nth-child(n) td { background:#d9d9d9; font-weight:700; }
.rpg .lrs-dt td.mu { color:#595959; }
.rpg .lrs-dt tbody tr:nth-child(n) td.tt { background:#e6e6e6; }
.rpg .lrs-dt tbody tr:nth-child(n) td.ndc { background:#fafafa; }
.rpg .lrs-dt tbody tr.ft:nth-child(n) td { background:#595959; color:#fff; font-weight:700; }
.rpg .lrs-dt td.c { text-align:center; }
@media print { .lrs-who { display:none !important; } .rpg.lrs { break-after:page; } }
/* 1.0.21: просмотр ЛРР = печать (lrrview.js): лист – ровно альбомный A4, раздел выше листа продолжается на следующем;
   серые заливки и тёмные шапки таблиц печатаются и без галочки «Фон» в окне печати */
.rpg.lrs { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.lrs-wrap.paged .rpg.lrs { height:210mm; min-height:0; overflow:hidden; }
.rpg .lrs-ht h2 .lrs-cont, .rpg.lrs h3 .lrs-cont { color:#7a7a7a; font-weight:400; }
.rpg .lrs-ht h2 .lrs-cont { font-size:13pt; }
.rpg .lrs-body.cont { margin-top:4mm; }
.rpg .lrs-body.cont .lrs-tot { visibility:hidden; }
.rpg .lrs-ex.cont { margin-top:4mm; }
.rpg-np:empty { display:none; }
.rpg-np { align-self:center; margin-right:4px; white-space:nowrap; }
@media print {
  .lrs-wrap.paged .rpg.lrs { break-inside:avoid; page-break-inside:avoid; }
  .lrs-wrap.paged .rpg.lrs:last-child { break-after:auto; }
}

/* ---------- 1.0.20 (08.11): значки разделов в формах ЛРР и перевахтовки, компактный список обществ ---------- */
.block h2 > span.blk-ic { width:30px; height:30px; flex:none; border-radius:9px; background:#e2f2f0; color:#1f7f78; }
.block h2 > span.blk-ic .ic { width:18px; height:18px; }
.rts-ic { display:inline-flex; vertical-align:-3px; margin-right:7px; color:#1f7f78; }
.rts-ic .ic { width:15px; height:15px; }
.rts-blocks li.done .rts-ic { color:var(--ok); }
@media (max-width:640px) { .block h2 > span.blk-ic { width:26px; height:26px; } .block h2 > span.blk-ic .ic { width:16px; height:16px; } }
table.lr-compact td { padding-top:7px; padding-bottom:7px; }
table.lr-compact td.lr-who { max-width:250px; }
table.lr-compact td.lr-who b { display:block; font-size:15.5px; line-height:1.25; letter-spacing:-.01em; }
table.lr-compact .lr-co { overflow:hidden; max-width:250px; margin-top:1px; font-size:11.5px; text-overflow:ellipsis; white-space:nowrap; }
table.lr-compact td.lr-upd { min-width:118px; max-width:190px; line-height:1.35; }      /* дата – строкой, кто – под ней */
table.lr-compact td.lr-upd .nowrap { display:block; color:var(--ink2); }
@media (max-width:1400px) { table.lr-compact td.lr-who, table.lr-compact .lr-co { max-width:200px; } }
/* раздел заполнен – номер раздела и галочка «щёлкают»; ⚠ ↔ ✓ в контроле */
.block h2 > span.done.just, .rts-blocks li.just .rts-n, .fbb.just { animation:blkJust .5s cubic-bezier(.2,.8,.3,1.25); }
.block h2 > span.done.just::after, .fbb.done.just::after { animation:ckJust .55s cubic-bezier(.2,.8,.3,1.4); }
.rts-blocks li.just small { display:inline-block; animation:ckJust .55s cubic-bezier(.2,.8,.3,1.4); }
@keyframes blkJust { 0% { transform:scale(1); } 40% { transform:scale(1.22); } 100% { transform:scale(1); } }
@keyframes ckJust { 0% { transform:scale(0) rotate(-30deg); opacity:0; } 60% { transform:scale(1.35); opacity:1; } 100% { transform:none; opacity:1; } }
.lr-ctl-i { display:inline-block; }
/* штамп «Принят» в шапке отчёта ЛРР и записки о перевахтовке */
.rt-stamp { display:inline-flex; flex-direction:column; align-items:center; gap:2px; flex:none; margin:0 4px; padding:6px 15px 5px;
  border:3px double #2f7a48; border-radius:11px; color:#2f7a48; transform:rotate(-7deg); line-height:1; opacity:.92;
  pointer-events:none; user-select:none; }
.rt-stamp b { font-size:17px; font-weight:800; letter-spacing:.2em; text-transform:uppercase; }
.rt-stamp small { font-size:10.5px; font-weight:700; letter-spacing:.06em; }
@media print { .rt-stamp { display:none; } }
/* сводка центра: полосы «вырастают» при открытии, отметки заполнения разделов появляются по очереди */
.lr-sbar i { transform-origin:left center; animation:sbarIn .75s cubic-bezier(.2,.7,.2,1) both; animation-delay:calc(var(--i, 0) * 110ms); }
@keyframes sbarIn { from { transform:scaleX(0); } to { transform:none; } }
.rt-strip i { animation:stripIn .45s cubic-bezier(.2,.7,.3,1.2) both; animation-delay:calc(var(--r, 0) * 45ms + var(--j, 0) * 35ms + 120ms); }
@keyframes stripIn { from { transform:scaleY(.2); opacity:0; } to { transform:none; opacity:1; } }
.lr-my-p .rts-bar span { transform-origin:left center; animation:sbarIn .9s cubic-bezier(.2,.7,.2,1) .15s both; }
@media (prefers-reduced-motion: reduce) { .lr-sbar i, .rt-strip i, .lr-my-p .rts-bar span { animation:none; } }
/* листы ЛРР: столбики диаграмм «вырастают», когда лист показывается на экране */
.rpg .lrs-svg .b { transform-box:fill-box; }
.rpg .lrs-svg .b.h { transform-origin:left center; }
.rpg .lrs-svg .b.v { transform-origin:center bottom; }
.lrs-ch.wait .lrs-svg .b, .lrs-ch.wait .lrs-svg .vl { opacity:0; }
.lrs-ch.in .lrs-svg .b.h { animation:barH .7s cubic-bezier(.2,.7,.2,1) both; animation-delay:calc(var(--i, 0) * 45ms); }
.lrs-ch.in .lrs-svg .b.v { animation:barV .7s cubic-bezier(.2,.7,.2,1) both; animation-delay:calc(var(--i, 0) * 45ms); }
.lrs-ch.in .lrs-svg .vl { animation:vlIn .4s ease-out both; animation-delay:calc(var(--i, 0) * 45ms + 450ms); }
@keyframes barH { from { transform:scaleX(0); } to { transform:none; } }
@keyframes barV { from { transform:scaleY(0); } to { transform:none; } }
@keyframes vlIn { from { opacity:0; } to { opacity:1; } }
@media print { .lrs-ch .lrs-svg .b, .lrs-ch .lrs-svg .vl { animation:none !important; opacity:1 !important; } }
/* проверяющему: что изменилось после возврата – фиолетовая подсветка, «было» зачёркнуто */
.lrform .rx-box label, .lr-mx td { position:relative; }
.rtform input.chg, .rtform textarea.chg, .rtform select.chg { border-color:#7b63f2 !important; box-shadow:0 0 0 2px rgba(123,99,242,.22); }
.rtform .mk.chg, .rtform .seg.chg, .rtform .r2pl.chg { border-radius:10px; box-shadow:0 0 0 2px rgba(123,99,242,.5); }
.lr-was { position:absolute; z-index:1; padding:0 6px; border-radius:8px; background:#efeafd; color:#5b46b5; font-size:10.5px; font-weight:700;
  line-height:16px; white-space:nowrap; pointer-events:none; }
.lrform .rx-box label > .lr-was { bottom:29px; right:-6px; }
.lr-mx td > .lr-was { top:-4px; right:-3px; }
.lr-was-t { margin:4px 0 0; color:#5b46b5; font-size:12px; }
.rt-was { display:block; margin:2px 0 0; color:#5b46b5; font-size:11.5px; line-height:1.3; overflow-wrap:anywhere; }
.rt-was-g { grid-column:1 / -1; margin:-2px 0 0; }
.lx-r.chg-new, .rtform [data-row].chg-new { border-radius:10px; background:rgba(123,99,242,.07); box-shadow:inset 3px 0 0 #7b63f2; }
.lx-gone { margin:6px 0 0; padding:5px 10px; border:1px dashed #c9bdf6; border-radius:9px; color:#5b46b5; font-size:12px; text-decoration:line-through; }
.rph.chg .rph-box { box-shadow:0 0 0 3px #7b63f2; }
.rph.chg-gone .rph-box { box-shadow:0 0 0 3px #c9bdf6; }
.rts-diff { margin:10px 0 6px; padding:9px 11px; border:1px solid #d9d0fb; border-left:4px solid #7b63f2; border-radius:12px; background:#f7f4ff; font-size:12.5px; }
.rts-diff > b { display:block; color:#4f3990; font-size:13px; }
.rts-diff > small { display:block; margin:2px 0 4px; color:var(--muted); }
.rts-diff ul { margin:4px 0 2px; padding-left:16px; }
.rts-diff li { margin:3px 0; overflow-wrap:anywhere; }
.rts-diff a { color:#4f3990; }
.rts-diff s { color:var(--muted); }
.rts-diff .rd-now { color:#2b2b2b; font-weight:600; }
/* «Отменить» вместо «Вы уверены?»: уведомление с кнопкой и полоской обратного отсчёта (10 секунд) */
.toast.undo { position:relative; align-items:center; overflow:hidden; padding-bottom:14px; }
.toast.undo .toast-ic { background:var(--dark); }
.toast.undo .toast-ic::after { content:"↶"; position:absolute; inset:0; display:grid; place-items:center; color:#fff; font:700 15px/1 Arial, sans-serif; }
.toast-undo { flex:none; padding:5px 12px; border:1px solid var(--dark); border-radius:9px; background:var(--dark); color:#fff; font-size:13px; font-weight:700; }
.toast-undo:hover { filter:brightness(1.15); }
.toast-tm { position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--dark); opacity:.55; transform-origin:left center;
  animation:undoTm var(--undo-ms, 10s) linear forwards; }
@keyframes undoTm { from { transform:scaleX(1); } to { transform:scaleX(0); } }
/* удаляется страница документа: содержимое гаснет, пока можно «Отменить» */
main.undo-gone > :not(.toasts), .undo-gone:not(main) { opacity:.22; filter:grayscale(1); pointer-events:none; transition:opacity .3s, filter .3s; }
/* 1.0.20 – «Корзина»: удалённые сообщения, записки и отчёты ЛРР 30 дней можно вернуть */
.trl { display:grid; gap:10px; }
.tri { display:grid; grid-template-columns:auto minmax(0, 1fr) auto auto; align-items:center; gap:6px 16px; margin:0; padding:14px 16px;
  animation:triIn .4s cubic-bezier(.2,.8,.2,1) both; animation-delay:calc(min(var(--r, 0), 12) * 35ms); }
@keyframes triIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.tri-ic { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:var(--acc-soft); color:var(--acc); }
.tri-ic .ic { width:22px; height:22px; }
.tri-t { min-width:0; }
.tri-h { display:block; font-size:15.5px; line-height:1.3; }
.tri-reg { display:inline-block; margin-left:4px; padding:1px 7px; border-radius:7px; background:var(--soft); color:var(--ink2); font-size:11.5px;
  font-weight:700; letter-spacing:.02em; vertical-align:2px; }
.tri-i { margin:3px 0 2px; overflow:hidden; color:var(--ink2); font-size:13px; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2;
  -webkit-box-orient:vertical; overflow-wrap:anywhere; }
.tri-m { color:var(--muted); font-size:12px; }
.tri-left { color:var(--muted); font-size:12.5px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.tri-left.soon { color:#b4552a; font-weight:650; }
.tri-a { display:flex; gap:8px; align-items:center; }
.tri-a form { margin:0; }
.tri-a .ic { width:15px; height:15px; margin-right:5px; vertical-align:-2px; }
@media (max-width:760px) {
  .tri { grid-template-columns:auto minmax(0, 1fr); padding:12px; }
  .tri-left { grid-column:2; }
  .tri-a { grid-column:1 / -1; justify-content:flex-end; flex-wrap:wrap; }
}
@media (prefers-reduced-motion: reduce) { .tri { animation:none; } }
html[data-motion=less] .tri { animation:none; }
/* 1.0.20 – «Состояние программы»: диск и прогноз, почта, резервные копии, фоновые задания, база */
.sp { --sp-ok:#2f7a48; --sp-warn:#b07a0c; --sp-err:#b3261e; }
.sp-sum { position:relative; overflow:hidden; margin-bottom:16px; padding:18px 20px 18px 24px; animation:spIn .45s cubic-bezier(.2,.8,.2,1) backwards; }
.sp-sum::before { content:""; position:absolute; inset:0 auto 0 0; width:5px; background:var(--sp-ok); }
.sp-sum.lv-warn::before { background:var(--sp-warn); } .sp-sum.lv-error::before { background:var(--sp-err); }
.sp-sum.lv-error { background:linear-gradient(120deg, #fff4f2, var(--card) 55%); }
.sp-sum.lv-warn { background:linear-gradient(120deg, #fffaf0, var(--card) 55%); }
.sp-sum-h { display:flex; align-items:center; gap:14px; }
.sp-sum-ic { display:grid; flex:none; place-items:center; width:48px; height:48px; border-radius:50%; background:#e5f1e9; color:var(--sp-ok); }
.sp-sum-ic .ic { width:25px; height:25px; }
.lv-warn > .sp-sum-h .sp-sum-ic { background:#f6ecdc; color:var(--sp-warn); }
.lv-error > .sp-sum-h .sp-sum-ic { background:#f8e4e2; color:var(--sp-err); animation:spRing 2.6s ease-out infinite; }
.sp-sum.lv-ok .sp-sum-ic .ic { animation:spCheck .7s cubic-bezier(.3,.8,.3,1.3) .15s backwards; }
.sp-sum-t h2 { margin:0; font-size:20px; line-height:1.25; }
.sp-sum-t p { margin:3px 0 0; color:var(--muted); font-size:13.5px; line-height:1.45; }
.sp-at { white-space:nowrap; } .sp-at::before { content:" · "; }
.sp-at time { font-variant-numeric:tabular-nums; }
.sp-probs { display:grid; gap:8px; margin:14px 0 0; padding:0; list-style:none; }
.sp-p { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; align-items:center; gap:10px; padding:10px 12px; border-radius:12px;
  background:#fbf4e6; animation:spIn .45s cubic-bezier(.2,.8,.2,1) backwards; animation-delay:calc(var(--i, 0) * 70ms + 140ms); }
.sp-p.lv-error { background:#fbeceb; }
.sp-p-ic { display:grid; place-items:center; color:var(--sp-warn); } .sp-p.lv-error .sp-p-ic { color:var(--sp-err); }
.sp-p-ic .ic { width:19px; height:19px; }
.sp-p-t { min-width:0; }
.sp-p-h { color:var(--ink); font-weight:650; text-decoration:none; }
.sp-p-h:hover { text-decoration:underline; text-underline-offset:3px; }
.sp-p-t small { display:block; margin-top:2px; color:var(--ink2); font-size:12.5px; line-height:1.4; overflow-wrap:anywhere; }
.sp-p .btn { white-space:nowrap; }
.sp-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; align-items:stretch; }
.sp-card { min-width:0; margin:0; padding:16px 18px; scroll-margin-top:16px; animation:spIn .5s cubic-bezier(.2,.8,.2,1) backwards; }
.sp-grid > :nth-child(2) { animation-delay:50ms; } .sp-grid > :nth-child(3) { animation-delay:100ms; }
.sp-grid > :nth-child(4) { animation-delay:150ms; } .sp-grid > :nth-child(5) { animation-delay:200ms; }
.sp-grid > :nth-child(6) { animation-delay:250ms; } .sp-grid > :nth-child(7) { animation-delay:300ms; }
.sp-card.lv-warn { box-shadow:inset 0 3px 0 #d9a23a, var(--shadow); }
.sp-card.lv-error { box-shadow:inset 0 3px 0 #c9483f, var(--shadow); }
.sp-wide { grid-column:1 / -1; }
.sp-h { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.sp-h h2 { margin:0; font-size:16px; }
.sp-ic { display:grid; flex:none; place-items:center; width:34px; height:34px; border-radius:11px; background:var(--acc-soft); color:var(--acc); }
.sp-ic .ic { width:19px; height:19px; }
.sp-lv { margin-left:auto; padding:2px 9px; border-radius:999px; font-size:11.5px; font-weight:650; white-space:nowrap; }
.sp-lv.lv-ok { background:#e5f1e9; color:#235c36; } .sp-lv.lv-warn { background:#f6ecdc; color:#7c4a06; }
.sp-lv.lv-error { background:#f8e4e2; color:#8a1d17; }
.sp-row { margin:0 0 8px; color:var(--ink2); font-size:13.5px; line-height:1.5; }
.sp-big { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; margin:2px 0 6px; }
.sp-big b { font-size:32px; font-weight:750; line-height:1.1; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.sp-big > span { font-size:15px; font-weight:600; }
.sp-big small { color:var(--muted); font-size:13px; }
.sp-big-l { flex-basis:100%; color:var(--muted); font-size:12.5px !important; font-weight:500 !important; }
.sp-big b.sp-none { font-size:20px; color:var(--sp-err); }
/* полоса диска: части программы, другие программы; свободное – фон */
.sp-bar { display:flex; height:16px; margin:10px 0 10px; overflow:hidden; border-radius:999px; background:#e8ebef; box-shadow:inset 0 1px 2px rgba(0,0,0,.06); }
.sp-bar .sg { flex:none; width:var(--w); min-width:3px; height:100%; animation:spGrow .9s cubic-bezier(.2,.8,.2,1) backwards; }
.sp-bar .sg + .sg { box-shadow:inset 1.5px 0 0 rgba(255,255,255,.7); }
.sp-bar .sg:nth-child(2) { animation-delay:.08s; } .sp-bar .sg:nth-child(3) { animation-delay:.16s; }
.sp-bar .sg:nth-child(4) { animation-delay:.24s; } .sp-bar .sg:nth-child(5) { animation-delay:.32s; } .sp-bar .sg:nth-child(6) { animation-delay:.4s; }
.sg-media { background:#2b6cb0; } .sg-rot { background:#1f8a82; } .sg-bk { background:#6b4fb8; } .sg-db { background:#c27c0e; }
.sg-chat { background:#7d828a; }   /* 1.0.28: фото и видео чата */
.sg-etc { background:#7d8593; } .sg-oth { background:#c3c8cf; } .sg-free { background:#e8ebef; box-shadow:inset 0 0 0 1px #d5d9df; }
.sp-leg { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:5px 18px; margin:0; padding:0; list-style:none; font-size:13px; }
.sp-leg li { display:flex; align-items:center; gap:7px; min-width:0; }
.sp-leg li i { flex:none; width:10px; height:10px; border-radius:3px; }
.sp-leg li span { min-width:0; overflow:hidden; color:var(--ink2); text-overflow:ellipsis; white-space:nowrap; }
.sp-leg li b { margin-left:auto; font-weight:650; font-variant-numeric:tabular-nums; white-space:nowrap; }
.sp-fc { margin-top:12px; padding:10px 12px; border-radius:12px; background:var(--soft); font-size:13.5px; line-height:1.5; }
.sp-fc p { margin:0 0 5px; } .sp-fc p:last-child { margin:0; }
.sp-verdict { display:flex; align-items:flex-start; gap:7px; font-weight:600; }
.sp-verdict .ic { flex:none; width:17px; height:17px; margin-top:2px; color:var(--sp-ok); }
.lv-warn .sp-verdict .ic, .lv-error .sp-verdict .ic, .sp-verdict.warn .ic { color:var(--sp-warn); }
.sp-path { margin:10px 0 0; overflow-wrap:anywhere; }
/* почта */
.sp-kpis { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin:10px 0 14px; }
.sp-k { min-width:0; padding:9px 11px; border-radius:12px; background:var(--soft); }
.sp-k b { display:block; font-size:22px; font-weight:750; line-height:1.15; font-variant-numeric:tabular-nums; }
.sp-k small { display:block; color:var(--muted); font-size:12px; line-height:1.3; }
.sp-k.bad { background:#fbeceb; } .sp-k.bad b { color:var(--sp-err); }
.sp-k.warn { background:#fbf4e6; } .sp-k.warn b { color:var(--sp-warn); }
.sp-chart { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:8px; height:130px; }
.sp-col { display:flex; flex-direction:column; align-items:center; gap:3px; min-width:0; height:100%; }
.sp-stack { display:flex; flex:1; flex-direction:column-reverse; width:100%; max-width:34px; overflow:hidden; border-radius:7px 7px 4px 4px;
  background:#f0f2f5; }
.sp-stack i { flex:none; height:var(--h); animation:spRise .8s cubic-bezier(.2,.8,.2,1) backwards; }
.sp-col:nth-child(2) .sp-stack i { animation-delay:.05s; } .sp-col:nth-child(3) .sp-stack i { animation-delay:.1s; }
.sp-col:nth-child(4) .sp-stack i { animation-delay:.15s; } .sp-col:nth-child(5) .sp-stack i { animation-delay:.2s; }
.sp-col:nth-child(6) .sp-stack i { animation-delay:.25s; } .sp-col:nth-child(7) .sp-stack i { animation-delay:.3s; }
.cs-sent { background:#3c8f5a; } .cs-wait { background:#d9a23a; } .cs-err { background:#c9483f; }
.sp-col b { min-height:15px; font-size:11.5px; font-weight:650; line-height:15px; font-variant-numeric:tabular-nums; }
.sp-col small { color:var(--muted); font-size:11.5px; line-height:1.2; white-space:nowrap; }
.sp-col.today small { color:var(--ink); font-weight:650; }
/* копии за 14 дней */
.sp-days { display:grid; grid-template-columns:repeat(14, minmax(0, 1fr)); gap:4px; margin:12px 0 4px; }
.sp-days i { height:22px; border-radius:5px; background:repeating-linear-gradient(45deg, #eceef1 0 4px, #e0e3e8 4px 8px);
  animation:spPop .45s cubic-bezier(.3,.8,.3,1.3) backwards; animation-delay:calc(var(--i, 0) * 28ms + .1s); }
.sp-days i.ok { background:#3c8f5a; }
.sp-days i.today { box-shadow:0 0 0 2px var(--card), 0 0 0 3.5px var(--ink2); }
.sp-days-l { display:flex; justify-content:space-between; gap:8px; color:var(--muted); font-size:11.5px; }
/* сведения списком */
.sp-facts { display:grid; gap:7px; margin:12px 0 0; padding:0; list-style:none; font-size:13.5px; line-height:1.45; }
.sp-facts li { display:flex; align-items:flex-start; gap:9px; min-width:0; }
.sp-facts li > span { min-width:0; overflow-wrap:anywhere; }
.sp-facts li > .ic { flex:none; width:16px; height:16px; margin-top:2px; color:var(--muted); }
.sp-facts li.bad, .sp-facts li.bad > .ic { color:var(--sp-err); }
.sp-facts li.warn, .sp-facts li.warn > .ic { color:var(--sp-warn); }
.sp-facts code { font-size:12.5px; }
.sp-links { margin:12px 0 0; font-size:13px; }
.sp-act { margin:12px 0 0; }
.sp-act .ic { width:15px; height:15px; margin-right:5px; vertical-align:-2px; }
.sp-tip { display:flex; align-items:flex-start; gap:8px; margin:12px 0 0; padding:9px 12px; border-radius:11px; background:#e7eef8; color:var(--ink2);
  font-size:13px; line-height:1.45; }
.sp-tip .ic { flex:none; width:16px; height:16px; margin-top:2px; color:#2b6cb0; }
.sp-tip.sp-warn { background:#fbf4e6; } .sp-tip.sp-warn .ic { color:var(--sp-warn); }
.sp-bad { color:var(--sp-err) !important; } small.sp-warn, span.sp-warn { color:var(--sp-warn); }
/* фоновые задания */
.sp-jobs { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap:8px 14px; margin:10px 0 0; padding:0; list-style:none; }
.sp-job { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; align-items:start; gap:10px; min-width:0; padding:10px 12px;
  border:1px solid var(--line); border-radius:12px; animation:spIn .4s cubic-bezier(.2,.8,.2,1) backwards; animation-delay:calc(var(--i, 0) * 40ms + .15s); }
.sp-job.bad { border-color:#efc4bf; background:#fdf5f4; }
.sp-job-ic { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; background:var(--soft); color:var(--muted); }
.sp-job-ic .ic { width:17px; height:17px; }
.sp-job.bad .sp-job-ic { background:#f8e4e2; color:var(--sp-err); }
.sp-job.run .sp-job-ic { background:#e7eef8; color:#2b6cb0; animation:spRingB 1.8s ease-out infinite; }
.sp-job-t { min-width:0; }
.sp-job-t b { display:block; font-size:13.5px; line-height:1.3; }
.sp-job-t small { display:block; color:var(--muted); font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.sp-job-t small.sp-job-i { color:var(--ink2); }
.sp-job-s { display:flex; flex-direction:column; align-items:flex-end; gap:3px; text-align:right; }
.sp-job-s small { color:var(--muted); font-size:11.5px; white-space:nowrap; }
.sp-chip { display:inline-flex; align-items:center; gap:5px; padding:2px 8px; border-radius:999px; font-size:11.5px; font-weight:650; white-space:nowrap; }
.sp-chip.ok { background:#e5f1e9; color:#235c36; } .sp-chip.bad { background:#f8e4e2; color:#8a1d17; }
.sp-chip.run { background:#e6eef8; color:#1d4f86; } .sp-chip.wait { background:var(--soft); color:var(--muted); }
.sp-chip.ok::before, .sp-chip.run::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.sp-chip.run::before { animation:spBlink 1s ease-in-out infinite; }
/* письмо о неполадках */
.sp-sw { position:relative; display:inline-flex; align-items:center; gap:9px; margin:4px 0 8px; font-weight:600; cursor:pointer; }
.sp-sw > .ic { width:18px; height:18px; color:var(--muted); }
.sp-sw input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.sp-sw input:checked + .msw-track { background:#2f7a48; }
.sp-sw input:checked + .msw-track i { transform:translateX(14px); }
.sp-sw input:focus-visible + .msw-track { outline:2px solid var(--ink); outline-offset:2px; }
.sp-sw input:disabled + .msw-track { opacity:.6; }
/* меню: цифра – красная, если есть неполадка */
.navcnt.hlcnt.hl-err { background:var(--err); }
/* переход по ссылке – раздел подсвечивается; обновлённые части – без анимации появления */
.sp-card.sp-flash { animation:spFlash 1.6s ease-out; }
.sp-live, .sp-live .sg, .sp-live .sp-stack i, .sp-live .sp-days i, .sp-live .sp-p, .sp-live .sp-job { animation:none; }
.sp-live.sp-flash { animation:spFlash 1.6s ease-out; }
@keyframes spIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@keyframes spGrow { from { width:0; min-width:0; } }
@keyframes spRise { from { height:0; } }
@keyframes spPop { from { opacity:0; transform:scale(.4); } }
@keyframes spCheck { from { opacity:0; transform:scale(.3) rotate(-25deg); } }
@keyframes spRing { 0% { box-shadow:0 0 0 0 rgba(179,38,30,.4); } 70%, 100% { box-shadow:0 0 0 12px rgba(179,38,30,0); } }
@keyframes spRingB { 0% { box-shadow:0 0 0 0 rgba(43,108,176,.35); } 70%, 100% { box-shadow:0 0 0 8px rgba(43,108,176,0); } }
@keyframes spBlink { 50% { opacity:.25; } }
@keyframes spFlash { 0%, 35% { box-shadow:0 0 0 3px rgba(43,108,176,.5), var(--shadow); } 100% { box-shadow:0 0 0 0 rgba(43,108,176,0), var(--shadow); } }
@media (max-width:980px) { .sp-grid { grid-template-columns:minmax(0, 1fr); } }
@media (max-width:560px) {
  .sp-sum { padding:14px 14px 14px 18px; }
  .sp-at { display:block; } .sp-at::before { content:none; }
  .sp-sum-ic { width:40px; height:40px; } .sp-sum-ic .ic { width:21px; height:21px; }
  .sp-sum-t h2 { font-size:18px; }
  .sp-p { grid-template-columns:auto minmax(0, 1fr); }
  .sp-p .btn { grid-column:2; justify-self:start; }
  .sp-card { padding:14px; }
  .sp-leg { grid-template-columns:minmax(0, 1fr); }
  .sp-kpis { gap:6px; } .sp-k { padding:8px 9px; } .sp-k b { font-size:19px; }
  .sp-chart { gap:5px; height:116px; }
  .sp-job { grid-template-columns:auto minmax(0, 1fr); }
  .sp-job-s { grid-column:2; flex-direction:row; align-items:center; gap:8px; }
  .sp-days { gap:3px; } .sp-days i { height:18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-sum, .sp-p, .sp-card, .sp-bar .sg, .sp-stack i, .sp-days i, .sp-job, .sp-sum-ic, .sp-sum-ic .ic, .sp-job-ic, .sp-chip.run::before { animation:none; }
}
/* уведомление «Состояние программы»: неполадка – красная, предупреждение – жёлтая */
.toast.hln .toast-ic { background:#b07a0c; }
.toast.hln .toast-ic::after { content:"!"; margin-top:0; font-size:14px; font-weight:800; line-height:1; }
.toast.hln.hl-warn { border-left:5px solid #d9a23a; }
.toast.hln.hl-err { border-left:5px solid var(--err); }
.toast.hln.hl-err .toast-ic { background:var(--err); }
.toast.hln .hl-list { display:grid; gap:3px; margin:4px 0 2px; }
.toast.hln .hl-i { position:relative; padding-left:14px; font-size:13px; line-height:1.35; }
.toast.hln .hl-i::before { content:""; position:absolute; top:.45em; left:2px; width:7px; height:7px; border-radius:50%; background:#d9a23a; }
.toast.hln .hl-i.hl-err::before { background:var(--err); }
/* 1.0.20 – маршрут согласования: карточка в записке и отчёте, окно отправки, списки, редактор маршрутов */
.rts-log li.a-agree { border-left-color:#4a7fc1; } .rts-log li.a-approve { border-left-color:#1f7a45; } .rts-log li.a-recall { border-left-color:#7d8593; }
.rt-note.mine { border-color:#bcd2ee; background:linear-gradient(120deg, #eaf2fd, var(--card) 70%); box-shadow:inset 3px 0 0 #2a5d9f, var(--shadow); }
.rtr { margin:0 0 12px; padding:12px 16px 14px; animation:rtrIn .45s cubic-bezier(.2,.8,.2,1) backwards; }
.rtr-h { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; margin:0 0 10px; font-size:14px; }
.rtr-h > .ic { width:17px; height:17px; color:#1f8a82; }
.rtr-h small { padding:1px 8px; border-radius:999px; background:var(--soft); color:var(--muted); font-size:11.5px; font-weight:600; }
.rtr-h .rtr-src { background:#fbf4e6; color:#8a5a00; }
.rtr-l { position:relative; display:flex; flex-wrap:wrap; gap:10px 0; margin:0; padding:0; list-style:none; }
.rtr-s { position:relative; display:flex; flex:1 1 170px; gap:9px; min-width:0; padding:0 14px 0 0; animation:rtrIn .4s cubic-bezier(.2,.8,.2,1) backwards;
  animation-delay:calc(var(--i, 0) * 70ms + 80ms); }
.rtr-s::after { content:""; position:absolute; top:13px; left:34px; right:6px; height:2px; border-radius:2px; background:var(--line); }
.rtr-s:last-child::after { display:none; }
.rtr-s.done::after { background:#7cc29a; }
.rtr-s > div { position:relative; z-index:1; min-width:0; padding:30px 0 0; }
.rtr-n { position:absolute; z-index:2; top:0; left:0; display:grid; place-items:center; width:28px; height:28px; border:2px solid var(--line); border-radius:50%;
  background:var(--card); color:var(--muted); font-size:12.5px; font-weight:700; }
.rtr-n .ic { width:15px; height:15px; }
.rtr-s > div { margin-left:0; }
.rtr-s b { display:block; font-size:13.5px; line-height:1.3; }
.rtr-k { display:block; color:var(--muted); font-size:11.5px; }
.rtr-p { display:block; margin-top:4px; font-size:12.5px; line-height:1.35; }
.rtr-p > span { font-weight:600; }
.rtr-p small { display:block; color:var(--muted); font-size:11.5px; }
.rtr-p q { display:block; margin-top:3px; padding:4px 8px; border-radius:8px; background:var(--soft); color:var(--ink2); font-size:12px; white-space:pre-line; quotes:none; }
.rtr-p .d-ok::before { content:"✓ "; color:#1f7a45; }
.rtr-p .d-ret::before { content:"↺ "; color:#b07800; }
.rtr-p .d-wait::before { content:"● "; color:#2a5d9f; animation:rtrBlink 1.6s ease-in-out infinite; }
.rtr-p .off { color:var(--muted); text-decoration:line-through; }
.rtr-s.done .rtr-n { border-color:#1f7a45; background:#1f7a45; color:#fff; }
.rtr-s.cur .rtr-n { border-color:#2a5d9f; background:#2a5d9f; color:#fff; box-shadow:0 0 0 0 rgba(42,93,159,.45); animation:rtrPulse 2s ease-out infinite; }
.rtr-s.ret .rtr-n { border-color:#b07800; background:#fdf1dc; color:#8a5a00; }
.rtr-s.cur b { color:#2a5d9f; }
.rtr-l.plan .rtr-n { border-style:dashed; }
.rtr-s.opt b { color:var(--ink2); font-weight:600; }
.rt-mine { display:inline-block; margin-left:4px; padding:2px 8px; border-radius:999px; background:#2a5d9f; color:#fff; font-size:11.5px; font-weight:600;
  white-space:nowrap; animation:rtrPulse 2.4s ease-out infinite; }
.rtlist td.rt-c1 { min-width:200px; }
.rtlist .rt-c1 .rt-st { margin:3px 4px 0 0; white-space:normal; }
.rtlist .rt-c1 .rt-mine { margin:3px 4px 0 0; }
.lr-stc .rt-st, .lr-stc .rt-mine { margin:2px 4px 2px 0; }
.rt-sts a.st-mine { border-color:#bcd2ee; background:#eaf2fd; color:#2a5d9f; font-weight:600; }
.rt-sts a.st-mine.on { background:#2a5d9f; border-color:#2a5d9f; color:#fff; }
.rt-minebox { margin:0 0 14px; padding:12px 16px; border-color:#bcd2ee; background:linear-gradient(120deg, #eaf2fd, var(--card) 70%); }
.rt-minebox > b { display:flex; align-items:center; gap:7px; color:#2a5d9f; }
.rt-minebox > b .ic { width:17px; height:17px; }
.rt-minebox ul { display:flex; flex-wrap:wrap; gap:6px 18px; margin:8px 0 0; padding:0; list-style:none; font-size:13.5px; }
.navcnt.rtcnt { background:#2a5d9f; }
.ngrp.open > .ngrp-h .ngrp-cnt { display:none; }
/* окно отправки и решения */
.rtr-dlg { width:min(600px, calc(100vw - 24px)); }
.rtr-dlg textarea { width:auto; margin:2px 20px 12px; }
.rtr-mini { display:grid; gap:4px; margin:4px 20px 12px; padding:10px 12px 10px 30px; border-radius:12px; background:var(--soft); font-size:13px; }
.rtr-mini li small { color:var(--muted); }
.rtr-soc { display:grid; gap:4px; margin:0 20px 12px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; }
.rtr-soc legend { padding:0 4px; font-weight:600; font-size:13px; }
.rtr-soc p { margin:0 0 4px; }
.rtr-soc label { display:flex; align-items:center; gap:7px; font-size:13.5px; }
/* редактор маршрутов */
.rte-kinds { margin:0 0 12px; }
.rte-help { margin:0 0 14px; padding:12px 16px; font-size:13.5px; }
.rte-help summary { cursor:pointer; }
.rte-help ul { margin:8px 0 0; padding-left:18px; display:grid; gap:5px; line-height:1.45; }
.rte-card { padding:14px 16px; }
.rte-h { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 12px; margin:0 0 10px; }
.rte-h h2 { margin:0; font-size:16px; }
.rte-h button { margin-left:auto; }
.rte-l { display:grid; gap:8px; margin:0 0 10px; padding:0; list-style:none; }
.rte-s { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:12px;
  background:var(--card); animation:rtrIn .35s cubic-bezier(.2,.8,.2,1) backwards; animation-delay:calc(var(--i, 0) * 40ms); }
.rte-s.fin { border-color:#bfe2cc; background:linear-gradient(120deg, #f1f9f4, var(--card) 60%); }
.rte-n { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--soft); color:var(--ink2); font-weight:700; font-size:13px; }
.rte-s.fin .rte-n { background:#1f7a45; color:#fff; }
.rte-r1 { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; }
.rte-t { flex:1 1 220px; min-width:0; max-width:340px; font-weight:600; }
.rte-k { padding:2px 9px; border-radius:999px; background:var(--soft); color:var(--muted); font-size:11.5px; font-weight:600; }
.rte-s.fin .rte-k { background:#e5f3ea; color:#1f7a45; }
.rte-btns { display:flex; gap:2px; margin-left:auto; }
.rte-btns button { min-width:30px; padding:4px 7px; }
.rte-who { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; margin-top:8px; }
.rte-p { display:inline-flex; align-items:center; gap:4px; padding:3px 4px 3px 10px; border-radius:999px; background:#e7eef8; color:#1d4f86; font-size:13px; font-weight:600;
  animation:spPop .3s cubic-bezier(.3,.8,.3,1.3) backwards; }
.rte-p button { width:20px; height:20px; padding:0; border:0; border-radius:50%; background:transparent; color:inherit; font-size:11px; line-height:1; cursor:pointer; }
.rte-p button:hover { background:rgba(29,79,134,.15); }
.rte-add { max-width:240px; padding:4px 8px; font-size:13px; }
.rte-anyn { color:var(--ink2); font-size:13px; }
.rte-anyc { margin-left:auto; }
.rte-every { display:block; margin-top:6px; color:var(--muted); font-size:12px; }
.rte-regs { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.rte-reg { padding:10px 12px; border:1px solid var(--line); border-radius:12px; }
.rte-reg.own { border-color:#bcd2ee; }
.rte-reg-h { display:flex; align-items:center; flex-wrap:wrap; gap:6px 14px; }
.rte-gd { display:flex; align-items:center; gap:8px; margin-left:auto; color:var(--muted); font-size:12.5px; }
.rte-gd select { max-width:240px; padding:4px 8px; font-size:13px; }
.rte-sum { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin:8px 0 0; }
.rte-sum button { margin-left:auto; }
.rte-own { margin-top:10px; }
.rte-own-h { display:flex; align-items:center; justify-content:space-between; margin:0 0 6px; color:#2a5d9f; font-weight:600; }
.rte-addst { margin-top:2px; }
@keyframes rtrIn { from { opacity:0; transform:translateY(6px); } }
@keyframes rtrPulse { 0% { box-shadow:0 0 0 0 rgba(42,93,159,.4); } 70%, 100% { box-shadow:0 0 0 8px rgba(42,93,159,0); } }
@keyframes rtrBlink { 50% { opacity:.3; } }
@media (max-width:760px) {
  .rtr-l { flex-direction:column; gap:0; }
  .rtr-s { flex:none; padding:0 0 12px; }
  .rtr-s > div { padding:2px 0 0 38px; }
  .rtr-s::after { top:30px; bottom:2px; left:13px; right:auto; width:2px; height:auto; }
  .rte-gd { margin-left:0; width:100%; flex-wrap:wrap; }
  .rte-gd select { max-width:100%; flex:1; }
  .rte-anyc { margin-left:0; }
}
@media (prefers-reduced-motion: reduce) { .rtr, .rtr-s, .rte-s, .rte-p, .rt-mine, .rtr-s.cur .rtr-n, .rtr-p .d-wait::before { animation:none; } }

/* ---------- 08.11: маршрут – сроки, замещение, пропуск этапа, замена участника ---------- */
.rtr-due { display:inline-flex; align-items:center; gap:4px; margin-top:4px; padding:2px 8px; border-radius:999px; background:#e7eef8; color:#2a5d9f;
  font-size:11.5px; font-weight:600; }
.rtr-due .ic { width:12px; height:12px; }
.rtr-due.today { background:#fbf1dc; color:#8a5a00; }
.rtr-due.late { background:#fbe5e3; color:#a8322a; animation:rtrBlinkBg 2.4s ease-in-out infinite; }
.rtr-p .d-skip { color:var(--muted); font-style:italic; }
.rtr-p .d-skip::before { content:"» "; }
.rtr-p .rtr-was { color:#2a5d9f; }
.rtr-s.skip .rtr-n { border-color:#9aa5b1; background:#eef1f4; color:#5d6b78; font-weight:700; }
.rtr-s.skip::after { background:repeating-linear-gradient(90deg, #9aa5b1 0 6px, transparent 6px 10px); }
.rtr-adm { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.rtr-adm button { padding:3px 8px; font-size:12px; }
.rtr-adm .ic { width:13px; height:13px; }
/* движение по маршруту: галочка рисуется, линия заполняется, следующий этап загорается; возврат – линии «откатываются» */
.rtr-s::before { content:""; position:absolute; top:13px; left:34px; right:6px; height:2px; border-radius:2px; background:var(--line); opacity:0; }
.rtr-s.fl-done::before, .rtr-s.fl-skip::before { opacity:1; }
.rtr-s.fl-done::after, .rtr-s.fl-skip::after { transform-origin:left center; animation:rtrFill .55s cubic-bezier(.4,.1,.2,1) backwards; animation-delay:calc(var(--fd, 0ms) + 260ms); }
.rtr-s.fl-done .rtr-n { animation:rtrDoneN .45s cubic-bezier(.3,.8,.3,1.2) backwards; animation-delay:var(--fd, 0ms); }
.rtr-s.fl-done .rtr-n .ic path, .rtr-s.fl-done .rtr-n .ic polyline { stroke-dasharray:24; animation:rtrCheck .45s ease-out backwards; animation-delay:calc(var(--fd, 0ms) + 120ms); }
.rtr-s.fl-cur .rtr-n { animation:rtrLight .55s cubic-bezier(.3,.8,.3,1.3) backwards, rtrPulse 2s 1s ease-out infinite; animation-delay:var(--fd, 0ms), calc(var(--fd, 0ms) + .6s); }
.rtr-s.fl-cur > div { animation:rtrIn .45s ease-out backwards; animation-delay:var(--fd, 0ms); }
.rtr-s.fl-back::after { background:#7cc29a; }
.rtr-s.fl-back::before { opacity:1; z-index:1; background:#e0a537; transform-origin:left center; animation:rtrDrain .6s ease-in-out both; animation-delay:var(--fd, 0ms); }
.rtr-s:last-child::before { display:none; }
.rtr-s.fl-ret .rtr-n { animation:rtrShake .55s ease-in-out; }
.rtr-s.fl-home .rtr-n { animation:rtrHome 1s ease-out; animation-delay:var(--fd, 0ms); }
.rtr-s.fl-skip .rtr-n { animation:rtrDoneN .45s cubic-bezier(.3,.8,.3,1.2) backwards; animation-delay:var(--fd, 0ms); }
@keyframes rtrFill { from { transform:scaleX(0); } }
@keyframes rtrFillY { from { transform:scaleY(0); } }
@keyframes rtrDrain { 0% { transform:scaleX(1); opacity:1; } 80% { opacity:1; } 100% { transform:scaleX(0); opacity:0; } }
@keyframes rtrDrainY { 0% { transform:scaleY(1); opacity:1; } 80% { opacity:1; } 100% { transform:scaleY(0); opacity:0; } }
@keyframes rtrDoneN { 0% { transform:scale(.6); border-color:#2a5d9f; background:#2a5d9f; } 60% { transform:scale(1.15); } 100% { transform:none; } }
@keyframes rtrCheck { from { stroke-dashoffset:24; } to { stroke-dashoffset:0; } }
@keyframes rtrLight { 0% { transform:scale(.7); border-color:var(--line); background:var(--card); color:var(--ink2); } 60% { transform:scale(1.18); } 100% { transform:none; } }
@keyframes rtrShake { 0%, 100% { transform:none; } 20% { transform:translateX(-4px) rotate(-12deg); } 40% { transform:translateX(4px) rotate(10deg); } 60% { transform:translateX(-3px); } 80% { transform:translateX(2px); } }
@keyframes rtrHome { 0% { box-shadow:0 0 0 0 rgba(224,165,55,.7); } 100% { box-shadow:0 0 0 12px rgba(224,165,55,0); } }
@keyframes rtrBlinkBg { 50% { background:#f7d2ce; } }
/* окно отправки: этап общества встаёт в план; поля окна администратора */
.rtr-mini li.soc { color:#2a5d9f; }
.rtr-mini li.soc b { color:#2a5d9f; }
.rtr-fld { display:grid; gap:4px; margin:0 20px 10px; font-size:13px; font-weight:600; }
.rtr-fld select { width:100%; font-weight:400; }
/* списки: срок этапа */
.rt-due { display:inline-block; margin:2px 4px 2px 0; padding:1px 7px; border-radius:999px; background:#e7eef8; color:#2a5d9f; font-size:11px; font-weight:600;
  white-space:nowrap; vertical-align:middle; }
.rt-due.today { background:#fbf1dc; color:#8a5a00; }
.rt-due.late { background:#fbe5e3; color:#a8322a; }
.rt-minebox li { animation:none; }
.rt-minebox li.fresh { animation:freshLi 2.4s ease-out; border-radius:6px; }
@keyframes freshLi { 0% { background:rgba(42,93,159,.18); } 100% { background:transparent; } }
/* редактор маршрутов: срок, предупреждения, перетаскивание, «Применить к регионам», предпросмотр */
.rte-s { grid-template-columns:auto auto minmax(0, 1fr); align-items:start; }
.rte-grip { align-self:center; width:14px; color:var(--muted); font-size:14px; letter-spacing:-3px; line-height:1; cursor:grab; user-select:none; opacity:.55; }
.rte-s:hover .rte-grip { opacity:1; }
.rte-s.drag { opacity:.45; }
.rte-s.drop-b { box-shadow:0 -3px 0 0 #2a5d9f; }
.rte-s.drop-a { box-shadow:0 3px 0 0 #2a5d9f; }
.rte-days { display:inline-flex; align-items:center; gap:5px; color:var(--muted); font-size:12.5px; white-space:nowrap; }
.rte-d { width:58px; padding:3px 6px; text-align:center; }
.rte-p.bad { background:#fbe5e3; color:#a8322a; }
.rte-p.bad small { font-weight:500; opacity:.85; }
.rte-p .rte-nm, .rte-p .rte-dep { font-style:normal; font-size:11px; opacity:.7; }
.rte-p .rte-nm { position:relative; }
.rte-p .rte-nm::after { content:""; position:absolute; left:-1px; right:-1px; top:50%; height:1.5px; background:currentColor; transform:rotate(-30deg); }
.rte-warn { display:block; margin-top:6px; color:#a8322a; font-size:12px; }
.rte-foot { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.rte-apply { margin-left:auto; }
.rte-live .rte-s, .rte-live .rte-p { animation:none; }
.rte-live .rte-p.pop { animation:spPop .3s cubic-bezier(.3,.8,.3,1.3); }
.rte-pv { margin:0 0 14px; padding:14px 16px; border-color:#bcd2ee; }
.rte-pv-sel { display:flex; align-items:center; gap:8px; margin-left:auto; color:var(--muted); font-size:12.5px; }
.rte-pv-sel select { max-width:260px; padding:4px 8px; font-size:13px; }
.rte-pv-src { margin:0 0 8px; }
.rte-pv .rtr-l { margin-top:4px; }
.rte-pv .rtr-due { animation:none; }
.rte-apdlg { width:min(560px, calc(100vw - 24px)); }
.rte-apdlg .sdlg-in > p { margin:0 20px 10px; }
.rte-ap-l { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:4px 12px; max-height:46vh; overflow:auto; margin:0 20px 12px; padding:10px 12px;
  border:1px solid var(--line); border-radius:12px; font-size:13.5px; }
.rte-ap-all { grid-column:1 / -1; padding-bottom:4px; border-bottom:1px solid var(--line); }
/* замещение */
.dep-new { margin:0 0 14px; padding:14px 16px; }
.dep-new h2, .dep-list h2 { margin:0 0 10px; font-size:16px; }
.dep-f { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 12px; }
.dep-f label { display:grid; gap:4px; font-size:12.5px; font-weight:600; color:var(--ink2); }
.dep-f label select { min-width:220px; max-width:320px; }
.dep-f .dep-d input { width:118px; }
.dep-f .grow { flex:1 1 180px; max-width:380px; }
.dep-f .ic { width:15px; height:15px; }
.dep-help { margin:10px 0 0; line-height:1.5; }
.dep-none { display:flex; align-items:center; gap:6px; margin:8px 0 0; color:#8a5a00; }
.dep-list { padding:14px 16px; }
.dep-t td { vertical-align:middle; }
.dep-t tr.dep-past td { color:var(--muted); }
.dep-chip { display:inline-block; padding:2px 9px; border-radius:999px; font-size:11.5px; font-weight:600; white-space:nowrap; }
.dep-chip.now { background:#e2f2e8; color:#1f7a45; }
.dep-chip.soon { background:#e7eef8; color:#2a5d9f; }
.dep-chip.past { background:var(--soft); color:var(--muted); }
.dep-w { display:block; margin-top:2px; color:#2a5d9f; font-size:11.5px; }
.dep-by { display:block; }
.dep-a form.inl { display:inline; }
.dep-a button { padding:3px 9px; }
/* «Состояние программы»: документы дольше срока */
.sp-late { display:grid; gap:6px; margin:12px 0 0; padding:0 0 0 20px; font-size:13.5px; }
.sp-facts + .sp-row { margin-top:12px; }
.sp-late li { animation:spIn .35s ease-out backwards; animation-delay:calc(var(--i, 0) * 50ms); }
.sp-late li small { display:block; color:#a8322a; font-size:12px; }
/* лист согласования: просмотр записки и листы ЛРР */
.rpg-ls .rpg-ls-st { margin-top:0 !important; color:#7f7f7f; font-size:10.5pt; }
.rpg-ls table td { font-size:10.5pt; }
.rpg-ls-note { margin:10pt 0 0; color:#7f7f7f; font-size:9.5pt; font-style:italic; }
.rpg .lrs-apt td { vertical-align:top; }
.rpg .lrs-apt tr.k-ret td, .rpg .lrs-apt .rt { color:#8a5a00; }
.rpg .lrs-apt tr.k-skip td { color:#7f7f7f; font-style:italic; }
@media (max-width:760px) {
  .rtr-s::before { top:30px; bottom:2px; left:13px; right:auto; width:2px; height:auto; }
  .rtr-s.fl-done::after, .rtr-s.fl-skip::after { transform-origin:center top; animation-name:rtrFillY; }
  .rtr-s.fl-back::before { transform-origin:center top; animation-name:rtrDrainY; }
  .rte-pv-sel { margin-left:0; width:100%; }
  .rte-pv-sel select { max-width:none; flex:1; }
  .rte-apply { margin-left:0; }
  .dep-f label select { min-width:0; width:100%; }
  .dep-f label { width:100%; }
  .dep-f .dep-d { width:auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rtr-due.late, .rt-minebox li.fresh, .sp-late li, .rtr-s[class*="fl-"] .rtr-n, .rtr-s[class*="fl-"]::after, .rtr-s[class*="fl-"]::before,
  .rtr-s[class*="fl-"] > div, .rtr-s .rtr-n .ic path { animation:none !important; }
  .rtr-s::before { display:none; }
}

/* 1.0.21: «Бланк записки» – шаблон акта приёма-передачи */
.rtb-act { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; }
.rtb-act form { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0; }
.rtb-act input[type=file] { max-width:320px; margin:0; font-size:13px; }
/* ---------- 1.0.21: версии записки – окно на странице записки и полоса над просмотром версии ---------- */
.rvr-dlg { width:min(680px, calc(100vw - 24px)); }
.rvr-lock { margin:0 20px 8px !important; padding:8px 12px; border-radius:10px; background:var(--soft); color:var(--ink2); }
.rvr-list { flex:1 1 auto; min-height:0; overflow:auto; margin:4px 0 0; padding:0 20px 12px; list-style:none; }
.rvr-list > li { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:2px 12px; align-items:center; padding:10px 0; border-top:1px solid var(--line); }
.rvr-list > li:first-child { border-top:0; }
.rvr-list > li.now { margin:0 -10px; padding:10px; border-radius:12px; background:var(--soft); }
.rvr-list > li.none { display:block; padding:12px 0; }
.rvr-t { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; grid-column:1; }
.rvr-t b { font-size:14.5px; font-variant-numeric:tabular-nums; }
.rvr-t small { color:var(--muted); font-size:12.5px; }
.rvr-why { padding:1px 8px; border-radius:999px; background:var(--soft); color:var(--ink2); font-size:12px; }
.rvr-list > li.now .rvr-why { background:var(--card); }
.rvr-m { grid-column:1; color:var(--ink2); font-size:12.5px; font-variant-numeric:tabular-nums; }
.rvr-d { font-weight:700; } .rvr-d.more { color:var(--ok); } .rvr-d.less { color:var(--muted); }
.rvr-lost { color:var(--err); }
.rvr-a { display:flex; flex-wrap:wrap; gap:6px; grid-column:2; grid-row:1 / span 2; justify-content:flex-end; }
@media (max-width:560px) {
  .rvr-list > li { grid-template-columns:minmax(0, 1fr); }
  .rvr-a { grid-column:1; grid-row:auto; justify-content:flex-start; margin-top:6px; }
}
.rt-verbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin:0 0 14px; padding:12px 16px;
  border:1px solid #c9b8f5; background:#f4f0ff; }
.rt-verbar-t { display:flex; flex:1 1 320px; flex-direction:column; gap:2px; min-width:0; }
.rt-verbar-t b { font-size:15px; }
@media print { .rt-verbar { display:none !important; } }
/* 1.0.21: фототаблица – блок фото за другую дату добавляется в разделе («+ Фото за другую дату»), «✕» убирает блок */
.rf-add { margin-top:10px; }
.rf-addsel { width:auto; max-width:100%; min-height:34px; padding:5px 30px 5px 12px; border:1px dashed var(--line); border-radius:9px;
  background-color:transparent; color:var(--ink2); font-size:13px; cursor:pointer; }
.rf-addsel:hover, .rf-addsel:focus-visible { border-color:var(--brand-d); color:var(--ink); }
.rf-dh .rf-del { width:30px; height:30px; margin:-4px -4px -4px 0; }
.rt-locked .rf-add, .rt-locked .rf-del { display:none; }
/* 1.0.21: печать записки о перевахтовке – серые шапки и заливки печатаются и без галочки «Фон»; фототаблица – по листам
   ровно альбомного A4 (rotview.js); где браузер не печатает книжные и альбомные листы вместе – альбомный лист повёрнут */
.rpg { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.rpg.land.pgd { height:210mm; min-height:0; overflow:hidden; }
.rpg-turn { display:contents; }
.rpg-turnl { align-self:center; margin-right:6px; white-space:nowrap; }
@media (max-width:700px) { .rpg-turnl { display:none; } }
@media print {
  .rpg.land.pgd { break-inside:avoid; page-break-inside:avoid; }
  body.rpg-rot .rpg-turn { display:block; position:relative; width:210mm; height:297mm; overflow:hidden; break-after:page; break-inside:avoid; }
  body.rpg-rot .rpg-turn > .rpg.land { position:absolute; left:0; top:0; page:auto; break-after:auto; transform-origin:0 0; transform:translateY(297mm) rotate(-90deg); }
}
/* ---------- 1.0.21: фототаблица компактнее, «Не заполнено» по блокам, листы просмотра – без рывка ---------- */
/* пустая ячейка фото в приложении 3 – низкая (в ряду с фото – по высоте ряда); раздел «не требовалось» – одной строкой */
.rf .rph { display:flex; flex-direction:column; }
.rf .rph-row:not(:has(.rph.has, .rph.gone, .rph.queued, .rph.busy)) .rph-box { aspect-ratio:auto; height:92px; }
.rf .rph-row:not(:has(.rph.has, .rph.gone, .rph.queued, .rph.busy)) .rph-add { flex-direction:row; flex-wrap:wrap; justify-content:center; gap:2px 8px; padding:8px; }
.rf .rph-row:not(:has(.rph.has, .rph.gone, .rph.queued, .rph.busy)) .rph-add .ic { width:22px; height:22px; margin:0; }
.rf .rph-row:not(:has(.rph.has, .rph.gone, .rph.queued, .rph.busy)) .rph-add small { flex:1 1 100%; }
.rf.na { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; padding:8px 14px; }
.rf.na > * { flex:1 1 100%; min-width:0; }
.rf.na > .rf-h { flex:1 1 520px; }
.rf.na > .rf-why { flex:1 1 280px; margin:0; }
.rf.na > .rf-why .lbl, .rf.na > .rf-why .req, .rf-day:has(.rf-na input:checked) > .rf-why .lbl, .rf-day:has(.rf-na input:checked) > .rf-why .req {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.rf.na > .rf-why input, .rf-day:has(.rf-na input:checked) > .rf-why input { margin:0; padding:6px 10px; font-size:13px; }
.rf.na > .rf-add { flex:0 0 auto; order:1; margin:0; }
.rf.na > .rf-more { order:2; }
.rf.na > .rf-more:empty { display:none; }
.rf.na > .rf-h { flex-wrap:nowrap; }
.rf.na > .rf-h .rf-t { flex:1 1 120px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rf.na > .rf-h > .rf-st { display:none; }
.rf.na > .rf-h .rf-na { white-space:nowrap; }
@media (max-width:640px) { .rf.na > .rf-h { flex-wrap:wrap; } .rf.na > .rf-h .rf-t { flex-basis:60%; white-space:normal; } }
.rf-day:has(.rf-na input:checked) > .rf-why { margin-top:6px; }
.rts-miss details { margin:4px 0 0; border:1px solid var(--line); border-radius:10px; }
.rts-miss details[open] { padding-bottom:6px; }
.rts-miss summary { display:flex; align-items:center; gap:8px; padding:6px 10px; cursor:pointer; list-style:none; border-radius:10px; }
.rts-miss summary::-webkit-details-marker { display:none; }
.rts-miss summary:hover { background:var(--soft); }
.rts-miss summary .rts-n { flex:none; min-width:26px; padding:1px 5px; border-radius:6px; background:var(--soft); font-size:11.5px; font-weight:700; text-align:center; }
.rts-miss summary .rts-mt { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rts-miss summary small { flex:none; min-width:22px; padding:1px 7px; border-radius:999px; background:#f6e7cc; color:#7c4a06; font-weight:700; text-align:center; }
.rts-miss summary::after { content:""; flex:none; width:7px; height:7px; margin:0 2px 3px 2px; border-right:1.5px solid var(--muted); border-bottom:1.5px solid var(--muted); transform:rotate(45deg); transition:transform .15s; }
.rts-miss details[open] > summary::after { margin-bottom:-3px; transform:rotate(-135deg); }
.rts-miss details > ul { margin:2px 0 0; padding:0 10px 0 28px; }
.rpg-wrap.pg-wait .rpg.land { opacity:0; }
.rpg-wrap.pg-in .rpg.land { animation:pgIn .3s ease both; }
@keyframes pgIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { .rpg-wrap.pg-in .rpg.land { animation:none; } }
@media print { .rpg-wrap.pg-wait .rpg.land { opacity:1 !important; } .rpg-wrap.pg-in .rpg.land { animation:none !important; } }
/* ---------- 1.0.22: журнал ошибок ---------- */
.erl { display:flex; flex-direction:column; gap:8px; }
.eri { margin:0; padding:0; }
.eri > summary { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:2px 10px; align-items:baseline; padding:12px 16px; cursor:pointer; list-style:none; border-radius:var(--r); }
.eri > summary::-webkit-details-marker { display:none; }
.eri > summary:hover { background:var(--soft); }
.eri.new > summary { box-shadow:inset 4px 0 0 var(--err); }
.eri-k { grid-row:1 / span 2; align-self:start; padding:2px 9px; border-radius:999px; background:var(--soft); color:var(--ink2); font-size:12px; white-space:nowrap; }
.eri-k.k-server { background:#fbeceb; color:#7d1f19; } .eri-k.k-job { background:#f6e7cc; color:#7c4a06; } .eri-k.k-browser { background:#e6eef9; color:#1d4f91; }
.eri-t { min-width:0; overflow-wrap:anywhere; font-size:14.5px; font-weight:600; }
.eri-m { grid-column:2; color:var(--muted); font-size:12.5px; overflow-wrap:anywhere; }
.eri-b { padding:0 16px 14px; }
.eri-x { max-height:420px; margin:0 0 10px; padding:12px 14px; overflow:auto; border:1px solid var(--line); border-radius:10px; background:var(--soft);
  font:12.5px/1.5 Consolas, "Cascadia Mono", Menlo, monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.eri-b .actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:0; }
/* настройки: фото перевахтовки – размер и сжатие */
.rq-opts { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 10px; }
.rq-opts label { display:flex; flex:1 1 200px; flex-direction:column; gap:2px; margin:0; padding:10px 12px; border:1px solid var(--line); border-radius:12px; cursor:pointer; }
.rq-opts label:has(input:checked) { border-color:var(--dark); box-shadow:inset 0 0 0 1px var(--dark); }
.rq-opts label b { display:flex; align-items:center; gap:8px; }
.rq-opts label small { color:var(--muted); }
.rq-run { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin:8px 0 0; }
.rq-bar { flex:1 1 200px; height:6px; border-radius:3px; background:var(--soft); overflow:hidden; }
.rq-bar > i { display:block; width:0; height:100%; background:var(--dark); transition:width .25s; }
.sp-en { display:inline-block; min-width:18px; margin-left:2px; padding:0 6px; border-radius:999px; background:var(--err); color:#fff; font-size:11.5px; font-weight:700; text-align:center; }
.rq-opts input[type=radio] { flex:none; width:16px; height:16px; margin:0; padding:0; }
.rq-opts label b { justify-content:flex-start; }


/* ================= 1.0.23 ================= */
/* карта руководителя: приближение региона, подробные слои (Natural Earth), объекты паспортов, полёт сообщений.
   Линии карты страны при приближении – той же толщины на экране (--bmk), значки регионов – своего размера (--bmi),
   значки объектов и городов – в точках экрана (--bmo); подробные линии – vector-effect: non-scaling-stroke. */
.bm { --bm-road:#fbf7ef; --bm-road-case:rgba(120,110,95,.35); --bm-rail:#5f646d; --bm-river:#5fb3e0; --bm-town:#262c35;
  --bm-town-far:#59606b; --bm-town-dot:#3a414b; --bm-arc-wait:#a85d00; --bm-arc-late:#c4241a; --bm-arc-ok:#2f9e5b;
  --bm-arc-new:#3d6ed6; --bm-hub:#26324a; --bm-dim:.5; --bm-ui:rgba(255,255,255,.93); --bm-ui-ink:#1f242c;
  --bm-ui-line:rgba(15,20,30,.1); --bm-ui-sh:0 6px 18px rgba(15,25,45,.16); --bm-wt:#fff; }
.bm-svg { touch-action:auto; -webkit-user-select:none; user-select:none; }
.bm-pin { transform:scale(var(--bmi, 1)); }
.bm-pin2 { transform:scale(var(--bmo, 1)); }
.bm-pt .bm-pin { transform:scale(var(--bmr, var(--bmi, 1))); }
.bm-s.bm-sx { pointer-events:none; }
.bm-term { stroke-width:calc(1px / var(--bmk, 1)); stroke-dasharray:calc(5px / var(--bmk, 1)) calc(3px / var(--bmk, 1)); }
.bm-m path { fill:none; stroke:var(--bm-mer); stroke-width:1; stroke-dasharray:2 3; }
.bm-crs, .bm-det, .bm-l-labels, .bm-l-fly, .bm-l-towns, .bm-l-objs { transition:opacity .4s ease; }
.bm-det { opacity:0; pointer-events:none; }
.bm.bm-zoomed .bm-det { opacity:1; pointer-events:auto; }
.bm.bm-detail .bm-crs { opacity:0; pointer-events:none; }
.bm.bm-zoomed .bm-l-labels, .bm.bm-zoomed .bm-l-fly, .bm.bm-zoomed .bm-hub { opacity:0; pointer-events:none; }
.bm.bm-zoomed:not(.bm-moving) .bm-l-fly, .bm.bm-zoomed:not(.bm-moving) .bm-l-labels { visibility:hidden; }   /* не рисуются вовсе */
.bm.bm-detail .bm-crs { visibility:hidden; }
.bm.bm-moving .bm-l-towns, .bm.bm-moving .bm-obl { display:none; }     /* во время перелёта подписи не рисуются */
.bm:not(.bm-zoomed) .bm-l-towns, .bm:not(.bm-zoomed) .bm-l-objs { opacity:0; visibility:hidden; pointer-events:none; }
.bm.bm-zoomed .bm-svg { cursor:grab; }
.bm.bm-grab .bm-svg { cursor:grabbing; }
.bm.bm-zoomed .bm-s.on, .bm.bm-zoomed .bm-pt, .bm.bm-zoomed .bm-ob, .bm.bm-zoomed .bm-cl { cursor:pointer; }
/* выбранный субъект – цветом, остальные – бледнее; граница выбранного – тёмной линией */
.bm.bm-zsel.bm-zoomed .bm-s.on.st-red:not(.zsel) { fill:color-mix(in srgb, var(--bm-red) 38%, var(--bm-land)); animation:none; }
.bm.bm-zsel.bm-zoomed .bm-s.on.st-amber:not(.zsel) { fill:color-mix(in srgb, var(--bm-amber) 38%, var(--bm-land)); }
.bm.bm-zsel.bm-zoomed .bm-s.on.st-green:not(.zsel) { fill:color-mix(in srgb, var(--bm-green) 38%, var(--bm-land)); }
.bm.bm-zsel.bm-zoomed .bm-s.on.st-idle:not(.zsel) { fill:color-mix(in srgb, var(--bm-idle) 38%, var(--bm-land)); }
.bm-shade { transition:opacity .4s; }
.bm.bm-zoomed .bm-shade { opacity:.7; }
/* подробные слои: обзорный уровень (A) – до ×5 и во время перелёта, подробный (B) – плитками, только в кадре */
.bm .bmd-b { display:none; }
.bm.bm-lodb .bmd-b { display:inline; }
.bm.bm-lodb .bmd-a { display:none; }
/* 1.0.25 (доработка): толщина линий – в точках экрана через --u (единиц карты в точке, задаёт mapcore.js при перерисовке
   нижних слоёв), а не vector-effect: non-scaling-stroke – с ним каждая перерисовка у Москвы стоила в десятки раз дороже */
.bmd-fg { fill:var(--bm-fg); pointer-events:none; }
.bmd-lake { fill:var(--bm-sea); stroke:var(--bm-river); stroke-width:calc(.6px * var(--u, 1)); pointer-events:none; }
.bmd-riv, .bmd-road, .bmd-rail { fill:none; stroke-linecap:butt; stroke-linejoin:bevel; pointer-events:none; }   /* тонкие: скруглять незачем, а дорого */
.bmd-riv { stroke:var(--bm-river); }
.bmd-riv1 { stroke-width:calc(1.1px * var(--u, 1)); } .bmd-riv2 { stroke-width:calc(.85px * var(--u, 1)); } .bmd-riv3 { stroke-width:calc(.7px * var(--u, 1)); }
.bmd-road { stroke:var(--bm-road); }
.bmd-road1 { stroke-width:calc(1.3px * var(--u, 1)); } .bmd-road2 { stroke-width:calc(1px * var(--u, 1)); } .bmd-road3 { stroke-width:calc(.8px * var(--u, 1)); }
.bm-z3 .bmd-road1 { stroke-width:calc(2.2px * var(--u, 1)); } .bm-z3 .bmd-road2 { stroke-width:calc(1.5px * var(--u, 1)); } .bm-z4 .bmd-road1 { stroke-width:calc(2.8px * var(--u, 1)); }
.bmd-rail { stroke:var(--bm-rail); stroke-width:calc(1px * var(--u, 1)); stroke-dasharray:calc(5px * var(--u, 1)) calc(3px * var(--u, 1)); opacity:.8; }
.bmd-riv2, .bmd-riv3, .bmd-road2, .bmd-road3, .bmd-rail { display:none; }
.bm-z2 .bmd-riv2, .bm-z2 .bmd-road2, .bm-z2 .bmd-rail1 { display:inline; }
.bm-z3 .bmd-riv3, .bm-z3 .bmd-road3, .bm-z3 .bmd-rail2 { display:inline; }
.bm-z4 .bmd-rail3 { display:inline; }
.bm-moving .bmd-a .bmd-lake, .bm-moving .bmd-a .bmd-riv, .bm-moving .bmd-a .bmd-road, .bm-moving .bmd-a .bmd-rail { display:none; }   /* во время перелёта – только земля */
.bmd-a .bmd-lake, .bmd-a .bmd-riv, .bmd-a .bmd-road, .bmd-a .bmd-rail { animation:bmdIn .3s ease-out; }
@keyframes bmdIn { from { opacity:0; } }
/* населённые пункты */
.bm-town { pointer-events:none; }
.bm-td { fill:var(--bm-town-dot); stroke:var(--bm-halo); stroke-width:1.2; }
.bm-tn { font-size:10.5px; fill:var(--bm-town); paint-order:stroke; stroke:var(--bm-halo); stroke-width:2.8px; stroke-linejoin:round; }
.bm-town.cap1 .bm-tn, .bm-town.cap0 .bm-tn { font-size:11.5px; font-weight:650; }
.bm-town.far .bm-tn { fill:var(--bm-town-far); font-style:italic; }
.bm-town.far .bm-td { fill:var(--bm-town-far); }
/* объекты паспортов: квадрат цвета состояния; рядом – кружок с числом */
.bm-ob { outline:none; }
.bm-ob.st-red, .bm-cl.st-red { --rg:#d93025; } .bm-ob.st-amber, .bm-cl.st-amber { --rg:#e08a0b; }
.bm-ob.st-green, .bm-cl.st-green { --rg:#2f9e5b; } .bm-ob.st-idle, .bm-cl.st-idle { --rg:#6f7a89; }
.bm-obh { fill:var(--rg); fill-opacity:0; transition:fill-opacity .2s; }
.bm-obq { fill:var(--rg); stroke:var(--bm-dot-line); stroke-width:2; transition:fill .4s; }
.bm-ob:hover .bm-obh, .bm-ob:focus-visible .bm-obh, .bm-ob.sel .bm-obh { fill-opacity:.26; }
.bm-ob:focus-visible .bm-obq { stroke:var(--bm-sel); }
.bm-obl { pointer-events:none; }
.bm-obt { font-size:11px; font-weight:650; fill:var(--bm-ink); paint-order:stroke; stroke:var(--bm-halo); stroke-width:3px; stroke-linejoin:round; }
.bm-clh { fill:var(--rg); fill-opacity:.24; }
.bm-clc { fill:var(--rg); stroke:var(--bm-dot-line); stroke-width:2; }
.bm-cln { font-size:11px; font-weight:780; fill:var(--bm-wt); pointer-events:none; }
.bm-cl:focus-visible .bm-clc { stroke:var(--bm-sel); }
@media (prefers-reduced-motion: no-preference) {
  .bm-ob.st-red .bm-obh { animation:bmObRed 2.4s ease-in-out infinite; }
  .bm-ob.focus .bm-obh { animation:bmObFocus 1.6s ease-in-out 3; }
}
@keyframes bmObRed { 50% { fill-opacity:.3; } }
@keyframes bmObFocus { 50% { fill-opacity:.45; } }
/* полёт сообщений к ДЧ «Легион» */
.bm-arc { fill:none; stroke:var(--bm-arc-wait); stroke-width:2; stroke-linecap:round; opacity:0; pointer-events:none;
  transition:opacity .6s, stroke .4s, stroke-width .4s; }
.bm-arc.on { opacity:1; stroke-dasharray:4 5; filter:drop-shadow(0 0 1.5px var(--bm-halo)); }
.bm-arc.late { stroke:var(--bm-arc-late); }
.bm-arc.ok { opacity:1; stroke:var(--bm-arc-ok); stroke-width:2.8; stroke-dasharray:none; filter:drop-shadow(0 0 3px var(--bm-arc-ok)); }
.bm-arc.gone { opacity:0; }
@media (prefers-reduced-motion: no-preference) {
  .bm-arc.on { animation:bmFly 1.1s linear infinite; }
  .bm-arc.on.late { animation-duration:.7s; }
}
@keyframes bmFly { to { stroke-dashoffset:-9; } }
.bm-trail { fill:none; stroke:var(--bm-arc-new); stroke-width:2.2; stroke-linecap:round; pointer-events:none; filter:drop-shadow(0 0 2.5px var(--bm-arc-new)); }
.bm-comet { pointer-events:none; }
.bm-cmh { fill:var(--bm-arc-new); fill-opacity:.3; }
.bm-cmc { fill:var(--bm-wt); stroke:var(--bm-arc-new); stroke-width:2.2; }
.bm-hub { pointer-events:none; }
.bm-hubr { fill:none; stroke:var(--bm-hub); stroke-width:2; }
.bm-hubc { fill:var(--bm-hub); }
.bm-fl { display:inline-block; width:16px; height:0; margin:0 4px 0 2px; border-top:2px dashed #a85d00; vertical-align:3px; }
/* кнопки на карте: «Вся Россия», название, «+ / −» */
.bm-zui { position:absolute; z-index:2; left:10px; right:10px; top:10px; display:flex; align-items:center; gap:8px; pointer-events:none;
  opacity:0; transform:translateY(-6px); transition:opacity .25s, transform .25s; }
.bm.bm-zoomed .bm-zui { opacity:1; transform:none; }
.bm:not(.bm-zoomed) .bm-zui * { visibility:hidden; }
.bm-zb { pointer-events:auto; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:36px; height:36px;
  padding:0 12px; border:1px solid var(--bm-ui-line); border-radius:12px; background:var(--bm-ui); color:var(--bm-ui-ink);
  font:inherit; font-size:13.5px; font-weight:650; line-height:1; box-shadow:var(--bm-ui-sh); cursor:pointer;
  transition:background .15s, transform .1s; }
.bm-zb:hover { background:#fff; }
.bm-zb:active { transform:scale(.96); }
.bm-zb:focus-visible { outline:2px solid var(--bm-ui-ink); outline-offset:2px; }
.bm-zb svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.bm-zpm { display:inline-flex; gap:4px; }
.bm-zpm .bm-zb { padding:0; width:36px; font-size:19px; font-weight:600; }
.bm-zt { min-width:0; overflow:hidden; padding:8px 12px; border-radius:12px; background:var(--bm-ui); color:var(--bm-ui-ink); font-size:14px;
  font-weight:700; line-height:1.2; white-space:nowrap; text-overflow:ellipsis; box-shadow:var(--bm-ui-sh); }
.bm-zt:empty { display:none; }
.bm-zsp { flex:1; }
.bm.bm-loading .bm-zt::after { content:" · загружаю подробную карту…"; font-weight:500; color:#6b7280; }
/* панель под картой при приближении: регионы субъекта, объекты */
.bm-zp { margin-top:8px; padding:10px 12px 9px; border:1px solid var(--line); border-radius:12px; background:var(--soft); }
.bm-zp[hidden] { display:none; }
.zp-h { margin-bottom:6px; font-size:14px; }
.zp-list { margin:0; padding:0; list-style:none; }
.zp-r { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; padding:5px 0; border-top:1px solid var(--line); }
.zp-r:first-child { border-top:0; }
.zp-r.st-red { --rg:#d93025; } .zp-r.st-amber { --rg:#e09a14; } .zp-r.st-green { --rg:#2f9e5b; } .zp-r.st-idle { --rg:#b6bcc6; }
.zp-dot { flex:none; width:10px; height:10px; border-radius:50%; background:var(--rg); }
.zp-r b { font-weight:780; letter-spacing:.03em; }
.zp-n { color:var(--muted); }
.zp-c { margin-left:auto; font-size:12.5px; color:var(--muted); }
.zp-c em { font-style:normal; color:#b26a00; } .zp-c em.hot { color:var(--err); }
.zp-a { font-size:12.5px; font-weight:650; }
.zp-o, .zp-e { margin:6px 0 0; font-size:12.5px; color:var(--muted); }
/* сводка объекта при наведении */
.bc-sq { width:11px; height:11px; flex:none; border-radius:3px; background:var(--rg); box-shadow:0 0 0 3px rgba(255,255,255,.08), 0 0 10px var(--rg); }
.bm-cardo .bc-h { align-items:flex-start; }
.bm-cardo .bc-h .bc-sq { margin-top:4px; }
.bc-ot { flex:1; min-width:0; font-size:14.5px !important; letter-spacing:0 !important; line-height:1.25; }
.bc-rc { flex:none !important; padding:2px 7px; border-radius:8px; background:rgba(255,255,255,.08); color:#aeb7c6; font-size:11.5px; font-weight:700; }
.bm-cardo .bc-kpi small { font-size:10px; }
.bc-dl { margin-top:7px; padding:4px 8px; border-radius:8px; font-weight:600; }
.bc-dl.dl-over { background:rgba(240,100,90,.18); color:#ffb4ab; } .bc-dl.dl-soon { background:rgba(242,177,61,.16); color:#ffd479; }
@media (max-width:640px) {
  .bm { --bm-pin-t:.5; }                                  /* подписи регионов на телефоне крупнее (26) – при приближении как обычно */
  .bm-zt { display:none; }
  .bm-zb span { display:none; }
  .bm-zb.bm-home { padding:0 10px; }
}
html.tablo .bm-zp { display:none !important; }
html.tablo .bm { --bm-pin-k:1.45; }
/* паспорт объекта: место на карте – поле, проверка, карта для выбора точки; в паспорте – мини-карта */
.ce-geo .ce-geo-row { display:flex; gap:8px; align-items:stretch; }
.ce-geo .ce-geo-row input { flex:1; min-width:0; }
.ce-geo .ce-geo-row .btn, .ce-geo .ce-geo-row button { flex:none; }
.ce-geo-st { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; min-height:20px; margin-top:6px; font-size:12.5px; color:var(--muted); }
.ce-geo-st b { color:var(--ink); font-weight:650; }
.ce-geo-st.ok::before { content:""; width:8px; height:8px; border-radius:50%; background:#2f9e5b; }
.ce-geo-st.warn { color:#9a5b00; } .ce-geo-st.err { color:var(--err); }
.ce-geo-st button { padding:2px 9px; font-size:12px; }
.ce-gmap { position:relative; margin-top:8px; overflow:hidden; border:1px solid var(--line); border-radius:14px; }
.ce-gmap[hidden] { display:none; }
.ce-gmap .bm { border-radius:0; }
.ce-gmap-h { position:absolute; z-index:3; left:10px; bottom:10px; max-width:calc(100% - 20px); padding:6px 10px; border-radius:10px;
  background:rgba(20,24,32,.78); color:#fff; font-size:12px; line-height:1.3; pointer-events:none; }
.bm-me .bm-mk { fill:#d93025; stroke:var(--bm-wt); stroke-width:2.2; }
.bm-me .bm-mkh { fill:#d93025; fill-opacity:.22; }
.bm-me .bm-mkd { fill:var(--bm-wt); }
.cv-geo .cv-gmap { position:relative; margin-top:8px; overflow:hidden; border-radius:12px; border:1px solid var(--line); }
.cv-geo .cv-gmap .bm { border-radius:0; }
.cv-geo .cv-gl { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:8px; font-size:12.5px; }
.cv-geo .cv-gt { font-size:13px; }
.cv-geo .cv-gt small { display:block; color:var(--muted); }
/* список объектов в кружке – когда ближе они не разойдутся */
.bm-pop { position:fixed; z-index:9150; width:300px; max-height:min(60vh, 420px); display:flex; flex-direction:column; overflow:hidden;
  border-radius:14px; background:#1d222c; color:#eef1f6; box-shadow:0 18px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06); }
.bm-pop[hidden] { display:none; }
.bp-h { display:flex; align-items:center; gap:8px; padding:10px 12px 8px; border-bottom:1px solid rgba(255,255,255,.08); }
.bp-h b { flex:1; font-size:13.5px; }
.bp-x { width:28px; height:28px; padding:0; border:0; border-radius:8px; background:rgba(255,255,255,.08); color:#c3cad6; font-size:13px; cursor:pointer; }
.bp-x:hover { background:rgba(255,255,255,.16); }
.bp-l { overflow:auto; padding:4px; }
.bp-r { display:grid; grid-template-columns:12px 1fr; column-gap:8px; align-items:center; padding:7px 8px; border-radius:9px; color:inherit; text-decoration:none; }
.bp-r:hover, .bp-r:focus-visible { background:rgba(255,255,255,.08); outline:none; }
.bp-r i { grid-row:span 2; width:10px; height:10px; border-radius:3px; background:var(--rg); }
.bp-r.st-red { --rg:#f0645a; } .bp-r.st-amber { --rg:#f2b13d; } .bp-r.st-green { --rg:#46c27a; } .bp-r.st-idle { --rg:#9aa6b8; }
.bp-r b { font-size:13px; font-weight:650; line-height:1.25; }
.bp-r small { grid-column:2; color:#9aa6b8; font-size:11.5px; }


/* ================= 1.0.23 (доработка) ================= */
/* границы субъектов – одной сетью линий поверх заливки: у соседей одна линия, одной толщины на любом приближении;
   выбранный субъект и наведение – тёмной линией поверх всего */
.bm { --bm-bw:1px; --bm-bw-st:1.35px; --bm-bw-sel:2.2px; --bm-bw-hov:1.6px; }
html.tablo .bm { --bm-bw:1.4px; --bm-bw-st:1.8px; --bm-bw-sel:3px; --bm-bw-hov:2.2px; }
.bm-ln, .bmd-ln, .bm-sl { fill:none; stroke-linejoin:bevel; stroke-linecap:butt; pointer-events:none; }
.bm-ln-in, .bm-ln-co { stroke:var(--bm-line); stroke-width:calc(var(--bm-bw) * var(--u, 1)); }
.bm-ln-fo { stroke:var(--bm-fg-line); stroke-width:calc(var(--bm-bw) * var(--u, 1)); }
.bm-ln-st { stroke:var(--bm-lb); stroke-width:calc(var(--bm-bw-st) * var(--u, 1)); }
.bm-sl { stroke:none; }
.bm-sl.sel { stroke:var(--bm-sel); stroke-width:calc(var(--bm-bw-hov) * var(--u, 1)); }
.bm.bm-zoomed .bm-sl.zsel { stroke:var(--bm-sel); stroke-width:calc(var(--bm-bw-sel) * var(--u, 1)); }
.bm.bm-detail .bm-osel { display:none; }
/* субъект, где у ДЧ есть объекты, а самой ДЧ нет (Ненецкий АО у Усинска), – штриховкой цвета состояния */
.bm-s.on.ar.st-red { fill:url(#bmh-red); animation:none; } .bm-s.on.ar.st-amber { fill:url(#bmh-amber); }
.bm-s.on.ar.st-green { fill:url(#bmh-green); } .bm-s.on.ar.st-idle { fill:url(#bmh-idle); }
.bmh-bg.st-red { fill:color-mix(in srgb, var(--bm-red) 42%, var(--bm-land)); } .bmh-fg.st-red { fill:var(--bm-red); }
.bmh-bg.st-amber { fill:color-mix(in srgb, var(--bm-amber) 42%, var(--bm-land)); } .bmh-fg.st-amber { fill:var(--bm-amber); }
.bmh-bg.st-green { fill:color-mix(in srgb, var(--bm-green) 42%, var(--bm-land)); } .bmh-fg.st-green { fill:var(--bm-green); }
.bmh-bg.st-idle { fill:color-mix(in srgb, var(--bm-idle) 50%, var(--bm-land)); } .bmh-fg.st-idle { fill:var(--bm-idle); }
.bc-ar { margin:-2px 0 8px; font-size:12px; color:#aeb7c6; }
.zp-ar .zp-dot { background:repeating-linear-gradient(45deg, var(--rg) 0 2px, transparent 2px 4px); box-shadow:inset 0 0 0 1px var(--rg); }
/* точки ДЧ: при приближении – без подписей (название субъекта – сверху); у домов Москвы точек ДЧ нет */
.bm.bm-zoomed .bm-pt .bm-lbl { display:none; }
.bm.bm-deep .bm-pt { display:none; }
/* подробная карта Москвы и области (OpenStreetMap). 1.0.24: рисует фоновый поток (static/mapworker.js) картинками –
   цвета берёт отсюда (переменные --bmc-*, в тёмной теме – свои), правила «что на каком приближении» – там же */
.bm { --bmc-land:#eeece7; --bmc-water:#a9d5ee; --bmc-wood:#cfe3c1; --bmc-park:#c3e2b1; --bmc-grass:#dbeccf; --bmc-allot:#e3e9cf;
  --bmc-wet:#d2e5de; --bmc-cem:#d0ddcc; --bmc-res:#e9e5e0; --bmc-ind:#e5dfe6; --bmc-com:#efe4df; --bmc-mil:#eedfdd; --bmc-raila:#e3e0dc;
  --bmc-pitch:#b9e0c3; --bmc-bld:#d8d0c8; --bmc-bld-line:#bdb3a9; --bmc-r1:#f4b860; --bmc-r2:#f7c978; --bmc-r3:#fbdc9f; --bmc-r4:#fdf0c4;
  --bmc-r5:#ffffff; --bmc-r6:#ffffff; --bmc-r7:#ffffff; --bmc-r8:#f5f1ea; --bmc-c1:#c68a32; --bmc-c2:#c99a49; --bmc-c3:#c7a66d;
  --bmc-c4:#c4b48c; --bmc-c:#c6bdb2; --bmc-tun:#b8afa5; --bmc-rail:#8a8d94; --bmc-rail-d:#ffffff; --bmc-river:#7ec0e6;
  --bmc-bnd:#8b6fa8; --bmc-ink:#2e333b; --bmc-st:#4d525a; --bmc-hn:#83888f; --bmc-metro:#cf3f37;
  --bmc-r2m:#f0b65e; --bmc-r3m:#f3c87f; --bmc-r4m:#f6dca6; --bmc-l12:#a9a2b5; --bmc-l13:#8a6f8e; }   /* r2m–r4m: улицы до кварталов */
.bm.bm-deep .bmd-s.bmd-city { fill:var(--bmc-land); animation:none; }   /* у города – обычная карта: состояние – у объектов */
/* 1.0.25 (доработка): при приближении субъект цветом состояния не пульсирует (во весь кадр это мигание, и каждый шаг
   пульса перерисовывал всю карту); подробная область меняет цвет у города сразу – без растяжки на полсекунды */
.bm.bm-zoomed .bm-s.on.st-red { animation:none; }
.bm-s.bmd-city { transition:none; }
.bm.bm-deep .bmd-lake, .bm.bm-deep .bmd-riv, .bm.bm-deep .bmd-road, .bm.bm-deep .bmd-rail { display:none; }   /* у города линии Natural Earth не нужны (и тяжелы) */
.bm.bm-deep { background:var(--bmc-water); } .bm.bm-deep .bm-sea { fill:var(--bmc-water); }   /* 1.0.25: у города море – цветом воды, как реки и озёра (Приморье) */
.bm.bm-deep .bmd-ln.bm-ln-co { display:none; }          /* берег у города рисуют море и суша подробной карты (линия контура грубее) */
.bm.bm-deep .bm-sl.sel, .bm.bm-deep .bm-sl.zsel { stroke:none; }   /* и обводки выбранного субъекта у города нет: в Приморье она шла бы по берегу */
/* подписи подробной карты: места, улицы, метро, номера домов */
.bmc-pl, .bmc-st, .bmc-mt, .bmc-hn { pointer-events:none; }
.bmc-plt { fill:var(--bmc-ink); font-weight:600; paint-order:stroke; stroke:var(--bm-halo); stroke-width:3px; stroke-linejoin:round; }
.bmc-pl.r0 .bmc-plt { font-size:17px; font-weight:780; letter-spacing:.02em; } .bmc-pl.r1 .bmc-plt { font-size:14px; font-weight:700; }
.bmc-pl.r2 .bmc-plt { font-size:12.5px; } .bmc-pl.r3 .bmc-plt { font-size:12px; } .bmc-pl.r4 .bmc-plt { font-size:11.5px; font-weight:560; }
.bmc-pl.r5 .bmc-plt { font-size:11px; font-weight:520; } .bmc-pl.r6 .bmc-plt { font-size:10.5px; font-weight:500; }
.bmc-stt { font-size:10.5px; fill:var(--bmc-st); font-style:italic; paint-order:stroke; stroke:var(--bm-halo); stroke-width:2.6px; stroke-linejoin:round; }
.bmc-st.c1 .bmc-stt, .bmc-st.c2 .bmc-stt, .bmc-st.c3 .bmc-stt { font-size:11px; font-weight:600; }
.bmc-mtc { fill:var(--bmc-metro); stroke:var(--bm-halo); stroke-width:1.4px; }
.bmc-mtm { font-size:8.5px; font-weight:800; fill:#fff; }
.bmc-mtt { font-size:10.5px; font-weight:600; fill:var(--bmc-metro); paint-order:stroke; stroke:var(--bm-halo); stroke-width:2.6px; stroke-linejoin:round; }
.bmc-hn text { font-size:9px; fill:var(--bmc-hn); paint-order:stroke; stroke:var(--bmc-bld); stroke-width:2px; stroke-linejoin:round; }
.bm-src { position:absolute; z-index:2; right:8px; bottom:6px; padding:1px 6px; border-radius:6px; background:rgba(255,255,255,.75);
  color:#5b6270; font-size:10.5px; line-height:1.4; pointer-events:none; opacity:0; transition:opacity .3s; }
.bm.bm-zoomed.bm-cityon .bm-src { opacity:1; }
html.tablo .bm-src { font-size:12px; }


/* ================= 1.0.24 ================= */
/* карта: сцена из двух слоёв SVG и холста между ними – на холсте картинки подробной карты Москвы (их рисует фоновый поток) */
.bm-stage { position:relative; overflow:hidden; }
.bm-stage > .bm-svg { height:100%; }
.bm-ras, .bm-svg2 { position:absolute; left:0; top:0; width:100%; height:100%; }
/* 1.0.25 (доработка): нижний SVG и сеть границ с ночью – с запасом в полкадра с каждой стороны; пока карту двигают, их
   сдвигает и растягивает transform (без перерисовки), остановилась – перерисовываются (mapcore.js: follow, rebase) */
.bm-stage > .bm-svgb, .bm-stage > .bm-svgm { position:absolute; left:0; top:0; width:100%; height:100%; transform-origin:50% 50%;
  will-change:transform; }                                      /* запас (left, top, width, height) задаёт mapcore.js */
.bm-svgm { pointer-events:none; }
.bm-ras { pointer-events:none; opacity:0; transition:opacity .4s ease; }
.bm.bm-zoomed .bm-ras { opacity:1; }
.bm-svg2 { pointer-events:none; }
.bm-svg2 .bm-l-dots, .bm-svg2 .bm-l-objs, .bm-svg2 .bm-l-bld { pointer-events:auto; }
/* дом, где стоит объект, – цветом его состояния (у домов: ×2600 и ближе); наведение и щелчок – как по значку объекта */
.bm-hb { --rg:#6f7a89; fill:var(--rg); fill-opacity:.3; stroke:var(--rg); stroke-width:2px; stroke-linejoin:round;
  vector-effect:non-scaling-stroke; cursor:pointer; transition:fill-opacity .2s; }
.bm-hb.st-red { --rg:#d93025; fill-opacity:.36; } .bm-hb.st-amber { --rg:#e08a0b; fill-opacity:.34; }
.bm-hb.st-green { --rg:#2f9e5b; } .bm-hb.st-idle { --rg:#6f7a89; fill-opacity:.24; }
.bm-hb:hover, .bm-hb.sel { fill-opacity:.5; }
.bm-hb.me { --rg:#d93025; fill-opacity:.22; pointer-events:none; }      /* паспорт: дом выбранной точки */
.bm:not(.bm-c4) .bm-hb { display:none; }
@media (prefers-reduced-motion: no-preference) {
  .bm-hb.st-red:not(:hover):not(.sel) { animation:bmHbRed 2.4s ease-in-out infinite; }
}
@keyframes bmHbRed { 50% { fill-opacity:.52; } }
/* масштабная линейка: 10 км, 1 км, 100 м… – у середины кадра */
.bm-scale { position:absolute; z-index:2; left:10px; bottom:8px; display:flex; align-items:flex-end; gap:6px; padding:4px 8px 5px;
  border-radius:8px; background:var(--bm-ui); color:var(--bm-ui-ink); box-shadow:0 1px 5px rgba(15,25,45,.14); font-size:11.5px;
  font-weight:650; line-height:1; font-variant-numeric:tabular-nums; pointer-events:none; white-space:nowrap; }
.bm-scale i { display:block; height:6px; border:2px solid currentColor; border-top:0; box-sizing:border-box; }
.bm:not(.bm-zoomed) .bm-scale { display:none; }
.ce-gmap .bm-scale { left:auto; right:8px; bottom:28px; }            /* в паспорте внизу слева – подсказка */
html.tablo .bm-scale { font-size:13px; }
/* карта на весь экран: поверх страницы; кнопка – в правом верхнем углу (и на карте страны) */
.bm-fsb { position:absolute; z-index:3; top:10px; right:10px; width:36px; padding:0; }
.bm-zui { right:54px; }
html.bm-fs-on, html.bm-fs-on body { overflow:hidden; }
.bm.bm-fs { position:fixed; inset:0; z-index:9000; margin:0; border-radius:0; }
.bm.bm-fs .bm-stage { position:absolute; inset:0; aspect-ratio:auto !important; }
.bm.bm-fs .bm-fsb { top:max(10px, env(safe-area-inset-top)); right:max(10px, env(safe-area-inset-right)); }
.bm.bm-fs .bm-zui { top:max(10px, env(safe-area-inset-top)); }
.bm.bm-fs .bm-scale { bottom:max(10px, env(safe-area-inset-bottom)); }

/* ================= 1.0.25 (доработка): окно объекта на карте, видеонаблюдение TRASSIR ================= */
/* сводка и список «Объекты рядом» на табло – крупнее, по масштабу табло (map.js учитывает размер при выборе места) */
html.tablo .bm-card, html.tablo .bm-pop { scale:var(--tbz, 1.2); transform-origin:0 0; }
html.tablo .bm-pop { max-height:calc(min(70vh, 420px * var(--tbz, 1.2)) / var(--tbz, 1.2)); }
html.bm-fs-on .toasts { z-index:9300; }                             /* уведомления видны и на карте во весь экран */
.bc-cam { display:flex; align-items:center; gap:6px; margin-top:7px; color:#c3cad6; }
.bc-cam i { width:8px; height:8px; border-radius:50%; background:#46c27a; box-shadow:0 0 0 3px rgba(70,194,122,.18); }
/* объект, чьё окно открыто, – выделен на карте */
.bm-ob.owsel .bm-obh { fill-opacity:.34; }
.bm-ob.owsel .bm-obq { stroke:var(--bm-sel); stroke-width:2.6; }
.bm-hb.owsel { fill-opacity:.55; stroke-width:3px; }

/* окно объекта: тёмное, как сводка при наведении; целиком в окне браузера (длинное – листается внутри) */
.ow { --ow-bg:#1b2029; --ow-bg2:#232a35; --ow-ink:#eef1f6; --ow-mut:#9aa6b8; --ow-mut2:#c3cad6; --ow-line:rgba(255,255,255,.08);
  --rg:#9aa6b8; position:fixed; z-index:9120; left:24px; top:80px; display:flex; flex-direction:column;
  width:min(31em, calc(100vw - 20px)); max-height:calc(100vh - 20px); max-height:calc(100dvh - 20px); box-sizing:border-box;
  border-radius:18px; background:var(--ow-bg); color:var(--ow-ink); font-size:13px; line-height:1.38;
  box-shadow:0 24px 60px rgba(4,8,16,.42), 0 0 0 1px rgba(255,255,255,.07); outline:none; overflow:hidden; }
.ow[hidden] { display:none; }
.ow.st-red { --rg:#f0645a; } .ow.st-amber { --rg:#f2b13d; } .ow.st-green { --rg:#46c27a; } .ow.st-idle { --rg:#9aa6b8; }
.ow.ow-wide { width:min(36em, calc(100vw - 20px)); }                /* с камерами – шире */
html.tablo .ow { font-size:calc(13px * var(--tbz, 1.2)); }
.ow::before { content:""; position:absolute; left:0; right:0; top:0; height:3px; background:var(--rg); opacity:.9; }
.ow:focus-visible { box-shadow:0 24px 60px rgba(4,8,16,.42), 0 0 0 2px #8fb0e8; }
.ow-ic { width:1.25em; height:1.25em; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ow-h { display:flex; align-items:flex-start; gap:.55em; padding:1em 1em .7em .7em; cursor:grab; user-select:none; touch-action:none; }
.ow.ow-drag .ow-h { cursor:grabbing; }
.ow-grip { color:rgba(255,255,255,.22); margin-top:.15em; }
.ow-grip .ow-ic { width:1.1em; height:1.3em; fill:currentColor; stroke:none; }
.ow-sq { width:.9em; height:.9em; flex:none; margin-top:.36em; border-radius:.25em; background:var(--rg);
  box-shadow:0 0 0 .25em rgba(255,255,255,.07), 0 0 .8em var(--rg); }
.ow-ht { flex:1; min-width:0; }
.ow-ht h2 { margin:0; font-size:1.25em; font-weight:720; line-height:1.22; letter-spacing:0; color:var(--ow-ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ow-sub { display:flex; flex-wrap:wrap; align-items:center; gap:.3em .5em; margin:.3em 0 0; color:var(--ow-mut2); font-size:.92em; }
.ow-sub:empty { display:none; }
.ow-rc { padding:.08em .5em; border-radius:.6em; background:rgba(255,255,255,.09); color:#d7dde7; font-size:.9em; font-weight:700; }
.ow-addr { min-width:0; }
.ow-x { flex:none; display:grid; place-items:center; width:2.3em; height:2.3em; margin:-.25em -.2em 0 0; padding:0; border:0;
  border-radius:50%; background:rgba(255,255,255,.07); color:#d7dde7; cursor:pointer; }
.ow-x:hover { background:rgba(255,255,255,.15); color:#fff; }
.ow-x:focus-visible, .ow a:focus-visible, .ow button:focus-visible, .ow summary:focus-visible { outline:2px solid #8fb0e8; outline-offset:2px; }
.ow-b { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; padding:0 1em .9em; scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.18) transparent; }
.ow-kpi { display:grid; grid-template-columns:repeat(4, 1fr); gap:.45em; }
.ow-kpi > div { display:flex; flex-direction:column; padding:.55em .65em .5em; border-radius:.8em; background:rgba(255,255,255,.055); }
.ow-kpi b { font-size:1.55em; font-weight:760; line-height:1.05; font-variant-numeric:tabular-nums; }
.ow-kpi small { margin-top:.15em; font-size:.8em; line-height:1.2; color:var(--ow-mut); }
.ow-kpi .hot b { color:#ff8a80; } .ow-kpi .warn b { color:#ffd479; }
.ow-late, .ow-dl { margin:.55em 0 0; padding:.4em .7em; border-radius:.65em; font-weight:600; }
.ow-late { background:rgba(240,100,90,.17); color:#ffb4ab; }
.ow-dl.dl-over { background:rgba(240,100,90,.15); color:#ffb4ab; } .ow-dl.dl-soon { background:rgba(242,177,61,.14); color:#ffd479; }
.ow-dl b { font-weight:700; }
.ow-s { margin-top:1em; }
.ow-s h3 { display:flex; align-items:center; gap:.45em; margin:0 0 .5em; font-size:.95em; font-weight:700; letter-spacing:0;
  color:var(--ow-mut2); }
.ow-n { padding:0 .45em; border-radius:.6em; background:rgba(255,255,255,.09); color:#d7dde7; font-size:.88em; font-weight:700;
  font-variant-numeric:tabular-nums; }
.ow-note { display:flex; align-items:center; gap:.5em; margin:1em 0 0; padding:.6em .75em; border-radius:.7em; background:rgba(255,255,255,.045);
  color:var(--ow-mut2); }
.ow a { color:#a9c4f5; }
.ow-none { margin:0; color:var(--ow-mut); }
/* события за сутки */
.ow-ev { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:.2em; }
.ow-e { display:grid; grid-template-columns:3.1em 1.9em 1fr; align-items:start; gap:.55em; padding:.45em .5em; border-radius:.7em;
  color:inherit !important; text-decoration:none; }
.ow-e:hover { background:rgba(255,255,255,.06); }
.ow-e.late { background:rgba(240,100,90,.09); }
.ow-e time { padding-top:.2em; color:var(--ow-mut2); font-weight:650; font-variant-numeric:tabular-nums; }
.ow-ei { --c:var(--acc, #8fb0e8); display:grid; place-items:center; width:1.9em; height:1.9em; border-radius:50%; color:var(--c);
  color:color-mix(in srgb, var(--c) 45%, #fff); background:color-mix(in srgb, var(--c) 38%, transparent); }  /* цвет типа события; значок светлее – на тёмном */
.ow-ei svg { width:1.15em; height:1.15em; }
.ow-ei.urg { box-shadow:0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent); }
.ow-et { min-width:0; display:flex; flex-direction:column; gap:.1em; }
.ow-et b { font-weight:650; line-height:1.25; }
.ow-et small { color:var(--ow-mut); font-size:.9em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ow-bds { display:flex; flex-wrap:wrap; gap:.3em; margin-top:.2em; }
.ow-bd { padding:.05em .5em; border-radius:.6em; font-style:normal; font-size:.84em; font-weight:650; background:rgba(255,255,255,.08); color:#d7dde7; }
.ow-bd.hot { background:rgba(240,100,90,.2); color:#ffb4ab; } .ow-bd.warn { background:rgba(242,177,61,.17); color:#ffd479; }
.ow-bd.ok { background:rgba(70,194,122,.16); color:#8fe0b0; }
/* сведения из паспорта */
.ow-kv { display:grid; grid-template-columns:minmax(7em, 38%) 1fr; gap:.38em .8em; margin:0; }
.ow-kv > div { display:contents; }
.ow-kv dt { color:var(--ow-mut); }
.ow-kv dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.ow-kv dd small { display:block; color:var(--ow-mut); font-size:.9em; }
.ow-dlv.dl-over { color:#ffb4ab; font-weight:650; } .ow-dlv.dl-soon { color:#ffd479; font-weight:650; }
/* телефоны */
.ow-ph summary { list-style:none; cursor:pointer; }
.ow-ph summary::-webkit-details-marker { display:none; }
.ow-ph summary h3 { margin-bottom:.4em; }
.ow-ph summary h3::after { content:""; width:.45em; height:.45em; margin-left:auto; border:solid var(--ow-mut); border-width:0 2px 2px 0;
  transform:rotate(45deg); transition:transform .15s; }
.ow-ph[open] summary h3::after { transform:rotate(-135deg); }
.ow-ph ul { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:.3em; }
.ow-ph li { display:flex; align-items:center; gap:.6em; min-width:0; }
.ow-ph li span { min-width:0; color:var(--ow-mut2); line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; }
.ow-tel { flex:none; display:inline-flex; align-items:center; gap:.35em; padding:.25em .6em; border-radius:.7em; background:rgba(143,176,232,.13);
  color:#cfe0ff !important; text-decoration:none; font-variant-numeric:tabular-nums; }
.ow-tel:hover { background:rgba(143,176,232,.24); }
.ow-tel .ow-ic { width:1em; height:1em; }
.ow-f { display:flex; align-items:center; gap:.8em; padding:.7em 1em .85em; border-top:1px solid var(--ow-line); background:rgba(0,0,0,.12); }
.ow-pass { display:inline-flex; align-items:center; gap:.45em; padding:.45em .8em; border-radius:.75em; background:rgba(255,255,255,.08);
  color:#eef1f6 !important; font-weight:650; text-decoration:none; }
.ow-pass:hover { background:rgba(255,255,255,.15); }
.ow-pass .ow-ic:last-child { width:1em; height:1em; opacity:.7; }
.ow-f small { margin-left:auto; color:var(--ow-mut); }
.ow-skel { display:flex; flex-direction:column; gap:.6em; margin-top:1em; }
.ow-skel i { display:block; height:2.6em; border-radius:.7em; background:linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04));
  background-size:200% 100%; animation:owSk 1.2s linear infinite; }
.ow-skel i:nth-child(2) { width:80%; } .ow-skel i:nth-child(3) { width:60%; }
@keyframes owSk { to { background-position:-200% 0; } }
.ow-err { margin:1em 0 0; color:#ffb4ab; }
.ow-retry { margin-left:.4em; padding:.2em .7em; border:0; border-radius:.6em; background:rgba(255,255,255,.1); color:#fff; cursor:pointer; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion=less]) .ow.ow-ping { animation:owPing .7s ease-out; }
}
.ow.ow-closing { pointer-events:none; }                              /* сворачивается в значок объекта (objwin.js) */
@keyframes owPing { 30% { box-shadow:0 24px 60px rgba(4,8,16,.42), 0 0 0 3px var(--rg); } }
/* телефон: панель снизу во всю ширину */
.ow.ow-sheet { left:0 !important; right:0; top:auto !important; bottom:0; width:auto; max-height:84vh; max-height:84dvh;
  border-radius:20px 20px 0 0; font-size:14px; padding-bottom:env(safe-area-inset-bottom); }
.ow.ow-sheet .ow-h { cursor:default; padding-top:1.1em; }
.ow.ow-sheet .ow-grip { display:none; }
.ow.ow-sheet .ow-kpi { gap:.35em; }
.ow.ow-sheet .ow-kpi > div { padding:.45em .5em .4em; }
.ow.ow-sheet .ow-kpi b { font-size:1.35em; }
.ow.ow-sheet .ow-kpi small { font-size:.74em; }
/* карта на весь экран: окно не закрывает кнопки карты сверху и подпись OpenStreetMap снизу */
html.bm-fs-on .ow:not(.ow-sheet) { max-height:calc(100vh - 92px); max-height:calc(100dvh - 92px); }

/* просмотр камер: «монитор» – тёмный и в окне объекта, и в паспорте */
.cam { --cam-bg:#0f1319; --cam-ink:#e9eef5; --cam-mut:#93a0b3; display:flex; flex-direction:column; gap:.5em; padding:.55em;
  border-radius:.95em; background:var(--cam-bg); color:var(--cam-ink); font-size:13px; }
.ow .cam { font-size:1em; }
.cam svg { width:1.2em; height:1.2em; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.cam-bar { display:flex; align-items:center; gap:.4em; }
.cam-sp { flex:1; }
.cam-seg { display:inline-flex; padding:.15em; border-radius:.7em; background:rgba(255,255,255,.06); }
.cam-b { display:inline-flex; align-items:center; gap:.35em; min-height:2.2em; padding:.25em .65em; border:0; border-radius:.6em;
  background:transparent; color:var(--cam-mut); font:inherit; font-size:.92em; font-weight:650; cursor:pointer; }
.cam-b:hover { color:var(--cam-ink); background:rgba(255,255,255,.07); }
.cam-b[aria-pressed=true] { background:rgba(255,255,255,.13); color:var(--cam-ink); }
.cam-b[hidden] { display:none; }
.cam-b:focus-visible, .cam-chip:focus-visible, .cam-play:focus-visible { outline:2px solid #8fb0e8; outline-offset:1px; }
.cam-view { position:relative; border-radius:.7em; overflow:hidden; background:#05070a; aspect-ratio:16 / 9; }
.cam-stage { position:absolute; inset:0; display:grid; gap:2px; grid-template-columns:1fr; }
.cam-stage[data-n="2"] { grid-template-columns:1fr 1fr; }
.cam-stage[data-n="3"], .cam-stage[data-n="4"] { grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; }
.cam-t { position:relative; min-width:0; min-height:0; overflow:hidden; background:#0a0d12; }
.cam-c { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; transition:opacity .25s; }
.cam-t.has .cam-c { opacity:1; }
.cam-st { position:absolute; left:.5em; top:.5em; display:inline-flex; align-items:center; gap:.4em; padding:.12em .55em .12em .45em;
  border-radius:.7em; background:rgba(6,9,14,.66); color:#dfe6f0; font-size:.8em; font-weight:650; backdrop-filter:blur(4px); }
.cam-st:empty, .cam-t[data-state=live] .cam-st { display:none; }    /* видео идёт – только точка у названия (не закрывать надписи камеры) */
.cam-st::before { content:""; width:.55em; height:.55em; border-radius:50%; background:#93a0b3; }
.cam-t[data-state=live] .cam-st::before { background:#46c27a; box-shadow:0 0 0 .2em rgba(70,194,122,.25); }
.cam-t[data-state=snap] .cam-st::before { background:#f2b13d; }
.cam-t[data-state=stalled] .cam-st::before, .cam-t[data-state=busy] .cam-st::before { background:#f2b13d; }
.cam-t[data-state=error] .cam-st::before, .cam-t[data-state=off] .cam-st::before, .cam-t[data-state=login] .cam-st::before { background:#f0645a; }
.cam-t[data-state=connect] .cam-st::before { border:2px solid #93a0b3; border-top-color:transparent; background:none; width:.5em; height:.5em;
  animation:camSpin .8s linear infinite; }
@keyframes camSpin { to { transform:rotate(360deg); } }
.cam-msg { position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); width:max-content; max-width:86%; padding:.5em .8em;
  border-radius:.7em; background:rgba(6,9,14,.72); color:#eef1f6; text-align:center; font-size:.9em; line-height:1.35; }
.cam-msg[hidden] { display:none; }
.cam-t[data-state=error] .cam-msg, .cam-t[data-state=off] .cam-msg, .cam-t[data-state=login] .cam-msg { color:#ffc9c3; }
.cam-cap { position:absolute; left:0; right:0; bottom:0; display:flex; align-items:flex-end; gap:.6em; padding:1.6em .6em .45em;
  background:linear-gradient(transparent, rgba(0,0,0,.62)); font-size:.86em; pointer-events:none; }
.cam-cap b { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:650; }
.cam-cap b::before { content:""; display:inline-block; width:.5em; height:.5em; margin-right:.4em; border-radius:50%; vertical-align:.08em;
  background:transparent; }
.cam-t[data-state=live] .cam-cap b::before { background:#46c27a; box-shadow:0 0 0 .18em rgba(70,194,122,.28); }
.cam-t[data-state=snap] .cam-cap b::before { background:#f2b13d; }
.cam.cam-fs .cam-cap { font-size:1em; padding:2em .8em .6em; }
.cam.cam-fs .cam-st { font-size:.9em; }
.cam-cap time { flex:none; color:#cfd7e3; font-variant-numeric:tabular-nums; }
.cam-stage[data-n="1"] .cam-cap { font-size:.92em; }
.cam-go { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.6em;
  background:radial-gradient(ellipse at 50% 45%, rgba(40,52,70,.55), rgba(5,7,10,.9)); }
.cam-go[hidden] { display:none; }
.cam-play { display:inline-flex; align-items:center; gap:.55em; padding:.7em 1.2em .7em 1em; border:0; border-radius:2em;
  background:#eef1f6; color:#141a23; font:inherit; font-size:1.02em; font-weight:700; cursor:pointer;
  box-shadow:0 8px 26px rgba(0,0,0,.35); transition:transform .15s; }
.cam-play svg { fill:currentColor; stroke:none; width:1.25em; height:1.25em; }
.cam-play:hover { transform:scale(1.03); }
.cam-go small { color:var(--cam-mut); font-size:.86em; }
.cam-list { display:flex; gap:.35em; overflow-x:auto; padding-bottom:.1em; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.18) transparent;
  width:0; min-width:100%; }                       /* длинный ряд камер листается сам и не раздвигает страницу (телефон) */
.cam-chip { flex:none; display:inline-flex; align-items:center; gap:.4em; max-width:15em; padding:.35em .65em; border:1px solid rgba(255,255,255,.1);
  border-radius:.7em; background:rgba(255,255,255,.04); color:var(--cam-mut); font:inherit; font-size:.9em; cursor:pointer; }
.cam-chip span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cam-chip:hover { color:var(--cam-ink); background:rgba(255,255,255,.08); }
.cam-chip[aria-pressed=true] { border-color:rgba(143,176,232,.55); background:rgba(143,176,232,.14); color:var(--cam-ink); }
.cam-chip i { width:.5em; height:.5em; border-radius:50%; background:transparent; }
.cam-chip[data-state=live] i { background:#46c27a; } .cam-chip[data-state=snap] i, .cam-chip[data-state=stalled] i { background:#f2b13d; }
.cam-chip[data-state=error] i, .cam-chip[data-state=off] i { background:#f0645a; }
/* на весь экран: браузер во весь экран или (если весь экран уже у карты) – поверх окна браузера */
.cam.cam-fs { position:fixed; inset:0; z-index:9600; padding:max(.6em, env(safe-area-inset-top)) .6em max(.6em, env(safe-area-inset-bottom));
  border-radius:0; background:#000; font-size:15px; }
html.tablo .cam.cam-fs { font-size:calc(15px * var(--tbz, 1.2)); }
.cam.cam-fs .cam-view { flex:1 1 auto; min-height:0; aspect-ratio:auto; border-radius:.4em; }
.cam:fullscreen { width:100%; height:100%; }
@media (prefers-reduced-motion: reduce) { .cam-t[data-state=connect] .cam-st::before { animation:none; } .cam-c { transition:none; } }
html[data-motion=less] .cam-t[data-state=connect] .cam-st::before { animation:none; }
/* паспорт объекта: блок камер */
.cv-cams .cam { margin-top:4px; }

/* паспорт объекта (изменение): камеры TRASSIR */
.ce-cams summary .ic { color:#1f7f78; }
.ce-camlist { margin:6px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px; }
.ce-cam { display:flex; align-items:center; gap:8px; padding:6px 8px; border:1px solid var(--line); border-radius:12px; background:var(--card); }
.ce-camic { display:grid; place-items:center; width:32px; height:32px; flex:none; border-radius:10px; background:#e2f2f0; color:#1f7f78; }
.ce-camic .ic { width:18px; height:18px; }
.ce-camf { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.ce-camf input { width:100%; }
.ce-camf small { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.ce-camadd { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px; margin-top:10px; }
.ce-camadd label { flex:1 1 220px; margin:0; }
.ce-campick { margin-top:8px; padding:10px 12px; border:1px dashed var(--line); border-radius:12px; background:var(--soft); }
.ce-campick[hidden] { display:none; }
.ce-chl { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:4px 14px; margin-top:6px; }
.ce-chl label { display:flex; align-items:flex-start; gap:8px; margin:0; font-weight:400; }
.ce-chl label span { display:flex; flex-direction:column; min-width:0; }
.ce-chl small { color:var(--muted); font-size:12px; }
.ce-camerr { margin:0; color:var(--err); }
.ce-cam0 { margin:6px 0 0; }

/* «Настройки» → «Видеонаблюдение TRASSIR» */
.csv-steps { margin:6px 0 8px; padding-left:20px; display:flex; flex-direction:column; gap:4px; }
.csv-lh { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
.csv-lh h2 { margin:0; }
.csv-srv { margin-top:10px; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:var(--card); }
.csv-srv.off { opacity:.75; }
.csv-sh { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.csv-ic { display:grid; place-items:center; width:38px; height:38px; flex:none; border-radius:12px; background:#e2f2f0; color:#1f7f78; }
.csv-st { flex:1; min-width:200px; display:flex; flex-direction:column; }
.csv-st b { font-size:15px; }
.csv-st small { color:var(--muted); }
.csv-st em { font-style:normal; color:#9a5b00; }
.csv-n { color:var(--muted); font-size:13px; }
.csv-chk { margin-top:8px; padding:8px 12px; border-radius:10px; background:var(--soft); font-size:13px; }
.csv-chk p { margin:2px 0; }
.csv-chk.ok { background:#e8f5ec; } .csv-chk.warn { background:#fff4dc; } .csv-chk.err { background:#fde9e7; }
.csv-chk.busy { opacity:.8; }
.csv-err, .csv-need { color:var(--err); }
.csv-act { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:8px; }
.csv-act form { margin:0; }
.csv-on { align-self:end; padding-bottom:10px; }

/* ================= 1.0.25 (доработка 2): стопка «Требует внимания», вход, списки А–Я и таблицей, окно объекта из значка ================= */
/* «Требует внимания» – стопкой: компактная карточка сверху, остальные выглядывают из-под неё; раскрытая – обычные карточки */
.tstack { position:relative; display:flex; flex-direction:column; gap:10px; pointer-events:auto; }
.tstack:not(.open) { padding-bottom:7px; }
.tstack[data-n="3"]:not(.open) { padding-bottom:14px; }
.tstack[data-n="1"]:not(.open) { padding-bottom:0; }
.tstack::before, .tstack::after { content:""; position:absolute; left:11px; right:11px; bottom:7px; height:44px; z-index:1; pointer-events:none;
  border:1px solid var(--line); border-radius:13px; background:rgba(250,250,250,.97); box-shadow:0 8px 18px rgba(0,0,0,.10);
  transition:opacity .2s ease, transform .22s cubic-bezier(.2,.7,.2,1); }
.tstack::after { left:22px; right:22px; bottom:0; z-index:0; background:rgba(243,243,243,.95); }
.tstack[data-n="2"]::before { bottom:0; }
.tstack[data-n="2"]::after, .tstack[data-n="1"]::before, .tstack[data-n="1"]::after { display:none; }
.tstack.open::before, .tstack.open::after { opacity:0; transform:translateY(-12px) scale(.97); }
.ts-head { position:relative; z-index:2; display:flex; align-items:flex-start; gap:2px; padding:8px 8px 8px 9px; border:1px solid var(--line);
  border-radius:14px; background:rgba(255,255,255,.98); box-shadow:0 14px 34px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.06);
  animation:toastIn .34s cubic-bezier(.2,.8,.2,1) both; }
.ts-tog { flex:1; min-width:0; display:flex; align-items:flex-start; gap:11px; margin:0; padding:4px 6px 4px 4px; border:0; border-radius:10px;
  background:transparent; color:var(--ink); font:inherit; font-size:14px; text-align:left; cursor:pointer; box-shadow:none; }
.ts-tog:hover { background:var(--soft); }
.ts-tog:focus-visible { outline:2px solid var(--ink); outline-offset:1px; }
.ts-ic { flex:none; display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:#b08a12; color:#fff; }
.ts-ic .ic { width:18px; height:18px; }
.ts-tt { flex:1; min-width:0; padding-top:1px; }
.ts-t { display:flex; flex-wrap:wrap; align-items:center; gap:3px 8px; font-weight:650; line-height:1.35; }
.ts-n { display:inline-block; font-variant-numeric:tabular-nums; }
.ts-n.bump { animation:popAgain .42s cubic-bezier(.3,.8,.3,1.4); }
.ts-ov { padding:0 8px; border-radius:999px; background:#fbe3e1; color:#b3261e; font-size:11.5px; font-weight:650; line-height:19px; white-space:nowrap; }
.ts-ls { display:grid; gap:1px; margin-top:5px; }
.ts-li { display:block; overflow:hidden; color:var(--ink2); font-size:12.5px; line-height:1.5; white-space:nowrap; text-overflow:ellipsis; }
.ts-li i { display:inline-block; width:7px; height:7px; margin-right:7px; border-radius:50%; background:#d9a23a; vertical-align:1px; }
.ts-li.over i { background:var(--err); }
.ts-li.ts-more { padding-left:14px; color:var(--muted); }
.ts-chev { flex:none; width:18px; height:18px; margin-top:6px; color:var(--muted); transition:transform .24s cubic-bezier(.2,.7,.2,1); }
.tstack.open .ts-chev { transform:rotate(180deg); }
.tstack.open .ts-ls { display:none; }
.ts-head > .toast-x { flex:none; margin-top:3px; }
.ts-items { position:relative; z-index:1; display:flex; flex-direction:column; gap:10px; }
.ts-items[hidden] { display:none; }
.ts-items.ts-scroll { overflow-y:auto; overscroll-behavior:contain; margin:0 -8px; padding:2px 8px 18px; scrollbar-width:thin; }
.tstack .toast { animation:none; }
.tstack .toast.out { animation:toastOut .28s ease-in forwards; }
.tstack.nc-col, .tstack.nc-hid { display:none; }
body.touring .toasts .tstack { display:none; }
@media (prefers-reduced-motion: reduce) { .tstack::before, .tstack::after, .ts-chev { transition:none; } .ts-head, .ts-n.bump { animation:none; } }

/* поле пароля: «показать пароль» и подсказка «Включён Caps Lock» / «Русская раскладка» (вход, смена пароля, первый запуск) */
.pwf { margin:0 0 12px; }
.pwf > label { margin:0; }
.pwf-in { position:relative; }
.pwf-in input { display:block; padding-right:46px; }
.pw-eye { position:absolute; top:0; bottom:0; right:4px; width:38px; height:34px; margin:auto 0; padding:0; border:0; border-radius:9px;
  background:transparent; color:var(--muted); box-shadow:none; cursor:pointer; }
.pw-eye:hover { background:var(--soft); color:var(--ink); }
.pw-eye:focus-visible { outline:2px solid var(--ink); outline-offset:-2px; }
.pw-eye .ic { width:19px; height:19px; }
.pw-eye .pw-off, .pw-eye[aria-pressed="true"] .pw-on { display:none; }
.pw-eye[aria-pressed="true"] .pw-off { display:block; }
.pw-eye[aria-pressed="true"] { color:var(--ink); }
.pw-hint { display:flex; align-items:flex-start; gap:7px; margin:6px 0 0; padding:6px 10px; border-radius:9px; background:#fff4dc; color:#7a5600;
  font-size:12.5px; font-weight:550; line-height:1.4; }
.pw-hint[hidden] { display:none; }
.pw-hint .ic { width:16px; height:16px; margin-top:1px; }

/* длинные списки (паспорта, карточки охранников): полоса А–Я, заголовки букв, вид «Таблица» */
.cl-view { margin-left:auto; }
.cl-view button { display:inline-flex; align-items:center; gap:6px; }
.cl-view .ic { width:15px; height:15px; }
.cl-az { position:sticky; top:0; z-index:6; display:flex; flex-wrap:wrap; gap:1px; margin:0 0 12px; padding:5px 6px; border:1px solid var(--line);
  border-radius:12px; background:rgba(255,255,255,.95); box-shadow:0 4px 14px rgba(0,0,0,.06); }
.cl-az button { min-width:26px; height:28px; padding:0 5px; border:0; border-radius:7px; background:transparent; color:var(--ink);
  font-size:13px; font-weight:650; line-height:28px; box-shadow:none; }
.cl-az button:hover:not(:disabled) { background:var(--soft); }
.cl-az button:disabled { color:#c2c2c2; cursor:default; opacity:1; }
.cl-az button.on { background:var(--ink); color:#fff; }
.cl-az.off button:not(:disabled) { color:var(--ink2); font-weight:500; }
.cl-let { grid-column:1 / -1; display:flex; align-items:center; gap:12px; margin:10px 2px 0; color:var(--ink2); font-size:17px; font-weight:700; line-height:1.2; }
.cl-let::after { content:""; flex:1; height:1px; background:var(--line); }
.cl-let[hidden] { display:none; }
.cl-th { display:none; }
html.clv-table .cgrid { display:block; border:1px solid var(--line); border-radius:var(--r); background:var(--card); box-shadow:var(--shadow); overflow:hidden; }
html.clv-table .cl-th, html.clv-table .cgrid > .ctile { display:grid; grid-template-columns:minmax(250px, 1.7fr) minmax(0, 2fr) minmax(150px, 1fr) 236px;
  align-items:center; gap:4px 16px; }
html.clv-table .cl-th { padding:9px 14px 8px 17px; border-bottom:1px solid var(--line); background:var(--soft); color:var(--muted); font-size:12px; font-weight:600; }
html.clv-table .cl-th span:last-child { text-align:right; }
html.clv-table .cgrid > .ctile { padding:9px 14px 9px 17px; border:0; border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; animation:none;
  contain-intrinsic-size:auto 60px; }
html.clv-table .cgrid > .ctile:last-child { border-bottom:0; }
html.clv-table .cgrid > .ctile::before { right:auto; bottom:0; width:3px; height:auto; }
html.clv-table .cgrid > .ctile:hover { transform:none; box-shadow:none; background:var(--soft); }
html.clv-table .ctile > .ct-top { grid-column:1; grid-row:1; align-items:center; gap:10px; }
html.clv-table .ctile > .ct-kv { grid-column:2; grid-row:1; display:flex; flex-wrap:wrap; gap:1px 14px; padding:0; border-radius:0; background:none; }
html.clv-table .ctile > .ct-dls { grid-column:3; grid-row:1; gap:4px; }
html.clv-table .ctile > .ct-foot { grid-column:4; grid-row:1; justify-content:flex-end; flex-wrap:wrap; gap:4px 10px; margin:0; padding:0; }
html.clv-table .ct-ic { width:30px; height:30px; border-radius:9px; }
html.clv-table .ct-ic .ic { width:17px; height:17px; }
html.clv-table .ct-name b { font-size:14.5px; }
html.clv-table .ct-name small { -webkit-line-clamp:1; line-clamp:1; margin-top:0; font-size:12.5px; }
html.clv-table .ct-row { display:inline-flex; gap:5px; min-width:0; max-width:100%; font-size:12.5px; }
html.clv-table .ct-row > small::after { content:":"; }
html.clv-table .ct-flag { width:18px; height:18px; font-size:11px; }
html.clv-table .dlchip { padding:2px 8px; font-size:11.5px; }
html.clv-table .ct-upd { margin-left:0; }
html.clv-table .cl-let { margin:0; padding:6px 17px; border-bottom:1px solid var(--line); background:var(--soft); font-size:13px; }
html.clv-table .cl-let::after { display:none; }
@media (max-width:900px) {
  html.clv-table .cl-th { display:none; }
  html.clv-table .cgrid > .ctile { grid-template-columns:minmax(0, 1fr) auto; }
  html.clv-table .ctile > .ct-foot { grid-column:2; flex-direction:column; align-items:flex-end; gap:2px; }
  html.clv-table .ctile > .ct-kv { grid-column:1 / -1; grid-row:2; }
  html.clv-table .ctile > .ct-dls { grid-column:1 / -1; grid-row:3; }
}
@media (max-width:760px) {
  .cl-az { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
  .cl-az::-webkit-scrollbar { display:none; }
  .cl-view { margin-left:0; }
}
/* 1.0.26: «Смена пароля» → «Где выполнен вход» */
.sess-card { margin-top:16px; }
.sess-card h2 { font-size:17px; margin:0 0 4px; }
.sess-list { list-style:none; margin:12px 0; padding:0; display:grid; gap:8px; }
.sess-list li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 12px; border:1px solid var(--line);
  border-radius:12px; background:var(--card); }
.sess-list li.cur { border-color:#b9d3c2; background:#f3f9f5; }
.sess-list form { margin:0; flex:none; }
.sess-t { display:grid; gap:1px; min-width:0; }
.sess-t small { color:var(--muted); overflow-wrap:anywhere; }
.upd-sha code { overflow-wrap:anywhere; font-size:12px; }


/* ================= 1.0.27 ================= */
/* карта: рамку фокуса браузер рисует у значков SVG в единицах карты – при приближении к Москве она становилась огромным
   тёмным кругом с белым кольцом (щелчок по кружку с числом). Своей рамки у значков карты нет ни у одного: фокус с клавиатуры
   показан самим значком (обводка и ореол) */
.bm svg :focus, .bm-cl { outline:none; }
.bm-cl:focus-visible .bm-clh { fill-opacity:.45; }
/* 1.0.27 (доработка): «Забыли пароль?» – ссылка на входе; восстановление: шаги, поле кода, ссылки-кнопки */
.auth-forgot { display:block; width:max-content; margin:-2px 0 4px auto; font-size:13px; color:var(--ink2); text-underline-offset:3px; }
.auth-forgot:hover { color:var(--ink); }
.auth-back { display:block; width:max-content; margin:16px auto 0; color:var(--muted); }
.auth-back:hover { color:var(--ink); }
.fg-steps { display:flex; gap:6px; margin:10px 0 16px; padding:0; list-style:none; }
.fg-steps li { flex:1; min-width:0; padding-top:7px; border-top:3px solid var(--line); font-size:12px; line-height:1.3; color:var(--muted); }
.fg-steps li.done { border-top-color:var(--brand-d); }
.fg-steps li.on { border-top-color:var(--dark); color:var(--ink); font-weight:600; }
.fg-sent, .fg-note { margin:0 0 14px; padding:10px 12px; border-radius:10px; background:var(--soft); border:1px solid var(--line); }
.fg-note { border-left:4px solid var(--brand-d); }
input.fg-code { font-size:24px; font-weight:650; letter-spacing:.35em; text-align:center; font-variant-numeric:tabular-nums; padding:10px 8px; }
input.fg-code::placeholder { letter-spacing:.35em; color:#c4c4c4; }
.fg-links { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 14px; margin-top:6px; }
.fg-links form { margin:0; }
.linkbtn { padding:2px 0; border:0; border-radius:4px; background:none; color:var(--ink2); font-size:13px; font-weight:500; text-decoration:underline;
  text-underline-offset:3px; }
.linkbtn:hover { background:none; color:var(--ink); }
.linkbtn:disabled { color:var(--muted); text-decoration:none; cursor:default; }
/* 1.0.27 (SMS): «Настройки» → «SMS» – проверочное SMS и баланс, последние SMS */
.sms-check { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:12px 0 4px; }
.sms-check input { flex:1 1 170px; min-width:0; width:auto; }
input.sms-lim { max-width:120px; }
.sms-log { margin-top:10px; font-size:13px; }
.sms-log summary { cursor:pointer; color:var(--ink2); }
.sms-log ul { list-style:none; margin:6px 0 0; padding:0; }
.sms-log li { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 12px; padding:6px 0; border-top:1px solid var(--line); }
.sms-log .sl-t, .sms-log .sl-p { font-variant-numeric:tabular-nums; white-space:nowrap; }
.sms-log .sl-t { color:var(--muted); }
.sms-log li b { margin-left:auto; font-weight:600; }
.sms-log li b.ok { color:var(--ok); } .sms-log li b.err { color:var(--err); } .sms-log li b.muted { color:var(--muted); }
.sms-log li small { flex-basis:100%; color:var(--muted); line-height:1.35; }
table.users input.u-mail[name=phone] { min-width:12em; font-variant-numeric:tabular-nums; }
/* 1.0.27: общая с другими работниками почта или телефон – код восстановления на них не высылается */
.u-warn { display:block; max-width:17em; margin-top:3px; color:var(--warn); font-size:12px; line-height:1.3; }

/* ---------------------------------------------------------------- 1.0.28: «Чат» – мессенджер программы */
/* 1.0.28 (доработка 3): вёрстка чата пересобрана. Размеры пузырей, фото, видео, карточек и документов считаются от ширины
   переписки (container queries), а не от окна – при развёрнутом меню, на ноутбуке 1366×768, при масштабе 125–150 % и на
   телефоне ничего не вылезает за края и не налезает друг на друга. Цвета – переменными: тёмная тема задаёт свои
   (tools/dark_extra.css). */
:root {
  --ch-bg:#eceef1; --ch-side:#f9fafb; --ch-field:#f0f1f4; --ch-sel:#e5e8ec; --ch-them:#fff; --ch-them-ink:#000;
  --ch-mine:#1098e7; --ch-mine2:#1098e7; --ch-mine-ink:#fff; --ch-mine-meta:rgba(255,255,255,.84); --ch-mine-quote:rgba(255,255,255,.18);
  --ch-mine-acc:#fff; --ch-meta:#878c94; --ch-pill:rgba(255,255,255,.9); --ch-pill-ink:#4a4e55; --ch-quote:#f1f2f4;
  --ch-acc:#5f646b; --ch-acc2:#8a8f96; --ch-acc-ink:#4a4e55; --ch-hl:rgba(140,146,154,.42); --ch-seen:#7fd9a4; --ch-on:#2fb36f;
  --ch-tile:#d8dbdf; --ch-on-dark:#fff; --ch-drop:rgba(242,243,245,.92); --ch-line:#e3e5e8; --ch-page:#fff; --ch-page-ink:#1c1c1c;
  --ch-g1:#a9adb3; --ch-g2:#5f646b; --ch-cnt:#3b3f46; --ch-cnt-ink:#fff; --ch-wait:#c0392b; --ch-wait-soft:#fbe7e4;
  --ch-pdf:#b0473f; --ch-word:#3f6aa6; --ch-excel:#3d8257; --ch-text:#6b7078; --ch-lgc:#b26b00; --ch-lgc-soft:#fff3dc;
}
.sidebar nav a.wpnav-chat { --wpn1:#a9adb3; --wpn2:#62676e; }
.navcnt.chatcnt { background:var(--ch-cnt); color:var(--ch-cnt-ink); }

/* ---------- каркас */
main.main-chat { max-width:none; height:100vh; height:100dvh; padding:12px 14px; display:flex; flex-direction:column; min-width:0; min-height:0; }
html.ch-noscroll, html.ch-noscroll body { overflow:hidden; }
.chat { position:relative; flex:1; min-width:0; min-height:0; display:grid; grid-template-columns:clamp(250px, 30%, 350px) minmax(0, 1fr);
  background:var(--card); border:1px solid var(--ch-line); border-radius:22px; overflow:hidden; box-shadow:0 1px 2px rgba(0,0,0,.04), 0 10px 30px -18px rgba(0,0,0,.18); }
.chat.one { grid-template-columns:minmax(0, 1fr); }
.chat.one .ch-side { display:none; }
.chat button { font:inherit; }
.ch-ib { display:inline-grid; place-items:center; width:38px; height:38px; flex:none; margin:0; padding:0; border:0; border-radius:12px;
  background:transparent; color:var(--ink2); cursor:pointer; transition:background .15s, color .15s, transform .15s; }
.ch-ib:hover { background:var(--ch-field); color:var(--ink); }
.ch-ib:focus-visible { outline:2px solid var(--ch-acc); outline-offset:1px; }
.ch-ib .ic { width:20px; height:20px; }
.ch-ib.on { color:var(--ch-acc); background:var(--ch-field); }

/* полосы прокрутки – такие же, как в меню слева */
.ch-list, .ch-msgs, .ch-pps, .ch-mg, .ch-th-l, .ch-ask-l, .ch-mention, .ch-eds, .ch-card-full, .ch-v-page, .ch-v-sheet, .ch-v-info, #ch_text, .ch-dlg-in { scrollbar-gutter:auto; }
.ch-list::-webkit-scrollbar, .ch-msgs::-webkit-scrollbar, .ch-pps::-webkit-scrollbar, .ch-mg::-webkit-scrollbar, .ch-th-l::-webkit-scrollbar,
.ch-ask-l::-webkit-scrollbar, .ch-mention::-webkit-scrollbar, .ch-eds::-webkit-scrollbar, .ch-card-full::-webkit-scrollbar, .ch-v-page::-webkit-scrollbar,
.ch-v-sheet::-webkit-scrollbar, .ch-v-info::-webkit-scrollbar, #ch_text::-webkit-scrollbar, .ch-dlg-in::-webkit-scrollbar, .ch-tray::-webkit-scrollbar { width:10px; height:10px; }
.ch-list::-webkit-scrollbar-track, .ch-msgs::-webkit-scrollbar-track { background:transparent; margin:10px 0; }
.ch-list::-webkit-scrollbar-thumb, .ch-msgs::-webkit-scrollbar-thumb, .ch-pps::-webkit-scrollbar-thumb, .ch-mg::-webkit-scrollbar-thumb,
.ch-th-l::-webkit-scrollbar-thumb, .ch-ask-l::-webkit-scrollbar-thumb, .ch-mention::-webkit-scrollbar-thumb, .ch-eds::-webkit-scrollbar-thumb,
.ch-card-full::-webkit-scrollbar-thumb, .ch-v-page::-webkit-scrollbar-thumb, .ch-v-sheet::-webkit-scrollbar-thumb, .ch-v-info::-webkit-scrollbar-thumb,
#ch_text::-webkit-scrollbar-thumb, .ch-dlg-in::-webkit-scrollbar-thumb, .ch-tray::-webkit-scrollbar-thumb {
  background-color:var(--sb-thumb); border:3px solid transparent; border-radius:999px; background-clip:padding-box; min-height:44px; }
.ch-list::-webkit-scrollbar-thumb:hover, .ch-msgs::-webkit-scrollbar-thumb:hover, .ch-list::-webkit-scrollbar-thumb:active, .ch-msgs::-webkit-scrollbar-thumb:active,
.ch-pps::-webkit-scrollbar-thumb:hover, .ch-mg::-webkit-scrollbar-thumb:hover, .ch-v-page::-webkit-scrollbar-thumb:hover, #ch_text::-webkit-scrollbar-thumb:hover,
.ch-v-sheet::-webkit-scrollbar-thumb:hover, .ch-dlg-in::-webkit-scrollbar-thumb:hover { background-color:var(--sb-thumb-h); border-width:2px; }
.ch-v-page::-webkit-scrollbar-thumb, .ch-v-sheet::-webkit-scrollbar-thumb { background-color:rgba(0,0,0,.22); }
.ch-v-info::-webkit-scrollbar-thumb { background-color:rgba(255,255,255,.18); }
@supports not selector(::-webkit-scrollbar) {
  .ch-list, .ch-msgs, .ch-pps, .ch-mg, .ch-th-l, .ch-ask-l, .ch-mention, .ch-eds, .ch-card-full, .ch-v-page, .ch-v-sheet, #ch_text, .ch-dlg-in, .ch-tray {
    scrollbar-width:thin; scrollbar-color:var(--sb-thumb) transparent; }
  .ch-list:hover, .ch-msgs:hover { scrollbar-color:var(--sb-thumb-h) transparent; }
}

/* ---------- список чатов */
.ch-side { display:flex; flex-direction:column; min-width:0; min-height:0; background:var(--ch-side); border-right:1px solid var(--ch-line); }
.ch-side-h { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:64px; padding:10px 12px 4px 16px; }
.ch-side-h h1 { display:flex; align-items:center; gap:10px; min-width:0; margin:0; font-size:20px; letter-spacing:-.01em; }
.ch-side-h h1 span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ch-side-h h1 .ic { width:34px; height:34px; padding:6px; border-radius:11px; color:#fff; background:linear-gradient(135deg, var(--ch-g1), var(--ch-g2));
  box-shadow:0 6px 14px -8px var(--ch-g2); }
.ch-new { background:var(--ch-field); border-radius:50%; }
.ch-search { display:flex; align-items:center; gap:8px; min-width:0; margin:6px 12px 8px; padding:0 12px; border-radius:12px; background:var(--ch-field);
  color:var(--muted); cursor:text; transition:box-shadow .15s, background .15s; }
.ch-search:focus-within { background:var(--input); box-shadow:0 0 0 2px var(--ch-sel); }
.ch-search .ic { width:17px; height:17px; flex:none; }
.ch-search input { flex:1; min-width:0; margin:0; padding:9px 0; border:0; background:transparent; box-shadow:none; }
.ch-search input:focus { box-shadow:none; }
.ch-tabs { display:flex; gap:2px; min-width:0; margin:0 12px 6px; padding:3px; border-radius:12px; background:var(--ch-field); }
.ch-tabs button { flex:1 1 auto; min-width:0; margin:0; padding:6px 4px; border:0; border-radius:9px; background:transparent; color:var(--ink2); font-size:12.5px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ch-tabs button:hover { background:rgba(255,255,255,.6); }
.ch-tabs button.on { background:var(--card); color:var(--ink); font-weight:600; box-shadow:0 1px 3px rgba(0,0,0,.1); }
.ch-tabs .n { display:inline-block; min-width:17px; height:17px; margin-left:3px; padding:0 4px; border-radius:999px; background:var(--ch-wait); color:#fff;
  font-size:10.5px; font-weight:700; line-height:17px; vertical-align:1px; }
.ch-list { flex:1; min-height:0; margin:0; padding:2px 6px 14px 8px; list-style:none; overflow-y:auto; overscroll-behavior:contain; }
.ch-it { display:flex; align-items:center; gap:11px; min-width:0; padding:9px 10px; border-radius:14px; cursor:pointer; transition:background .15s; }
.ch-it + .ch-it { margin-top:1px; }
.ch-it:hover { background:var(--ch-field); }
.ch-it:focus-visible { outline:2px solid var(--ch-acc); outline-offset:-2px; }
.ch-it.on { background:var(--ch-sel); }
.ch-it-b { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.ch-it-r1, .ch-it-r2 { display:flex; align-items:center; gap:6px; min-width:0; }
.ch-it-t { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14.5px; font-weight:600; }
.ch-code { margin-left:6px; padding:0 5px; border-radius:6px; background:var(--ch-field); color:var(--muted); font-size:10.5px; font-weight:600; vertical-align:1px; }
.ch-it.on .ch-code { background:var(--card); }
.ch-it-at { flex:none; color:var(--muted); font-size:11.5px; font-variant-numeric:tabular-nums; }
.ch-it-l { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:13px; }
.ch-it-who { color:var(--ink2); }
.ch-it-dr { color:var(--err); font-weight:600; }
.ch-it.unread .ch-it-at { color:var(--ch-acc); font-weight:650; }
.ch-it.unread .ch-it-l { color:var(--ink2); }
.ch-mut { flex:none; font-size:11px; opacity:.6; }
.ch-cnt { flex:none; min-width:21px; height:21px; padding:0 6px; border-radius:999px; background:var(--ch-cnt); color:var(--ch-cnt-ink);
  font-size:11.5px; font-weight:700; line-height:21px; text-align:center; }
.ch-it.muted .ch-cnt, .ch-mut + .ch-cnt { background:#a3a7ad; }
.ch-wait { flex:none; height:21px; padding:0 7px; border-radius:999px; background:var(--ch-wait); color:#fff; font-size:11.5px; font-weight:700; line-height:21px; }
.ch-men-b { flex:none; display:grid; place-items:center; width:21px; height:21px; border-radius:50%; background:var(--ch-cnt); color:var(--ch-cnt-ink);
  font-size:12px; font-weight:700; }
.ch-none { padding:26px 14px; color:var(--muted); font-size:13px; text-align:center; }
.ch-av { position:relative; display:grid; place-items:center; width:46px; height:46px; flex:none; border-radius:50%; color:var(--ch-on-dark);
  font-size:15px; font-weight:700; letter-spacing:.02em; background:linear-gradient(135deg, #a3aab3, #6c737c); user-select:none; }
.ch-av.t-region { border-radius:15px; font-size:12px; letter-spacing:.04em; background:linear-gradient(135deg, #8d939b, #565c64); }
.ch-av.t-user { background:linear-gradient(135deg, #8aa0bb, #5b7190); }
.ch-av.t-group { background:linear-gradient(135deg, #78aaa4, #4d7d77); }
.ch-av.t-sys { font-size:20px; background:linear-gradient(135deg, #9fb0a6, #5d7466); }
.ch-av.ph { overflow:hidden; color:transparent; }
.ch-av.ph img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.ch-av.ph .ch-on { z-index:1; }
.ch-av.xs { width:28px; height:28px; font-size:10.5px; letter-spacing:0; }
.ch-av.sm { width:30px; height:30px; font-size:11px; letter-spacing:0; }
.ch-on { position:absolute; right:0; bottom:1px; width:12px; height:12px; border-radius:50%; background:var(--ch-on); box-shadow:0 0 0 2px var(--ch-side); }
.ch-av.t-region .ch-on { right:-2px; bottom:-2px; }

/* ---------- переписка: шапка, поиск, закреплённое */
.ch-main { position:relative; display:flex; flex-direction:column; min-width:0; min-height:0; overflow:hidden; background:var(--ch-bg);
  background-image:radial-gradient(rgba(0,0,0,.035) 1px, transparent 1.3px); background-size:18px 18px; container-type:inline-size; container-name:chmain; }
.ch-empty { flex:1; display:grid; place-content:center; justify-items:center; gap:6px; padding:30px; text-align:center; color:var(--muted); }
.ch-empty b { color:var(--ink2); font-size:16px; }
.ch-empty p { max-width:380px; margin:0; }
.ch-empty-ic { display:grid; place-items:center; width:84px; height:84px; margin-bottom:6px; border-radius:28px; background:var(--card); color:var(--ch-acc);
  box-shadow:var(--shadow); }
.ch-empty-ic .ic { width:40px; height:40px; }
.ch-head { position:relative; z-index:6; display:flex; align-items:center; gap:10px; min-width:0; min-height:64px; padding:9px 10px 9px 14px;
  background:var(--card); border-bottom:1px solid var(--ch-line); }
.ch-head .ch-av { width:42px; height:42px; font-size:14px; }
.ch-head .ch-av.t-region { font-size:11.5px; border-radius:14px; }
.ch-head .ch-on { box-shadow:0 0 0 2px var(--card); }
.ch-back { display:none; }
.ch-ht { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; line-height:1.25; }
.ch-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:16px; }
.ch-sub { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:12.5px; }
.ch-sub.on { color:var(--ch-on); }
.ch-hwait { flex:none; padding:3px 9px; border-radius:999px; background:var(--ch-wait-soft); color:var(--ch-wait); font-size:12px; font-weight:650; white-space:nowrap; }
.ch-hacts { flex:none; display:flex; align-items:center; gap:2px; }
.ch-hacts .ch-ib { width:36px; height:36px; }
.ch-find { display:flex; align-items:center; gap:4px; min-width:0; padding:6px 8px 6px 14px; background:var(--card); border-bottom:1px solid var(--ch-line);
  animation:chIn .18s ease-out both; }
.ch-find > .ic { width:18px; height:18px; color:var(--muted); flex:none; }
.ch-find input { flex:1; min-width:0; margin:0; border:0; background:transparent; box-shadow:none; font-size:14.5px; }
.ch-find input:focus { outline:none; box-shadow:none; }
.ch-find-n { flex:none; color:var(--muted); font-size:12.5px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.ch-find .ch-ib { width:32px; height:32px; font-size:15px; }
.ch-pin { display:flex; align-items:center; gap:4px; min-width:0; padding:4px 8px 4px 12px; background:var(--card); border-bottom:1px solid var(--ch-line); }
.ch-pin-b { flex:1; min-width:0; display:flex; align-items:center; justify-content:flex-start; gap:10px; margin:0; padding:5px 8px; border:0;
  border-left:3px solid var(--ch-acc2); border-radius:4px 10px 10px 4px; background:transparent; color:var(--ink); text-align:left; font-size:13px; font-weight:400; }
.ch-pin-b:hover { background:var(--ch-field); }
.ch-pin-b .ic { width:17px; height:17px; flex:none; color:var(--ch-acc); }
.ch-pin-t { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.25; }
.ch-pin-t b { color:var(--ch-acc-ink); font-size:12px; }
.ch-pin-t span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ch-pin .ch-ib { width:30px; height:30px; font-size:13px; }

/* ---------- лента сообщений */
.ch-msgs { --ch-w:calc(100cqi - 112px); flex:1; min-width:0; min-height:0; padding:8px 0 16px; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; }
.chat.selmode .ch-msgs { --ch-w:calc(100cqi - 150px); }
.ch-loading { display:flex; justify-content:center; gap:6px; padding:40px 0; }
.ch-loading i, .ch-dr-load i { width:9px; height:9px; border-radius:50%; background:#a8acb2; animation:chDot 1s ease-in-out infinite; }
.ch-loading i:nth-child(2), .ch-dr-load i:nth-child(2) { animation-delay:.15s; }
.ch-loading i:nth-child(3), .ch-dr-load i:nth-child(3) { animation-delay:.3s; }
@keyframes chDot { 0%, 80%, 100% { transform:scale(.6); opacity:.45; } 40% { transform:scale(1); opacity:1; } }
.ch-blank { display:grid; justify-items:center; gap:4px; width:min(360px, calc(100% - 32px)); margin:60px auto; padding:20px 24px; border-radius:18px; background:var(--ch-pill);
  color:var(--ch-pill-ink); text-align:center; }
.ch-blank b { font-size:15px; }
.ch-blank p { margin:0; font-size:13px; }
.ch-older { display:flex; justify-content:center; margin:4px 0 8px; }
.ch-day { position:sticky; top:8px; z-index:3; display:flex; justify-content:center; margin:14px 0 10px; pointer-events:none; }
.ch-day span { transition:opacity .35s; }
.ch-msgs:not(.scrolling) .ch-day.stuck span { opacity:0; }
.chat.typing .ch-msgs { padding-bottom:46px; }
.ch-day span, .ch-sys span { padding:3px 12px; border-radius:999px; background:var(--ch-pill); color:var(--ch-pill-ink); font-size:12px; font-weight:600;
  box-shadow:0 1px 2px rgba(0,0,0,.08); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); white-space:nowrap; }
.ch-sys { display:flex; justify-content:center; margin:8px 16px; }
.ch-sys span { max-width:min(560px, 100%); padding:5px 14px; border-radius:14px; font-weight:500; text-align:center; line-height:1.35; white-space:normal;
  overflow-wrap:anywhere; }
.ch-new-div { display:flex; align-items:center; gap:12px; margin:14px 18px 10px; color:var(--ch-acc-ink); font-size:12px; font-weight:700; }
.ch-new-div::before, .ch-new-div::after { content:""; flex:1; height:1px; background:var(--ch-acc); opacity:.45; }
.ch-skel { display:flex; flex-direction:column; gap:12px; padding:22px 18px; }
.ch-sk { height:38px; max-width:72%; border-radius:18px; background:linear-gradient(90deg, var(--ch-tile) 25%, var(--ch-field) 50%, var(--ch-tile) 75%);
  background-size:200% 100%; animation:chShimmer 1.3s linear infinite; opacity:.75; }
.ch-sk.r { align-self:flex-end; border-bottom-right-radius:6px; }
.ch-sk.l { border-bottom-left-radius:6px; }
.ch-sk:nth-child(3n) { height:58px; }
@keyframes chShimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }

/* сообщение: строка (аватар, пузырь, «⋯») */
.ch-m { position:relative; display:flex; align-items:flex-end; gap:6px; min-width:0; margin:8px 0 0; padding:0 16px; }
.ch-m.cont { margin-top:2px; }
.ch-m.mine { flex-direction:row-reverse; }
.ch-m.wav { padding-left:50px; }
.ch-mav { position:absolute; left:16px; bottom:0; }
.ch-m.wav.cont .ch-mav { display:none; }
.ch-b { position:relative; min-width:0; max-width:min(640px, calc(100% - 40px)); padding:7px 12px 7px; border-radius:18px; background:var(--ch-them);
  color:var(--ch-them-ink); box-shadow:0 1px 1px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.05); line-height:1.42; overflow-wrap:anywhere; }
.ch-m.them .ch-b { border-bottom-left-radius:6px; }
.ch-m.mine .ch-b { border-bottom-right-radius:6px; background:linear-gradient(160deg, var(--ch-mine), var(--ch-mine2)); color:var(--ch-mine-ink); }
.ch-m.them.cont .ch-b { border-top-left-radius:8px; }
.ch-m.mine.cont .ch-b { border-top-right-radius:8px; }
.ch-who { display:block; max-width:100%; margin:0 0 2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ch-acc-ink); font-size:12.5px; font-weight:650; }
.ch-m.mine .ch-who { color:var(--ch-mine-acc); }
.ch-t { white-space:pre-wrap; overflow-wrap:anywhere; word-break:normal; font-size:14.5px; }
.ch-t a { color:inherit; text-decoration:underline; text-decoration-thickness:1px; }
.ch-t::after { content:""; display:inline-block; width:44px; height:1px; }          /* место под время в последней строке */
.ch-m.mine .ch-t::after { width:60px; }
.ch-b.ed .ch-t::after { width:112px; }
.ch-m.mine .ch-b.ed .ch-t::after { width:128px; }
.ch-gone { color:var(--ch-meta); font-style:italic; }
.ch-m.mine .ch-gone { color:var(--ch-mine-meta); }
.ch-meta { position:absolute; right:10px; bottom:5px; display:inline-flex; align-items:center; gap:3px; color:var(--ch-meta); font-size:11px;
  font-variant-numeric:tabular-nums; white-space:nowrap; user-select:none; pointer-events:none; }
.ch-m.mine .ch-meta { color:var(--ch-mine-meta); }
.ch-ed { margin:0 3px 0 0; padding:0 2px; border:0; border-radius:5px; background:transparent; color:inherit; font-size:11px; font-style:italic; text-decoration:underline dotted;
  text-underline-offset:2px; cursor:pointer; pointer-events:auto; }
.ch-ed:hover { background:rgba(127,127,127,.16); }
.ch-tk { margin-left:1px; letter-spacing:-.32em; padding-right:.3em; font-size:11.5px; pointer-events:auto; }
.ch-tk.seen { color:var(--ch-seen); }
.ch-tk.wait { letter-spacing:0; padding:0; }
.ch-tk.pop { animation:chTk .45s cubic-bezier(.3,.8,.3,1.5); }
@keyframes chTk { 0% { transform:scale(.6); } 60% { transform:scale(1.35); } 100% { transform:none; } }
.ch-more { flex:none; align-self:center; width:28px; height:28px; margin:0; padding:0; border:0; border-radius:50%; background:transparent; color:var(--ch-meta);
  font-size:18px; line-height:1; opacity:0; transition:opacity .15s, background .15s; }
.ch-m:hover .ch-more, .ch-more:focus-visible { opacity:1; }
.ch-more:hover { background:rgba(0,0,0,.07); }
@media (hover:none) { .ch-more { width:26px; height:26px; opacity:.5; font-size:16px; } }
.ch-m.in { animation:chIn .28s cubic-bezier(.2,.9,.3,1.12) both; }
@keyframes chIn { from { opacity:0; transform:translateY(10px) scale(.97); } to { opacity:1; transform:none; } }
.ch-m.mine.in { transform-origin:100% 100%; } .ch-m.them.in { transform-origin:0 100%; }
.ch-m.hl .ch-b { animation:chHl 1.8s ease-out; }
@keyframes chHl { 0%, 35% { box-shadow:0 0 0 4px var(--ch-hl); } 100% { box-shadow:0 0 0 0 transparent; } }
.ch-m.pending .ch-b { opacity:.94; }
.ch-pend { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:6px 2px 16px; font-size:12px; }
.ch-pend-t { flex-basis:100%; min-width:0; opacity:.85; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.ch-pend button { padding:3px 11px; font-size:12px; border-radius:8px; }
.ch-m.mine .ch-pend button { background:var(--ch-mine-quote); border-color:transparent; color:var(--ch-mine-ink); }
.ch-m.mine .ch-pend button:hover { filter:brightness(1.15); }
.ch-m.men:not(.mine) .ch-b { box-shadow:0 0 0 2px var(--ch-acc2), 0 1px 1px rgba(0,0,0,.06); }
.ch-men { color:var(--ch-acc-ink); font-weight:650; }
.ch-m.mine .ch-men { color:var(--ch-mine-acc); }
.ch-t mark, .ch-req-q mark { padding:0 1px; border-radius:3px; background:#ffe58f; color:#1c1c1c; }

/* ответ (цитата), пересланное */
.ch-q { display:flex; flex-direction:column; align-items:flex-start; width:100%; min-width:0; margin:2px 0 6px; padding:4px 10px; border:0;
  border-left:3px solid var(--ch-acc); border-radius:6px 10px 10px 6px; background:var(--ch-quote); color:inherit; text-align:left; font-size:12.5px;
  font-weight:400; line-height:1.35; cursor:pointer; }
.ch-q:hover { filter:brightness(.97); background:var(--ch-quote); }
.ch-q b { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ch-acc-ink); font-size:12.5px; }
.ch-q span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; opacity:.85; overflow-wrap:anywhere; }
.ch-q.frag span { font-style:italic; -webkit-line-clamp:3; line-clamp:3; }
.ch-m.mine .ch-q { background:var(--ch-mine-quote); border-left-color:var(--ch-mine-acc); }
.ch-m.mine .ch-q b { color:var(--ch-mine-acc); }
.ch-fwd { min-width:0; margin:2px 0 4px; padding:4px 0 4px 10px; border-left:3px solid var(--ch-acc2); }
.ch-fwd-h { display:block; margin:0 0 3px; color:var(--muted); font-size:12px; font-style:italic; overflow-wrap:anywhere; }
.ch-m.mine .ch-fwd-h { color:var(--ch-mine-meta); }
.ch-fwd-card { display:flex; flex-direction:column; gap:2px; min-width:0; padding:7px 10px; border-radius:10px; background:var(--ch-quote); font-size:13px; }
.ch-m.mine .ch-fwd-card { background:var(--ch-mine-quote); }
.ch-fwd-card p { margin:2px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.ch-fwd-card button { align-self:flex-start; margin-top:4px; }
/* удалённое – так его видит администратор */
.ch-del-h { display:block; margin:0 0 3px; color:var(--err); font-size:11.5px; font-weight:650; }
.ch-m.mine .ch-del-h { color:#ffb4ad; }
.ch-del-t { opacity:.62; text-decoration:line-through; text-decoration-thickness:1px; }
.ch-m.del-adm .ch-b { outline:1px dashed var(--err); outline-offset:-1px; }
.ch-m.del-adm .ch-fs, .ch-m.del-adm .ch-docs { opacity:.7; }
/* реакции */
.ch-rx { display:flex; flex-wrap:wrap; gap:4px; margin:6px 0 16px; }
.ch-rx-c { display:inline-flex; align-items:center; gap:4px; margin:0; padding:2px 8px; border:1px solid var(--ch-line); border-radius:999px; background:var(--ch-field);
  color:var(--ink); font-size:13px; font-weight:600; line-height:1.4; }
.ch-rx-c.me { border-color:var(--ch-acc2); background:var(--ch-sel); }
.ch-rx-c span { font-size:11.5px; }
.ch-rx-c:disabled { opacity:1; cursor:default; }
.ch-m.mine .ch-rx-c { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.2); color:var(--ch-mine-ink); }
.ch-m.mine .ch-rx-c.me { background:rgba(255,255,255,.26); }

/* фото и видео в сообщении – ширина от ширины переписки */
.ch-b.has-f { padding:4px 4px 7px; }
.ch-b.has-f > .ch-t, .ch-b.has-f > .ch-who, .ch-b.has-f > .ch-q, .ch-b.has-f > .ch-fwd, .ch-b.has-f > .ch-rx { margin-left:8px; margin-right:8px; width:auto; }
.ch-b.has-f > .ch-t { display:block; margin-top:6px; }
.ch-b.has-f > .ch-who { margin-top:3px; }
.ch-b.only-f { padding:4px; }
.ch-b.only-f > .ch-meta { right:12px; bottom:12px; padding:1px 8px; border-radius:999px; background:rgba(0,0,0,.5); color:var(--ch-on-dark); }
.ch-b.only-f:has(.ch-docs) > .ch-meta { position:static; display:flex; justify-content:flex-end; margin:4px 8px 0; padding:0; background:none; color:var(--ch-meta); }
.ch-m.mine .ch-b.only-f:has(.ch-docs) > .ch-meta { color:var(--ch-mine-meta); }
.ch-atts { display:flex; flex-direction:column; gap:4px; }
.ch-fs { display:grid; grid-template-columns:1fr 1fr; gap:3px; width:min(400px, var(--ch-w)); max-width:100%; border-radius:14px; overflow:hidden; }
.ch-fs.n1 { grid-template-columns:1fr; }
.ch-fs.n3 > :first-child { grid-column:1 / -1; aspect-ratio:2 / 1; }
.ch-f { position:relative; display:block; width:100%; min-width:0; aspect-ratio:1; margin:0; padding:0; border:0; border-radius:0; background:var(--ch-tile);
  overflow:hidden; cursor:zoom-in; }
.ch-fs.n1 .ch-f { aspect-ratio:4 / 3; max-height:min(440px, 60vh); }
.ch-f:hover { background:var(--ch-tile); }
.ch-f img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.ch-f:hover img { transform:scale(1.03); }
.ch-f:focus-visible { outline:3px solid var(--ch-acc); outline-offset:-3px; }
.ch-f-no { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:4px; padding:8px; color:var(--ch-pill-ink);
  font-size:12px; text-align:center; }
.ch-f-no b { font-size:28px; line-height:1.15; }
.ch-f-no small { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ch-f-play { position:absolute; inset:0; margin:auto; width:52px; height:52px; border-radius:50%; background:rgba(0,0,0,.5);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); pointer-events:none; }
.ch-f-play::after { content:""; position:absolute; left:20px; top:16px; border-style:solid; border-width:10px 0 10px 16px;
  border-color:transparent transparent transparent var(--ch-on-dark); }
.ch-f-dur { position:absolute; left:7px; top:7px; padding:0 7px; border-radius:7px; background:rgba(0,0,0,.52); color:var(--ch-on-dark); font-size:11px;
  font-variant-numeric:tabular-nums; line-height:19px; pointer-events:none; }
.ch-f-more { position:absolute; inset:0; display:grid; place-items:center; background:rgba(0,0,0,.46); color:var(--ch-on-dark); font-size:24px; font-weight:700; }
.ch-f.gone { cursor:default; }
.ch-f.gone img { filter:grayscale(1) blur(2px); opacity:.5; }
.ch-f-gone { position:absolute; left:8px; right:8px; bottom:8px; padding:3px 8px; border-radius:8px; background:rgba(0,0,0,.55); color:var(--ch-on-dark);
  font-size:11px; line-height:1.3; text-align:center; }
.ch-f-gone.bad { background:rgba(170,30,25,.82); }
.ch-f-prog { position:absolute; left:10px; right:10px; bottom:10px; height:5px; border-radius:3px; background:rgba(255,255,255,.45); overflow:hidden; }
.ch-f-prog i { display:block; width:0; height:100%; border-radius:3px; background:var(--ch-on-dark); transition:width .3s; }
.ch-f-up { position:absolute; left:8px; right:8px; bottom:8px; display:flex; flex-direction:column; gap:3px; padding:5px 7px; border-radius:9px;
  background:rgba(0,0,0,.55); color:#fff; transition:opacity .6s; }
.ch-f-up i { display:block; height:4px; border-radius:2px; background:#fff; transition:width .4s; }
.ch-f-up small { font-size:11px; line-height:1.2; }
.ch-f-up.done { opacity:0; }
.ch-f-chk { position:absolute; right:7px; top:7px; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; color:#fff; font-size:13px;
  font-weight:800; box-shadow:0 1px 4px rgba(0,0,0,.35); cursor:help; }
.ch-f-chk.lv-warn { background:#c98a0a; }
.ch-f-chk.lv-bad { background:#c0392b; }

/* 244: документы – превью первой страницы, вид, страницы, размер */
.ch-docs { display:flex; flex-direction:column; gap:4px; width:min(380px, var(--ch-w)); max-width:100%; }
.ch-doc { position:relative; min-width:0; border-radius:14px; background:var(--card); color:var(--ink); box-shadow:inset 0 0 0 1px var(--ch-line); overflow:hidden; }
.ch-m.mine .ch-doc { background:rgba(255,255,255,.96); color:#1c1c1c; }
.ch-doc-open { display:flex; flex-direction:column; align-items:stretch; width:100%; margin:0; padding:0; border:0; border-radius:0; background:transparent;
  color:inherit; text-align:left; font-weight:400; cursor:pointer; }
.ch-doc-open:hover { background:transparent; }
.ch-doc-open:disabled { cursor:default; }
.ch-doc-pv { position:relative; display:block; height:150px; overflow:hidden; background:linear-gradient(180deg, #f3f4f6, #e8eaed);
  border-bottom:1px solid var(--ch-line); }
.ch-doc-pv.has { background:#fff; }
.ch-doc-pv.img img { display:block; width:100%; height:100%; object-fit:cover; object-position:top center; }
.ch-doc-pv:not(.img)::after { content:""; position:absolute; left:0; right:0; bottom:0; height:38px; background:linear-gradient(180deg, rgba(255,255,255,0), #fff); pointer-events:none; }
.ch-doc-pv:not(.has)::after { display:none; }
.ch-doc-big { position:absolute; inset:0; margin:auto; display:grid; place-items:center; width:62px; height:78px; border-radius:8px 18px 8px 8px; background:#fff;
  color:var(--ch-text); font-size:13px; font-weight:800; letter-spacing:.04em; box-shadow:0 2px 8px rgba(0,0,0,.12); }
.ch-doc.t-pdf .ch-doc-big { color:var(--ch-pdf); } .ch-doc.t-word .ch-doc-big { color:var(--ch-word); } .ch-doc.t-excel .ch-doc-big { color:var(--ch-excel); }
.ch-dm { position:absolute; inset:0; display:block; overflow:hidden; color:#30343a; pointer-events:none; }
.ch-dm.pg { padding:14px 18px 0; font:6.6px/1.45 "Segoe UI", Inter, Roboto, Arial, sans-serif; }
.ch-dm.pg .l { display:block; min-height:1.45em; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ch-dm.pg .l.h { margin:2px 0 3px; font-size:9px; font-weight:700; white-space:normal; }
.ch-dm.pg .l.b { font-weight:700; } .ch-dm.pg .l.c { text-align:center; } .ch-dm.pg .l.li { padding-left:8px; }
.ch-dm.pg .l.li::before { content:"• "; }
.ch-dm.pg.tx { font-family:ui-monospace, Consolas, monospace; }
.ch-dm table { width:100%; margin:2px 0 4px; border-collapse:collapse; table-layout:fixed; }
.ch-dm td { padding:1px 3px; border:1px solid #d5d8dc; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ch-dm.xl { font:8px/1.5 "Segoe UI", Inter, Roboto, Arial, sans-serif; }
.ch-dm.xl table { margin:0; }
.ch-dm.xl td { padding:2px 5px; border-color:#dfe3e7; }
.ch-dm.xl tr.hd td { background:#eef4ef; font-weight:700; }
.ch-doc-i { display:flex; align-items:center; gap:10px; min-width:0; padding:9px 44px 9px 10px; }
.ch-doc-ic { display:grid; place-items:center; flex:none; min-width:38px; height:38px; padding:0 4px; border-radius:10px; background:var(--ch-text); color:#fff;
  font-size:10.5px; font-weight:800; letter-spacing:.03em; }
.ch-doc.t-pdf .ch-doc-ic { background:var(--ch-pdf); } .ch-doc.t-word .ch-doc-ic { background:var(--ch-word); } .ch-doc.t-excel .ch-doc-ic { background:var(--ch-excel); }
.ch-doc-tx { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; }
.ch-doc-tx b { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; overflow-wrap:anywhere; font-size:13.5px; font-weight:600; }
.ch-doc-tx small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#6f747c; font-size:12px; }
.ch-doc-dl { position:absolute; right:6px; bottom:9px; display:grid; place-items:center; width:34px; height:34px; border-radius:10px; color:#4a4e55; }
.ch-doc-dl:hover { background:var(--ch-field); }
.ch-doc-dl .ic { width:19px; height:19px; }
.ch-doc.gone { opacity:.6; }
.ch-doc .ch-f-up { top:auto; bottom:62px; }
.ch-doc .ch-f-prog { bottom:62px; }

/* карточка сообщения программы («Новое сообщение», «Доп. информация») */
.ch-m.rep .ch-b { max-width:calc(100% - 40px); padding:0; background:none; box-shadow:none; color:var(--ink); }
.ch-m.rep .ch-who { margin:0 0 3px 4px; }
.ch-m.rep.mine .ch-who { text-align:right; margin:0 4px 3px 0; color:var(--ch-acc-ink); }
.ch-m.rep .ch-meta, .ch-m.req .ch-meta { position:static; display:flex; justify-content:flex-end; margin:3px 6px 0; color:var(--ch-meta); }
.ch-card { width:min(540px, calc(100cqi - 96px)); max-width:100%; padding:12px 14px; border:1px solid var(--ch-line); border-left:4px solid var(--acc, #8e8e8e);
  border-radius:16px; background:var(--card); color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.05), 0 8px 18px -12px rgba(0,0,0,.2); overflow-wrap:anywhere; }
.chat.selmode .ch-card { width:min(540px, calc(100cqi - 134px)); }
.ch-m.mine .ch-card { border-bottom-right-radius:6px; } .ch-m.them .ch-card { border-bottom-left-radius:6px; }
.ch-card-h { display:flex; align-items:center; gap:11px; min-width:0; }
.ch-card-tt { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; }
.ch-card-tt b { font-size:14px; }
.ch-no { color:var(--acc-ink, var(--ink)); font-variant-numeric:tabular-nums; white-space:nowrap; }
.ch-card-tt small { color:var(--muted); font-size:12.5px; }
.ch-card-p { margin:8px 0 0; color:var(--ink2); font-size:13px; }
.ch-card-p::before { content:"📍 "; }
.ch-card-f { margin:6px 0 0; font-size:13.5px; line-height:1.45; white-space:pre-wrap; display:-webkit-box; -webkit-box-orient:vertical;
  -webkit-line-clamp:5; line-clamp:5; overflow:hidden; }
.ch-card-ch { margin:7px 0 0; font-size:13px; color:var(--ink2); }
.ch-card-ch small { color:var(--muted); font-size:12.5px; }
.ch-card .ch-fs, .ch-card .ch-docs { width:100%; margin-top:10px; }
.ch-card .ch-fs { border-radius:12px; }
.ch-card .ch-fs.n1 .ch-f { max-height:260px; }                  /* в карточке главное – сведения; фото целиком – в просмотре */
.ch-card-full { margin:10px 0 0; padding-top:10px; border-top:1px dashed var(--ch-line); max-height:440px; overflow:auto; font-size:13.5px; }
.ch-card-full .msgtext { margin:0; }
.ch-acc { margin:10px 0 0; padding:6px 10px; border-radius:10px; font-size:12.5px; line-height:1.35; }
.ch-acc.ok { display:flex; align-items:center; flex-wrap:wrap; gap:6px; background:var(--ok-soft); color:var(--ok); }
.ch-acc.wait { background:var(--warn-soft); color:var(--warn); }
.ch-acc.over { background:var(--err-soft); color:var(--err); }
.ch-acc-ic { display:inline-grid; place-items:center; width:18px; height:18px; flex:none; border-radius:50%; background:var(--ok); }
.ch-acc-ic svg { width:13px; height:13px; fill:none; stroke:#fff; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.ch-card.acc-anim { animation:chAccFlash 2.4s ease-out; }
.ch-card.acc-anim .ch-acc-ic { animation:chAccPop .5s cubic-bezier(.2,.9,.3,1.4) both; }
.ch-card.acc-anim .ch-acc-ic path { stroke-dasharray:24; stroke-dashoffset:24; animation:chAccDraw .55s .15s ease-out forwards; }
@keyframes chAccFlash { 0% { box-shadow:0 0 0 0 rgba(47,160,90,0); } 15% { box-shadow:0 0 0 4px rgba(47,160,90,.45); background:var(--ok-soft); } 100% { box-shadow:0 0 0 0 rgba(47,160,90,0); } }
@keyframes chAccPop { from { transform:scale(.3); } to { transform:scale(1); } }
@keyframes chAccDraw { to { stroke-dashoffset:0; } }
.ch-card-a { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.ch-card-a button { padding:6px 13px; }
.ch-card-a .ghost { color:var(--ink2); background:var(--ch-field); }
.ch-card.gone { border-left-color:var(--ch-line); opacity:.8; }
.ch-card.gone .ch-card-ic { display:grid; place-items:center; width:26px; height:26px; }
.ch-talk { display:flex; align-items:center; justify-content:flex-start; gap:8px; width:100%; min-width:0; margin:10px 0 0; padding:7px 10px; border:1px solid var(--ch-line);
  border-radius:12px; background:var(--ch-field); color:var(--ink); font-size:12.5px; font-weight:400; text-align:left; }
.ch-talk:hover { background:var(--ch-sel); }
.ch-talk b { flex:none; font-weight:650; }
.ch-talk span:last-child:not(.ch-talk-ic) { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); }
.ch-talk.empty { border-style:dashed; background:transparent; color:var(--ink2); }
/* 266: согласования – записка о перевахтовке, отчёт ЛРР: решение кнопкой прямо в чате */
.ch-rt { width:min(520px, calc(100cqi - 96px)); max-width:100%; padding:12px 14px; border:1px solid var(--ch-line); border-left:4px solid #8e8e8e;
  border-radius:16px; border-bottom-left-radius:6px; background:var(--card); color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.05), 0 8px 18px -12px rgba(0,0,0,.2);
  overflow-wrap:anywhere; }
.ch-rt.wait { border-left-color:#c98a0a; }
.ch-rt.r-agree, .ch-rt.r-approve, .ch-rt.o-agree, .ch-rt.o-approve { border-left-color:var(--ok); }
.ch-rt.r-return, .ch-rt.o-return { border-left-color:var(--err); }
.ch-rt-h { display:flex; align-items:center; gap:11px; min-width:0; }
.ch-rt-ic { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:10px; background:var(--ch-field); color:var(--ink2);
  font-size:15px; font-weight:800; }
.ch-rt-ic.k-lrr { font-size:10px; letter-spacing:.02em; }
.ch-rt-tt { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; }
.ch-rt-tt b { font-size:14px; }
.ch-rt-tt small { color:var(--muted); font-size:12.5px; }
.ch-rt-st { margin:9px 0 0; font-size:13.5px; }
.ch-rt-by { margin:2px 0 0; color:var(--muted); font-size:12.5px; }
.ch-rt-t { margin:7px 0 0; padding:6px 10px; border-radius:10px; background:var(--ch-field); color:var(--ink2); font-size:13px; white-space:pre-wrap; }
.ch-rt-t span { color:var(--ink); }
.ch-rt-res { margin:10px 0 0; padding:6px 10px; border-radius:10px; font-size:12.5px; line-height:1.4; background:var(--ch-field); color:var(--ink2); }
.ch-rt-res.a-agree, .ch-rt-res.a-approve { background:var(--ok-soft); color:var(--ok); }
.ch-rt-res.a-return { background:var(--err-soft); color:var(--err); }
.ch-rt-res.a-wait { background:var(--warn-soft); color:var(--warn); }
.ch-rt-rt { display:block; margin-top:2px; color:var(--ink2); font-style:italic; }
.ch-rt-ret { margin:10px 0 0; }
.ch-rt-ret textarea { width:100%; margin:0; min-height:58px; resize:vertical; font-size:14px; }
.ch-rt-ret-a { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.ch-rt-ret-a .danger-soft { border-color:#e3b3ae; background:var(--err-soft); color:var(--err); }
.ch-m.rt .ch-meta { position:static; display:flex; justify-content:flex-start; margin:3px 6px 0; color:var(--ch-meta); }
/* запрос уточнения */
.ch-m.req .ch-b { padding:0; background:transparent; box-shadow:none; }
.ch-m.req .ch-b .ch-q { margin:0 0 6px; }
.ch-req { width:min(460px, calc(100cqi - 96px)); max-width:100%; padding:10px 12px; border:1px solid var(--ch-line); border-left:4px solid var(--ch-acc2);
  border-radius:14px; background:var(--card); color:var(--ink); }
.ch-m.mine .ch-req { color:var(--ink); }
.ch-req-h { display:flex; align-items:center; gap:8px; min-width:0; font-size:13px; }
.ch-req-ic { display:grid; place-items:center; flex:none; width:22px; height:22px; border-radius:50%; background:var(--ch-acc); color:#fff; font-weight:700; font-size:13px; }
.ch-req-h .ch-no { margin-left:auto; color:var(--muted); font-size:12px; }
.ch-req-q { margin:6px 0 0; font-size:15px; font-weight:600; white-space:pre-wrap; overflow-wrap:anywhere; }
.ch-req-s { margin:8px 0 0; padding:5px 9px; border-radius:9px; font-size:12.5px; }
.ch-req.st-wait .ch-req-s { background:var(--warn-soft); color:var(--warn); }
.ch-req.st-over { border-left-color:var(--err); }
.ch-req.st-over .ch-req-s { background:var(--err-soft); color:var(--err); }
.ch-req.st-done { border-left-color:var(--ok); }
.ch-req.st-done .ch-req-s { background:var(--ok-soft); color:var(--ok); }
.ch-cd { font-variant-numeric:tabular-nums; font-weight:650; }
.ch-cd.pulse { animation:chPulse 1s ease-in-out infinite; }
@keyframes chPulse { 50% { opacity:.45; } }
/* быстрые ответы регионального ОД (в переписке) */
.ch-m.quick .ch-b { padding:7px 14px 8px; }
.ch-m.quick .ch-t { font-weight:600; }
.ch-m.quick .ch-t::before { content:"⚡ "; font-weight:400; opacity:.75; }
/* голосовые */
.ch-voice { display:flex; align-items:center; gap:10px; width:min(300px, var(--ch-w)); max-width:100%; min-width:0; padding:4px 0 16px; }
.ch-vp { display:grid; place-items:center; width:38px; height:38px; flex:none; margin:0; padding:0; border:0; border-radius:50%;
  background:linear-gradient(135deg, var(--ch-g1), var(--ch-g2)); color:#fff; }
.ch-m.mine .ch-vp { background:rgba(255,255,255,.18); }
.ch-vp svg { width:18px; height:18px; fill:currentColor; }
.ch-vw { flex:1 1 auto; min-width:0; display:flex; align-items:center; justify-content:space-between; gap:1px; height:30px; overflow:hidden; cursor:pointer; }
.ch-vw i { flex:0 1 3px; min-width:0; max-width:4px; border-radius:2px; background:currentColor; opacity:.3; transition:opacity .15s; }
.ch-vw i.on { opacity:.95; }
.ch-vt { flex:none; min-width:34px; color:var(--ch-meta); font-size:12px; font-variant-numeric:tabular-nums; text-align:right; }
.ch-m.mine .ch-vt { color:var(--ch-mine-meta); }

/* кнопка «вниз», «печатает…» */
.ch-float { position:relative; z-index:5; height:0; }
.ch-typing { position:absolute; left:16px; bottom:8px; max-width:calc(100% - 90px); padding:2px 10px; border-radius:999px; background:var(--ch-pill); color:var(--ch-pill-ink);
  font-size:12px; font-style:italic; pointer-events:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ch-typing:empty { display:none; }
.ch-typing.on { padding:0; background:transparent; }
.ch-ty-b { display:inline-flex; align-items:center; gap:8px; max-width:100%; padding:6px 12px 6px 10px; border-radius:16px 16px 16px 6px; background:var(--ch-them);
  color:var(--ch-meta); box-shadow:0 1px 2px rgba(0,0,0,.08); animation:chIn .2s ease-out both; }
.ch-ty-d { display:inline-flex; gap:3px; flex:none; }
.ch-ty-d i { width:6px; height:6px; border-radius:50%; background:currentColor; animation:chDot 1.1s ease-in-out infinite; }
.ch-ty-d i:nth-child(2) { animation-delay:.16s; } .ch-ty-d i:nth-child(3) { animation-delay:.32s; }
.ch-ty-b small { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.ch-down { position:absolute; right:16px; bottom:14px; width:44px; height:44px; padding:0; border:1px solid var(--ch-line); border-radius:50%;
  background:var(--card); color:var(--ink2); box-shadow:0 4px 14px rgba(0,0,0,.14); animation:chIn .2s ease-out both; }
.ch-down .ic { width:20px; height:20px; transform:rotate(90deg); }
.ch-down-n { position:absolute; top:-7px; right:-4px; min-width:20px; height:20px; padding:0 5px; border-radius:999px; background:var(--ch-cnt); color:var(--ch-cnt-ink);
  font-size:11px; font-weight:700; line-height:20px; }

/* ---------- поле ввода */
.ch-foot { position:relative; z-index:6; min-width:0; padding:10px 14px 12px; padding-bottom:max(12px, env(safe-area-inset-bottom)); background:var(--card);
  border-top:1px solid var(--ch-line); }
.ch-compose { display:flex; align-items:flex-end; gap:6px; min-width:0; }
.ch-compose > .ch-ib { width:42px; height:42px; border-radius:50%; }
.ch-att { cursor:pointer; color:var(--ink2); }
.ch-att input { display:none; }
#ch_text { flex:1 1 auto; min-width:0; height:44px; min-height:44px; max-height:168px; margin:0; padding:11px 16px; border:1px solid transparent; border-radius:22px;
  background:var(--ch-field); color:var(--ink); line-height:20px; font-size:14.5px; resize:none; overflow-y:hidden; overflow-x:hidden; box-shadow:none; }
#ch_text.scroll { overflow-y:auto; }
#ch_text:focus { border-color:#c7c9cd; background:var(--input); box-shadow:0 0 0 3px rgba(178,178,178,.28); }
#ch_text::placeholder { color:#9a9ea5; }
.ch-send { position:relative; display:grid; place-items:center; width:44px; height:44px; flex:none; margin:0; padding:0; border-radius:50%; border:0;
  background:linear-gradient(135deg, var(--ch-g1), var(--ch-g2)); color:#fff; box-shadow:0 6px 14px -7px var(--ch-g2); transition:transform .15s, filter .15s; }
.ch-send:hover { filter:brightness(1.08); background:linear-gradient(135deg, var(--ch-g1), var(--ch-g2)); }
.ch-send:active { transform:scale(.93); }
.ch-send .ic { width:20px; height:20px; margin-left:2px; }
.ch-send.edit { background:linear-gradient(135deg, #46a56a, #2f7a48); box-shadow:0 6px 14px -7px #2f7a48; }
.ch-send.upl::after { content:""; position:absolute; inset:-4px; border-radius:50%; pointer-events:none;
  background:conic-gradient(var(--ch-acc2) calc(var(--p, 0) * 1turn), rgba(140,146,154,.18) 0);
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); transition:background .2s; }
.ch-mic .ic { width:21px; height:21px; }
.ch-mic.off { opacity:.45; }
.ch-rec { display:flex; align-items:center; gap:10px; min-width:0; padding:2px 0; animation:chIn .18s ease-out both; }
.ch-rec-dot { width:11px; height:11px; flex:none; border-radius:50%; background:#d64236; animation:chPulse 1.1s ease-in-out infinite; }
.ch-rec-t { flex:none; min-width:40px; font-variant-numeric:tabular-nums; font-weight:650; }
.ch-rec-w { flex:1; min-width:0; display:flex; align-items:center; justify-content:flex-end; gap:2px; height:34px; overflow:hidden; color:var(--ch-acc); }
.ch-rec-w i { width:3px; flex:none; border-radius:2px; background:currentColor; opacity:.75; }
.ch-reply { display:flex; align-items:center; gap:10px; min-width:0; margin:0 0 8px; padding:5px 4px 5px 12px; border-left:3px solid var(--ch-acc);
  border-radius:6px 12px 12px 6px; background:var(--ch-field); animation:chIn .2s ease-out both; }
.ch-reply.edit { border-left-color:var(--ok); }
.ch-reply-t { flex:1; min-width:0; display:flex; flex-direction:column; font-size:12.5px; line-height:1.35; }
.ch-reply-t b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ch-acc-ink); }
.ch-reply.edit .ch-reply-t b { color:var(--ok); }
.ch-reply-t span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); }
.ch-reply.frag .ch-reply-t span { font-style:italic; }
.ch-reply .ch-ib { width:32px; height:32px; }
.ch-tray { display:flex; align-items:flex-end; gap:8px; min-width:0; margin:0 0 8px; padding:2px 0 4px; overflow-x:auto; overflow-y:hidden; }
.ch-tr { position:relative; flex:none; display:grid; place-items:center; width:72px; height:72px; border-radius:14px; background:var(--ch-field); overflow:hidden;
  animation:chIn .22s ease-out both; }
.ch-tr img { width:100%; height:100%; object-fit:cover; }
.ch-tr-no { font-size:26px; }
.ch-tr small { position:absolute; left:4px; bottom:4px; max-width:calc(100% - 8px); padding:0 5px; border-radius:6px; background:rgba(0,0,0,.52); color:var(--ch-on-dark);
  font-size:10.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ch-tr > button { position:absolute; top:4px; right:4px; width:22px; height:22px; margin:0; padding:0; border:0; border-radius:50%; background:rgba(0,0,0,.55);
  color:var(--ch-on-dark); font-size:11px; }
.ch-tr.k-video::after { content:"▶"; position:absolute; top:5px; left:7px; color:var(--ch-on-dark); font-size:11px; text-shadow:0 0 4px rgba(0,0,0,.6); }
.ch-tr.k-doc { width:150px; place-items:stretch; background:var(--card); box-shadow:inset 0 0 0 1px var(--ch-line); }
.ch-tr-doc { display:flex; flex-direction:column; justify-content:center; gap:3px; min-width:0; padding:8px 30px 22px 10px; }
.ch-tr-doc b { align-self:flex-start; padding:1px 6px; border-radius:6px; background:var(--ch-text); color:#fff; font-size:10px; letter-spacing:.03em; }
.ch-tr-doc span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; overflow-wrap:anywhere; font-size:12px; line-height:1.25; }
.ch-tr.k-doc small { background:var(--ch-field); color:var(--ink2); }
.ch-tr.k-doc > button { background:var(--ch-field); color:var(--ink2); }
.ch-tr-note { flex:none; align-self:center; max-width:210px; color:var(--muted); font-size:12px; line-height:1.3; }
.chat.drop .ch-main::after { content:"Отпустите – файлы прикрепятся к сообщению"; position:absolute; inset:12px; z-index:20; display:grid; place-items:center;
  border:2px dashed var(--ch-acc); border-radius:18px; background:var(--ch-drop); color:var(--ch-acc-ink); font-weight:650; pointer-events:none; }
.ch-sel { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-width:0; padding:2px 0; animation:chIn .18s ease-out both; }
.ch-sel-n { flex:1; min-width:120px; font-size:14px; }
.ch-sel-a { display:flex; flex-wrap:wrap; gap:6px; }
.ch-sel-a button { padding:7px 14px; }
/* подсказка «@» */
.ch-mention { position:absolute; left:12px; bottom:calc(100% - 4px); z-index:20; display:flex; flex-direction:column; width:min(320px, calc(100% - 24px)); max-height:300px;
  padding:5px; overflow-y:auto; border:1px solid var(--ch-line); border-radius:14px; background:var(--card); box-shadow:0 14px 34px rgba(0,0,0,.18); animation:chIn .15s ease-out both; }
.ch-mention button { display:flex; align-items:center; gap:9px; min-width:0; margin:0; padding:6px 8px; border:0; border-radius:10px; background:transparent; color:var(--ink);
  font-size:14px; font-weight:400; text-align:left; }
.ch-mention button.on, .ch-mention button:hover { background:var(--ch-field); }
.ch-mention span:not(.ch-av) { min-width:0; display:flex; flex-direction:column; line-height:1.2; }
.ch-mention span:not(.ch-av) b, .ch-mention small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ch-mention small { color:var(--muted); font-size:12px; }

/* региональный ОД: вместо поля ввода – быстрые ответы и «Новое сообщение» */
.ch-rep { display:flex; flex-direction:column; align-items:center; gap:8px; min-width:0; padding:2px 0 0; text-align:center; }
.ch-quick { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; max-width:100%; margin:0; padding:2px; }
@media (hover:none) {
  .ch-quick { flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; }
  .ch-quick::-webkit-scrollbar { display:none; }
}
.ch-qk { flex:none; margin:0; padding:7px 14px; border:1px solid var(--ch-line); border-radius:999px; background:var(--ch-field); color:var(--ink); font-size:13.5px; font-weight:600;
  white-space:nowrap; transition:transform .15s, background .15s; }
.ch-qk:hover { background:var(--ch-sel); }
.ch-qk:active { transform:scale(.95); }
.ch-qk.pop { animation:chQk .45s ease-out; }
@keyframes chQk { 0% { transform:scale(1); } 35% { transform:scale(1.09); background:var(--ok-soft); color:var(--ok); } 100% { transform:scale(1); } }
.ch-rep-new { gap:9px; width:min(420px, 100%); margin:0; padding:12px 24px; border:0; border-radius:16px; background:linear-gradient(135deg, var(--ch-g1), var(--ch-g2));
  color:#fff; font-size:15px; font-weight:650; box-shadow:0 10px 22px -12px var(--ch-g2); transition:transform .15s, filter .15s, box-shadow .15s; }
.ch-rep-new:hover { background:linear-gradient(135deg, var(--ch-g1), var(--ch-g2)); filter:brightness(1.07); transform:translateY(-1px); box-shadow:0 14px 26px -12px var(--ch-g2); }
.ch-rep-new:active { transform:scale(.98); }
.ch-rep-new .ic { width:20px; height:20px; padding:2px; border-radius:7px; background:rgba(255,255,255,.22); }
.ch-rep-hint { max-width:560px; margin:0; line-height:1.35; }

/* 242: выделили часть сообщения – «Ответить на выделенное» */
.ch-qsel { position:absolute; z-index:30; display:flex; animation:chIn .14s ease-out both; }
.ch-qsel button { display:inline-flex; align-items:center; gap:6px; margin:0; padding:6px 12px 6px 9px; border:0; border-radius:999px; background:#2b2e33; color:#fff;
  font-size:12.5px; font-weight:600; white-space:nowrap; box-shadow:0 8px 22px rgba(0,0,0,.28); }
.ch-qsel button:hover { background:#1c1e22; }
.ch-qsel .ic { width:16px; height:16px; }

/* ---------- 2 (доработка 3): «Новое сообщение» и «Доп. информация» – прямо в окне чата */
.ch-cmp { position:absolute; left:0; right:0; bottom:0; top:64px; z-index:12; display:flex; flex-direction:column; min-width:0; min-height:0; background:var(--bg);
  border-radius:18px 18px 0 0; box-shadow:0 -14px 34px -16px rgba(0,0,0,.32), 0 -1px 0 var(--ch-line); opacity:0; transform:translateY(28px);
  transition:opacity .22s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.ch-cmp.open { opacity:1; transform:none; }
.ch-cmp-h { display:flex; align-items:center; gap:10px; min-width:0; min-height:58px; padding:8px 8px 8px 14px; border-bottom:1px solid var(--ch-line); background:var(--card);
  border-radius:18px 18px 0 0; }
.ch-cmp-ic { display:grid; place-items:center; flex:none; width:36px; height:36px; border-radius:11px; background:linear-gradient(135deg, var(--ch-g1), var(--ch-g2)); color:#fff; }
.ch-cmp-ic .ic { width:19px; height:19px; }
.ch-cmp-tt { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.25; }
.ch-cmp-tt b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15.5px; }
.ch-cmp-tt small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:12.5px; }
.ch-cmp-tt small:empty { display:none; }
.ch-cmp-b { position:relative; flex:1; min-height:0; }
.ch-cmp-b iframe { display:block; width:100%; height:100%; border:0; background:var(--bg); transition:opacity .2s; }
.ch-cmp.loading .ch-dr-load { display:grid; }
.ch-cmp.loading iframe { opacity:0; }
.chat.cmp-open .ch-float, .chat.cmp-open .ch-foot { visibility:hidden; }
.ch-cmp-pill { display:flex; align-items:center; gap:10px; width:100%; min-width:0; margin:8px 0 0; padding:8px 10px 8px 12px; border:1px dashed var(--ch-acc2);
  border-radius:14px; background:var(--ch-field); color:var(--ink); text-align:left; font-weight:400; animation:chIn .2s ease-out both; }
.ch-cmp-pill:hover { background:var(--ch-sel); }
.ch-cmp-pill .ic { width:18px; height:18px; flex:none; color:var(--ch-acc); }
.ch-cmp-pill > span:not(.ch-cmp-pill-x) { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.25; }
.ch-cmp-pill b, .ch-cmp-pill small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ch-cmp-pill small { color:var(--muted); font-size:12px; }
.ch-cmp-pill-x { display:grid; place-items:center; flex:none; width:30px; height:30px; border-radius:50%; color:var(--ink2); }
.ch-cmp-pill-x:hover { background:var(--card); }
.chat.cmp-min .ch-rep .ch-rep-new, .chat.cmp-min .ch-rep .ch-rep-hint { display:none; }

/* меню действий с сообщением */
.ch-menu { position:fixed; z-index:9500; display:flex; flex-direction:column; min-width:200px; max-width:calc(100vw - 16px); padding:5px; border:1px solid var(--ch-line);
  border-radius:14px; background:var(--card); box-shadow:0 14px 36px rgba(0,0,0,.18); animation:chIn .16s ease-out both; }
.ch-menu button { justify-content:flex-start; width:100%; margin:0; padding:8px 12px; border:0; border-radius:9px; background:transparent; font-size:14px; text-align:left; }
.ch-menu button:hover, .ch-menu button:focus-visible { background:var(--ch-field); outline:none; }
.ch-menu button.danger { color:var(--err); }
.ch-menu-rx { display:flex; justify-content:space-around; gap:2px; margin:0 0 4px; padding:2px 2px 5px; border-bottom:1px solid var(--ch-line); }
.ch-menu .ch-menu-rx button { justify-content:center; width:auto; flex:1; padding:6px 0; font-size:20px; border-radius:10px; transition:transform .12s; }
.ch-menu .ch-menu-rx button:hover { transform:scale(1.18); }

/* окно сообщения (ДЧ «Легион» – «Открыть»): справа */
.ch-drawer { position:fixed; inset:0; z-index:700; display:flex; justify-content:flex-end; background:rgba(18,20,24,0); transition:background .28s; }
.ch-drawer.open { background:rgba(18,20,24,.4); }
.ch-dr-in { display:flex; flex-direction:column; width:min(900px, 100%); height:100%; background:var(--bg); border-radius:20px 0 0 20px; overflow:hidden;
  box-shadow:-20px 0 50px rgba(0,0,0,.2); transform:translateX(104%); transition:transform .32s cubic-bezier(.2,.8,.2,1); }
.ch-drawer.open .ch-dr-in { transform:none; }
.ch-dr-h { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; min-height:58px; padding:8px 10px 8px 22px; background:var(--card);
  border-bottom:1px solid var(--ch-line); font-size:16px; }
.ch-dr-h b { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ch-dr-body { position:relative; flex:1; min-height:0; }
.ch-dr-body iframe { display:block; width:100%; height:100%; border:0; background:var(--bg); transition:opacity .2s; }
.ch-dr-load { position:absolute; inset:0; display:none; place-content:center; grid-auto-flow:column; gap:7px; }
.ch-drawer.loading .ch-dr-load { display:grid; }
.ch-drawer.loading iframe { opacity:0; }

/* ---------- просмотр фото, видео и документов: всегда целиком в окне */
.ch-viewer { position:fixed; inset:0; z-index:9600; background:rgba(10,11,13,.96); color:#eee; animation:chFade .2s ease-out both; }
@keyframes chFade { from { opacity:0; } to { opacity:1; } }
.ch-v-stage { position:absolute; inset:58px 70px 176px; display:flex; align-items:center; justify-content:center; min-width:0; min-height:0; overflow:hidden; }
.ch-v-stage > img, .ch-v-stage > video { display:block; width:100%; height:100%; min-width:0; min-height:0; object-fit:contain; background:transparent; }
.ch-v-stage > video { outline:none; }
.ch-v-no { display:grid; justify-items:center; gap:8px; max-width:440px; padding:0 12px; text-align:center; color:#ddd; }
.ch-v-no img { max-width:min(260px, 100%); max-height:200px; border-radius:12px; opacity:.6; }
.ch-v-no p { margin:0; color:#aaa; }
.ch-v-no .ch-doc-big { position:static; }
.ch-v-nav { position:absolute; top:50%; z-index:3; width:50px; height:70px; margin:-35px 0 0; padding:0; border:0; border-radius:16px; background:rgba(255,255,255,.08);
  color:#fff; font-size:36px; line-height:1; }
.ch-v-nav:hover { background:rgba(255,255,255,.16); }
.ch-v-nav.prev { left:10px; } .ch-v-nav.next { right:10px; }
.ch-v-top { position:absolute; top:0; left:0; right:0; z-index:3; display:flex; align-items:center; justify-content:space-between; height:58px; padding:0 10px 0 20px; }
.ch-v-n { color:#aaa; font-size:13px; font-variant-numeric:tabular-nums; }
.ch-v-acts { display:flex; gap:4px; }
.ch-viewer .ch-ib { color:#eee; background:rgba(255,255,255,.06); }
.ch-viewer .ch-ib:hover { background:rgba(255,255,255,.16); color:#fff; }
.ch-v-info { position:absolute; left:50%; bottom:12px; width:min(780px, calc(100% - 24px)); max-height:156px; padding:10px 16px; overflow:auto;
  transform:translateX(-50%); border:1px solid rgba(255,255,255,.08); border-radius:16px; background:rgba(34,36,40,.9); font-size:12.5px; }
.ch-v-info dl { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:3px 16px; margin:0; }
.ch-v-info dt { color:#9aa0a8; white-space:nowrap; }
.ch-v-info dd { margin:0; color:#eee; overflow-wrap:anywhere; }
.ch-v-info a { color:#9cc7ff; }
.ch-v-info code { color:#ddd; font-size:12px; }
.ch-v-info .muted { color:#8c929a; }
.ch-v-note { margin:7px 0 0; color:#8c929a; font-size:11.5px; }
.ch-v-chk { display:flex; flex-direction:column; gap:2px; }
.ch-v-chk span::before { content:""; display:inline-block; width:8px; height:8px; margin-right:7px; border-radius:50%; vertical-align:1px; background:#46c27a; }
.ch-v-chk .lv-warn::before { background:#e3a21a; }
.ch-v-chk .lv-bad::before { background:#f0645a; }
.ch-v-bad { color:#ff9b93; font-weight:600; }
/* документ в просмотре: PDF – просмотром браузера, Word и текст – листом, Excel – таблицей с листами */
.ch-v-doc { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; height:100%; min-width:0; min-height:0; }
.ch-v-pdf { display:block; flex:1; width:100%; min-height:0; border:0; border-radius:10px; background:#fff; }
.ch-v-alt { flex:none; margin:8px 0 0; color:#9aa0a8; font-size:12.5px; }
.ch-v-alt button, .ch-v-alt a { margin:0; padding:0; border:0; background:none; color:#9cc7ff; font-size:12.5px; text-decoration:underline; cursor:pointer; }
.ch-v-page { width:min(820px, 100%); height:100%; padding:36px 44px; overflow:auto; border-radius:10px; background:var(--ch-page); color:var(--ch-page-ink);
  font:14px/1.6 "Segoe UI", Inter, Roboto, Arial, sans-serif; box-shadow:0 12px 40px rgba(0,0,0,.5); overflow-wrap:anywhere; }
.ch-v-page p { margin:0 0 .55em; white-space:pre-wrap; }
.ch-v-page p.li { padding-left:18px; } .ch-v-page p.li::before { content:"•"; margin-left:-14px; margin-right:8px; }
.ch-v-page p.b { font-weight:700; } .ch-v-page p.c { text-align:center; }
.ch-v-page h3 { margin:.6em 0 .5em; font-size:17px; }
.ch-v-page table { width:100%; margin:6px 0 12px; border-collapse:collapse; font-size:13px; }
.ch-v-page td { padding:4px 7px; border:1px solid #cfd3d8; vertical-align:top; white-space:pre-wrap; }
.ch-v-page img { display:block; max-width:100%; margin:0 auto 12px; }
.ch-v-page pre { margin:0; font:13px/1.55 ui-monospace, Consolas, monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.ch-v-more { margin:14px 0 0 !important; padding:8px 12px; border-radius:10px; background:#f2f3f5; color:#5b6068; font-size:12.5px; }
.ch-v-xl { display:flex; flex-direction:column; width:100%; height:100%; min-width:0; min-height:0; border-radius:10px; overflow:hidden; background:var(--ch-page);
  color:var(--ch-page-ink); box-shadow:0 12px 40px rgba(0,0,0,.5); }
.ch-v-tabs { display:flex; gap:2px; flex:none; padding:6px 6px 0; overflow-x:auto; background:#eef0f2; }
.ch-v-tabs button { flex:none; margin:0; padding:6px 14px; border:0; border-radius:9px 9px 0 0; background:transparent; color:#4a4e55; font-size:13px; }
.ch-v-tabs button.on { background:#fff; color:#1c1c1c; font-weight:650; }
.ch-v-sheet { flex:1; min-height:0; overflow:auto; }
.ch-v-sheet table { border-collapse:collapse; font:13px/1.4 "Segoe UI", Inter, Roboto, Arial, sans-serif; }
.ch-v-sheet th, .ch-v-sheet td { max-width:320px; padding:4px 8px; border:1px solid #dfe2e6; white-space:pre-wrap; vertical-align:top; overflow-wrap:anywhere; }
.ch-v-sheet th { position:sticky; left:0; z-index:1; min-width:38px; background:#f2f3f5; color:#7a7f87; font-weight:500; text-align:right; }
.ch-v-sheet tr.hd td { background:#f4f8f5; font-weight:650; }
.ch-v-sheet .ch-v-more { margin:10px !important; }
.ch-viewer.doc .ch-v-stage { inset:58px 70px 120px; }
@media (min-width:1180px) {
  .ch-v-stage, .ch-viewer.doc .ch-v-stage { inset:58px 440px 24px 70px; }
  .ch-v-nav.next { right:386px; width:44px; }
  .ch-v-info { left:auto; right:16px; top:70px; bottom:auto; width:360px; max-height:calc(100% - 86px); transform:none; padding:14px 18px; }
  .ch-v-info dl { grid-template-columns:1fr; gap:1px; }
  .ch-v-info dd { margin-bottom:9px; font-size:13.5px; }
}
/* водяной знак при просмотре */
.ch-wm, .lb-wm { position:absolute; inset:0; z-index:2; pointer-events:none; background-repeat:repeat; opacity:.9; }
.lb-stage { position:relative; }

/* ---------- окна: новый чат, участники, запрос уточнения, выгрузка, звук, фото и документы, пересылка, обсуждение, история правок */
.ch-dlg { position:fixed; inset:0; z-index:800; display:grid; place-items:center; padding:16px; background:rgba(18,20,24,.42); animation:chFade .18s ease-out both; }
.ch-dlg-in { display:flex; flex-direction:column; gap:10px; width:min(480px, 100%); max-height:min(680px, calc(100dvh - 32px)); min-height:0; padding:14px 16px 16px;
  overflow:auto; border-radius:20px; background:var(--card); box-shadow:0 24px 60px rgba(0,0,0,.25); animation:chIn .22s cubic-bezier(.2,.9,.3,1.12) both; }
.ch-dlg-h { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; font-size:17px; }
.ch-dlg-h b { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ch-dlg-in > input { margin:0; }
.ch-dlg-in .ch-tabs { margin:0; }
.ch-dlg-a { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.ch-dlg-a .danger { color:var(--err); }
.ch-pps { flex:1; min-height:120px; margin:0 -6px; padding:0 6px; overflow-y:auto; }
.ch-pp { display:flex; align-items:center; gap:11px; width:100%; min-width:0; margin:0; padding:7px 8px; border:0; border-radius:12px; background:transparent; color:var(--ink);
  font-size:14px; font-weight:400; text-align:left; cursor:pointer; }
.ch-pp:hover { background:var(--ch-field); }
.ch-pp .ch-av { width:38px; height:38px; font-size:13px; }
.ch-pp .ch-on { box-shadow:0 0 0 2px var(--card); }
.ch-pp > span:not(.ch-av) { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; overflow-wrap:anywhere; }
.ch-pp > span:not(.ch-av) small { color:var(--muted); font-size:12px; }
.ch-pp > input { flex:none; }
.ch-pp > button { flex:none; padding:5px 10px; }
.ch-pp.off { cursor:default; opacity:.6; }
.ch-pp.off:hover { background:transparent; }
.ch-pp .small-link { flex:none; font-size:12.5px; }
.ch-pp-why { margin:8px 4px; padding:10px 12px; border-radius:12px; background:var(--warn-soft); color:var(--warn); font-size:13px; }
.ch-pp-sep { margin:10px 8px 4px; color:var(--muted); font-size:11.5px; font-weight:650; text-transform:uppercase; letter-spacing:.05em; }
.ch-seg { display:flex; flex-wrap:wrap; gap:4px; padding:3px; border-radius:12px; background:var(--ch-field); }
.ch-seg button { flex:1 1 auto; margin:0; padding:6px 10px; border:0; border-radius:9px; background:transparent; color:var(--ink2); font-size:13px; font-weight:500; }
.ch-seg button.on { background:var(--card); color:var(--ink); font-weight:650; box-shadow:0 1px 3px rgba(0,0,0,.1); }
.ch-ask-l { display:flex; flex-direction:column; gap:5px; max-height:250px; overflow-y:auto; }
.ch-ask-q { justify-content:flex-start; margin:0; padding:8px 12px; border:1px solid var(--ch-line); border-radius:12px; background:var(--card); color:var(--ink);
  font-size:14px; font-weight:400; text-align:left; }
.ch-ask-q:hover { background:var(--ch-field); }
.ch-ask-q.on { border-color:var(--ch-acc); background:var(--ch-sel); font-weight:600; }
.ch-ask-due { display:flex; flex-direction:column; gap:5px; font-size:13px; color:var(--ink2); }
.ch-dlg.media .ch-dlg-in { width:min(880px, 100%); height:min(760px, calc(100dvh - 32px)); max-height:none; overflow:hidden; }
.ch-mg-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.ch-mg-n { margin-right:auto; }
.ch-mg { flex:1; min-height:160px; overflow-y:auto; display:grid; grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)); gap:6px; align-content:start;
  margin:0 -4px; padding:0 4px 4px; }
.ch-mg-d { grid-column:1 / -1; margin:8px 0 0; color:var(--ink2); font-size:12.5px; font-weight:650; }
.ch-mg-t { position:relative; aspect-ratio:1; min-width:0; border-radius:12px; overflow:hidden; background:var(--ch-tile); cursor:zoom-in; }
.ch-mg-t img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .2s; }
.ch-mg-t:hover img { transform:scale(1.04); }
.ch-mg-t.on { outline:3px solid var(--ch-acc); outline-offset:-3px; }
.ch-mg-t.gone { opacity:.55; }
.ch-mg-doc { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; gap:6px; padding:10px; background:var(--card); color:var(--ink);
  box-shadow:inset 0 0 0 1px var(--ch-line); border-radius:inherit; }
.ch-mg-doc b { align-self:flex-start; padding:2px 7px; border-radius:7px; background:var(--ch-text); color:#fff; font-size:11px; letter-spacing:.03em; }
.ch-mg-doc.t-pdf b { background:var(--ch-pdf); } .ch-mg-doc.t-word b { background:var(--ch-word); } .ch-mg-doc.t-excel b { background:var(--ch-excel); }
.ch-mg-doc small { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; overflow-wrap:anywhere; font-size:12px; line-height:1.3; }
.ch-mg-c { position:absolute; top:6px; right:6px; display:grid; place-items:center; width:26px; height:26px; margin:0; border-radius:8px; background:rgba(255,255,255,.88); cursor:pointer; }
.ch-mg-c input { margin:0; width:16px; height:16px; }
.ch-mg-w { position:absolute; left:6px; bottom:6px; padding:1px 7px; border-radius:7px; background:rgba(0,0,0,.5); color:#fff; font-size:11px; }
.ch-mg-none { grid-column:1 / -1; text-align:center; }
.ch-mg-more { align-self:center; }
.ch-dlg.fwd textarea { margin:0; min-height:0; resize:vertical; }
.ch-snd-v { display:flex; align-items:center; gap:12px; margin:0; font-size:13.5px; }
.ch-snd-v input { flex:1; margin:0; accent-color:var(--ch-acc); }
.ch-snd-r { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:2px 0; }
.ch-snd-r label { margin:0; font-size:14px; }
.ch-snd-n { padding:10px 12px; border-radius:12px; background:var(--ch-field); }
.ch-snd-n p { margin:4px 0 8px; }
.ch-snd-m { display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; margin:0; padding:9px 12px; border-radius:12px; background:var(--ch-field); font-size:14px; }
.ch-snd-m small { flex-basis:100%; padding-left:24px; color:var(--muted); font-size:12px; }
.ch-dlg.thread .ch-dlg-in { width:min(560px, 100%); height:min(640px, calc(100dvh - 32px)); overflow:hidden; }
.ch-th-sub { margin:-4px 0 0; }
.ch-th-l { flex:1; min-height:120px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; margin:0 -6px; padding:4px 6px; }
.ch-th-c { max-width:88%; min-width:0; padding:7px 11px; border-radius:14px 14px 14px 5px; background:var(--ch-field); overflow-wrap:anywhere; }
.ch-th-c.mine { align-self:flex-end; border-radius:14px 14px 5px 14px; background:var(--ch-sel); }
.ch-th-c.del { opacity:.55; font-style:italic; }
.ch-th-h { display:flex; align-items:baseline; gap:8px; font-size:12px; }
.ch-th-h small { color:var(--muted); }
.ch-th-c .ch-t { font-size:14px; }
.ch-th-c .ch-t::after, .ch-ed-v .ch-t::after { display:none; }
.ch-th-none { margin:auto; text-align:center; }
.ch-th-f { display:flex; align-items:flex-end; gap:8px; }
.ch-th-f textarea { flex:1; min-width:0; margin:0; min-height:0; resize:none; }
.ch-dlg.edits .ch-dlg-in { width:min(560px, 100%); }
.ch-eds { display:flex; flex-direction:column; gap:8px; min-height:0; overflow-y:auto; }
.ch-ed-v { padding:9px 12px; border-radius:12px; background:var(--ch-field); }
.ch-ed-v small { display:block; margin-bottom:2px; color:var(--muted); font-size:12px; }
.ch-ed-v:not(.now) .ch-t { color:var(--ink2); }
.ch-ed-v.now { background:var(--ch-sel); box-shadow:inset 3px 0 0 var(--ch-acc); }
/* выбор нескольких сообщений */
.ch-ck { position:absolute; left:8px; top:50%; width:20px; height:20px; margin-top:-10px; border:2px solid var(--ch-acc2); border-radius:50%; background:var(--card);
  transition:background .15s, border-color .15s; }
.chat.selmode .ch-m { padding-left:38px; cursor:pointer; }
.chat.selmode .ch-m.wav { padding-left:72px; }
.chat.selmode .ch-m.wav .ch-mav { left:38px; }
.chat.selmode .ch-m.pick .ch-ck { background:var(--ch-acc); border-color:var(--ch-acc); box-shadow:inset 0 0 0 3px var(--card); }
.chat.selmode .ch-m.pick .ch-b { box-shadow:0 0 0 2px var(--ch-acc2); }
.chat.selmode .ch-more { display:none; }
.chat.selmode .ch-compose, .chat.selmode .ch-rep, .chat.selmode .ch-tray, .chat.selmode .ch-reply { display:none; }
.ch-hmore .ic { width:20px; height:20px; }

/* страница «Сообщение отправлено» в окне чата */
.chat-sent { display:grid; justify-items:center; gap:4px; padding:48px 20px; text-align:center; }
.chat-sent-ic { display:grid; place-items:center; width:70px; height:70px; border-radius:50%; background:var(--ok-soft); color:var(--ok); }
.chat-sent-ic .ic { width:34px; height:34px; }

/* форма сообщения в окне чата: компактнее, логические условия – у полей и над кнопкой «Отправить» */
html.embed-chat body.app { background:var(--bg); }
html.embed-chat body.app > main { padding:12px 14px 0; }
html.embed-chat .formbar { border-radius:16px 16px 0 0; }
label.lgc > input, label.lgc > select, label.lgc .combo-in { border-color:var(--ch-lgc); box-shadow:0 0 0 3px rgba(178,107,0,.16); }
.lgc-m { display:block; margin-top:4px; color:var(--ch-lgc); font-size:12px; font-weight:600; line-height:1.3; }
.lgc-bar { display:block; width:100%; margin:0 0 8px; padding:8px 12px; border:1px solid #f0d49b; border-radius:12px; background:var(--ch-lgc-soft); color:var(--ch-lgc);
  font-size:13px; font-weight:600; line-height:1.35; text-align:left; white-space:normal; }
.lgc-bar:hover { background:#ffecc4; }
.lgc-bar[hidden] { display:none; }
/* фото и видео в форме из чата – любого размера, частями */
.chup h2 small { font-weight:400; }
.chup-list { display:grid; gap:8px; margin:0 0 10px; padding:0; list-style:none; }
.chup-list:empty { display:none; }
.chup-it { display:flex; align-items:center; gap:12px; min-width:0; padding:8px; border:1px solid var(--line); border-radius:14px; background:var(--soft);
  animation:chIn .22s ease-out both; transition:opacity .25s, transform .25s; }
.chup-it.out { opacity:0; transform:translateX(16px); }
.chup-th { position:relative; display:grid; place-items:center; width:58px; height:58px; flex:none; border-radius:11px; background:var(--ch-field); overflow:hidden;
  font-size:22px; }
.chup-th img { width:100%; height:100%; object-fit:cover; }
.chup-th[data-k=video]::after { content:"▶"; position:absolute; left:6px; bottom:4px; color:var(--ch-on-dark); font-size:11px; text-shadow:0 0 4px rgba(0,0,0,.7); }
.chup-b { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.chup-n { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13.5px; }
.chup-s { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
.chup-bar { height:5px; border-radius:3px; background:var(--line); overflow:hidden; }
.chup-bar i { display:block; width:0; height:100%; border-radius:3px; background:var(--ch-acc); transition:width .3s; }
.chup-it.done .chup-bar i { background:var(--ok); }
.chup-it.bad { border-color:#efc4bf; } .chup-it.bad .chup-s { color:var(--err); }
.chup-x { flex:none; width:32px; height:32px; padding:0; border-radius:50%; }
.chup-acts { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
label.chup-add { display:inline-flex; margin:0; font-size:14px; color:var(--ink); }
.chup.drop { outline:2px dashed var(--ch-acc); outline-offset:3px; }
.chup-note:empty { display:none; }
.chup-note { margin:8px 0 0; color:var(--ch-acc-ink); }

/* ---------- узкая переписка (container query): шапка – главное; кнопки – в «⋯» */
@container chmain (max-width:700px) {
  .ch-hwait { display:none; }
  .ch-hacts [data-act=export], .ch-hacts [data-act=snd], .ch-hacts [data-act=media] { display:none; }
  .ch-m { padding:0 10px; }
  .ch-m.wav { padding-left:44px; }
  .ch-mav { left:10px; }
  .ch-msgs { --ch-w:calc(100cqi - 92px); }
  .ch-foot { padding-left:10px; padding-right:10px; }
  .ch-rep-hint { display:none; }
}
@container chmain (max-width:460px) {
  .ch-hacts [data-act=find] { display:none; }
  .ch-head { gap:8px; padding-left:8px; }
  .ch-b { max-width:calc(100% - 28px); }
  .ch-msgs { --ch-w:calc(100cqi - 78px); }
  .ch-card, .ch-req { width:calc(100cqi - 64px); }
  .ch-compose { gap:4px; }
  .ch-compose > .ch-ib { width:38px; height:38px; }
  .ch-v-page { padding:22px 18px; }
}

/* ---------- телефон: список чатов – страницей, переписка – на весь экран */
@media (max-width:860px) {
  main.main-chat { height:auto; padding:8px; }
  .chat { display:block; min-height:calc(100dvh - 110px); border-radius:18px; }
  .chat.one .ch-side { display:flex; }
  .ch-side { min-height:calc(100dvh - 110px); border-right:0; }
  .ch-main { display:none; }
  .chat[data-state=chat] .ch-main { position:fixed; inset:0; z-index:650; display:flex; }
  .chat[data-state=chat] .ch-main { animation:chSlideIn .3s cubic-bezier(.2,.8,.2,1) both; }
  .chat[data-state=list] .ch-side { animation:chSlideBack .3s cubic-bezier(.2,.8,.2,1) both; }
  html.ch-open, html.ch-open body { overflow:hidden; }
  .ch-back { display:inline-grid; margin-left:-4px; }
  .ch-head { min-height:58px; padding:7px 8px; padding-top:max(7px, env(safe-area-inset-top)); }
  .ch-cmp { border-radius:0; }
  .ch-cmp-h { border-radius:0; }
  .ch-dr-in { width:100%; border-radius:0; }
  .ch-dr-h { padding-top:max(8px, env(safe-area-inset-top)); }
  .ch-v-stage, .ch-viewer.doc .ch-v-stage { inset:56px 4px 170px; }
  .ch-v-nav { top:auto; bottom:178px; margin:0; width:44px; height:52px; font-size:30px; }
  .ch-v-info { max-height:150px; }
  .ch-mg { grid-template-columns:repeat(auto-fill, minmax(92px, 1fr)); }
  .ch-dlg { padding:10px; }
}
@keyframes chSlideIn { from { transform:translateX(34%); opacity:.4; } to { transform:none; opacity:1; } }
@keyframes chSlideBack { from { transform:translateX(-18%); opacity:.5; } to { transform:none; opacity:1; } }
@media (prefers-reduced-motion:reduce) {
  .chat[data-state] .ch-main, .chat[data-state] .ch-side { animation:none; }
  .ch-m.in, .ch-tk.pop, .ch-m.hl .ch-b, .ch-menu, .ch-dlg, .ch-dlg-in, .ch-viewer, .ch-tr, .ch-reply, .chup-it, .ch-down, .ch-qsel, .ch-cmp-pill { animation:none; }
  .ch-sk, .ch-cd.pulse, .ch-rec-dot, .ch-ty-d i { animation:none; }
  .ch-dr-in, .ch-drawer, .ch-cmp { transition:none; }
}
html[data-motion=less] .ch-m.in, html[data-motion=less] .ch-tk.pop, html[data-motion=less] .ch-dr-in, html[data-motion=less] .ch-cmp { animation:none; transition:none; }

/* ---------- не чат, но здесь же с 1.0.28: настройки HTTPS, проверка фото в галерее, фото профиля, приложение, карточка сообщения */
.hs-state { margin:0 0 10px; padding:9px 12px; border-radius:12px; background:var(--soft); font-size:14px; }
.hs-state.hs-on { background:var(--ok-soft); color:var(--ok); }
.hs-steps { margin:0 0 14px; padding-left:20px; display:grid; gap:6px; }
.hs-how, .hs-more { margin:6px 0 0; }
.hs-how summary, .hs-more summary { cursor:pointer; color:var(--ink2); font-weight:600; }
.hs-how p { margin:6px 0; }
.hs-more { margin:12px 0; }
.hs-more form { margin:8px 0 12px; }
.hs-ports, .hs-switch { margin:12px 0 0; padding-top:12px; border-top:1px solid var(--line); }
.hs-switch { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; }
.hs-switch label { margin:0; }
.small-btn { display:inline-block; margin:4px 0; padding:5px 12px; font-size:13px; }
.row-inline { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; }
.row-inline label { margin:0; }
.sub-h { margin:16px 0 6px; font-size:15px; }
.gchk { display:flex; flex-direction:column; gap:1px; margin-top:3px; font-size:11.5px; }
.gchk .lv-warn { color:var(--warn); } .gchk .lv-bad { color:var(--err); font-weight:600; }
.gchk span::before { content:"⚠ "; }
.sidebar .me button.avatar { width:34px; height:34px; min-height:0; padding:0; border:0; border-radius:50%; background:#fff; cursor:pointer; overflow:hidden;
  font-size:15px; transition:box-shadow .15s; }
.sidebar .me .avatar:hover { box-shadow:0 0 0 2px rgba(0,0,0,.18); }
.avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.pwa-inst { display:flex; align-items:center; gap:8px; width:calc(100% - 8px); margin:6px 4px 0; padding:7px 10px; border:1px dashed rgba(0,0,0,.25);
  border-radius:12px; background:rgba(255,255,255,.55); color:var(--ink); font-size:12.5px; font-weight:600; text-align:left; }
.pwa-inst:hover { background:#fff; }
/* 1.0.28: карточка сообщения – фото и видео из чата (видео, которое браузер не показывает, – кадром и «скачать») */
#chat_gallery .gfile:has(img) { position:relative; }
#chat_gallery .gfile img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.8; }
#chat_gallery .gfile small { position:relative; padding:1px 9px; border-radius:8px; background:rgba(255,255,255,.88); color:var(--ink2); }
#chat_gallery figcaption > a:first-child { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#chat_gallery figcaption small { display:block; margin-top:2px; }

/* ---------------------------------------------------------------- 1.0.28 (доработка 5): входящий звонок на любой странице */
.cr-box { position:fixed; top:14px; right:14px; z-index:9700; display:flex; flex-direction:column; gap:10px; width:min(360px, calc(100vw - 28px)); pointer-events:none; }
.cr-card { position:relative; display:grid; grid-template-columns:auto minmax(0, 1fr); align-items:center; gap:10px 14px; padding:14px 16px 14px 14px;
  border:1px solid rgba(255, 255, 255, .08); border-radius:20px; background:#1d1f23; color:#f2f3f5; box-shadow:0 18px 44px rgba(0, 0, 0, .35);
  pointer-events:auto; animation:crIn .38s cubic-bezier(.2, .9, .3, 1.15) both; }
.cr-av { position:relative; display:grid; place-items:center; width:54px; height:54px; }
.cr-ph { position:relative; z-index:1; display:grid; place-items:center; width:54px; height:54px; overflow:hidden; border-radius:50%; background:#41464e;
  color:#fff; font-size:18px; font-weight:600; }
.cr-ph img { width:100%; height:100%; object-fit:cover; }
.cr-rr { position:absolute; inset:0; border-radius:50%; animation:crRing 2.1s ease-out infinite; }
.cr-rr:nth-child(2) { animation-delay:.7s; } .cr-rr:nth-child(3) { animation-delay:1.4s; }
.cr-t { display:flex; flex-direction:column; min-width:0; }
.cr-t b { overflow:hidden; font-size:15px; font-weight:600; white-space:nowrap; text-overflow:ellipsis; }
.cr-t small { overflow:hidden; color:#a9aeb6; font-size:12.5px; white-space:nowrap; text-overflow:ellipsis; }
.cr-acts { grid-column:1 / -1; display:flex; justify-content:flex-end; gap:10px; }
.cr-b { display:grid; place-items:center; width:46px; height:46px; padding:0; border:0; border-radius:50%; background:#33363c; color:#fff; cursor:pointer;
  transition:background .15s, transform .15s; }
.cr-b .ic { width:22px; height:22px; }
.cr-b:hover { background:#41454c; }
.cr-b:active { transform:scale(.93); }
.cr-b:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.cr-b.no { margin-right:auto; background:#d9483e; }
.cr-b.no:hover { background:#c23b32; }
.cr-b.yes { background:#2a9d5f; animation:crWiggle 1.6s ease-in-out infinite; }
.cr-b.yes:hover { background:#238a52; }
.cr-menu { grid-column:1 / -1; display:flex; flex-direction:column; gap:2px; padding:6px; border:1px solid rgba(255, 255, 255, .08); border-radius:14px; background:#26292e; }
.cr-menu button { display:block; width:100%; padding:8px 12px; border:0; border-radius:10px; background:transparent; color:#f2f3f5; font:inherit; font-size:13.5px; text-align:left; justify-content:flex-start; cursor:pointer; }
.cr-menu button:hover, .cr-menu button:focus-visible { background:#33363c; outline:none; }
.cr-card.still, .cr-card.still .cr-b.yes { animation:none; }
.cr-card.still .cr-rr { animation:none; box-shadow:0 0 0 6px rgba(178, 178, 178, .25); }
.cr-live { position:fixed; left:50%; bottom:16px; z-index:9650; display:flex; align-items:center; gap:10px; max-width:calc(100vw - 24px); padding:8px 8px 8px 14px;
  border:0; border-radius:999px; background:#1d1f23; color:#f2f3f5; box-shadow:0 10px 30px rgba(0, 0, 0, .3); font:inherit; font-size:13.5px;
  font-variant-numeric:tabular-nums; cursor:pointer; transform:translateX(-50%); animation:crUp .3s ease-out both; }
.cr-live i { width:9px; height:9px; flex:none; border-radius:50%; background:#2fb36d; animation:crDot 1.6s ease-in-out infinite; }
.cr-live span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cr-live b { padding:4px 12px; border-radius:999px; background:#eceef1; color:#1d1f23; font-weight:600; }
.cr-live:focus-visible { outline:2px solid var(--accent, #6b7078); outline-offset:3px; }
@keyframes crIn { from { opacity:0; transform:translateY(-14px) scale(.96); } }
@keyframes crUp { from { opacity:0; translate:0 10px; } }
@keyframes crRing { 0% { box-shadow:0 0 0 0 rgba(178, 178, 178, .65); } 100% { box-shadow:0 0 0 20px rgba(178, 178, 178, 0); } }
@keyframes crWiggle { 0%, 55%, 100% { transform:rotate(0); } 8% { transform:rotate(-14deg); } 16% { transform:rotate(12deg); } 24% { transform:rotate(-9deg); } 32% { transform:rotate(6deg); } 40% { transform:rotate(0); } }
@keyframes crDot { 50% { opacity:.35; } }
@media (max-width:600px) {
  .cr-box { top:auto; right:10px; bottom:calc(10px + env(safe-area-inset-bottom)); left:10px; width:auto; }
  .cr-b { width:52px; height:52px; }
  .cr-live { bottom:calc(76px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .cr-card, .cr-b.yes, .cr-live, .cr-live i { animation:none; }
  .cr-rr { animation:none; box-shadow:0 0 0 6px rgba(178, 178, 178, .25); }
}
html[data-motion=less] .cr-card, html[data-motion=less] .cr-b.yes, html[data-motion=less] .cr-live, html[data-motion=less] .cr-live i { animation:none; }
html[data-motion=less] .cr-rr { animation:none; box-shadow:0 0 0 6px rgba(178, 178, 178, .25); }

/* ---------------------------------------------------------------- доработка 5: звонок в переписке, расшифровка голосовых */
.ch-call { display:flex; align-items:center; gap:12px; min-width:min(250px, var(--ch-w, 250px)); padding:3px 0 1px; }
.ch-call-ic { display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:50%; background:var(--ch-field); color:var(--ch-acc); }
.ch-call-ic .ic { width:20px; height:20px; }
.ch-m.mine .ch-call-ic { background:rgba(255, 255, 255, .13); color:var(--ch-mine-ink); }
.ch-call.t-ok .ch-call-ic { color:var(--ch-on); }
.ch-call.t-miss .ch-call-ic { color:var(--err); }
.ch-m.mine .ch-call.t-ok .ch-call-ic { color:#8fe0b4; }
.ch-m.mine .ch-call.t-miss .ch-call-ic { color:#ff9d93; }
.ch-call.t-ring .ch-call-ic, .ch-call.t-live .ch-call-ic { color:var(--ch-on); animation:chCallPulse 1.5s ease-in-out infinite; }
.ch-call-t { display:flex; flex:1; flex-direction:column; min-width:0; }
.ch-call-t b { font-weight:600; }
.ch-call-t small { color:var(--ch-meta); }
.ch-m.mine .ch-call-t small { color:var(--ch-mine-meta); }
.ch-call-a { display:flex; flex:none; gap:6px; }
.ch-m.mine .ch-call .small.ghost { border-color:rgba(255, 255, 255, .28); color:var(--ch-mine-ink); }
@keyframes chCallPulse { 0%, 100% { box-shadow:0 0 0 0 rgba(47, 179, 111, .45); } 55% { box-shadow:0 0 0 7px rgba(47, 179, 111, 0); } }
@container chmain (max-width:460px) {
  .ch-hacts [data-act=call-v] { display:none; }
  .ch-call { width:min(270px, calc(100cqi - 120px)); min-width:0; flex-wrap:wrap; }
  .ch-call-a { width:100%; justify-content:flex-end; }
}
.ch-stt { max-width:var(--ch-w, 520px); margin:6px 0 2px; }
.ch-stt-h { display:block; margin-bottom:2px; color:var(--ch-meta); font-size:11.5px; font-weight:600; letter-spacing:.02em; }
.ch-stt p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.ch-stt.cut p { display:-webkit-box; overflow:hidden; -webkit-line-clamp:5; -webkit-box-orient:vertical; }
.ch-stt small { color:var(--ch-meta); }
.ch-stt.err small { color:var(--err); }
.ch-m.mine .ch-stt-h, .ch-m.mine .ch-stt small { color:var(--ch-mine-meta); }
.ch-m.mine .ch-stt.err small { color:#ffb1a9; }
.ch-stt-b { margin:4px 0 0; padding:0; border:0; background:none; color:var(--ch-acc); font:inherit; font-size:12.5px; font-weight:600;
  text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.ch-stt.err .ch-stt-b { margin-left:8px; }
.ch-m.mine .ch-stt-b { color:var(--ch-mine-ink); }
.ch-stt.ask { margin-top:2px; }
.ch-stt.run { display:flex; align-items:center; gap:8px; }
.ch-stt-l { display:inline-flex; gap:3px; color:var(--ch-meta); }
.ch-m.mine .ch-stt-l { color:var(--ch-mine-meta); }
.ch-stt-l i { width:5px; height:5px; border-radius:50%; background:currentColor; animation:chDot 1s ease-in-out infinite; }
.ch-stt-l i:nth-child(2) { animation-delay:.15s; } .ch-stt-l i:nth-child(3) { animation-delay:.3s; }
.ch-stt.done.appear { animation:chSttIn .5s ease-out both; }
@keyframes chSttIn { from { opacity:0; transform:translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .ch-call-ic, .ch-stt-l i, .ch-stt.appear { animation:none !important; } }
html[data-motion=less] .ch-call-ic, html[data-motion=less] .ch-stt-l i, html[data-motion=less] .ch-stt.appear { animation:none !important; }
.ok-t { color:var(--ok); font-weight:600; }
#calls .row-inline { align-items:center; margin-top:6px; }
.ch-b:has(> .ch-call) > .ch-meta { position:static; display:flex; justify-content:flex-end; margin:3px 0 0; }

/* ---------------------------------------------------------------- доработка 5: анимации чата 269–278 */
.ch-it.lift { position:relative; z-index:2; animation:chItLift 1.6s ease-out; }
@keyframes chItLift { 0%, 25% { background:var(--ch-sel); box-shadow:0 8px 22px rgba(30, 34, 40, .12); } }
.ch-cnt, .ch-tabs .n, .ch-rx-c span { position:relative; overflow:hidden; }
.ch-roll { display:inline-block; }
.ch-roll.o { position:absolute; inset:0; display:grid; place-items:center; }
mark.ch-chg { padding:0 1px; border-radius:3px; background:rgba(255, 205, 64, .55); color:inherit; transition:background-color .9s ease; animation:chChg .5s ease-out; }
.ch-m.mine mark.ch-chg { background:rgba(255, 205, 64, .36); }
mark.ch-chg.off { background:transparent; }
@keyframes chChg { from { background:rgba(255, 205, 64, 0); } }
.ch-rt { position:relative; }
/* 1.0.31: штамп решения – в строке заголовка карточки (рядом с названием, текст его обтекает), под словом – дата и время */
.ch-stamp { flex:none; align-self:center; display:inline-flex; flex-direction:column; align-items:center; gap:1px; margin:7px 3px 7px 2px;
  padding:3px 9px 4px; border:2px solid currentColor; border-radius:8px; line-height:1.15; white-space:nowrap; opacity:.92;
  transform:rotate(-6deg); pointer-events:none; }
.ch-stamp b { font-size:12.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.ch-stamp small { font-size:10.5px; font-weight:700; letter-spacing:.02em; font-variant-numeric:tabular-nums; }
.ch-stamp.s-agree, .ch-stamp.s-approve { color:#2a8a55; }
.ch-stamp.s-return { color:#c0392b; }
.ch-stamp.s-recall { color:var(--ch-meta); }
.ch-m.mine .ch-stamp.s-agree, .ch-m.mine .ch-stamp.s-approve { color:#86dcaa; }
.ch-m.mine .ch-stamp.s-return { color:#ffa197; }
.ch-m.mine .ch-stamp.s-recall { color:var(--ch-mine-meta); }
/* узкая карточка (телефон): штамп переходит под название, к правому краю – название не сжимается в столбик */
.ch-ord-h:has(> .ch-stamp), .ch-ores-h:has(> .ch-stamp), .ch-rt-h:has(> .ch-stamp) { flex-wrap:wrap; }
.ch-ord-h:has(> .ch-stamp) > .ch-ord-tt, .ch-ores-h:has(> .ch-stamp) > .ch-ord-tt, .ch-rt-h:has(> .ch-stamp) > .ch-rt-tt { flex:1 1 170px; }
.ch-ord-h > .ch-stamp, .ch-ores-h > .ch-stamp, .ch-rt-h > .ch-stamp { margin-left:auto; }
.ch-rx-fly { position:fixed; left:0; top:0; z-index:9600; margin:-12px 0 0 -12px; font-size:22px; line-height:24px; pointer-events:none; }
.ch-fly-w { position:fixed; inset:0; z-index:9450; display:block; margin:0; padding:0; pointer-events:none; }
.ch-lift-w { z-index:9490; }
.ch-lift { box-shadow:0 16px 36px rgba(0, 0, 0, .28); }
.ch-lift-bg { position:fixed; inset:0; z-index:9480; background:rgba(22, 24, 28, .36); animation:chFade .18s ease-out both; }
.ch-swipe-ic { position:absolute; left:6px; top:50%; z-index:0; display:grid; place-items:center; width:30px; height:30px; margin-top:-15px; border-radius:50%;
  background:var(--ch-field); color:var(--ch-acc); opacity:0; pointer-events:none; transition:background .15s, color .15s; }
.ch-swipe-ic .ic { width:17px; height:17px; }
.ch-swipe-ic.hit { background:var(--ch-acc); color:#fff; }
@media (pointer:coarse) { .ch-msgs .ch-m { touch-action:pan-y pinch-zoom; } }
.ch-day.stuck.under span { opacity:0 !important; }
.ch-viewer.closing > :not(.ch-v-stage) { opacity:0; transition:opacity .15s; }
@media (prefers-reduced-motion: reduce) { .ch-it.lift, mark.ch-chg, .ch-lift-bg { animation:none; } }
html[data-motion=less] .ch-it.lift, html[data-motion=less] mark.ch-chg, html[data-motion=less] .ch-lift-bg { animation:none; }
.ch-b:has(> .ch-stt) > .ch-meta { position:static; display:flex; justify-content:flex-end; margin:3px 0 0; }

/* ---------- 1.0.28 (доработка 6): поручения (280–282), канал распоряжений (287), Web Push (296) ---------- */
.sidebar nav a.wpnav-ord { --wpn1:#a39d90; --wpn2:#6a655b; }
.navcnt.ordcnt.o-over { background:var(--err); }
.navcnt.ordcnt.o-day { background:#5c6470; }
.navcnt.ordcnt + .navcnt.ordcnt { margin-left:4px; }
html[data-menu=mini] body:not(.touring) .sidebar a.wpnav-ord .ordcnt.o-over:not([hidden]) ~ .ordcnt { display:none; }
.ord-st { display:inline-flex; align-items:center; flex:none; height:22px; padding:0 9px; border-radius:999px; font-size:12px; font-weight:650;
  white-space:nowrap; background:#ececec; color:#4a4a4a; }
.ord-st.s-new { background:#e3ecf8; color:#2a5d9f; }
.ord-st.s-work { background:#f4ecd2; color:#7a5d00; }
.ord-st.s-rework { background:#fbe6d6; color:#a24a14; }
.ord-st.s-check { background:#ebe7fb; color:#5440d6; }
.ord-st.s-done { background:#e5f1e9; color:#2f7a48; }
.ord-st.s-cancel { background:#ededed; color:#6f6f6f; }
.ord-st.s-over { background:#f8e4e2; color:#b3261e; }
.ord-due { display:inline; font-size:12.5px; color:var(--ink2); }
.ord-due b { font-weight:650; white-space:nowrap; }
.ord-due.soon { color:#8a6a00; }
.ord-due.over { color:#b3261e; }
.ord-due.off { color:var(--muted); }
.ord-left { font-weight:400; white-space:nowrap; }
/* страница поручений */
.ord-tabs { margin-bottom:12px; }
.ord-tools { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; margin-bottom:12px; }
.ord-tools input[type=search] { flex:1 1 240px; max-width:420px; margin:0; }
.ord-flts { display:flex; flex-wrap:wrap; gap:6px; }
.ord-fl { padding:6px 12px; border-radius:999px; border:1px solid #d4d4d4; background:#fff; font-size:13px; }
.ord-fl small { margin-left:6px; padding:0 6px; border-radius:999px; background:#ededed; color:var(--ink2); font-weight:600; }
.ord-fl.on { background:var(--dark); border-color:var(--dark); color:#fff; }
.ord-fl.on small { background:rgba(255,255,255,.22); color:#fff; }
.ord-fl.red:not(.on) small { background:#f8e4e2; color:#b3261e; }
.ord-list { display:flex; flex-direction:column; gap:8px; transition:opacity .2s; }
.ord-list.loading { opacity:.55; }
.ord-it { display:grid; grid-template-columns:10px minmax(0, 1fr) auto; gap:12px; align-items:center; padding:12px 16px; border:1px solid var(--line);
  border-left:4px solid #b9b9b9; border-radius:14px; background:var(--card); color:var(--ink); text-decoration:none; box-shadow:var(--shadow);
  transition:background .15s, box-shadow .15s; }
.ord-it:hover { background:var(--soft); }
.ord-it.s-new { border-left-color:#2a5d9f; } .ord-it.s-work { border-left-color:#c9a227; } .ord-it.s-rework { border-left-color:#d06a28; }
.ord-it.s-check { border-left-color:#6b58e0; } .ord-it.s-done { border-left-color:#3f9a62; } .ord-it.s-over { border-left-color:#c0392b; }
.ord-it.s-cancel { border-left-color:#c4c4c4; opacity:.8; }
.ord-it-dot { width:9px; height:9px; border-radius:50%; }
.ord-it.new .ord-it-dot { background:#2a5d9f; box-shadow:0 0 0 3px rgba(42,93,159,.18); }
.ord-it.new .ord-it-t { font-weight:750; }
.ord-it-b { display:flex; flex-direction:column; gap:3px; min-width:0; }
.ord-it-r1 { display:flex; align-items:center; gap:8px; min-width:0; }
.ord-it-no { flex:none; font-size:12px; color:var(--muted); font-weight:650; }
.ord-it-t { min-width:0; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ord-it-r2 { display:flex; flex-wrap:wrap; gap:2px 12px; font-size:12.5px; color:var(--ink2); }
.ord-it-by, .ord-it-cl { color:var(--muted); }
.ord-it-rep .ic, .od-rep-ic .ic, .ord-tpl-ic .ic, .od-tag .ic { width:14px; height:14px; vertical-align:-2px; color:var(--muted); }
.ord-it-ev { font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ord-it-d { justify-self:end; text-align:right; max-width:260px; }
@media (max-width:700px) {
  .ord-it { grid-template-columns:10px minmax(0, 1fr); gap:6px 10px; padding:11px 12px; }
  .ord-it-d { grid-column:2; justify-self:start; text-align:left; }
  .ord-it-r1 { flex-wrap:wrap; }
  .ord-it-t { white-space:normal; }
}
.ord-tpl-top { display:flex; justify-content:flex-end; }
.ord-tpl { margin-bottom:0; }
.ord-tpl.off { opacity:.72; }
.ord-tpl-h { display:flex; align-items:center; gap:10px; }
.ord-tpl-h b { flex:1; min-width:0; overflow-wrap:anywhere; }
.ord-tpl-r { margin:6px 0 2px; font-weight:600; color:var(--ink2); }
.ord-tpl-a { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.ord-eff-h h2 { margin-bottom:4px; }
.ord-eff-h p { margin:0; max-width:900px; }
.ord-eff-p { margin:12px 0 10px; }
.ord-eff-t td, .ord-eff-t th { padding:8px 10px; }
.ord-eff-t .c { text-align:center; }
.ord-eff-t td.ok { color:#2f7a48; font-weight:650; } .ord-eff-t td.late { color:#8a6a00; } .ord-eff-t td.over { color:#b3261e; font-weight:650; }
.ord-eff-t tr.tot td { font-weight:700; border-top:2px solid var(--line); }
.ord-pct { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
.ord-pct-b { width:90px; height:8px; border-radius:999px; background:#ececec; overflow:hidden; }
.ord-pct-b i { display:block; height:100%; border-radius:inherit; }
.ord-pct-b i.g { background:#3f9a62; } .ord-pct-b i.y { background:#c9a227; } .ord-pct-b i.r { background:#c0392b; }
/* страница поручения */
.od1 { max-width:1000px; }
.od1-top { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:8px; }
.od1-back { margin-right:4px; font-size:13px; color:var(--muted); text-decoration:none; }
.od1-back:hover { color:var(--ink); }
.od1-no { font-weight:700; color:var(--muted); }
.od-tag { display:inline-flex; align-items:center; gap:4px; height:22px; padding:0 9px; border-radius:999px; background:#efefef; color:var(--ink2); font-size:12px; }
.od1-t { font-size:22px; margin:2px 0 8px; overflow-wrap:anywhere; }
.od1-text { white-space:pre-wrap; margin:0 0 12px; color:var(--ink2); overflow-wrap:anywhere; }
.od1-meta { display:grid; grid-template-columns:max-content minmax(0, 1fr); gap:6px 16px; margin:0 0 14px; font-size:14px; }
.od1-meta dt { color:var(--muted); }
.od1-meta dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.od-late { color:#8a6a00; }
.od1-acts { display:flex; flex-wrap:wrap; gap:8px; }
.od1-sec h2 { display:flex; align-items:baseline; gap:8px; }
.od-prog { display:block; height:6px; border-radius:999px; background:#ececec; overflow:hidden; margin:2px 0 10px; }
.od-prog i { display:block; height:100%; border-radius:inherit; background:#5f646b; transition:width .3s; }
.od-cl { display:flex; flex-direction:column; gap:7px; }
.od-cl > small { margin-bottom:2px; }
.od-cli { display:flex; align-items:flex-start; gap:9px; margin:0; font-size:14px; font-weight:400; color:var(--ink); overflow-wrap:anywhere; }
.od-cli input { margin-top:3px; flex:none; }
.od-cli.d > span { text-decoration:line-through; color:var(--muted); }
.od-res { position:relative; padding:12px 14px; border:1px solid var(--line); border-left:4px solid #6b58e0; border-radius:14px; background:var(--soft); margin-bottom:10px; }
.od-res.d-accept { border-left-color:#3f9a62; } .od-res.d-return { border-left-color:#c0392b; }
.od-res-h { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; }
.od-res-h small { color:var(--muted); }
.od-res-d { margin-left:auto; font-size:12.5px; font-weight:650; }
.od-res-d.d-accept { color:#2f7a48; } .od-res-d.d-return { color:#b3261e; } .od-res-d.d-wait { color:#5440d6; }
.od-res-t { margin-top:6px; white-space:pre-wrap; overflow-wrap:anywhere; }
.od-res-f { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.od-rfig { margin:0; width:150px; }
.od-rf { position:relative; display:grid; place-items:center; width:150px; height:112px; border-radius:12px; overflow:hidden; background:#dfe1e4; color:var(--ink2);
  text-decoration:none; }
.od-rf img { width:100%; height:100%; object-fit:cover; }
.od-rf.k-doc { background:#eef0f3; border:1px solid var(--line); }
.od-rf-ic { font-weight:800; font-size:13px; }
.od-rf small { position:absolute; left:6px; right:6px; bottom:6px; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.od-rf-play { position:absolute; display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:rgba(0,0,0,.45); color:#fff; font-size:14px; }
.od-rfig figcaption { display:flex; flex-direction:column; gap:3px; margin-top:5px; }
.od-chk { align-self:flex-start; font-size:11.5px; line-height:1.3; padding:2px 7px; border-radius:7px; background:#e5f1e9; color:#2f7a48; }
.od-chk.l-warn { background:#f4ecd2; color:#7a5d00; } .od-chk.l-bad { background:#f8e4e2; color:#b3261e; }
.od-res-c { margin-top:8px; font-size:13.5px; } .od-res-c.d-return span { color:#b3261e; }
.od-nores { margin:0; }
.od-grp { display:flex; flex-wrap:wrap; gap:8px; }
.od-gi { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border:1px solid var(--line); border-radius:12px; background:var(--soft); color:var(--ink); text-decoration:none; }
.od1-log summary { cursor:pointer; font-weight:650; }
.od1-log ol { margin:10px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px; font-size:13.5px; }
.od1-log li { display:flex; gap:10px; }
.od1-log time { flex:none; width:86px; color:var(--muted); }
.od-viewer { position:fixed; inset:0; z-index:9700; display:grid; grid-template-rows:minmax(0, 1fr) auto; background:rgba(12,12,12,.94); color:#fff; }
.od-v-stage { display:grid; place-items:center; min-height:0; padding:18px 64px 8px; }
.od-v-stage img, .od-v-stage video { max-width:100%; max-height:100%; border-radius:10px; }
.od-v-cap { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; padding:10px 18px 16px; font-size:13px; }
.od-v-cap > span { color:#d0d0d0; }
.od-v-x, .od-v-p, .od-v-n { position:absolute; display:grid; place-items:center; width:42px; height:42px; padding:0; border:0; border-radius:50%;
  background:rgba(255,255,255,.14); color:#fff; font-size:22px; }
.od-v-x { top:14px; right:14px; } .od-v-p { left:12px; top:calc(50% - 21px); } .od-v-n { right:12px; top:calc(50% - 21px); }
/* окна: новое поручение, результат */
.ord-modal .odlg { width:min(660px, 100%); padding:0; }
.od-h { position:sticky; top:0; z-index:3; display:flex; align-items:center; gap:12px; padding:14px 16px 12px 18px; border-bottom:1px solid var(--line); background:#fff; }
.od-ic { display:grid; place-items:center; width:38px; height:38px; flex:none; border-radius:12px; background:#ecebe8; color:#5c584f; }
.od-ic .ic { width:21px; height:21px; }
.od-ht { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; }
.od-ht b { font-size:16.5px; overflow-wrap:anywhere; }
.od-ht small { color:var(--muted); font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.od-x { font-size:16px; }
.od-f { display:flex; flex-direction:column; gap:12px; padding:14px 18px 18px; }
.od-row { display:grid; grid-template-columns:112px minmax(0, 1fr); gap:6px 12px; align-items:start; margin:0; }
.od-row[hidden] { display:none; }
.od-l { display:flex; align-items:center; gap:4px; padding-top:9px; font-size:13px; font-weight:600; color:var(--ink2); }
.od-l em { color:var(--err); font-style:normal; }
.od-row input, .od-row textarea, .od-row select { margin-top:0; }
.od-f input:not([type=checkbox]):not([type=radio]), .od-f textarea, .od-f select { font-size:14px; }
@media (max-width:560px) { .od-row { grid-template-columns:1fr; } .od-l { padding-top:0; } }
.od-ctx { display:flex; flex-direction:column; gap:2px; padding:9px 12px; border-left:3px solid #b2b2b2; border-radius:10px; background:var(--soft); font-size:13px; overflow-wrap:anywhere; }
.od-ctx small { color:var(--muted); }
.od-to { position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-height:42px; padding:5px; border:1px solid #cfcfcf; border-radius:10px; background:#fff; }
.od-to-chips { display:contents; }
.od-chip { display:inline-flex; align-items:center; gap:5px; max-width:100%; padding:3px 4px 3px 10px; border-radius:999px; background:#ececec; font-size:13px; font-weight:600; }
.od-chip small { font-weight:500; color:var(--muted); }
.od-chip.k-r { background:#e7ecf2; }
.od-chip button { padding:2px 6px; border:0; border-radius:999px; background:none; color:var(--muted); font-size:12px; }
.od-none { padding:0 6px; font-size:13px; }
.od-add { padding:5px 11px; border-radius:999px; border:1px dashed #b9b9b9; background:none; font-size:13px; }
.od-pick { position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:5; display:flex; flex-direction:column; gap:8px; max-height:340px; margin:0; padding:10px;
  box-shadow:0 18px 40px rgba(0,0,0,.18); }
.od-pick[hidden] { display:none; }
.od-pick input { margin:0; }
.od-plist { display:flex; flex-direction:column; gap:2px; min-height:0; overflow:auto; }
.od-ph { margin:8px 4px 2px; font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.od-pi { display:flex; align-items:center; justify-content:flex-start; gap:10px; width:100%; padding:7px 9px; border:0; border-radius:10px; background:none; text-align:left; }
.od-pi:hover { background:var(--soft); }
.od-pi.on { background:#ececec; }
.od-ck { display:grid; place-items:center; flex:none; width:18px; height:18px; border:1.5px solid #9a9a9a; border-radius:6px; }
.od-pi.on .od-ck { background:var(--dark); border-color:var(--dark); }
.od-pi.on .od-ck::after { content:''; width:9px; height:5px; border:2px solid #fff; border-top:0; border-right:0; transform:translateY(-1px) rotate(-45deg); }
.od-pt { display:flex; flex-direction:column; min-width:0; line-height:1.3; }
.od-pt small { color:var(--muted); font-size:12px; }
.od-warn { display:grid; place-items:center; flex:none; width:20px; height:20px; margin-left:auto; border-radius:50%; background:#f4ecd2; color:#7a5d00; font-size:12px; font-weight:800; }
.od-all { align-self:flex-start; }
.od-pnone { padding:8px; }
.od-pick-a { display:flex; justify-content:flex-end; }
.od-due { display:flex; flex-direction:column; gap:6px; }
.od-due input { max-width:220px; }
.od-quick { display:flex; flex-wrap:wrap; gap:5px; }
.od-need { display:flex; flex-direction:column; gap:5px; padding-top:7px; }
.od-rad { display:flex; align-items:center; gap:8px; margin:0; font-size:14px; font-weight:400; color:var(--ink); }
.od-rad input { width:16px; height:16px; margin:0; accent-color:var(--dark); }
.od-items { display:flex; flex-direction:column; gap:6px; }
.od-item { display:flex; align-items:center; gap:8px; }
.od-ib { flex:none; width:14px; height:14px; border:1.5px solid #9a9a9a; border-radius:4px; }
.od-additem { align-self:flex-start; margin-top:4px; }
.od-rep { display:flex; flex-direction:column; gap:8px; margin-top:8px; padding:10px 12px; border-radius:12px; background:var(--soft); }
.od-rep[hidden], .od-rk-wd[hidden], .od-rk-md[hidden] { display:none; }
.od-repl { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; font-size:14px; }
.od-repl select { width:auto; }
.od-repl input.tm { width:82px; }
.od-wd { display:flex; flex-wrap:wrap; gap:4px; }
.od-wdi { position:relative; margin:0; }
.od-wdi input { position:absolute; opacity:0; pointer-events:none; }
.od-wdi span { display:grid; place-items:center; width:34px; height:32px; border-radius:9px; border:1px solid #cfcfcf; background:#fff; font-size:13px; cursor:pointer; }
.od-wdi input:checked + span { background:var(--dark); border-color:var(--dark); color:#fff; }
.od-wdi input:focus-visible + span { outline:2px solid #7a7a7a; outline-offset:1px; }
.od-err { padding:9px 12px; border-radius:10px; background:#f8e4e2; color:#b3261e; font-size:13.5px; }
.od-err[hidden] { display:none; }
.od-acts { display:flex; flex-wrap:wrap; gap:8px; }
.od-needline { padding:8px 12px; border-radius:10px; background:var(--soft); font-size:13.5px; }
.od-needline.n-photo, .od-needline.n-doc { background:#f4ecd2; }
.od-ret { color:#b3261e; }
.od-attach-r { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; }
.od-attach { display:inline-flex; align-items:center; gap:8px; }
.od-attach .ic { width:17px; height:17px; }
.od-files { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.od-files:empty { display:none; }
.od-ft { display:grid; grid-template-columns:46px minmax(0, 1fr) auto; gap:10px; align-items:center; padding:6px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.od-ft.ok { border-color:#bcdcc6; } .od-ft.bad { border-color:#e8b4ae; }
.od-ft-pic { display:grid; place-items:center; width:46px; height:46px; border-radius:9px; background:#e6e7ea center / cover no-repeat; font-size:11px; font-weight:800; color:var(--ink2); }
.od-ft-b { display:flex; flex-direction:column; min-width:0; line-height:1.3; }
.od-ft-b b { font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.od-ft-st { color:var(--muted); font-size:12px; }
.od-ft.bad .od-ft-st { color:#b3261e; }
.od-ft-p { height:4px; margin-top:4px; border-radius:999px; background:#ececec; overflow:hidden; }
.od-ft-bar { display:block; width:0; height:100%; background:#5f646b; transition:width .2s; }
.od-ft.ok .od-ft-p { display:none; }
.odlg.drop { outline:3px dashed #9a9a9a; outline-offset:-8px; }
/* карточка сообщения: поручения по нему */
.msg-ords h2 { display:flex; align-items:center; gap:8px; }
.msg-ord { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:2px 10px; align-items:center; padding:8px 10px; border-radius:12px; color:var(--ink); text-decoration:none; }
.msg-ord:hover { background:var(--soft); }
.msg-ord small { grid-column:2; }
.msg-ord-t { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* чат: карточка поручения и результат */
.ch-ord, .ch-ores { position:relative; }
.ch-ord { width:min(520px, calc(100cqi - 96px)); max-width:100%; padding:12px 14px; border:1px solid var(--ch-line); border-left:4px solid #a39d90; border-radius:16px;
  border-bottom-left-radius:6px; background:var(--card); color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.05), 0 8px 18px -12px rgba(0,0,0,.2); overflow-wrap:anywhere; }
.ch-m.mine .ch-ord { border-bottom-left-radius:16px; border-bottom-right-radius:6px; }
.ch-ord.s-new { border-left-color:#2a5d9f; } .ch-ord.s-work { border-left-color:#c9a227; } .ch-ord.s-rework { border-left-color:#d06a28; }
.ch-ord.s-check { border-left-color:#6b58e0; } .ch-ord.s-done { border-left-color:#3f9a62; } .ch-ord.s-cancel { border-left-color:#c4c4c4; }
.ch-ord.s-over { border-left-color:#c0392b; }
.ch-ord-h { display:flex; align-items:center; gap:11px; min-width:0; }
.ch-ord-ic { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:10px; background:var(--ch-field); color:var(--ink2); }
.ch-ord-ic .ic { width:19px; height:19px; }
.ch-ord-tt { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; }
.ch-ord-tt small { color:var(--muted); font-size:12px; }
.ch-ord-tt b { font-size:14.5px; }
.ch-ord-m { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; margin-top:8px; font-size:13px; }
.ch-ord-to { color:var(--ink2); }
.ch-ord-cl { display:flex; align-items:center; gap:8px; margin-top:8px; }
.ch-ord-cl .od-prog { flex:1; max-width:180px; margin:0; }
.ch-ord-cl small { color:var(--muted); }
.ch-ord-res { margin-top:8px; padding:6px 10px; border-radius:10px; background:var(--ch-field); font-size:13px; }
.ch-ord-res.ok { background:#e5f1e9; color:#2f7a48; } .ch-ord-res.wait { background:#ebe7fb; color:#4a37c0; }
.ch-ord-res.ret { background:#fbe6d6; color:#a24a14; } .ch-ord-res.new { background:#e3ecf8; color:#2a5d9f; } .ch-ord-res.off { color:var(--muted); }
.ch-ores { margin:-2px -2px 8px; padding:9px 11px; border-radius:12px; border-left:3px solid #6b58e0; background:var(--ch-quote); }
.ch-m.mine .ch-ores { background:var(--ch-mine-quote); }
.ch-ores.d-accept { border-left-color:#3f9a62; } .ch-ores.d-return { border-left-color:#c0392b; }
.ch-ores-h { display:flex; align-items:center; gap:10px; }
.ch-ores-h .ch-ord-ic { width:30px; height:30px; }
.ch-m.mine .ch-ores .ch-ord-ic { background:rgba(255,255,255,.14); color:var(--ch-mine-ink); }
.ch-m.mine .ch-ores .ch-ord-tt small { color:var(--ch-mine-meta); }
.ch-ores-d { margin-top:6px; font-size:12.5px; }
.ch-ores-d.d-accept b { color:#2a8a55; } .ch-ores-d.d-return b { color:#c0392b; } .ch-ores-d.d-wait b { color:#5440d6; }
.ch-m.mine .ch-ores-d.d-accept b { color:#9ee0b6; } .ch-m.mine .ch-ores-d.d-return b { color:#ffb4aa; } .ch-m.mine .ch-ores-d.d-wait b { color:#d6ceff; }
.ch-ores-t { display:block; margin-top:2px; font-style:italic; }
.ch-ores .ch-stamp { margin-block:5px; padding:2px 8px 3px; }
.ch-ores .ch-stamp b { font-size:11.5px; }
.ch-ores .ch-stamp small { font-size:10px; }
.ch-ores .ch-card-a { margin-top:8px; }
/* чат: канал распоряжений */
.ch-av.t-chan { font-size:20px; background:linear-gradient(135deg, #c2a878, #8f7446); }
.ch-ack-b { flex:none; height:21px; padding:0 7px; border-radius:999px; background:#f4ecd2; color:#7a5d00; font-size:11.5px; font-weight:700; line-height:21px; }
.ch-ack { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-top:8px; }
.ch-ack-go { padding:5px 13px; }
.ch-ack-me { font-size:12.5px; font-weight:600; color:#2a8a55; }
.ch-m.mine .ch-ack-me { color:#9ee0b6; }
.ch-ack-n { display:inline-flex; align-items:center; gap:8px; padding:3px 10px; border:0; border-radius:999px; background:var(--ch-field); color:var(--ink2); font-size:12px; }
.ch-m.mine .ch-ack-n { background:rgba(255,255,255,.14); color:var(--ch-mine-ink); }
.ch-ack-bar { width:54px; height:5px; border-radius:999px; background:rgba(0,0,0,.12); overflow:hidden; }
.ch-m.mine .ch-ack-bar { background:rgba(255,255,255,.2); }
.ch-ack-bar i { display:block; height:100%; border-radius:inherit; background:#3f9a62; }
.ch-ack-n.all { color:#2a8a55; }
.ch-chan-foot { display:flex; align-items:center; gap:10px; padding:10px 14px; }
.ch-chan-foot[hidden] { display:none; }
.ch-chan-foot > span:nth-child(2) { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; }
.ch-chan-foot small { color:var(--muted); }
.ch-chan-ic .ic { width:22px; height:22px; color:#8f7446; }
.ch-acks { display:grid; grid-template-columns:1fr 1fr; gap:14px; max-height:52vh; overflow:auto; }
@media (max-width:600px) { .ch-acks { grid-template-columns:1fr; } }
.ch-acks ul { display:flex; flex-direction:column; gap:4px; margin:6px 0 0; padding:0; list-style:none; }
.ch-acks-h { font-size:13px; }
.ch-ackp { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:0 8px; padding:6px 9px; border-radius:10px; background:var(--ch-field); }
.ch-ackp small { grid-column:1; color:var(--muted); font-size:11.5px; }
.ch-ackp time { grid-row:1 / 3; grid-column:2; align-self:center; font-size:12px; color:#2a8a55; }
.ch-dlg-a { display:flex; justify-content:flex-end; margin-top:12px; }
/* уведомления при закрытой программе */
.push-row { display:flex; align-items:center; gap:10px; padding:10px 14px; border-top:1px solid var(--line); }
.push-ic .ic { width:20px; height:20px; color:var(--ink2); }
.push-row[data-k=on] .push-ic .ic { color:#2f7a48; }
.push-t { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; }
.push-t small { color:var(--muted); font-size:12px; }
.push-kinds { display:flex; flex-direction:column; gap:6px; margin:10px 0; }
.push-dlg .dupbox { width:min(480px, 100%); }
.push-dlg .actions { display:flex; flex-wrap:wrap; gap:6px; }
.ch-snd-push .push-row { padding:4px 0 0; border-top:0; }
@media (prefers-reduced-motion: reduce) { .od-prog i, .od-ft-bar, .ord-list { transition:none; } }

/* ---------------------------------------------------------------- 1.0.28 (доработка 7): доска, правила, участники поручений,
   кольцо срока, чек-лист, опросы, видеосообщения (302–306, 311–315) */
/* 311: кольцо срока */
.ord-ring { position:relative; display:inline-grid; place-items:center; flex:none; width:26px; height:26px; color:#5f646b; }
.ord-ring.big { width:36px; height:36px; }
.ord-ring .ordr-svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); overflow:visible; }
.ord-ring .ordr-bg { fill:none; stroke:#e3e3e3; stroke-width:2.2; }
.ord-ring .ordr-fg { fill:none; stroke:#2a5d9f; stroke-width:2.4; stroke-linecap:round; transition:stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1), stroke .4s; }
.ord-ring .ordr-ic { position:relative; display:grid; place-items:center; }
.ord-ring .ordr-ic .ic { width:13px; height:13px; }
.ord-ring.big .ordr-ic .ic { width:17px; height:17px; }
.ord-ring.r-soon { color:#b7791f; }
.ord-ring.r-soon .ordr-fg { stroke:#d4900f; animation:ordBreath 1.6s ease-in-out infinite; }
.ord-ring.r-over { color:#c0392b; }
.ord-ring.r-over .ordr-fg { stroke:#c0392b; }
.ord-ring.r-over .ordr-svg { animation:ordOverPulse 2.4s ease-in-out infinite; }
.ord-ring.r-check { color:#6b58e0; }
.ord-ring.r-check .ordr-fg { stroke:#6b58e0; opacity:.7; }
.ord-ring.r-done { color:#3f9a62; }
.ord-ring.r-done .ordr-fg { stroke:#3f9a62; }
.ord-ring.r-none .ordr-fg { stroke:transparent; }
@keyframes ordBreath { 0%, 100% { stroke-width:2.4; opacity:1; } 50% { stroke-width:3.8; opacity:.5; } }
@keyframes ordOverPulse { 0%, 100% { filter:none; } 50% { filter:drop-shadow(0 0 3px rgba(192,57,43,.65)); } }
.ord-it-r1 .ord-ring { width:22px; height:22px; }
.ord-it-r1 .ord-ring .ordr-ic .ic { width:11px; height:11px; }
.ch-ord-h .ord-ring { width:34px; height:34px; }
.ch-ord-h .ord-ring .ordr-ic .ic { width:16px; height:16px; }
.od1-top .ord-ring { margin-right:2px; }
.ord-esc { flex:none; display:inline-flex; align-items:center; gap:3px; padding:1px 8px; border-radius:999px; background:#fdecea; color:#a93226;
  font-size:11.5px; font-weight:650; white-space:nowrap; }
.ord-it-pp { color:var(--muted); }
/* 312: чек-лист – зачёркивание проводится линией, полоска дорастает */
.od-cli-t { background:linear-gradient(currentColor, currentColor) no-repeat 0 58% / 0 1.6px; -webkit-box-decoration-break:clone; box-decoration-break:clone;
  transition:background-size .42s cubic-bezier(.2,.8,.2,1), color .3s; }
.od-cli.d > .od-cli-t { text-decoration:none; background-size:100% 1.6px; color:var(--muted); }
.od-cl-n b { display:inline-block; min-width:.6em; }
.od-prog i { transition:width .55s cubic-bezier(.2,.8,.2,1); }
.od-send.od-ready { box-shadow:0 0 0 3px rgba(63,154,98,.3); }
/* 315: полоса состояния у карточки на странице поручения */
.od1-h { border-left:4px solid transparent; }
.od1-h.s-new { border-left-color:#2a5d9f; } .od1-h.s-work { border-left-color:#c9a227; } .od1-h.s-rework { border-left-color:#d06a28; }
.od1-h.s-check { border-left-color:#6b58e0; } .od1-h.s-done { border-left-color:#3f9a62; } .od1-h.s-over { border-left-color:#c0392b; }
.od1-h.s-cancel { border-left-color:#c4c4c4; }
/* 314: карточка раскрывается в страницу поручения */
.ord-it, .okb-card, .od1 { view-transition-class:morph; }
.ch-drawer.morph .ch-dr-in { transition:none; transform:none; }
/* 305: соисполнители и наблюдатели */
.od-ppl { display:grid; gap:8px; }
.od-ppl-r { position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.od-ppl-k { min-width:118px; font-size:12.5px; font-weight:600; color:var(--muted); }
.od-chip { display:inline-flex; align-items:center; gap:3px; padding:3px 4px 3px 10px; border:1px solid var(--line); border-radius:999px; background:var(--soft); font-size:13px; }
.od-chip.me { border-color:#b2b2b2; font-weight:600; }
.od-chip-x { display:grid; place-items:center; width:20px; height:20px; min-height:0; padding:0; border:0; border-radius:50%; background:none; color:var(--muted); font-size:11px; cursor:pointer; }
.od-chip-x:hover { background:var(--line); color:var(--ink); }
.od-ppl-add { padding:3px 10px; }
.od-upick { position:absolute; z-index:40; top:calc(100% + 4px); left:0; display:grid; gap:6px; width:100%; max-width:340px; padding:8px;
  box-shadow:0 12px 32px rgba(0,0,0,.16); }
.od-upick input { margin:0; }
.od-upick-l { display:grid; max-height:260px; overflow:auto; }
.od-upick-i { display:flex; flex-direction:column; align-items:flex-start; gap:1px; width:100%; height:auto; min-height:0; padding:7px 9px; border:0; border-radius:8px;
  background:none; color:var(--ink); font-size:13.5px; font-weight:500; line-height:1.3; text-align:left; white-space:normal; cursor:pointer; }
.od-upick-i small { font-size:12px; }
.od-upick-i:hover, .od-upick-i:focus-visible { background:var(--soft); }
.od-upick-no { margin:6px; }
.od-ppl-sec p { margin:0 0 10px; }
/* 303: вид «Доска» */
.ord-vsw { display:inline-flex; padding:2px; border:1px solid var(--line); border-radius:10px; background:var(--soft); }
.ord-vb { min-height:0; padding:5px 12px; border:0; border-radius:8px; background:none; color:var(--ink2); font-size:13px; font-weight:500; cursor:pointer; }
.ord-vb.on { background:#fff; color:var(--ink); font-weight:650; box-shadow:0 1px 3px rgba(0,0,0,.1); }
.okb { display:grid; grid-template-columns:repeat(4, minmax(236px, 1fr)); gap:12px; align-items:start; overflow-x:auto; padding:2px 2px 8px;
  scroll-snap-type:x proximity; }
.okb-col { display:flex; flex-direction:column; gap:8px; min-height:180px; padding:10px; border:1px solid var(--line); border-radius:16px; background:var(--soft);
  scroll-snap-align:start; transition:background .2s, box-shadow .2s, opacity .2s; }
.okb-h { display:flex; align-items:center; justify-content:space-between; padding:0 2px 2px; }
.okb-h b { font-size:13.5px; }
.okb-h small { min-width:24px; padding:1px 8px; border-radius:999px; background:#fff; color:var(--ink2); font-weight:650; text-align:center; }
.okb-list { display:flex; flex-direction:column; gap:8px; }
.okb-empty { margin:6px 2px; font-size:12.5px; }
.okb-card { position:relative; display:flex; flex-direction:column; gap:5px; padding:10px 12px; border:1px solid var(--line); border-left:4px solid #c4c4c4;
  border-radius:12px; background:#fff; color:var(--ink); text-decoration:none; box-shadow:0 1px 2px rgba(0,0,0,.05); user-select:none; -webkit-user-select:none;
  transition:box-shadow .2s; }
.okb-card:hover { box-shadow:0 6px 18px rgba(0,0,0,.09); text-decoration:none; }
.okb-card.s-new { border-left-color:#2a5d9f; } .okb-card.s-work { border-left-color:#c9a227; } .okb-card.s-rework { border-left-color:#d06a28; }
.okb-card.s-check { border-left-color:#6b58e0; } .okb-card.s-done { border-left-color:#3f9a62; } .okb-card.s-over { border-left-color:#c0392b; }
.okb-card.new { box-shadow:0 0 0 2px rgba(42,93,159,.18); }
.okb-r1 { display:flex; align-items:center; gap:6px; min-height:24px; }
.okb-r1 .ord-ring { width:22px; height:22px; }
.okb-r1 .ord-ring .ordr-ic .ic { width:11px; height:11px; }
.okb-r1 .ord-st { font-size:11px; }
.okb-grip { display:grid; place-items:center; width:28px; height:28px; margin-left:auto; border-radius:8px; color:#9aa0a6; cursor:grab; touch-action:none; }
.okb-grip svg { width:16px; height:16px; }
.okb-card:hover .okb-grip { background:var(--soft); color:var(--ink2); }
.okb-t { font-size:14px; font-weight:600; line-height:1.3; overflow-wrap:anywhere; }
.okb-to { font-size:12.5px; color:var(--ink2); }
.okb-cl { display:flex; align-items:center; gap:8px; }
.okb-cl .od-prog { flex:1; margin:0; }
.okb-cl small { color:var(--muted); }
.okb-d { font-size:12.5px; }
.okb.dragging .okb-col:not(.can) { opacity:.55; }
.okb-col.can { box-shadow:inset 0 0 0 2px rgba(42,93,159,.25); }
.okb-col.over { background:#e8f0fa; box-shadow:inset 0 0 0 2px #2a5d9f; }
.okb-card.okb-src { opacity:.3; }
.okb-ghost { position:fixed; z-index:1000; margin:0; pointer-events:none; transform:rotate(-2deg) scale(1.03); box-shadow:0 18px 40px rgba(0,0,0,.22); }
@media (max-width:900px) {
  .okb { grid-template-columns:repeat(4, minmax(260px, 82vw)); }
}
/* 304: правила */
.ord-rule { display:grid; gap:8px; padding:14px 16px; margin-bottom:10px; }
.ord-rule.off { opacity:.72; }
.ord-rule-h { display:flex; align-items:center; gap:10px; }
.ord-rule-h b { flex:1; min-width:0; }
.ord-rule-ic { display:grid; place-items:center; flex:none; width:30px; height:30px; border-radius:9px; background:#fdecea; color:#c0392b; }
.ord-rule-on { display:inline-flex; align-items:center; gap:6px; margin:0; color:var(--ink2); font-size:12.5px; font-weight:500; white-space:nowrap; }
.ord-rule-on input { margin:0; }
.ord-rule-d { display:grid; grid-template-columns:110px minmax(0, 1fr); gap:4px 12px; margin:0; font-size:13.5px; }
.ord-rule-d dt { color:var(--muted); }
.ord-rule-d dd { margin:0; }
.ord-rules-top { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; }
.ord-rules-top p { flex:1; min-width:240px; margin:0; }
.od-rwhen { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.od-rwhen select { width:auto; margin:0; }
.od-rn { width:84px; margin:0; }
.od-rregs { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.od-rregs .od-wdi, .od-rregs .od-wdi span { width:auto; min-width:34px; }
.od-rregs .od-wdi span { padding:0 7px; }
.od-rwho { margin-bottom:6px; }
@media (max-width:600px) { .ord-rule-d { grid-template-columns:1fr; } .od-ppl-k { min-width:0; width:100%; } }
/* 302: опросы в чате */
.ch-poll { display:grid; gap:10px; width:min(360px, 68vw); }
.ch-poll-h { display:flex; align-items:flex-start; gap:10px; }
.ch-poll-ic { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:10px; background:#eef2f7; color:#2a5d9f; }
.ch-poll-ic svg { width:18px; height:18px; }
.ch-poll-tt { display:grid; gap:2px; min-width:0; }
.ch-poll-tt small { color:var(--muted); font-size:12px; }
.ch-poll-tt b { font-size:14.5px; line-height:1.35; overflow-wrap:anywhere; }
.ch-poll-o { display:grid; gap:6px; }
.ch-po { position:relative; display:flex; align-items:center; gap:10px; width:100%; min-height:40px; padding:8px 12px; overflow:hidden; border:1px solid var(--line);
  border-radius:11px; background:#fff; color:var(--ink); font:inherit; font-size:14px; font-weight:500; text-align:left; cursor:pointer; transition:border-color .2s; }
.ch-po:hover:not(:disabled) { border-color:#b2b2b2; }
.ch-po:disabled { cursor:default; opacity:1; }
.ch-po-bar { position:absolute; inset:0; pointer-events:none; }
.ch-po-bar i { display:block; width:0; height:100%; background:#edf1f6; }
.ch-po.top .ch-po-bar i { background:#e3ecf7; }
.ch-po.me .ch-po-bar i { background:#d9e6f6; }
.ch-po-mk { position:relative; flex:none; width:18px; height:18px; border:2px solid #b2b2b2; border-radius:50%; background:#fff; transition:border-color .2s, background .2s, box-shadow .2s; }
.ch-poll.multi .ch-po-mk { border-radius:5px; }
.ch-po.me .ch-po-mk, .ch-po.pick .ch-po-mk { border-color:#2a5d9f; background:#2a5d9f; box-shadow:inset 0 0 0 3px #fff; }
.ch-poll.multi .ch-po.me .ch-po-mk, .ch-poll.multi .ch-po.pick .ch-po-mk { box-shadow:none; }
.ch-poll.multi .ch-po.me .ch-po-mk::after, .ch-poll.multi .ch-po.pick .ch-po-mk::after { content:"✓"; position:absolute; inset:0; display:grid; place-items:center;
  color:#fff; font-size:11px; font-weight:800; line-height:1; }
.ch-poll.multi .ch-po.me:not(.pick) .ch-po-mk { opacity:.6; }
.ch-poll.closed .ch-po-mk { display:none; }
.ch-po-t { position:relative; flex:1; min-width:0; overflow-wrap:anywhere; }
.ch-po-n { position:relative; flex:none; font-weight:700; font-variant-numeric:tabular-nums; }
.ch-po-n small { color:var(--muted); font-weight:500; }
.ch-poll-f { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding-right:44px; color:var(--ink2); font-size:12.5px; }
.ch-poll-f .linkbtn { font-size:12.5px; }
.ch-poll.busy { opacity:.65; pointer-events:none; }
.ch-polld-l { display:grid; gap:6px; margin:0 0 12px; }
.ch-polld-l > span { color:var(--ink2); font-size:12.5px; font-weight:600; }
.ch-polld-l textarea, .ch-polld-l input { margin:0; }
.ch-polld-o { display:grid; gap:6px; }
.ch-polld-r { display:flex; gap:6px; }
.ch-polld-r input { flex:1; margin:0; }
.ch-polld-c { display:flex; align-items:center; gap:8px; margin:0 0 8px; font-weight:400; }
.ch-polld-c input { margin:0; }
.ch-vo-q { font-weight:600; }
.ch-vo { margin:10px 0; }
.ch-vo ul { margin:6px 0 0; padding-left:18px; }
/* 306: видеосообщения – «кружки» */
.ch-b:has(> .ch-vnote) { background:transparent; border-color:transparent; box-shadow:none; }
.ch-vnote { position:relative; display:block; width:220px; height:220px; min-height:0; padding:0; border:0; border-radius:50%; background:#1d2025; cursor:pointer; }
.ch-vn-v { display:block; width:100%; height:100%; border-radius:50%; object-fit:cover; background:#1d2025; }
.ch-vn-pr { position:absolute; inset:0; pointer-events:none; }
.ch-vn-pr svg, .ch-vr-ring svg { display:block; }
.ch-vn-pr svg { width:100%; height:100%; transform:rotate(-90deg); }
.ch-vn-pr circle { fill:none; stroke:transparent; stroke-width:3; stroke-linecap:round; transition:stroke-dashoffset .25s linear; }
.ch-vnote.play .ch-vn-pr circle { stroke:#ffffff; filter:drop-shadow(0 0 2px rgba(0,0,0,.5)); }
.ch-vn-play { position:absolute; left:50%; top:50%; width:52px; height:52px; margin:-26px 0 0 -26px; border-radius:50%; background:rgba(0,0,0,.45);
  transition:opacity .2s, transform .2s; }
.ch-vn-play::after { content:""; position:absolute; left:20px; top:16px; border-style:solid; border-width:10px 0 10px 16px; border-color:transparent transparent transparent #fff; }
.ch-vnote.play .ch-vn-play { opacity:0; transform:scale(.8); }
.ch-vn-t { position:absolute; left:50%; bottom:10px; transform:translateX(-50%); padding:1px 8px; border-radius:999px; background:rgba(0,0,0,.55); color:#fff;
  font-size:12px; font-variant-numeric:tabular-nums; }
@media (max-width:600px) { .ch-vnote { width:190px; height:190px; } }
.ch-vr { position:fixed; inset:0; z-index:950; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; padding:20px;
  background:rgba(14,16,19,.84); color:#fff; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.ch-vr-c { position:relative; width:min(72vw, 320px); aspect-ratio:1; padding:10px; }
.ch-vr-live { display:block; width:100%; height:100%; border-radius:50%; object-fit:cover; background:#000; }
.ch-vr.front .ch-vr-live { transform:scaleX(-1); }
.ch-vr-ring { position:absolute; inset:0; pointer-events:none; }
.ch-vr-ring svg { width:100%; height:100%; transform:rotate(-90deg); }
.ch-vr-ring circle { fill:none; stroke:rgba(255,255,255,.2); stroke-width:2.4; stroke-linecap:round; transition:stroke-dashoffset .2s linear; }
.ch-vr.on .ch-vr-ring circle { stroke:#e74c3c; }
.ch-vr-i { display:grid; justify-items:center; gap:4px; text-align:center; }
.ch-vr-tm { font-size:20px; font-weight:700; font-variant-numeric:tabular-nums; }
.ch-vr-hint { font-size:13px; opacity:.82; }
.ch-vr-a { display:flex; align-items:center; gap:28px; }
.ch-vr-b { display:grid; place-items:center; width:48px; height:48px; min-height:0; padding:0; border:0; border-radius:50%; background:rgba(255,255,255,.16); color:#fff;
  font-size:20px; cursor:pointer; }
.ch-vr-b:hover { background:rgba(255,255,255,.26); }
.ch-vr-rec { position:relative; width:72px; height:72px; min-height:0; padding:0; border:4px solid #fff; border-radius:50%; background:none; cursor:pointer; }
.ch-vr-rec::after { content:""; position:absolute; inset:7px; border-radius:50%; background:#e74c3c; transition:inset .22s, border-radius .22s; }
.ch-vr.on .ch-vr-rec::after { inset:19px; border-radius:6px; }
@media (prefers-reduced-motion: reduce) {
  .ord-ring .ordr-fg, .ord-ring .ordr-svg, .od-cli-t, .od-prog i, .ch-vr-rec::after { animation:none; transition:none; }
}
/* ================= 1.0.28 (доработка 8): телефон, доступ к разделам, фото профиля, звонки, сотрудники, календарь ================= */
/* --- общие: заготовки строк при загрузке (330) --- */
.skel-wrap { position:relative; }
.skel-wrap .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skel-box { display:flex; flex-direction:column; gap:4px; padding:4px 0; }
.sk-it { display:flex; align-items:center; gap:12px; padding:9px 6px; opacity:0; animation:skIn .32s calc(var(--i, 0) * 45ms) ease-out forwards; }
.sk { display:block; border-radius:8px; background:linear-gradient(90deg, #e6e6e6 25%, #f4f4f4 50%, #e6e6e6 75%); background-size:300% 100%;
  animation:skSh 1.4s ease-in-out infinite; }
.sk-av { width:44px; height:44px; flex:none; border-radius:50%; }
.sk-t { display:flex; flex:1; flex-direction:column; gap:8px; min-width:0; }
.sk-l1 { width:62%; height:13px; } .sk-l2 { width:38%; height:11px; } .sk-l3 { width:84%; height:11px; }
.sk-r { width:36px; height:11px; flex:none; }
.sk-card .sk-it { flex-direction:column; align-items:stretch; gap:9px; padding:14px 16px; border-radius:14px; background:var(--card); box-shadow:var(--shadow); }
.sk-it:nth-child(3n+2) .sk-l1 { width:48%; } .sk-it:nth-child(3n) .sk-l1 { width:71%; } .sk-it:nth-child(2n) .sk-l2 { width:52%; }
@keyframes skSh { from { background-position:100% 0; } to { background-position:0 0; } }
@keyframes skIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
.ord-list .skel-wrap { margin-top:4px; }

/* --- общие: подсветка выбранного фильтра перетекает (331) --- */
.chg-box { position:relative; isolation:isolate; }
.mglide { position:absolute; left:0; top:0; z-index:0; width:0; height:0; border-radius:999px; background:var(--dark); pointer-events:none; opacity:0;
  transition:transform .36s cubic-bezier(.3,1.22,.4,1), width .36s cubic-bezier(.3,1.22,.4,1), height .2s, opacity .2s; }
.mglide.now { transition:none; }
.chg-box > :not(.mglide) { position:relative; z-index:1; }
.ch-tabs.chg-box button.on { background:transparent; box-shadow:none; }
.ch-tabs .mglide { border-radius:9px; background:var(--card); box-shadow:0 1px 3px rgba(0,0,0,.1); }
.ord-tabs.chg-box .tab { background:transparent; box-shadow:inset 0 0 0 1px rgba(0,0,0,.13); transition:color .25s, box-shadow .25s; }
.ord-tabs.chg-box .tab.on { background:transparent; box-shadow:none; color:#fff; }
.ord-vsw.chg-box .ord-vb.on { background:transparent; box-shadow:none; }
.ord-vsw .mglide { border-radius:8px; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.1); }
.mchips { display:flex; gap:7px; margin:0 0 12px; padding:2px 1px 4px; overflow-x:auto; scrollbar-width:none; }
.mchips::-webkit-scrollbar { display:none; }
.mchips > button { flex:none; display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:6px 15px; border:0; border-radius:999px;
  background:transparent; box-shadow:inset 0 0 0 1px rgba(0,0,0,.14); color:var(--ink2); font:inherit; font-size:13.5px; font-weight:550; cursor:pointer;
  white-space:nowrap; transition:color .25s, box-shadow .25s; }
.mchips > button:hover { box-shadow:inset 0 0 0 1px rgba(0,0,0,.28); }
.mchips > button.on { color:#fff; box-shadow:none; }
.mchips:not(.chg-box) > button.on { background:var(--dark); }
.mchips .mglide { background:var(--dark); }
.mchips > button:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.mchips i[class^="cd-"] { width:8px; height:8px; border-radius:50%; }

/* --- общие страницы новых разделов: большой заголовок, поиск, пустой экран --- */
.main-m { max-width:980px; }
.mpage { position:relative; }
.mt-row { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.mt-big { margin:4px 0 12px; font-size:26px; font-weight:700; letter-spacing:-.015em; }
.msearch { display:flex; align-items:center; gap:8px; margin:0 0 10px; padding:0 12px; border-radius:12px; background:#e9e9e9; color:var(--muted); }
.msearch input { flex:1; min-width:0; height:40px; margin:0; padding:0; border:0; background:transparent; color:var(--ink); font:inherit; outline:none; box-shadow:none; }
.mempty { display:flex; flex-direction:column; align-items:center; gap:6px; padding:46px 16px 30px; text-align:center; }
.mempty b { font-size:16px; } .mempty p { margin:0; font-size:13.5px; }
.mempty-ic { display:grid; place-items:center; width:64px; height:64px; margin-bottom:6px; border-radius:22px; background:#e6e6e6; color:#5d6168;
  animation:mFloat 3.6s ease-in-out infinite; }
.mempty-ic .ic { width:30px; height:30px; }
@keyframes mFloat { 0%, 100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
.mback { display:inline-flex; align-items:center; gap:4px; margin:0 0 8px -4px; padding:4px 8px 4px 4px; border-radius:9px; color:var(--ink2); font-size:14px; text-decoration:none; }
.mback:hover { background:rgba(0,0,0,.05); }

/* --- 322: «Звонки» --- */
.mcl-day { display:flex; align-items:baseline; gap:8px; margin:16px 2px 6px; color:var(--muted); font-size:12px; font-weight:650; letter-spacing:.05em; text-transform:uppercase; }
.mcl-day small { font-weight:500; letter-spacing:0; text-transform:none; }
.mcl-list { display:flex; flex-direction:column; }
.mcl-list.in .mcl-it { animation:mRowIn .32s calc(var(--i, 0) * 30ms) cubic-bezier(.2,.8,.2,1) both; }
@keyframes mRowIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.mcl-it { display:flex; align-items:center; gap:2px; border-bottom:1px solid var(--line); }
.mcl-main { display:flex; flex:1; align-items:center; gap:12px; min-width:0; margin:0; padding:10px 4px; border:0; border-radius:12px; background:none; color:inherit;
  font:inherit; text-align:left; cursor:pointer; }
.mcl-main:hover { background:rgba(0,0,0,.035); }
.mcl-t { display:flex; flex:1; flex-direction:column; gap:2px; min-width:0; }
.mcl-t b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.mcl-t small { display:flex; align-items:center; gap:5px; min-width:0; overflow:hidden; color:var(--muted); font-size:12.5px; white-space:nowrap; text-overflow:ellipsis; }
.mcl-it.miss .mcl-t b { color:#c0392b; }
.mcl-dir { display:inline-grid; flex:none; } .mcl-dir .ic { width:15px; height:15px; }
.mcl-dir.d-in { color:#2f7a48; } .mcl-dir.d-out { color:#5b7190; } .mcl-dir.d-miss { color:#c0392b; }
.mcl-at { display:flex; flex:none; flex-direction:column; align-items:flex-end; gap:3px; color:var(--muted); font-size:12.5px; }
.mcl-k .ic { width:16px; height:16px; }
.mcl-it.live .mcl-t small { color:#2f7a48; }
.mcl-i { display:grid; place-items:center; flex:none; width:40px; height:40px; border-radius:50%; color:#5d6168; }
.mcl-i:hover { background:rgba(0,0,0,.05); }

/* --- 325: «Сотрудники» и профиль --- */
.ppl { display:flex; flex-direction:column; }
.pe-row { display:flex; align-items:center; gap:12px; padding:9px 4px; border-bottom:1px solid var(--line); border-radius:12px; color:inherit; text-decoration:none;
  animation:mRowIn .3s calc(var(--i, 0) * 22ms) cubic-bezier(.2,.8,.2,1) both; }
.pe-row:hover { background:rgba(0,0,0,.035); }
.pe-t { display:flex; flex:1; flex-direction:column; gap:1px; min-width:0; }
.pe-t b, .pe-t small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pe-t small { color:var(--muted); font-size:12.5px; }
.pe-seen.on { color:#2f7a48; }
.pe-shift { display:inline-block; margin-right:6px; padding:0 7px; border-radius:999px; background:#e3f1e8; color:#2f6b45; font-size:11.5px; font-weight:650; }
.ch-av.ring { box-shadow:0 0 0 2px var(--bg), 0 0 0 4px #46a86b; }
.pe-acts { display:flex; flex:none; gap:4px; }
.pe-b { display:grid; place-items:center; width:38px; height:38px; min-height:0; margin:0; padding:0; border:0; border-radius:50%; background:#ececec; color:#3f444b; cursor:pointer; }
.pe-b:hover { background:#e0e0e0; }
.pe-b .ic { width:18px; height:18px; }
.pe-hero { display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 0 18px; text-align:center; }
.pe-av { position:relative; display:grid; place-items:center; width:112px; height:112px; margin-bottom:10px; border-radius:50%; color:#fff; font-size:40px; font-weight:700;
  background:linear-gradient(135deg, #8aa0bb, #5b7190); box-shadow:0 8px 24px rgba(0,0,0,.12); }
.pe-av.ph { overflow:hidden; color:transparent; } .pe-av.ph img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.pe-av.ring { box-shadow:0 0 0 4px var(--bg), 0 0 0 7px #46a86b, 0 8px 24px rgba(0,0,0,.12); }
.pe-av .ch-on { right:6px; bottom:6px; width:20px; height:20px; box-shadow:0 0 0 3px var(--bg); }
.pe-hero h1 { margin:0; font-size:24px; }
.pe-role { margin:0; color:var(--ink2); }
.pe-st { margin:0; color:var(--muted); font-size:13.5px; } .pe-st.on { color:#2f7a48; }
.pe-big { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:14px; }
.pe-bb { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:84px; min-height:0; padding:10px 10px 8px; border:0; border-radius:16px;
  background:var(--card); box-shadow:var(--shadow); color:var(--ink); font:inherit; font-size:12.5px; font-weight:600; cursor:pointer; }
.pe-bb:hover { transform:translateY(-1px); } .pe-bb .ic { width:22px; height:22px; color:#4c5259; }
.pe-sec { margin:0 0 12px; padding:6px 16px; border-radius:16px; background:var(--card); box-shadow:var(--shadow); }
.pe-sec h2 { margin:10px 0 8px; font-size:14px; }
.pe-r { display:flex; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); }
.pe-r:last-child { border-bottom:0; } .pe-r span { color:var(--muted); } .pe-r b { font-weight:600; text-align:right; }
.pe-pct { display:grid; grid-template-columns:auto 1fr; align-items:baseline; gap:2px 10px; margin-bottom:12px; }
.pe-pct b { font-size:30px; } .pe-pct span { color:var(--muted); }
.pe-bar { grid-column:1 / -1; display:block; height:8px; border-radius:999px; background:#ececec; overflow:hidden; }
.pe-bar i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg, #6fb889, #2f7a48); animation:ppBar 1s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ppBar { from { width:0; } }
.pe-nums { display:flex; flex-wrap:wrap; gap:8px; padding-bottom:12px; }
.pe-nums span { display:flex; flex-direction:column; min-width:76px; padding:7px 10px; border-radius:12px; background:var(--soft); color:var(--muted); font-size:12px; }
.pe-nums b { color:var(--ink); font-size:18px; } .pe-nums .ok b { color:#2f7a48; } .pe-nums .late b { color:#9a6a00; } .pe-nums .over b { color:#c0392b; }
.pe-note { text-align:center; }

/* --- 326: «Календарь сроков» --- */
.cal-bar { display:flex; align-items:center; gap:8px; margin:0 0 10px; }
.cal-m { min-width:150px; font-size:17px; text-align:center; }
.cal-arr { display:grid; place-items:center; width:38px; height:38px; min-height:0; padding:0; border:0; border-radius:50%; background:#e9e9e9; font-size:22px; line-height:1; cursor:pointer; }
.cal-arr:hover { background:#dedede; }
.cal-today { margin-left:auto; }
.cal-wrap { display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); gap:16px; align-items:start; }
.cal-wrap > * { min-width:0; }
.cal-grid { padding:10px; overflow:hidden; touch-action:pan-y; }
.cal-wd, .cal-cells { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:2px; }
.cal-wd span { padding:4px 0 6px; color:var(--muted); font-size:11.5px; font-weight:650; text-align:center; text-transform:uppercase; }
.cal-wd .we { color:#b0675d; }
.cal-c { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:3px; aspect-ratio:1 / 1; min-height:0; margin:0;
  padding:5px 0 0; border:0; border-radius:12px; background:transparent; color:var(--ink); font:inherit; cursor:pointer; transition:background .15s; }
.cal-c:hover { background:rgba(0,0,0,.045); }
.cal-c.out { color:#b7b7b7; } .cal-c.we .cal-n { color:#b0675d; } .cal-c.out.we .cal-n { color:#d9b3ad; }
.cal-n { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; font-size:14px; font-weight:550; transition:background .2s, color .2s; }
.cal-c.today .cal-n { box-shadow:inset 0 0 0 2px var(--dark); font-weight:750; }
.cal-c.sel .cal-n { background:var(--dark); color:#fff !important; }
.cal-dots { display:flex; align-items:center; gap:3px; height:8px; }
.cal-dots i, .cal-ev::before { width:6px; height:6px; border-radius:50%; background:#8a8f96; }
.cal-dots small { color:var(--muted); font-size:9.5px; line-height:1; }
.cd-ord { background:#4f7fb8 !important; } .cd-rep { background:#8c78c9 !important; } .cd-rot { background:#2f9a8c !important; }
.cd-lrr { background:#c08a2b !important; } .cd-doc { background:#7d858e !important; } .cd-over { background:#d33a2c !important; }
.cal-dh { display:flex; align-items:baseline; gap:8px; margin:4px 2px 10px; font-size:18px; }
.cal-dh small { color:var(--muted); font-size:13px; font-weight:500; }
.cal-evs { display:flex; flex-direction:column; gap:8px; }
.cal-evs.in .cal-ev { animation:mRowIn .3s calc(var(--i, 0) * 35ms) cubic-bezier(.2,.8,.2,1) both; }
.cal-ev { position:relative; display:flex; align-items:center; gap:10px; padding:10px 12px 10px 16px; border-radius:14px; background:var(--card); box-shadow:var(--shadow);
  color:inherit; text-decoration:none; overflow:hidden; }
.cal-ev::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; height:auto; border-radius:0; }
.cal-ev.k-ord::before { background:#4f7fb8; } .cal-ev.k-rep::before { background:#8c78c9; } .cal-ev.k-rot::before { background:#2f9a8c; }
.cal-ev.k-lrr::before { background:#c08a2b; } .cal-ev.k-doc::before { background:#7d858e; } .cal-ev.s-over::before { background:#d33a2c; }
.cal-ev:hover { transform:translateY(-1px); box-shadow:0 2px 4px rgba(0,0,0,.06), 0 10px 22px rgba(0,0,0,.07); }
.cal-ev-tm { flex:none; width:58px; color:var(--muted); font-size:12.5px; font-variant-numeric:tabular-nums; }
.cal-ev-b { display:flex; flex:1; flex-direction:column; gap:1px; min-width:0; }
.cal-ev-b b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.cal-ev-b small { overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.cal-ev-st { flex:none; padding:2px 8px; border-radius:999px; background:#eceef1; color:#4a4e55; font-size:11.5px; font-weight:600; white-space:nowrap; }
.cal-ev-st.s-over { background:#fbe7e4; color:#a8291d; } .cal-ev-st.s-done { background:#e3f1e8; color:#2f6b45; }
.cal-ev-st.s-soon { background:#fff3dc; color:#8a5a00; }
.cal-none { margin:6px 2px; }

/* --- «Меню» (телефон; на компьютере тоже открывается) --- */
.mmenu { max-width:640px; }
.mm-me { display:flex; align-items:center; gap:14px; margin:0 0 12px; padding:14px 16px; border-radius:18px; background:var(--card); box-shadow:var(--shadow);
  color:inherit; text-decoration:none; }
.mm-av { position:relative; display:grid; place-items:center; width:58px; height:58px; flex:none; border-radius:50%; color:#fff; font-size:22px; font-weight:700;
  background:linear-gradient(135deg, #8aa0bb, #5b7190); }
.mm-av.ph { overflow:hidden; } .mm-av.ph img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.mm-me-t { display:flex; flex:1; flex-direction:column; min-width:0; }
.mm-me-t b { font-size:17px; } .mm-me-t small { color:var(--muted); font-size:13px; } .mm-me-t em { margin-top:2px; color:#4f7fb8; font-size:13px; font-style:normal; font-weight:600; }
.mm-chev { flex:none; color:#a0a0a0; font-size:22px; line-height:1; }
.mm-quick { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin:0 0 16px; }
.mm-q { position:relative; display:flex; flex-direction:column; align-items:center; gap:5px; min-height:0; margin:0; padding:12px 6px 10px; border:0; border-radius:16px;
  background:var(--card); box-shadow:var(--shadow); color:var(--ink); font:inherit; font-size:12.5px; font-weight:600; text-align:center; text-decoration:none; cursor:pointer; }
.mm-q .ic { width:22px; height:22px; color:#4c5259; }
.mm-qn { position:absolute; top:7px; right:calc(50% - 26px); min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:#d93025; color:#fff; font-size:11px; line-height:18px; }
.mm-g { margin:0 0 14px; }
.mm-g h2 { margin:0 4px 6px; color:var(--muted); font-size:12px; font-weight:650; letter-spacing:.06em; text-transform:uppercase; }
.mm-list { margin:0; padding:4px 0; border-radius:16px; background:var(--card); box-shadow:var(--shadow); list-style:none; }
.mm-list li + li .mm-it { border-top:1px solid var(--line); }
.mm-it { display:flex; align-items:center; gap:12px; margin:0 14px; padding:10px 0; color:inherit; text-decoration:none; }
.mm-it:hover .mm-it-t b { text-decoration:underline; text-underline-offset:3px; }
.mm-ic { display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:10px; background:linear-gradient(135deg, #b8bcc2, #7d838b); color:#fff; }
.mm-ic .ic { width:18px; height:18px; }
.mm-it-t { display:flex; flex:1; flex-direction:column; min-width:0; } .mm-it-t b { font-weight:600; } .mm-it-t small { color:var(--muted); font-size:12.5px; }
.mm-set { padding:12px 14px; display:flex; flex-direction:column; gap:12px; }
.mm-set .themesw { margin:0; } .mm-set .motsw { margin:0; }
.mm-out { margin:6px 0 4px; }
.mm-out button { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:48px; border:0; border-radius:16px; background:var(--card);
  box-shadow:var(--shadow); color:#b3261e; font:inherit; font-weight:650; cursor:pointer; }
.mm-ver { margin:10px 0 0; color:var(--muted); font-size:12px; text-align:center; }

/* --- выбор из списка: лист снизу (телефон) / окно (компьютер) --- */
.msh { position:fixed; inset:0; z-index:9300; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(20,20,20,0);
  transition:background .22s; }
.msh.show { background:rgba(20,20,20,.36); }
.msh-in { display:flex; flex-direction:column; width:min(460px, 100%); max-height:min(76vh, 640px); border-radius:20px; background:var(--card);
  box-shadow:0 20px 60px rgba(0,0,0,.28); opacity:0; transform:translateY(14px) scale(.98); transition:opacity .22s, transform .26s cubic-bezier(.2,.8,.2,1); }
.msh.show .msh-in { opacity:1; transform:none; }
.msh-grip { display:none; width:40px; height:5px; margin:8px auto 0; border-radius:999px; background:#d0d0d0; }
.msh-h { display:flex; align-items:center; gap:8px; padding:14px 14px 8px 18px; }
.msh-h b { flex:1; font-size:16px; }
.msh-x { display:grid; place-items:center; width:34px; height:34px; min-height:0; padding:0; border:0; border-radius:50%; background:#eee; cursor:pointer; }
.msh-q { display:flex; align-items:center; gap:8px; margin:0 14px 8px; padding:0 12px; border-radius:12px; background:#ececec; color:var(--muted); }
.msh-q input { flex:1; height:40px; margin:0; padding:0; border:0; background:transparent; font:inherit; outline:none; box-shadow:none; }
.msh-l { flex:1; min-height:0; overflow-y:auto; padding:0 8px 12px; overscroll-behavior:contain; }
.msh-it { display:flex; align-items:center; gap:12px; padding:8px 10px; border-radius:14px; cursor:pointer; }
.msh-it:hover, .msh-it:focus-visible { background:rgba(0,0,0,.05); outline:none; }
.msh-t { display:flex; flex:1; flex-direction:column; min-width:0; }
.msh-t b, .msh-t small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .msh-t small { color:var(--muted); font-size:12.5px; }
.msh-v { display:grid; place-items:center; width:38px; height:38px; min-height:0; padding:0; border:0; border-radius:50%; background:#ececec; color:#3f444b; cursor:pointer; }
.msh-none { margin:16px; text-align:center; }

/* --- фото профиля: окно кадра под круг (п. 3) --- */
.phx { position:fixed; inset:0; z-index:9400; display:flex; align-items:center; justify-content:center; padding:12px; background:rgba(16,16,16,0); transition:background .2s; }
.phx.show { background:rgba(16,16,16,.55); }
.phx-in { display:flex; flex-direction:column; gap:10px; width:min(460px, 100%); max-height:100%; padding:16px; overflow:auto; border-radius:22px; background:var(--card);
  box-shadow:0 24px 70px rgba(0,0,0,.35); opacity:0; transform:scale(.97); transition:opacity .2s, transform .24s cubic-bezier(.2,.8,.2,1); }
.phx.show .phx-in { opacity:1; transform:none; }
.phx-h { display:flex; align-items:center; gap:10px; }
.phx-hic { display:grid; place-items:center; width:36px; height:36px; border-radius:11px; background:linear-gradient(135deg, #b8bcc2, #7d838b); color:#fff; }
.phx-ht { display:flex; flex:1; flex-direction:column; min-width:0; } .phx-ht b { font-size:16px; } .phx-ht small { overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; }
.phx-x { min-height:0; padding:6px 10px; }
.phx-tip { margin:0; }
.phx-stage { position:relative; width:100%; aspect-ratio:1 / 1; border-radius:16px; overflow:hidden; background:#2a2a2a; touch-action:none; cursor:grab; outline:none; user-select:none; }
.phx-stage.drag { cursor:grabbing; }
.phx-stage:focus-visible { box-shadow:0 0 0 3px #8a8f96; }
.phx-img { position:absolute; inset:0; width:100%; height:100%; }
.phx-mask { position:absolute; inset:0; pointer-events:none; } .phx-mask svg { width:100%; height:100%; display:block; }
.phx-face, .phx-grid { opacity:0; transition:opacity .25s; }
.phx-face { opacity:.7; }                                 /* овал для лица виден сразу – подсказка «лицо в пунктирном овале» */
.phx-stage.drag .phx-face, .phx-stage.drag .phx-grid, .phx-stage:focus-visible .phx-face { opacity:1; }
.phx-stage:not(.has) .phx-mask { display:none; }
.phx-empty { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:#e9e9e9; cursor:pointer; }
.phx-empty .ic { width:42px; height:42px; } .phx-empty small { color:#b9b9b9; }
.phx-stage.has .phx-empty { display:none; }
.phx-z { display:flex; align-items:center; gap:6px; }
.phx-z input { flex:1; } .phx-z button { min-height:0; padding:6px; }
.phx-tools { display:flex; flex-wrap:wrap; gap:6px; }
.phx-tools button { display:inline-flex; align-items:center; gap:6px; }
.phx-prevs { display:flex; align-items:flex-end; justify-content:center; gap:18px; padding:4px 0; }
.phx-pv { display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--muted); font-size:11.5px; }
.phx-pv canvas { border-radius:50%; box-shadow:0 2px 8px rgba(0,0,0,.15); }
.phx-f { display:flex; align-items:center; gap:8px; flex-wrap:wrap; } .phx-sp { flex:1; }
.u-lg { display:flex; align-items:center; gap:8px; }
.u-ph { position:relative; display:grid; place-items:center; width:34px; height:34px; min-height:0; flex:none; padding:0; border:0; border-radius:50%; overflow:hidden;
  background:linear-gradient(135deg, #8aa0bb, #5b7190); color:#fff; font-weight:700; cursor:pointer; }
.u-ph img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.u-ph:hover { box-shadow:0 0 0 3px rgba(0,0,0,.12); }

/* --- п. 4: доступ к разделам --- */
.acc-roles { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.acc-role { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:7px 14px; border:0; border-radius:14px; background:var(--card); box-shadow:var(--shadow);
  color:var(--ink); font:inherit; font-size:14px; text-decoration:none; cursor:pointer; transition:background .2s, color .2s, transform .15s; }
.acc-role small { min-width:22px; padding:0 6px; border-radius:999px; background:#ececec; color:var(--muted); font-size:12px; text-align:center; }
.acc-role.on { background:var(--dark); color:#fff; } .acc-role.on small { background:rgba(255,255,255,.2); color:#fff; }
.acc-role:hover:not(.on) { transform:translateY(-1px); }
.acc-rl .ic { width:15px; height:15px; opacity:.7; }
.acc-add { background:transparent; box-shadow:inset 0 0 0 1px rgba(0,0,0,.18); color:var(--ink2); }
.acc-panel { padding:16px; }
.acc-ph { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.acc-name { display:flex; flex-direction:column; gap:3px; margin:0; font-size:12.5px; color:var(--muted); }
.acc-name input { min-width:220px; margin:0; font-size:15px; font-weight:650; color:var(--ink); }
.acc-users { padding-bottom:9px; }
.acc-state { flex:1; padding-bottom:9px; color:#2f7a48; text-align:right; } .acc-state.dirty { color:#9a6a00; font-weight:600; }
.acc-note { margin:0 0 10px; padding:9px 12px; border-radius:12px; background:#f4f1e6; color:#6b5a1e; }
.acs { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap:12px 14px; align-items:start; }
.acc-g { display:flex; flex-direction:column; gap:8px; min-width:0; }
.acc-gh { margin:4px 2px 0; color:var(--muted); font-size:12px; font-weight:650; letter-spacing:.06em; text-transform:uppercase; }
.acc-s { border-radius:14px; background:var(--soft); box-shadow:inset 0 0 0 1px var(--line); transition:background .2s, box-shadow .2s; }
.acc-s.on { background:var(--card); box-shadow:inset 0 0 0 1px #d2d2d2, 0 2px 8px rgba(0,0,0,.04); }
.acc-s.diff { box-shadow:inset 0 0 0 1.5px #c9a227, 0 2px 8px rgba(0,0,0,.04); }
.acc-sh { display:flex; align-items:center; gap:10px; padding:10px 12px; cursor:pointer; user-select:none; }
.acc-ic { display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:10px; background:#d8d8d8; color:#fff; transition:background .25s; }
.acc-s.on .acc-ic { background:linear-gradient(135deg, #8b9098, #4e545c); }
.acc-ic .ic { width:18px; height:18px; }
.acc-st { display:flex; flex:1; flex-direction:column; min-width:0; } .acc-st b { font-size:14.5px; font-weight:650; }
.acc-st small { color:var(--muted); font-size:12px; line-height:1.35; }
.acc-sum { color:#5b7190; font-size:12px; font-style:normal; font-weight:600; } .acc-s:not(.on) .acc-sum { color:#a0a0a0; }
.acc-mark { flex:none; padding:1px 7px; border-radius:999px; background:#f6edc8; color:#7a5e00; font-size:11px; font-weight:700; }
.acc-sw { position:relative; display:inline-flex; flex:none; width:34px; height:20px; margin:0; cursor:pointer; }
.acc-sw .msw-track { display:block; }
.acc-sw input:checked + .msw-track { background:#2f7a48; }
.acc-sw input:checked + .msw-track i { transform:translateX(14px); }
.acc-sw input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; z-index:1; }
.acc-sw input:disabled { cursor:not-allowed; }
.acc-sw input:disabled + .msw-track { opacity:.45; }
.acc-sw input:focus-visible + .msw-track { outline:2px solid var(--ink); outline-offset:2px; }
.acc-b { display:flex; flex-direction:column; gap:8px; padding:0 12px 12px 56px; }
.acc-lv { display:inline-flex; flex-wrap:wrap; align-self:flex-start; gap:2px; padding:3px; border-radius:11px; background:#ececec; }
.acc-lvb { min-height:0; margin:0; padding:6px 12px; border:0; border-radius:8px; background:transparent; color:var(--ink2); font:inherit; font-size:13px; font-weight:550; cursor:pointer;
  transition:background .2s, color .2s, box-shadow .2s; }
.acc-lvb.on { background:#fff; color:var(--ink); font-weight:700; box-shadow:0 1px 3px rgba(0,0,0,.12); }
.acc-lvb:disabled { opacity:.45; cursor:not-allowed; }
.acc-opts { display:flex; flex-direction:column; gap:4px; }
.acc-o { display:flex; align-items:flex-start; gap:8px; margin:0; font-size:13.5px; line-height:1.35; cursor:pointer; }
.acc-o input { margin:2px 0 0; } .acc-o.dis { color:#9a9a9a; cursor:not-allowed; }
.acc-lock { margin:0; } .acc-reset { align-self:flex-start; }
.acs.ro .acc-sh { cursor:default; }
.acc-old { margin-top:16px; } .acc-old > summary { display:flex; align-items:center; gap:8px; cursor:pointer; font-weight:650; }
.acc-old[open] > summary { margin-bottom:10px; }
.ua-dlg { width:min(1100px, calc(100vw - 24px)); }
.ua-body { max-height:min(64vh, 720px); overflow-y:auto; padding:2px 2px 6px; }
.ua-body .acs { grid-template-columns:repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.acc-panel.dirty [data-acc-save] { animation:accPulse 1.6s ease-in-out infinite; }
@keyframes accPulse { 0%, 100% { box-shadow:0 0 0 0 rgba(38,38,38,.0); } 50% { box-shadow:0 0 0 5px rgba(38,38,38,.12); } }
.pv-ro { display:flex; align-items:center; gap:8px; margin:0 0 12px; }

/* --- 324: шаблоны задач --- */
.od-trow { position:relative; display:flex; justify-content:flex-end; margin:-6px 0 2px; }
.od-tbtn { display:inline-flex; align-items:center; gap:6px; } .od-tbtn .ic { width:16px; height:16px; }
.od-tlist { position:absolute; top:calc(100% + 4px); right:0; z-index:6; width:min(440px, 100%); max-height:320px; overflow:auto; padding:6px; }
.od-tnone { margin:8px; }
.od-astpl-p { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px 12px; margin:10px 0 0; padding:10px 12px; border-radius:12px; background:var(--soft);
  box-shadow:inset 0 0 0 1px var(--line); animation:mRowIn .25s cubic-bezier(.2,.8,.2,1); }
.od-astpl-n { display:flex; flex:1 1 220px; flex-direction:column; gap:3px; margin:0; color:var(--muted); font-size:12.5px; }
.od-astpl-n input { margin:0; }
.od-share { margin:0; font-size:13px; }
.ord-ptpl { animation:mRowIn .3s calc(var(--i, 0) * 40ms) cubic-bezier(.2,.8,.2,1) both; }

/* --- 329: «печатает…» в списке чатов --- */
.ch-it.typing .ch-it-l { position:relative; color:transparent !important; }
.ch-it.typing .ch-it-l > :not(.ch-lty) { visibility:hidden; }
.ch-lty { position:absolute; left:0; top:0; bottom:0; display:inline-flex; align-items:center; gap:6px; max-width:100%; color:#2f8a57; font-weight:600;
  animation:chLty .25s ease-out; }
@keyframes chLty { from { opacity:0; transform:translateY(3px); } to { opacity:1; transform:none; } }
.ch-lty small { overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.ch-lty .ch-ty-d i { width:5px; height:5px; }

/* --- 328: сообщение «вылетает» из поля ввода --- */
.ch-compose.fly-out textarea { animation:chTxOut .26s ease-out; }
@keyframes chTxOut { 0% { color:transparent; } 100% { color:inherit; } }
.ch-send.launch { animation:chLaunch .42s cubic-bezier(.3,1.4,.4,1); }
@keyframes chLaunch { 0% { transform:none; } 35% { transform:translate(3px, -3px) scale(.88) rotate(-12deg); } 100% { transform:none; } }

/* --- нижняя панель, «+» и шапка – только на телефоне --- */
.mbar, .mfab, .mhead, .mfab-shade { display:none; }
@media (max-width:760px), (pointer:coarse) and (max-height:520px) and (max-width:1000px) {
  body.app { display:block; min-height:100dvh; padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right); }
  body.app > .sidebar { display:none !important; }
  body.app > main { padding:calc(10px + env(safe-area-inset-top)) 14px calc(84px + env(safe-area-inset-bottom)); }
  body.app > main.main-chat { padding:0 0 calc(64px + env(safe-area-inset-bottom)); }
  html.ch-open body.app > main.main-chat { padding-bottom:0; }
  .mbar { position:fixed; left:0; right:0; bottom:0; z-index:640; display:grid; grid-template-columns:repeat(var(--n, 4), minmax(0, 1fr));
    height:calc(62px + env(safe-area-inset-bottom)); padding:0 calc(6px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(6px + env(safe-area-inset-left));
    border-top:1px solid rgba(0,0,0,.07); background:rgba(250,250,250,.86); -webkit-backdrop-filter:saturate(1.6) blur(16px); backdrop-filter:saturate(1.6) blur(16px);
    view-transition-name:mbar; }
  .mbar-pill { position:absolute; top:6px; left:calc(6px + env(safe-area-inset-left) + var(--i, 0) * (100% - 12px - env(safe-area-inset-left) - env(safe-area-inset-right)) / var(--n, 4) + 6px);
    width:calc((100% - 12px - env(safe-area-inset-left) - env(safe-area-inset-right)) / var(--n, 4) - 12px); height:50px; border-radius:16px; background:rgba(0,0,0,.065);
    transition:left .42s cubic-bezier(.3,1.25,.4,1); }
  .mbar-pill.now { transition:none; }
  .mbar-i { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:2px; padding-top:10px; color:#6d6d6d;
    text-decoration:none; -webkit-tap-highlight-color:transparent; }
  .mbar-i.on { color:var(--ink); }
  .mbar-ic { position:relative; display:grid; place-items:center; }
  .mbar-ic .ic { width:25px; height:25px; stroke-width:1.75; transition:transform .2s; }
  .mbar-i:active .mbar-ic .ic { transform:scale(.86); }
  .mbar-i.on .mbar-ic .ic { stroke-width:2.1; }
  .mbar-t { max-width:100%; overflow:hidden; font-size:11px; font-weight:550; letter-spacing:.01em; text-overflow:ellipsis; white-space:nowrap; }
  .mbar-i.on .mbar-t { font-weight:750; }
  .mbar-n { position:absolute; top:-6px; left:calc(100% - 9px); min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:#4a4f57; color:#fff;
    box-shadow:0 0 0 2px rgba(250,250,250,.95); font-size:10.5px; font-weight:750; line-height:18px; text-align:center; }
  .mbar-n.red { background:#d93025; }
  .mbar-ic.pop { animation:mPop .62s cubic-bezier(.3,1.5,.45,1); }
  @keyframes mPop { 0% { transform:none; } 30% { transform:translateY(-7px) scale(1.14); } 55% { transform:translateY(1px) scale(.96); } 75% { transform:translateY(-2px); } 100% { transform:none; } }
  ::view-transition-group(mbar), ::view-transition-old(mbar), ::view-transition-new(mbar) { animation:none; }
  ::view-transition-old(mbar) { display:none; }
  /* «+» с веером (337) */
  .mfab { position:fixed; right:calc(16px + env(safe-area-inset-right)); bottom:calc(76px + env(safe-area-inset-bottom)); z-index:642; display:block; }
  .mfab-b { display:grid; place-items:center; width:56px; height:56px; min-height:0; margin:0; padding:0; border:0; border-radius:50%; color:#fff; cursor:pointer;
    background:linear-gradient(140deg, #4a4f57, #24272c); box-shadow:0 6px 18px rgba(0,0,0,.28), 0 1px 3px rgba(0,0,0,.2); transition:transform .32s cubic-bezier(.3,1.4,.4,1), background .2s; }
  .mfab-b .ic { width:26px; height:26px; stroke-width:2.2; transition:transform .32s cubic-bezier(.3,1.4,.4,1); }
  .mfab.open .mfab-b .ic { transform:rotate(135deg); }
  .mfab.open .mfab-b { background:linear-gradient(140deg, #6b7079, #3a3e45); }
  .mfab-b:active { transform:scale(.92); }
  .mfab-fan { position:absolute; right:4px; bottom:66px; display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
  .mfab-it { display:flex; align-items:center; gap:10px; min-height:0; margin:0; padding:0; border:0; background:none; color:var(--ink); font:inherit; cursor:pointer;
    opacity:0; transform:translateY(16px) scale(.7); transform-origin:right center;
    transition:opacity .2s calc(var(--k, 0) * 40ms), transform .34s calc(var(--k, 0) * 40ms) cubic-bezier(.3,1.35,.4,1); }
  .mfab.show .mfab-it { opacity:1; transform:none; }
  .mfab-t { padding:7px 12px; border-radius:12px; background:var(--card); box-shadow:0 4px 14px rgba(0,0,0,.16); font-size:14px; font-weight:650; white-space:nowrap; }
  .mfab-ic { display:grid; place-items:center; width:46px; height:46px; border-radius:50%; background:var(--card); box-shadow:0 4px 14px rgba(0,0,0,.18); color:#3a3f46; }
  .mfab-ic .ic { width:22px; height:22px; }
  .mfab-shade { position:fixed; inset:0; z-index:641; display:block; background:rgba(242,242,242,0); -webkit-backdrop-filter:blur(0); backdrop-filter:blur(0);
    transition:background .25s, backdrop-filter .25s; }
  .mfab-shade[hidden] { display:none; }
  .mfab-shade.show { background:rgba(242,242,242,.72); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
  html.ch-open .mfab, html.ch-open .mfab-shade, html.ch-open .mbar { display:none; }
  /* большой заголовок сжимается в шапку (336) */
  .mhead { position:fixed; top:0; left:0; right:0; z-index:630; display:flex; align-items:flex-end; justify-content:center; height:calc(46px + env(safe-area-inset-top));
    padding:env(safe-area-inset-top) 60px 10px; background:rgba(246,246,246,.86); -webkit-backdrop-filter:saturate(1.6) blur(14px); backdrop-filter:saturate(1.6) blur(14px);
    border-bottom:1px solid rgba(0,0,0,.07); opacity:var(--mp, 0); pointer-events:none; }
  .mhead b { overflow:hidden; font-size:16px; text-overflow:ellipsis; white-space:nowrap; transform:translateY(calc((1 - var(--mp, 0)) * 6px)); }
  [data-mtitle] { font-size:31px !important; font-weight:750; letter-spacing:-.02em; transform-origin:left bottom;
    transform:scale(calc(var(--mpull, 1) - var(--mp, 0) * .12)); opacity:calc(1 - var(--mp, 0) * .85); }
  .mt-big { margin:2px 0 12px; }
  /* мессенджер: список – на всю ширину, заголовок – большой */
  .main-chat .chat { min-height:calc(100dvh - 64px - env(safe-area-inset-bottom)); border-radius:0; box-shadow:none; }
  .main-chat .ch-side { min-height:calc(100dvh - 64px - env(safe-area-inset-bottom)); background:var(--bg); }
  .ch-side-h { padding-top:calc(10px + env(safe-area-inset-top)); }
  .ch-side-h h1 .ic { display:none; }
  .ch-tabs { margin-left:14px; margin-right:14px; }
  /* задачи: заголовок и вкладки – как на телефоне */
  main .phead:has(+ .ordp) .eyebrow, main .phead:has(+ .ordp) .ph-sub, main .phead:has(+ .ordp) .ph-ic, main .phead:has(+ .ordp) .ph-a { display:none; }
  .ord-tabs { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin:0 0 12px; padding:2px 1px 4px; }
  .ord-tabs::-webkit-scrollbar { display:none; }
  .ord-tabs .tab { flex:none; }
  /* уведомления – листом снизу */
  .ncp { left:8px !important; right:8px; bottom:calc(70px + env(safe-area-inset-bottom)); width:auto; max-height:70dvh; }
  /* лист выбора – снизу экрана */
  .msh { align-items:flex-end; padding:0; }
  .msh-in { width:100%; max-height:82dvh; border-radius:22px 22px 0 0; padding-bottom:env(safe-area-inset-bottom); transform:translateY(40px); }
  .msh-grip { display:block; }
  .phx { align-items:flex-end; padding:0; }
  .phx-in { width:100%; max-height:96dvh; border-radius:22px 22px 0 0; padding-bottom:calc(14px + env(safe-area-inset-bottom)); }
  .cal-wrap { grid-template-columns:minmax(0, 1fr); gap:10px; }
  .cal-grid { padding:6px; }
  .cal-c { border-radius:10px; } .cal-n { width:28px; height:28px; font-size:13.5px; }
  .mm-quick { gap:6px; }
  .acc-b { padding-left:12px; }
  .toasts { bottom:calc(76px + env(safe-area-inset-bottom)); }
}
/* смена вкладок – экран сдвигается в сторону по порядку вкладок (335) */
@keyframes vtTabOutL { to { opacity:0; transform:translateX(-22%); } }
@keyframes vtTabOutR { to { opacity:0; transform:translateX(22%); } }
@keyframes vtTabInR { from { opacity:0; transform:translateX(28%); } }
@keyframes vtTabInL { from { opacity:0; transform:translateX(-28%); } }
html:active-view-transition-type(tab-fwd)::view-transition-old(page) { animation:vtTabOutL .2s ease-in both; }
html:active-view-transition-type(tab-fwd)::view-transition-new(page) { animation:vtTabInR .34s .02s cubic-bezier(.2,.8,.2,1) both; }
html:active-view-transition-type(tab-back)::view-transition-old(page) { animation:vtTabOutR .2s ease-in both; }
html:active-view-transition-type(tab-back)::view-transition-new(page) { animation:vtTabInL .34s .02s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion:reduce) {
  .sk, .sk-it, .mempty-ic, .mcl-list.in .mcl-it, .pe-row, .cal-evs.in .cal-ev, .mbar-ic.pop, .pe-bar i, .acc-panel.dirty [data-acc-save] { animation:none; opacity:1; }
  .mglide, .mbar-pill, .mfab-it, .mfab-b, .mfab-b .ic { transition:none; }
}
html[data-motion=less] .sk, html[data-motion=less] .sk-it, html[data-motion=less] .mempty-ic, html[data-motion=less] .mcl-list.in .mcl-it, html[data-motion=less] .pe-row,
html[data-motion=less] .cal-evs.in .cal-ev, html[data-motion=less] .mbar-ic.pop, html[data-motion=less] .pe-bar i { animation:none; opacity:1; }
html[data-motion=less] .mglide, html[data-motion=less] .mbar-pill, html[data-motion=less] .mfab-it { transition:none; }
@media print { .mbar, .mfab, .mhead, .mfab-shade { display:none !important; } }

/* --- «+» над нижней панелью: последнюю строку списка можно прокрутить выше кнопки --- */
@media (max-width:760px), (pointer:coarse) and (max-height:520px) and (max-width:1000px) {
  body.app:has(> .mfab) > main { padding-bottom:calc(150px + env(safe-area-inset-bottom)); }
  body.app:has(> .mfab) > main.main-chat { padding-bottom:calc(136px + env(safe-area-inset-bottom)); }
}

/* ================= 1.0.28 (доработка 9): значки вкладок, планшет, долгое нажатие, «Задача принята», числа, запись, заставка, устройства ================= */

/* --- 362: у выбранной вкладки значок залит цветом, у остальных – контур --- */
.ti .ti-o, .ti .ti-f { transform-box:fill-box; transform-origin:center; transition:opacity .18s ease, transform .36s cubic-bezier(.3,1.5,.45,1); }
.ti .ti-f { opacity:0; transform:scale(.55); }
.mbar-i.on .ti .ti-f { opacity:1; transform:none; }
.mbar-i.on .ti .ti-o { opacity:0; transform:scale(1.15); }
.mbar-logo { display:none; }

/* --- 354: новое сообщение – значок вздрагивает, число перекатывается --- */
@keyframes mJolt { 0%, 100% { transform:none; } 14% { transform:rotate(-14deg) scale(1.1); } 32% { transform:rotate(11deg) scale(1.1); } 50% { transform:rotate(-7deg) scale(1.04); }
  68% { transform:rotate(4deg); } 84% { transform:rotate(-2deg); } }
.mbar-ic.jolt, .wpnav-chat > .ic.jolt { animation:mJolt .7s ease-in-out; transform-origin:50% 15%; }
/* настоящее число уезжает за край (цвет не трогаем – в любой теме и у любого значка прокатываются цифры того же цвета) */
.mbar-n.roll, .navcnt.roll { overflow:hidden; text-indent:-300px; white-space:nowrap; }
.navcnt.roll { position:relative; }
.mbar-n.roll::before, .mbar-n.roll::after, .navcnt.roll::before, .navcnt.roll::after { position:absolute; inset:0; display:grid; place-items:center; text-indent:0; }
.mbar-n.roll::before, .navcnt.roll::before { content:attr(data-old); animation:rnOut .44s cubic-bezier(.3,.7,.2,1) forwards; }
.mbar-n.roll::after, .navcnt.roll::after { content:attr(data-now); animation:rnIn .44s cubic-bezier(.3,.7,.2,1) both; }
.mbar-n.roll.rdn::before, .navcnt.roll.rdn::before { animation-name:rnOutD; }
.mbar-n.roll.rdn::after, .navcnt.roll.rdn::after { animation-name:rnInD; }
@keyframes rnOut { to { transform:translateY(-115%); opacity:0; } }
@keyframes rnIn { from { transform:translateY(115%); opacity:0; } }
@keyframes rnOutD { to { transform:translateY(115%); opacity:0; } }
@keyframes rnInD { from { transform:translateY(-115%); opacity:0; } }

/* --- 351: долгое нажатие – карточка приподнимается, фон размывается, снизу – действия --- */
.lift { position:fixed; inset:0; z-index:900; }
.lift-shade { position:absolute; inset:0; background:rgba(236,237,239,0); -webkit-backdrop-filter:blur(0); backdrop-filter:blur(0);
  transition:background .26s ease, -webkit-backdrop-filter .26s ease, backdrop-filter .26s ease; }
.lift.on .lift-shade { background:rgba(236,237,239,.6); -webkit-backdrop-filter:blur(9px) saturate(1.15); backdrop-filter:blur(9px) saturate(1.15); }
.lift.off .lift-shade { background:rgba(236,237,239,0); -webkit-backdrop-filter:blur(0); backdrop-filter:blur(0); transition-duration:.2s; }
.lift-card { position:fixed; z-index:1; box-sizing:border-box; margin:0 !important; background:var(--card) !important; border-radius:16px; list-style:none;
  box-shadow:0 18px 44px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.08); pointer-events:none; transform-origin:50% 50%; }
.lift-card.ord-it { border-radius:16px; }
.lift-sheet { position:fixed; left:0; right:0; bottom:0; z-index:2; display:flex; flex-direction:column; gap:2px; max-width:520px; margin:0 auto;
  padding:8px 10px calc(12px + env(safe-area-inset-bottom)); border-radius:22px 22px 0 0; background:var(--card); box-shadow:0 -10px 30px rgba(0,0,0,.14);
  transform:translateY(105%); transition:transform .32s cubic-bezier(.2,.8,.2,1); }
.lift.on .lift-sheet { transform:none; }
.lift.off .lift-sheet { transform:translateY(105%); transition-duration:.2s; }
.lift-grip { display:block; width:38px; height:4px; margin:2px auto 8px; border-radius:2px; background:rgba(0,0,0,.16); }
.lift-a { display:flex; align-items:center; gap:14px; width:100%; min-height:50px; margin:0; padding:0 12px; border:0; border-radius:14px; background:none; color:var(--ink);
  font:inherit; font-size:16px; font-weight:550; text-align:left; cursor:pointer; opacity:0; transform:translateY(12px);
  transition:opacity .2s calc(.05s + var(--i, 0) * 35ms), transform .32s calc(.05s + var(--i, 0) * 35ms) cubic-bezier(.2,.8,.2,1), background .15s; }
.lift.on .lift-a { opacity:1; transform:none; }
.lift .lift-a { justify-content:flex-start; }
.lift-a:active, .lift-a:focus-visible { background:var(--soft); outline:none; }
.lift-ic { display:grid; place-items:center; flex:none; width:36px; height:36px; border-radius:11px; background:#eceef1; color:#4a4f57; }
.lift-ic .ic { width:20px; height:20px; }
.ch-it.lifted, .ord-it.lifted { visibility:hidden; }
@media (pointer:coarse) { .ch-it, .ord-it { -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; } }

/* закреплённый чат – булавка у времени */
.ch-top { display:inline-grid; place-items:center; flex:none; width:16px; height:16px; margin-left:auto; color:var(--muted); }
.ch-top + .ch-it-at { margin-left:4px; }
.ch-top svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }

/* --- 353: «Задача принята» – кольцо замыкается зелёным, галочка рисуется, расходится ореол --- */
.ord-ring.fx-acc .ordr-fg { stroke:#2f9d62 !important; transition:none; }
.ord-ring.fx-acc { color:#2f9d62; }
.ord-ring .ordr-halo { position:absolute; inset:-2px; border:2px solid #39a96b; border-radius:50%; pointer-events:none; opacity:0; }

/* --- 349: пауза записи; 355: волна при записи растёт, при прослушивании бежит --- */
.ch-rec-p { flex:none; }
.ch-rec-p svg { width:18px; height:18px; fill:currentColor; }
.ch-rec.paused .ch-rec-dot { animation:none; background:#9aa0a8; }
.ch-rec.paused .ch-rec-w { opacity:.42; }
.ch-rec.paused .ch-rec-t::after { content:" · пауза"; color:var(--muted); font-weight:500; }
.ch-rec-w i { transform-origin:50% 50%; animation:recBar .24s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes recBar { from { transform:scaleY(.12); opacity:.15; } }
.ch-vw i { transform-origin:50% 50%; transition:opacity .15s, transform .22s cubic-bezier(.3,1.45,.5,1); }
.ch-vw i.ph { opacity:1; transform:scaleY(1.55); }
.ch-vw i.nb { opacity:.78; transform:scaleY(1.22); }
@keyframes vpRing { 0% { box-shadow:0 0 0 0 rgba(120,126,134,.38); } 100% { box-shadow:0 0 0 9px rgba(120,126,134,0); } }
.ch-voice.run .ch-vp { animation:vpRing 1.5s ease-out infinite; }
.ch-vr-b.vr-p svg { width:22px; height:22px; fill:currentColor; }
.ch-vr.paused .ch-vr-ring circle { stroke:#9aa0a8; }
.ch-vr.paused .ch-vr-live { filter:saturate(.35) brightness(.88); transition:filter .25s; }

/* --- 356: заставка при запуске --- */
.splash { position:fixed; inset:0; z-index:5000; display:grid; place-items:center; background:radial-gradient(120% 80% at 50% 38%, #ffffff 0%, #efefef 55%, #dcdcdc 100%); }
.splash[hidden] { display:none; }
.sp-in { display:flex; flex-direction:column; align-items:center; gap:18px; }
.sp-in img { width:112px; height:auto; opacity:0; transform:scale(.84); filter:blur(7px); animation:spLogo .85s .05s cubic-bezier(.2,.8,.2,1) forwards; }
.sp-in b { padding-left:.42em; color:#73777e; font-size:15px; font-weight:750; letter-spacing:.42em; opacity:0; animation:spTxt .6s .5s ease forwards; }
.splash.go { animation:spOut .45s 1.3s ease forwards; }
@keyframes spLogo { to { opacity:1; transform:none; filter:none; } }
@keyframes spTxt { to { opacity:1; letter-spacing:.24em; padding-left:.24em; } }
@keyframes spOut { to { opacity:0; visibility:hidden; } }

/* --- 347: «Мои устройства» --- */
/* «Меню»: четыре плитки (с «Моими устройствами») – в ряд; на телефоне – 2 × 2, значок слева от подписи */
.mm-quick { grid-template-columns:repeat(4, minmax(0, 1fr)); }
@media (max-width:520px) {
  .mm-quick { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .mm-q { flex-direction:row; justify-content:flex-start; gap:10px; padding:13px 12px; font-size:13.5px; text-align:left; }
  .mm-q span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mm-qn { top:5px; right:auto; left:27px; }
}
.mdev { max-width:760px; }
.dv-back { display:inline-block; margin:0 0 6px; color:var(--muted); font-size:13px; text-decoration:none; }
.dv-sub { margin:-4px 0 16px; }
.dv-g { margin:0 0 20px; }
.dv-g h2 { display:flex; align-items:center; gap:8px; margin:0 0 8px; color:var(--muted); font-size:12.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.dv-n { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:var(--soft); color:var(--ink); font-size:11.5px; letter-spacing:0; }
.dv-list, .dv-hist { margin:0; padding:0; overflow:hidden; border-radius:18px; background:var(--card); box-shadow:var(--shadow); list-style:none; }
.dv-it { display:flex; align-items:center; gap:12px; padding:12px 14px; animation:dvIn .42s calc(var(--i, 0) * 60ms) cubic-bezier(.2,.8,.2,1) both; }
.dv-it + .dv-it, .dv-h + .dv-h { border-top:1px solid var(--line); }
.dv-ic { display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:14px; background:var(--soft); color:#4a4f57; }
.dv-ic .ic { width:24px; height:24px; }
.dv-it.cur .dv-ic { background:#e3f2ea; color:#2f8a57; }
.dv-b { display:flex; flex:1; flex-direction:column; gap:2px; min-width:0; }
.dv-b b { font-size:15px; font-weight:650; overflow-wrap:anywhere; }
.dv-b small { color:var(--muted); font-size:12.5px; overflow-wrap:anywhere; }
.dv-cur { flex:none; padding:4px 10px; border-radius:999px; background:#e3f2ea; color:#2f7a4f; font-size:12px; font-weight:650; white-space:nowrap; }
.dv-end { flex:none; margin:0; }
.dv-all { margin:10px 0 0; }
.dv-all .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.dv-h { display:flex; align-items:flex-start; gap:12px; padding:11px 14px; }
.dv-hd { display:grid; place-items:center; flex:none; width:32px; height:32px; border-radius:10px; background:var(--soft); color:#5d636b; font-size:14px; font-weight:800; }
.dv-hd .ic { width:18px; height:18px; }
.dv-h.k-fail .dv-hd { background:#fbe9e7; color:#c0392b; }
.dv-h.k-fail .dv-b b { color:#b3261e; }
.dv-h.live .dv-st { color:#2f7a4f; font-weight:600; }
.dv-new { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:999px; background:#fff1c7; color:#86680a; font-size:11px; font-weight:700; vertical-align:2px; }
.dv-none { padding:4px 2px; }
.dv-tip { display:flex; align-items:flex-start; gap:10px; margin:4px 0 0; padding:12px 14px; border-radius:16px; background:var(--soft); color:var(--ink2); font-size:13.5px; }
.dv-tip .ic { flex:none; width:20px; height:20px; color:#5d636b; }
@keyframes dvIn { from { opacity:0; transform:translateY(8px); } }
.sess-card h2 { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; }
.sess-more { margin-left:auto; font-size:12.5px; font-weight:500; }
.u-devs { white-space:nowrap; }

/* --- 363: планшет – вкладки слева, список и переписка рядом --- */
@media (pointer:coarse) and (min-width:761px) and (max-width:1366px) and (min-height:521px) {
  /* меню компьютера скрыто – и «свёрнутое», которое на ширине от 861 px оставляет под себя колонку 76 px */
  body.app, html[data-menu] body.app:not(.touring) { grid-template-columns:minmax(0, 1fr); padding-left:calc(88px + env(safe-area-inset-left)); }
  body.app > .sidebar { display:none !important; }
  body.app > main { padding:22px 26px 40px; }
  body.app > main.main-chat { height:100vh; height:100dvh; padding:12px 14px 12px 12px; }
  .mbar { position:fixed; top:0; bottom:0; left:0; z-index:640; display:flex; flex-direction:column; align-items:stretch; gap:6px; width:calc(88px + env(safe-area-inset-left));
    padding:calc(14px + env(safe-area-inset-top)) 8px 14px calc(8px + env(safe-area-inset-left)); border-right:1px solid rgba(0,0,0,.07);
    background:rgba(250,250,250,.9); -webkit-backdrop-filter:saturate(1.6) blur(16px); backdrop-filter:saturate(1.6) blur(16px); view-transition-name:mbar; }
  .mbar-logo { display:grid; place-items:center; height:64px; margin:0 0 10px; }
  .mbar-logo img { width:34px; height:auto; }
  .mbar-pill { position:absolute; top:calc(14px + env(safe-area-inset-top) + 74px + var(--i, 0) * 70px); left:calc(8px + env(safe-area-inset-left)); right:8px; height:64px;
    border-radius:18px; background:rgba(0,0,0,.065); transition:top .4s cubic-bezier(.3,1.25,.4,1); }
  .mbar-pill.now { transition:none; }
  .mbar-i { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; height:64px; border-radius:18px;
    color:#6d6d6d; text-decoration:none; -webkit-tap-highlight-color:transparent; }
  .mbar-i.on { color:var(--ink); }
  .mbar-ic { position:relative; display:grid; place-items:center; }
  .mbar-ic .ic { width:26px; height:26px; }
  .mbar-i:active .mbar-ic .ic { transform:scale(.88); }
  .mbar-t { max-width:100%; overflow:hidden; font-size:10.5px; font-weight:600; letter-spacing:-.01em; text-overflow:ellipsis; white-space:nowrap; }
  .mbar-i.on .mbar-t { font-weight:750; }
  .mbar-n { position:absolute; top:-6px; left:calc(100% - 8px); min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:#4a4f57; color:#fff;
    font-size:10.5px; font-weight:750; line-height:18px; text-align:center; box-shadow:0 0 0 2px #fafafa; }
  .mbar-n.red { background:#d93025; }
  .mbar-ic.pop { animation:mPop9 .62s cubic-bezier(.3,1.5,.45,1); }
  @keyframes mPop9 { 0% { transform:none; } 30% { transform:translateX(4px) scale(1.14); } 55% { transform:scale(.96); } 100% { transform:none; } }
  ::view-transition-group(mbar), ::view-transition-old(mbar), ::view-transition-new(mbar) { animation:none; }
  ::view-transition-old(mbar) { display:none; }
  /* «+» – справа внизу */
  .mfab { position:fixed; right:calc(24px + env(safe-area-inset-right)); bottom:calc(24px + env(safe-area-inset-bottom)); z-index:642; display:block; }
  .mfab-b { display:grid; place-items:center; width:58px; height:58px; min-height:0; margin:0; padding:0; border:0; border-radius:50%; color:#fff; cursor:pointer;
    background:linear-gradient(140deg, #4a4f57, #24272c); box-shadow:0 6px 18px rgba(0,0,0,.28), 0 1px 3px rgba(0,0,0,.2); transition:transform .32s cubic-bezier(.3,1.4,.4,1), background .2s; }
  .mfab-b .ic { width:26px; height:26px; stroke-width:2.2; transition:transform .32s cubic-bezier(.3,1.4,.4,1); }
  .mfab.open .mfab-b .ic { transform:rotate(135deg); }
  .mfab.open .mfab-b { background:linear-gradient(140deg, #6b7079, #3a3e45); }
  .mfab-fan { position:absolute; right:4px; bottom:68px; display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
  .mfab-it { display:flex; align-items:center; gap:10px; min-height:0; margin:0; padding:0; border:0; background:none; color:var(--ink); font:inherit; cursor:pointer;
    opacity:0; transform:translateY(16px) scale(.7); transform-origin:right center;
    transition:opacity .2s calc(var(--k, 0) * 40ms), transform .34s calc(var(--k, 0) * 40ms) cubic-bezier(.3,1.35,.4,1); }
  .mfab.show .mfab-it { opacity:1; transform:none; }
  .mfab-t { padding:7px 12px; border-radius:12px; background:var(--card); box-shadow:0 4px 14px rgba(0,0,0,.16); font-size:14px; font-weight:650; white-space:nowrap; }
  .mfab-ic { display:grid; place-items:center; width:46px; height:46px; border-radius:50%; background:var(--card); box-shadow:0 4px 14px rgba(0,0,0,.18); color:#3a3f46; }
  .mfab-ic .ic { width:22px; height:22px; }
  .mfab-shade { position:fixed; inset:0; z-index:641; display:block; background:rgba(242,242,242,0); transition:background .25s, backdrop-filter .25s; }
  .mfab-shade[hidden] { display:none; }
  .mfab-shade.show { background:rgba(242,242,242,.66); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
  /* мессенджер: список и переписка рядом (как на компьютере) */
  body.app .chat { display:grid; grid-template-columns:clamp(270px, 37%, 360px) minmax(0, 1fr); min-height:0; border-radius:20px; }
  body.app .chat.one { grid-template-columns:minmax(0, 1fr); }
  body.app .chat .ch-side { display:flex; min-height:0; border-right:1px solid var(--ch-line); animation:none; }
  body.app .chat.one .ch-side { display:none; }
  body.app .chat[data-state] .ch-main, body.app .chat .ch-main { position:relative; inset:auto; z-index:auto; display:flex; animation:none; }
  body.app .chat[data-state] .ch-side { animation:none; }
  .ch-back { display:none !important; }
  html.ch-open, html.ch-open body { overflow:visible; }
  .lift-sheet { bottom:16px; border-radius:22px; }
  /* «+» не закрывает строку ввода сообщения (переписка открыта всегда) и последнюю карточку списка */
  body.app:has(> main.main-chat) > .mfab, body.app:has(> main.main-chat) > .mfab-shade { display:none; }
  body.app:has(> .mfab) > main:not(.main-chat) { padding-bottom:calc(104px + env(safe-area-inset-bottom)); }
  .ncp { left:calc(100px + env(safe-area-inset-left)) !important; right:auto; bottom:16px; width:min(400px, calc(100vw - 112px)); }
}

@media (prefers-reduced-motion:reduce) {
  .mbar-ic.jolt, .wpnav-chat > .ic.jolt, .ch-rec-w i, .dv-it, .ch-voice.run .ch-vp, .sp-in img, .sp-in b { animation:none; opacity:1; }
  .ti .ti-o, .ti .ti-f, .lift-a, .lift-sheet, .lift-shade { transition:none; }
}
html[data-motion=less] .mbar-ic.jolt, html[data-motion=less] .wpnav-chat > .ic.jolt, html[data-motion=less] .ch-rec-w i, html[data-motion=less] .dv-it,
html[data-motion=less] .ch-voice.run .ch-vp { animation:none; opacity:1; }
html[data-motion=less] .ti .ti-o, html[data-motion=less] .ti .ti-f, html[data-motion=less] .lift-a, html[data-motion=less] .lift-sheet,
html[data-motion=less] .lift-shade { transition:none; }
@media print { .splash, .lift { display:none !important; } }


/* ================= 1.0.28 (доработка 10): чаты регионов от администратора, «Избранное», напоминания, отложенные, свайп, «кто прочитал», без сети, отчёт, новый вход ================= */

/* --- 366: «Избранное» --- */
.ch-av.t-self { font-size:19px; background:linear-gradient(135deg, #a7acb3, #6c727a); }

/* --- 367: напоминание --- */
.ch-remc { display:flex; flex-direction:column; gap:6px; min-width:min(260px, 62vw); }
.ch-remc-h { display:flex; align-items:center; gap:7px; font-size:13px; }
.ch-remc-h b { font-weight:700; }
.ch-remc-h small { min-width:0; overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; }
.ch-remc-ic { display:inline-grid; place-items:center; width:26px; height:26px; flex:none; border-radius:50%; background:#fff2d6; font-size:14px;
  animation:remRing 1.2s .25s ease-in-out 2; transform-origin:50% 20%; }
@keyframes remRing { 0%, 100% { transform:none; } 15% { transform:rotate(-16deg); } 30% { transform:rotate(13deg); } 45% { transform:rotate(-9deg); } 60% { transform:rotate(5deg); } }
.ch-remc .ch-q { margin:0; }
.ch-remc-go { align-self:flex-start; }
.ch-rem-mk { margin:0 2px 0 0; padding:0 2px; min-height:0; border:0; background:none; font-size:11px; line-height:1; cursor:pointer; filter:grayscale(.2); }

/* --- выбор времени (напоминание, отложенная отправка) --- */
.ch-tp { display:flex; flex-direction:column; gap:6px; }
.ch-tp-b { display:flex; align-items:baseline; justify-content:space-between; gap:12px; width:100%; min-height:0; margin:0; padding:12px 14px; border:1px solid var(--line);
  border-radius:14px; background:var(--card); color:var(--ink); font:inherit; font-weight:600; text-align:left; cursor:pointer; transition:background .15s, border-color .15s; }
.ch-tp-b:hover, .ch-tp-b:focus-visible { border-color:#c9c9c9; background:var(--soft); outline:none; }
.ch-tp-b small { color:var(--muted); font-weight:500; white-space:nowrap; }
.ch-tp-b.danger { color:var(--err); }
.ch-tp-own { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:4px 2px; }
.ch-tp-own input { flex:1 1 200px; min-width:0; }
.ch-tp-n { margin:-2px 0 2px; }

/* --- 368: отложенные --- */
.ch-sched { display:flex; align-items:center; gap:8px; width:calc(100% - 16px); min-height:0; margin:0 8px 6px; padding:7px 12px; border:1px dashed #c6c9ce; border-radius:12px;
  background:var(--soft); color:var(--ink2); font:inherit; font-size:13px; text-align:left; cursor:pointer; animation:chFade .2s ease-out both; }
.ch-sched[hidden] { display:none; }
.ch-sched small { margin-left:auto; color:var(--muted); white-space:nowrap; }
.ch-sched-ic { font-size:14px; }
.ch-scl { display:flex; flex-direction:column; gap:8px; overflow:auto; }
.ch-scl-it { display:flex; flex-direction:column; gap:8px; padding:10px 12px; border:1px solid var(--line); border-radius:14px; background:var(--card); }
.ch-scl-t { display:flex; flex-direction:column; gap:3px; min-width:0; }
.ch-scl-t span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; color:var(--ink2); overflow-wrap:anywhere; }
.ch-scl-a { display:flex; flex-wrap:wrap; gap:6px; }

/* --- 370: свайп по чату в списке --- */
.ch-list { position:relative; }
.ch-it.sw { position:relative; z-index:1; background:var(--sw-bg, var(--card)); border-radius:14px; box-shadow:0 2px 10px rgba(0,0,0,.08); }
.ch-swa { position:absolute; left:6px; right:6px; z-index:0; display:flex; align-items:stretch; justify-content:space-between; overflow:hidden; border-radius:14px; pointer-events:none; }
.ch-swa > span { display:flex; align-items:center; gap:8px; padding:0 16px; white-space:nowrap; color:#fff; font-size:13px; opacity:0; transition:opacity .12s, background .15s; }
.ch-swa-l { background:#5d7a68; }
.ch-swa-r { margin-left:auto; background:#6b7079; }
.ch-swa[data-dir=l] .ch-swa-l, .ch-swa[data-dir=r] .ch-swa-r { opacity:1; flex:1; }
.ch-swa[data-dir=r] .ch-swa-r { justify-content:flex-end; }
.ch-swa[data-hit=l] .ch-swa-l { background:#2f7a4f; }
.ch-swa[data-hit=r] .ch-swa-r { background:#3c4148; }
.ch-swa > span.off { background:#a6a9ae; }
.ch-swa i { display:inline-grid; place-items:center; width:26px; height:26px; font-style:normal; font-size:17px; transition:transform .2s cubic-bezier(.3,1.6,.4,1); }
.ch-swa i svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.ch-swa[data-hit=l] .ch-swa-l i, .ch-swa[data-hit=r] .ch-swa-r i { transform:scale(1.25); }
@media (pointer:coarse) { .ch-list .ch-it { touch-action:pan-y; } }

/* --- 371: кто прочитал --- */
.ch-rds .ch-pp small { color:var(--muted); }

/* --- 375: нет связи --- */
.ch-net { display:flex; align-items:center; gap:8px; margin:6px 10px 0; padding:8px 12px; border-radius:12px; background:#fff4e0; color:#6b4f12; font-size:13px; animation:chFade .2s ease-out both; }
.ch-net[hidden] { display:none; }
.ch-net small { color:#86680a; }
.ch-net-dot { width:9px; height:9px; flex:none; border-radius:50%; background:#d39b18; animation:netPulse 1.4s ease-in-out infinite; }
@keyframes netPulse { 50% { opacity:.35; transform:scale(.8); } }
.ch-m.pending .ch-pend-t { overflow-wrap:anywhere; }

/* --- чат региона: создать, участники --- */
.ch-rg-sel { width:100%; }
.ch-rg-n { margin:0; }
.ch-rg-have p { margin:4px 0 8px; }
.ch-dlg.chd-rg .ch-dlg-in { width:min(520px, 100%); }

/* --- 374: отчёт по задачам --- */
.ord-rep { display:flex; flex-direction:column; gap:10px; margin:0 0 16px; padding:14px 16px; border-radius:18px; }
.ord-rep-h { display:flex; flex-direction:column; gap:2px; }
.ord-rep-q, .ord-rep-r { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.ord-rep-r label { display:flex; align-items:center; gap:6px; margin:0; }
.ord-rep-r label span { color:var(--muted); font-size:13px; }
.ord-rep-r input[type=date] { width:auto; min-width:150px; }
.orp { max-width:1180px; }
.orp-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:0 0 14px; }
.orp-f { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0; }
.orp-f label { display:flex; align-items:center; gap:6px; margin:0; }
.orp-f label span { color:var(--muted); font-size:13px; }
.orp-f input[type=date] { width:auto; }
.orp-h h1 { margin:0 0 4px; }
.orp-h p { margin:0 0 14px; color:var(--ink2); }
.orp-sum { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; margin:0 0 8px; }
@media (max-width:700px) { .orp-sum { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.orp-sum > div { display:flex; flex-direction:column; gap:2px; padding:12px 14px; border-radius:16px; background:var(--card); box-shadow:var(--shadow); }
.orp-sum b { font-size:24px; font-weight:750; line-height:1.15; }
.orp-sum span { color:var(--muted); font-size:12.5px; }
.orp-sum .ok b { color:#2f7a4f; } .orp-sum .late b { color:#9a6a00; } .orp-sum .over b { color:#b3261e; }
.orp-n { margin:6px 0 18px; }
.orp h2 { margin:22px 0 8px; font-size:17px; }
.orp-t { width:100%; }
.orp-t td.ok { color:#2f7a4f; } .orp-t td.late { color:#9a6a00; } .orp-t td.over { color:#b3261e; }
.orp-t tr.tot td { font-weight:700; border-top:2px solid var(--line); }
.orp-i tr.st-over td:last-child { color:#b3261e; font-weight:600; } .orp-i tr.st-late td:last-child { color:#9a6a00; }
.orp-i tr.st-ok td:last-child { color:#2f7a4f; } .orp-i tr.st-cancel td { color:var(--muted); }
@media print {
  body.app { display:block !important; padding:0 !important; }
  body.app > .sidebar, .mbar, .mfab, .mfab-shade, .toasts, .noprint, .splash { display:none !important; }
  body.app > main { padding:0 !important; max-width:none !important; }
  .orp-sum > div { box-shadow:none; border:1px solid #ccc; }
  .orp-t th, .orp-t td { padding:4px 6px; font-size:11px; }
  .orp h2 { break-after:avoid; }
  .orp-t tr { break-inside:avoid; }
}

/* --- 378: вход с нового устройства --- */
.dv-alert { display:flex; align-items:flex-start; gap:12px; margin:0 0 14px; padding:14px 16px; border:1px solid #f0d6a2; border-radius:18px; background:#fff8e8;
  animation:dvIn .3s ease-out both; }
.dv-alert.done { border-color:var(--line); background:var(--soft); }
.dv-alert-ic { display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:12px; background:#ffe7b3; color:#86680a; }
.dv-alert-ic .ic { width:22px; height:22px; }
.dv-alert-b { display:flex; flex-direction:column; gap:3px; min-width:0; }
.dv-alert-b span { color:var(--ink2); font-size:13.5px; overflow-wrap:anywhere; }
.dv-alert-b small { color:var(--muted); font-size:12.5px; }
.dv-alert-a { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.dv-alert-a form { margin:0; }
.dv-new.nd { background:#e8eef7; color:#3d5f8f; }
.dv-new.nd.deny { background:#fbe9e7; color:#b3261e; }
.dva h1 { margin-top:0; }
.dva-dev { padding:12px 14px; border-radius:14px; background:var(--soft); }
.dva-a { display:flex; flex-direction:column; gap:8px; }
.dva-ok { color:#2f7a4f; font-weight:600; }

@media (prefers-reduced-motion:reduce) {
  .ch-remc-ic, .ch-net-dot { animation:none; }
}
html[data-motion=less] .ch-remc-ic, html[data-motion=less] .ch-net-dot { animation:none; }

/* ================= 1.0.28 (доработка 11): ход события, сканер документа, чтение без связи, фото чата */
/* 405: ход события в карточке сообщения */
.mchain h2 { display:flex; align-items:center; gap:8px; }
.mch { list-style:none; margin:6px 0 0; padding:0 0 0 4px; position:relative; }
.mch::before { content:""; position:absolute; left:11px; top:8px; bottom:8px; width:2px; border-radius:2px; background:var(--line); }
.mch-i { position:relative; display:flex; gap:12px; padding:6px 0 10px; }
.mch-dot { position:relative; z-index:1; flex:none; width:16px; height:16px; margin:3px 0 0; border-radius:50%; background:var(--card);
  border:3px solid #9aa0a6; box-shadow:0 0 0 3px var(--card); }
.mch-b { min-width:0; flex:1; }
.mch-h { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.mch-h b { font-size:14px; font-weight:650; }
.mch-h time { flex:none; color:var(--muted); font-size:12.5px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.mch-who { display:block; color:var(--muted); font-size:12.5px; }
.mch-t { margin:3px 0 0; font-size:13.5px; line-height:1.45; color:var(--ink2); overflow-wrap:anywhere; }
.mch-a { display:inline-block; margin-top:3px; font-size:13px; }
.mch-i.k-new .mch-dot { border-color:#4b5563; background:#4b5563; }
.mch-i.k-add .mch-dot { border-color:#6b7280; }
.mch-i.k-ack .mch-dot, .mch-i.k-orda .mch-dot { border-color:#2f7a4f; }
.mch-i.k-ask .mch-dot { border-color:#c98a16; }
.mch-i.k-media .mch-dot, .mch-i.k-cmt .mch-dot { border-color:#b2b2b2; }
.mch-i.k-ord .mch-dot, .mch-i.k-ordx .mch-dot { border-color:#5b6b85; border-radius:5px; }
.mch-i.k-out { margin-top:4px; padding:10px 12px 12px; border-radius:14px; background:var(--soft); }
.mch-i.k-out .mch-dot { border-color:#1f2937; background:#1f2937; }
.mch-i.k-out .mch-t { color:var(--ink); font-size:14.5px; white-space:pre-line; }
.mch-out { margin:8px 0 0; }
.mch-out summary { display:inline-flex; align-items:center; min-height:34px; padding:6px 14px; border-radius:12px; border:1px solid var(--line);
  background:var(--card); cursor:pointer; font-weight:600; font-size:13.5px; list-style:none; }
.mch-out summary::-webkit-details-marker { display:none; }
.mch-out[open] summary { margin-bottom:8px; }
.mch-out form { display:flex; flex-direction:column; gap:8px; }
.mch-oa { display:flex; flex-wrap:wrap; gap:8px; }

/* 404: сканер документа */
.scn-btn { display:inline-flex; align-items:center; gap:6px; }
.attach .scn-btn { margin-top:8px; }
.scn { position:fixed; inset:0; z-index:950; display:grid; place-items:center; padding:12px; background:rgba(18,20,24,.55); animation:chFade .18s ease-out both; }
.scn-in { display:flex; flex-direction:column; gap:10px; width:min(620px, 100%); max-height:calc(100dvh - 24px); overflow:auto; padding:14px 16px 16px;
  border-radius:20px; background:var(--card); box-shadow:0 24px 60px rgba(0,0,0,.3); }
.scn-hd { display:flex; align-items:center; gap:10px; font-size:17px; }
.scn-hd b { flex:1; }
.scn-cnt { color:var(--muted); font-size:13px; }
.scn-x { min-width:36px; }
.scn-tip { margin:0; }
.scn-empty { display:flex; flex-direction:column; align-items:center; gap:12px; padding:34px 12px; border:2px dashed var(--line); border-radius:16px; }
.scn-pk { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.scn-stage { position:relative; align-self:center; border-radius:10px; overflow:visible; touch-action:none; user-select:none; background:#111; }
.scn-img { display:block; width:100%; height:100%; border-radius:10px; }
.scn-q { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.scn-q polygon { fill:rgba(255,255,255,.14); stroke:#fff; stroke-linejoin:round; filter:drop-shadow(0 0 2px rgba(0,0,0,.6)); }
.scn-h { position:absolute; width:30px; height:30px; margin:-15px 0 0 -15px; border-radius:50%; background:rgba(255,255,255,.25); border:3px solid #fff;
  box-shadow:0 1px 6px rgba(0,0,0,.5); cursor:grab; touch-action:none; outline:none; }
.scn-h::after { content:""; position:absolute; inset:-9px; border-radius:50%; }
.scn-h:focus-visible, .scn-h.on { background:rgba(255,255,255,.55); transform:scale(1.15); }
.scn-tools, .scn-modes { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; }
.scn-modes button[aria-checked=true] { background:#2b2b2b; border-color:#2b2b2b; color:#fff; }
.scn-resb { display:grid; place-items:center; padding:10px; border-radius:14px; background:var(--soft); }
.scn-res { display:block; max-width:100%; max-height:52vh; border-radius:4px; box-shadow:0 2px 12px rgba(0,0,0,.18); background:#fff; }
.scn-strip { display:flex; gap:8px; overflow-x:auto; padding:2px 2px 6px; }
.scn-pg { position:relative; flex:none; width:62px; text-align:center; }
.scn-pg img { display:block; width:62px; height:84px; object-fit:cover; border-radius:6px; border:1px solid var(--line); background:#fff; }
.scn-pg small { color:var(--muted); font-size:11.5px; }
.scn-pgx { position:absolute; top:-6px; right:-6px; width:22px; height:22px; min-height:0; padding:0; border-radius:50%; font-size:11px; line-height:1; }
.scn-name { display:flex; flex-direction:column; gap:4px; margin:0; }
.scn-name span { color:var(--muted); font-size:13px; }
.scn-f { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.scn-sp { flex:1; }
html.scn-open { overflow:hidden; }

/* 400: без связи – полоса над страницей */
.off-bar { position:fixed; left:50%; top:calc(8px + env(safe-area-inset-top)); z-index:940; transform:translateX(-50%); display:flex; flex-wrap:wrap; align-items:center;
  gap:6px 10px; max-width:min(680px, calc(100vw - 16px)); padding:9px 14px; border-radius:14px; background:#3a3f45; color:#fff; font-size:13.5px;
  box-shadow:0 8px 24px rgba(0,0,0,.22); animation:chFade .2s ease-out both; }
.off-bar b { font-weight:700; }
.off-bar[data-st=back] { background:#2f7a4f; }
.off-bar button { min-height:0; padding:4px 10px; border-radius:10px; background:#fff; color:#222; border:0; }

/* 401: фото чата – в окне кадра без овала для лица */
.phx.nof .phx-face { display:none; }

/* 390, 417: настройки */
#ordrep select, #cloud select { width:100%; }
.chup-th[data-k=doc] { display:grid; place-items:center; }
.chup-th[data-k=doc]:empty::before { content:"PDF"; font-weight:750; font-size:12.5px; letter-spacing:.04em; color:var(--muted); }

/* ================= 1.0.28 (доработка 12): электронная подпись, анимации 420–422, «потянуть, чтобы обновить», файлы в облако */
/* 432: страницы «Электронная подпись» и «Проверка подписи» */
.es-page { max-width:1100px; }
.es-lead { margin:-4px 0 14px; color:var(--ink2); font-size:14px; line-height:1.5; max-width:880px; }
.es-nav { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 14px; }
.es-nav a { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:12px; border:1px solid var(--line); background:var(--card);
  color:var(--ink); text-decoration:none; font-size:13.5px; }
.es-nav a:hover { border-color:var(--brand); }
.es-n { min-width:20px; padding:0 6px; border-radius:9px; background:#ececec; font-size:12px; text-align:center; }
.es-look-g { display:grid; grid-template-columns:minmax(260px, 1.15fr) minmax(260px, 1fr); gap:18px 24px; align-items:start; }
.es-prev, .es-stampbox { margin:0; display:flex; flex-direction:column; gap:8px; }
.es-cv { display:block; width:100%; max-width:560px; height:auto; aspect-ratio:2.45; border-radius:12px; background:transparent; }
.es-cv.on { aspect-ratio:auto; }
.es-prev .es-cv { padding:14px; box-sizing:border-box; border-radius:16px; background:var(--soft); }
.es-lf input[type=file] { max-width:100%; }
.es-lstate { margin:0; color:var(--muted); }
.es-colors { display:flex; flex-wrap:wrap; gap:6px 18px; margin:0; padding:0; border:0; }
.es-colors legend { padding:0; margin-bottom:4px; font-size:13.5px; color:var(--ink2); }
.es-btns { display:flex; flex-wrap:wrap; gap:8px; }
.es-term { display:flex; flex-direction:column; gap:6px; font-size:13.5px; color:var(--ink2); }
.es-terms { display:flex; flex-wrap:wrap; gap:6px; }
.es-terms button.on { background:#2b2b2b; border-color:#2b2b2b; color:#fff; }
.es-t td { vertical-align:top; }
.es-t .es-num { text-align:right; font-variant-numeric:tabular-nums; }
.es-ser { font-size:12px; white-space:nowrap; }
.es-fp, .es-sha { font-size:12.5px; word-break:break-all; }
.es-chip { display:inline-block; padding:2px 9px; border-radius:999px; font-size:12px; font-weight:600; background:#ececec; color:var(--ink2); white-space:nowrap; }
.es-chip.st-ok { background:#e1f3e8; color:#1d6b40; }
.es-chip.st-wait { background:#e7eef9; color:#24508f; }
.es-chip.st-exp { background:#f1f1f1; color:#6b6b6b; }
.es-chip.st-rev { background:#fde3df; color:#a1271f; }
.es-r.st-rev td, .es-r.st-exp td { color:var(--muted); }
.es-bad { color:#a1271f; }
.es-good { color:#1d6b40; }
.es-act { white-space:nowrap; }
.es-act > a { margin-right:10px; }
.es-rev { display:inline-block; vertical-align:top; }
.es-rev summary { cursor:pointer; color:#a1271f; list-style:none; display:inline; }
.es-rev summary::-webkit-details-marker { display:none; }
.es-rev[open] { display:block; margin-top:8px; padding:10px 12px; border-radius:12px; background:var(--soft); white-space:normal; min-width:240px; }
.es-rev form { margin-top:8px; }
.es-q { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 12px; }
.es-q input { flex:1; min-width:220px; }
.es-how summary { cursor:pointer; font-weight:600; }
.es-how ul { margin:10px 0 0; padding-left:20px; line-height:1.5; font-size:13.5px; color:var(--ink2); }
.es-rootf { align-items:end; margin-top:8px; }
.es-cform { display:grid; grid-template-columns:minmax(180px, 220px) minmax(220px, 1fr) auto; gap:10px 14px; align-items:end; }
.es-cgo { display:flex; flex-direction:column; gap:4px; }
.es-sform { display:flex; flex-wrap:wrap; gap:8px; }
.es-sform input { flex:1; min-width:220px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.es-res { border-width:2px; }
.es-res.lv-ok { border-color:#9fd3b2; }
.es-res.lv-bad { border-color:#efb1a9; }
.es-verdict { display:flex; gap:14px; align-items:flex-start; }
.es-verdict b { font-size:19px; }
.es-verdict p { margin:4px 0 0; color:var(--ink2); }
.es-vi { flex:none; display:grid; place-items:center; width:46px; height:46px; border-radius:50%; background:#2f7a4f; animation:esPop .5s cubic-bezier(.3,1.6,.5,1) both; }
.es-vi svg { width:26px; height:26px; fill:none; stroke:#fff; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.es-vi svg path { stroke-dasharray:30; stroke-dashoffset:30; animation:esDraw .45s ease-out .25s forwards; }
.lv-bad .es-vi { background:#b3261e; }
@keyframes esPop { from { transform:scale(.4); opacity:0; } to { transform:none; opacity:1; } }
@keyframes esDraw { to { stroke-dashoffset:0; } }
.es-res-g { display:grid; grid-template-columns:minmax(240px, 1fr) minmax(240px, 1fr); gap:16px 22px; margin:16px 0 6px; align-items:start; }
.es-checks { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.es-checks li { position:relative; padding:8px 12px 8px 36px; border-radius:12px; background:var(--soft); font-size:13.5px; line-height:1.4;
  animation:esIn .35s ease-out both; animation-delay:calc(var(--i, 0) * 90ms + 150ms); }
.es-checks li::before { position:absolute; left:11px; top:8px; width:17px; height:17px; border-radius:50%; display:grid; place-items:center;
  font-size:11px; font-weight:800; color:#fff; content:"✓"; background:#2f7a4f; }
.es-checks li.no { background:#fdf0ee; }
.es-checks li.no::before { content:"✕"; background:#b3261e; }
.es-checks li.na::before { content:"i"; background:#8e8e8e; font-style:italic; }
@keyframes esIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.es-kv { margin-top:10px; }
.es-kv dd { overflow-wrap:anywhere; }
.es-where { margin:0; padding-left:18px; }
.es-cert { margin-top:12px; padding:12px 14px; border-radius:14px; background:var(--soft); border-left:4px solid #9aa0a6; }
.es-cert.lv-ok { border-left-color:#2f7a4f; }
.es-cert.lv-bad { border-left-color:#b3261e; }
.es-cert.lv-warn { border-left-color:#c98a16; }
.es-cert-h { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 6px; }
@media (max-width: 760px) {
  .es-look-g, .es-res-g, .es-cform { grid-template-columns:1fr; }
  .es-t th:nth-child(5), .es-t td:nth-child(5) { display:none; }
  .es-ser { white-space:normal; word-break:break-all; }
  dl.kv.es-kv { grid-template-columns:1fr; gap:2px 0; }
  dl.kv.es-kv dt { margin-top:8px; }
  dl.kv.es-kv dt:first-child { margin-top:0; }
}

/* отметка «Подписан» у файлов: карточка сообщения и мессенджер */
.es-badge { display:inline-flex; align-items:center; gap:5px; margin-top:4px; padding:3px 9px; border-radius:999px; background:#e1f3e8; color:#1d6b40;
  font-size:12px; font-weight:600; text-decoration:none; max-width:100%; }
.es-badge .ic { width:14px; height:14px; flex:none; }
.es-badge span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.es-badge:hover { background:#d2ecdc; }
.ch-doc-es { display:flex; align-items:center; gap:5px; margin:6px 10px 2px; padding:3px 9px; width:max-content; max-width:calc(100% - 20px); border-radius:999px;
  background:#e1f3e8; color:#1d6b40; font-size:12px; font-weight:600; text-decoration:none; }
.ch-doc-es span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* сканер: подпись */
.scn-rw { position:relative; display:inline-block; line-height:0; max-width:100%; }
.scn-stp { position:absolute; z-index:2; display:block; line-height:0; cursor:grab; touch-action:none; user-select:none; border-radius:4px;
  box-shadow:0 0 0 2px rgba(43,43,43,.0), 0 6px 18px rgba(0,0,0,.22); outline:2px dashed rgba(43,43,43,.55); outline-offset:2px;
  animation:esIn .3s ease-out both; }
.scn-stp img { display:block; width:100%; height:auto; pointer-events:none; }
.scn-stp.on, .scn-stp:focus-visible { cursor:grabbing; outline-color:#2b2b2b; box-shadow:0 10px 26px rgba(0,0,0,.3); }
.scn-sg { display:flex; flex-direction:column; gap:8px; padding:10px 12px; border-radius:14px; border:1px solid var(--line); background:var(--card); }
.scn-sg-on { font-weight:600; }
.scn-sg-b { display:flex; flex-direction:column; gap:8px; }
.scn-sg-b[hidden] { display:none; }
.scn-sg-pl { display:flex; flex-wrap:wrap; gap:6px; }
.scn-sg-pl button[aria-checked=true] { background:#2b2b2b; border-color:#2b2b2b; color:#fff; }
.scn-sg-pw { display:flex; flex-direction:column; gap:4px; margin:0; }
.scn-sg-pw span { color:var(--muted); font-size:13px; }
.scn-sg-i { color:var(--muted); font-size:12.5px; overflow-wrap:anywhere; }
.scn-f { position:sticky; bottom:-16px; z-index:3; margin:0 -16px -16px; padding:10px 16px 14px; background:var(--card);
  border-radius:0 0 20px 20px; box-shadow:0 -10px 16px -14px rgba(0,0,0,.25); }
/* 421: рамка «находит» лист, снимок «выпрямляется» */
.scn-stage.seek .scn-h { background:rgba(255,255,255,.4); box-shadow:0 0 0 6px rgba(255,255,255,.18); }
.scn-stage.seek .scn-q polygon { stroke-dasharray:14 8; }
.scn-ghost { position:fixed; left:0; top:0; z-index:960; transform-origin:0 0; pointer-events:none; border-radius:2px; background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.35); will-change:transform; }
.scn-resb.unw .scn-rw { visibility:hidden; }

/* 420: «Ход события» прорисовывается */
.mch.anim::before { transform:scaleY(0); transform-origin:top; }
.mch.anim.go::before { transform:none; transition:transform var(--dur, 1.2s) cubic-bezier(.3,.7,.3,1); }
.mch.anim .mch-i { opacity:0; transform:translateY(8px); }
.mch.anim.go .mch-i { opacity:1; transform:none; transition:opacity .4s ease-out var(--d, 0ms), transform .4s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
.mch.anim .mch-dot { transform:scale(.3); }
.mch.anim.go .mch-dot { transform:none; transition:transform .45s cubic-bezier(.3,1.6,.5,1) var(--d, 0ms); }
.mch.anim.go .mch-i.k-out { animation:mchFlash 1.5s ease-out calc(var(--d, 0ms) + 300ms) 1 both; }
@keyframes mchFlash {
  0% { box-shadow:0 0 0 0 rgba(142,142,142,0); }
  28% { box-shadow:0 0 0 6px rgba(142,142,142,.38); }
  100% { box-shadow:0 0 0 14px rgba(142,142,142,0); }
}

/* 422: связь появилась – сообщения улетают по одному, полоса «Нет связи» уезжает вверх */
.ch-net.back { background:#e5f3ea; color:#1e5b3a; }
.ch-net.back small { color:#2f6b47; }
.ch-net.back .ch-net-dot { background:#2f7a4f; }
.ch-net.out { animation:chNetUp .34s ease-in both; }
@keyframes chNetUp { to { transform:translateY(-120%); opacity:0; } }
.ch-m.fly { animation:chFly .55s cubic-bezier(.2,.8,.2,1) both; }
.ch-m.fly .ch-tk.wait { display:inline-block; animation:chSpin .9s linear infinite; }
@keyframes chFly { 0% { transform:none; } 35% { transform:translateY(-10px) scale(1.015); } 100% { transform:none; } }
@keyframes chSpin { to { transform:rotate(360deg); } }
.off-bar.out { animation:offUp .32s ease-in both; }
@keyframes offUp { to { transform:translate(-50%, -150%); opacity:0; } }

/* 425: «потянуть, чтобы обновить» – кольцо с логотипом */
.ptr { position:fixed; left:50%; top:calc(env(safe-area-inset-top) + 6px); z-index:930; width:48px; height:48px; margin:0; border-radius:50%;
  background:var(--card); box-shadow:0 4px 16px rgba(0,0,0,.18); transform:translate(-50%, -60px); opacity:0; pointer-events:none; }
.ptr-ring { position:absolute; inset:0; width:48px; height:48px; transform:rotate(-90deg); }
.ptr-ring circle { fill:none; stroke-width:3.2; }
.ptr-bg { stroke:#ececec; }
.ptr-fg { stroke:#b2b2b2; stroke-linecap:round; stroke-dasharray:131.95; stroke-dashoffset:131.95; transition:stroke .2s; }
.ptr.ready .ptr-fg { stroke:#2b2b2b; }
.ptr-logo { position:absolute; left:50%; top:50%; width:17px; height:30px; transform:translate(-50%, -50%); object-fit:contain; transition:transform .25s; }
.ptr.ready .ptr-logo { transform:translate(-50%, -50%) scale(1.12); }
.ptr.spin .ptr-ring { animation:ptrSpin .85s linear infinite; }
.ptr.spin .ptr-fg { stroke-dashoffset:90 !important; stroke:#2b2b2b; }
.ptr.done .ptr-fg { stroke-dashoffset:0 !important; stroke:#2f7a4f; }
@keyframes ptrSpin { from { transform:rotate(-90deg); } to { transform:rotate(270deg); } }
html.ptr-page, html.ptr-page body { overscroll-behavior-y:contain; }

/* 434: файлы в облако – в настройках копии в облако */
.cl-media { margin:12px 0; padding:10px 14px 12px; border:1px solid var(--line); border-radius:14px; }
.cl-media legend { padding:0 6px; font-weight:600; font-size:14px; }
.cl-mstate { margin:10px 0 6px; }

@media (prefers-reduced-motion: reduce) {
  .mch.anim .mch-i, .mch.anim .mch-dot { opacity:1; transform:none; }
  .mch.anim::before { transform:none; }
  .ch-m.fly, .ch-net.out, .off-bar.out, .es-vi, .es-checks li, .scn-stp { animation:none; }
}
html[data-motion=less] .mch.anim .mch-i, html[data-motion=less] .mch.anim .mch-dot { opacity:1; transform:none; }
html[data-motion=less] .mch.anim::before { transform:none; }

/* ---------- 1.0.28 (доработка 13): однофамильцы в ведомости, вход с кодом из приложения, утренний дайджест ---------- */
/* однофамильцы: под Ф.И.О. – кто это («Кто это?», если не уточнено) */
.pvf-who { grid-column:2 / -1; justify-self:start; display:inline-flex; align-items:center; gap:6px; max-width:100%; min-height:26px;
  margin:-1px 0 1px; padding:3px 10px 3px 11px; border:1px solid #dcdfe4; border-radius:999px; background:#f3f4f6; color:var(--ink2);
  font:inherit; font-size:12.5px; line-height:1.25; text-align:left; cursor:pointer; transition:background .15s, border-color .15s; }
.pvf-who:hover { background:#e9ebef; border-color:#c9cdd4; }
.pvf-who:focus-visible { outline:2px solid var(--ink); outline-offset:1px; }
.pvf-who-t { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.pvf-who small { color:var(--muted); font-size:11.5px; white-space:nowrap; }
.pvf-who-ch { color:var(--muted); font-size:10px; }
.pvf-who.auto { background:transparent; border-style:dashed; }
.pvf-who.auto .pvf-who-t { font-weight:500; }
.pvf-who.need { background:#fff4d6; border-color:#e0b24a; color:#6b4b00; box-shadow:0 0 0 3px rgba(224,178,74,.14); }
.pvf-who.need:hover { background:#ffedbf; }
.pvf-who.need .pvf-who-ch { color:#8a6300; }
.pv-alert.pv-alert-who { background:#fff4d6; color:#6b4b00; }
.pv-ac-full { font-weight:500; color:var(--ink2); margin-left:2px; }
.pv-ac-b.reg { background:#eceef1; color:#3d434c; }
.pv-ac-b.auto { background:#e6f2ea; color:#1d6b40; }
.pv-ac-it.cur { box-shadow:inset 3px 0 0 var(--ink); background:#f6f7f9; }
.pv-wm-clear { color:var(--muted); font-size:13px; border-top:1px solid var(--line); margin-top:4px; border-radius:0 0 8px 8px; }
.pv-whom .pv-ac-h { text-transform:none; letter-spacing:0; font-size:12.5px; }
@media (max-width:600px) {
  .pvf.has-who { grid-template-areas:"post fio fio fio" ". who who who" ". t0 t1 nb" ". note note note"; }
  .pvf-who { grid-area:who; justify-self:stretch; min-height:32px; }
  .pvf-who-t { white-space:normal; }
}
/* карточка охранника: смены «не уточнено, кто из однофамильцев» */
.cv-unsure { margin-top:12px; padding:10px 12px 4px; border-radius:12px; background:#fff8e6; border:1px solid #f0dca6; }
.cv-unsure p { margin:0 0 6px; color:#5c4300; }
.cv-unsure .cv-shifts li { opacity:.85; }
/* табель: однофамилец – полное Ф.И.О. из карточки */
.pvt-ns { display:block; font-size:11.5px; color:var(--muted); font-weight:400; line-height:1.25; }
.pvt-ns.unsure { color:#8a5300; }
/* настройка постов: однофамильцы в списке сотрудников */
.pvl-ns:empty { display:none; }
.pvl-ns { margin-top:10px; padding:10px 12px; border-radius:12px; background:#f6f7f9; border:1px solid var(--line); }
.pvl-nsh { font-size:12px; font-weight:600; letter-spacing:.02em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.pvl-nsr { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.4fr); gap:6px 12px; align-items:center; margin:0 0 6px; }
.pvl-nsr select { margin:0; }
.pvl-nsf small { font-weight:400; }
.pvl-ns p { margin:4px 0 0; }
@media (max-width:640px) { .pvl-nsr { grid-template-columns:minmax(0, 1fr); } }

/* вход с кодом из приложения */
.pill.tfa-on { background:#e1f3e8; color:#1d6b40; }
.tfa-card h1 { margin-bottom:6px; }
.tfa-card h2 { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.auth.tfa-auth { max-width:600px; }
.auth.again .card.tfa-card:not(.shake) { animation:fadeUp .3s cubic-bezier(.2,.8,.2,1) both; }   /* пароль уже ввели – без паузы */
.tfa-steps { margin:12px 0 4px; padding-left:22px; display:grid; gap:14px; }
.tfa-steps > li { font-size:14px; line-height:1.45; }
.tfa-steps > li::marker { font-weight:700; color:var(--muted); }
.tfa-qr-w { display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin-top:10px; }
.tfa-qr { flex:0 0 auto; width:188px; height:188px; padding:6px; background:#fff; border:1px solid #e3e3e3; border-radius:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.05); }
.tfa-qr svg { display:block; width:100%; height:100%; border-radius:8px; }
.tfa-man { flex:1 1 220px; min-width:0; }
.tfa-man p { margin:0 0 6px; }
.tfa-key { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.tfa-key code { font-size:15px; letter-spacing:.06em; padding:6px 10px; border-radius:8px; background:#f3f4f6; word-break:break-all;
  font-variant-numeric:tabular-nums; }
.tfa-app { display:none; margin-top:4px; }
@media (pointer:coarse) { .tfa-app { display:inline-flex; } }
.tfa-form { margin-top:8px; }
.tfa-form .tfa-code { font-size:22px; letter-spacing:.32em; text-align:center; font-variant-numeric:tabular-nums; }
.tfa-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.tfa-row input { flex:1 1 160px; margin:0; }
.tfa-row .tfa-code { font-size:16px; letter-spacing:.12em; text-align:left; }
.tfa-row .tfa-code::placeholder { letter-spacing:0; font-size:14px; }
.tfa-cancel, .tfa-new { margin-top:10px; text-align:center; }
.tfa-page { display:grid; gap:14px; max-width:760px; }
.tfa-page .tfa-card { margin:0; }
.tfa-rc { list-style:none; margin:12px 0; padding:12px; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:6px 18px;
  counter-reset:rc; background:#f6f7f9; border:1px dashed #cfd3d9; border-radius:12px; }
.tfa-rc li { counter-increment:rc; display:flex; align-items:baseline; gap:8px; }
.tfa-rc li::before { content:counter(rc) "."; min-width:1.6em; text-align:right; color:var(--muted); font-size:12px; }
.tfa-rc code { font-size:16px; letter-spacing:.08em; font-variant-numeric:tabular-nums; }
.tfa-rc-acts { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.tfa-devs { list-style:none; margin:6px 0 10px; padding:0; display:grid; gap:6px; }
.tfa-devs li { padding:8px 10px; border-radius:10px; background:#f6f7f9; }
.tfa-pw { margin-top:6px; }
@media print { .tfa-rc-acts, .tfa-codes .btn.primary, .sidebar, .mbar { display:none !important; } }

/* утренний дайджест */
.dg-line { margin:-4px 0 14px; font-size:14.5px; color:var(--ink2); }
.dg-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; margin-bottom:14px; }
@media (max-width:900px) { .dg-grid { grid-template-columns:minmax(0, 1fr); } }
.dg-sec { margin:0; }
.dg-sec h2 { display:flex; align-items:center; gap:8px; font-size:16px; }
.dg-sec h2 .ic { width:20px; height:20px; color:var(--muted); }
.dg-cnt { margin-left:auto; min-width:26px; padding:1px 8px; border-radius:999px; background:#eceef1; color:var(--ink2); font-size:13px;
  text-align:center; font-variant-numeric:tabular-nums; }
.dg-sec.dg-bad .dg-cnt { background:#fbe3e0; color:#a1271f; }
.dg-list { list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.dg-list li { padding:7px 8px; border-radius:9px; line-height:1.35; }
.dg-list li:hover { background:#f5f6f8; }
.dg-list a { color:var(--ink); text-decoration:none; font-weight:600; }
.dg-list a:hover { text-decoration:underline; }
.dg-no { color:var(--muted); font-weight:600; margin-right:2px; font-variant-numeric:tabular-nums; }
.dg-due { display:inline-block; margin-left:4px; color:var(--muted); }
.dg-n { display:inline-block; min-width:22px; margin-left:6px; padding:0 7px; border-radius:999px; background:#eceef1; text-align:center;
  font-size:12.5px; }
.pill.dg-new { background:#e7eef9; color:#24508f; font-size:11.5px; padding:1px 8px; }
.dg-doc.st-over .dg-due { color:#a1271f; }
.dg-doc.st-soon .dg-due { color:#8a5300; }
.dg-prefs { max-width:760px; }
.dg-ch { display:grid; gap:2px; margin:4px 0 10px 26px; }
.dg-why { display:block; font-size:12px; line-height:1.35; }
.guestsw { position:absolute; }                             /* длинные страницы входа (подключение кода) – не поверх текста */
.dg-send { margin-top:10px; }
.tfa-rcmode { display:block; margin:10px auto 0; }
.tfa-form .tfa-code.rc { letter-spacing:.12em; font-size:20px; }
/* «Задачи» → вкладка «Утренний дайджест» */
.dg-head { display:flex; align-items:center; gap:12px; margin:2px 0 10px; }
.dg-hic { flex:0 0 auto; width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:var(--acc-soft); color:var(--acc); }
.dg-hic .ic { width:22px; height:22px; }
.dg-head b { display:block; font-size:16px; }
.dg-head small { display:block; margin-top:2px; }

/* ================= 1.0.29: значок «в сети» на фото не обрезается (фото скругляется само); «Календарь сроков» – вкладка «Задач» */
.ch-av.ph, .pe-av.ph { overflow:visible; }
.mcal-in { margin-top:2px; }
@media (max-width:860px) { .ord-tabs .tab[data-k=cal] { display:none; } }

/* ================= 1.0.30 */
/* логотип на входе: без filter – iOS Safari в светлой теме рисовал вместо него белый прямоугольник */
.auth-logo, .auth-head .auth-logo { filter:none; }
@keyframes logoIn { from { opacity:0; transform:translateY(8px) scale(.9); } to { opacity:1; transform:none; } }
/* кружочки: без квадратной подложки сообщения; время – на круге */
.ch-b.ch-vnb { background:transparent !important; border-color:transparent !important; box-shadow:none !important; padding:0 !important; }
.ch-b.ch-vnb > .ch-meta { right:6px; bottom:6px; padding:1px 8px; border-radius:999px; background:rgba(0,0,0,.5); color:#fff !important; }
.ch-b.ch-vnb > :not(.ch-vnote):not(.ch-meta):not(.ch-rx):not(.ch-vnw):not(.ch-stt) { margin-top:6px; padding:6px 10px; border-radius:12px; background:var(--ch-pill); color:var(--ch-pill-ink); }
/* видео в круге и при записи – круг и на iPhone (Safari не всегда обрезает видео по border-radius) */
.ch-vr-live, .ch-vn-v { -webkit-mask-image:radial-gradient(circle closest-side, #000 98.5%, transparent 100%); mask-image:radial-gradient(circle closest-side, #000 98.5%, transparent 100%); }
.ch-vnote { -webkit-mask-image:radial-gradient(circle closest-side, #000 99%, transparent 100%); mask-image:radial-gradient(circle closest-side, #000 99%, transparent 100%); }

/* ================= 1.0.31 ================= */
/* iPhone и iPad (Safari и другие браузеры на iOS) приближают страницу, когда у поля шрифт меньше 16px, – на iOS поля
   не меньше 16px. Масштаб двумя пальцами остаётся, на Android и компьютере всё как было (maximum-scale в 1.0.30
   на Android запрещал увеличивать страницу). Поля с крупным шрифтом (код из письма, код из приложения) – как были. */
@supports (-webkit-touch-callout: none) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]):not([type=image]):not(.emoji):not(.fg-code):not(.tfa-code),
  select, textarea { font-size:16px !important; }
}

/* ================= 1.0.32 ================= */
/* ---------- мессенджер как в Битрикс24: шапка – фото и имя (нажатие – сведения о чате), справа видео и звонок */
.ch-hid { flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:10px; margin:-4px 0; padding:4px 6px 4px 0; border-radius:12px; cursor:pointer;
  -webkit-tap-highlight-color:transparent; }
.ch-hid:hover .ch-title { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.ch-hid:focus-visible { outline:2px solid var(--ch-acc2); outline-offset:2px; }
.ch-hid:active { background:var(--ch-field); }
.ch-hid .ch-ht { flex:1 1 auto; }
.ch-hacts .ch-call-b { color:var(--ch-acc-ink); }
.ch-hacts .ch-call-b .ic { width:22px; height:22px; }
@container chmain (max-width:600px) {
  .ch-hacts [data-act=find], .ch-hacts [data-act=media], .ch-hacts [data-act=snd], .ch-hacts [data-act=members], .ch-hacts [data-act=hmore] { display:none; }
  .ch-hacts [data-act=call-v]:not([hidden]), .ch-hacts [data-act=call-a]:not([hidden]) { display:inline-grid; }
  .ch-hacts { gap:4px; }
  .ch-hacts .ch-ib { width:40px; height:40px; }
}
/* сведения о чате: на компьютере – окно под шапкой, на телефоне – лист снизу */
.ch-menu button > .ic { width:19px; height:19px; flex:none; margin-right:11px; color:var(--ch-acc); }
.ch-menu button { display:flex; align-items:center; }
.ch-hsheet { width:330px; padding:8px; }
.ch-hs-top { display:flex; align-items:center; gap:12px; padding:8px 8px 12px; }
.ch-hs-top .ch-av { width:56px; height:56px; flex:none; font-size:18px; }
.ch-hs-n { display:flex; flex-direction:column; min-width:0; line-height:1.3; }
.ch-hs-n b { font-size:17px; overflow-wrap:anywhere; }
.ch-hs-n small { color:var(--muted); font-size:13px; }
.ch-hs-n small.on { color:var(--ch-on); }
.ch-hs-q { display:grid; grid-template-columns:repeat(auto-fit, minmax(64px, 1fr)); gap:6px; padding:0 4px 10px; margin-bottom:6px; border-bottom:1px solid var(--ch-line); }
.ch-menu .ch-hs-q button { flex-direction:column; justify-content:center; gap:5px; padding:9px 4px 7px; border-radius:12px; background:var(--ch-field); text-align:center; }
.ch-hs-qi { display:grid; place-items:center; width:30px; height:30px; color:var(--ch-acc-ink); }
.ch-hs-qi .ic { width:22px; height:22px; }
.ch-hs-q small { font-size:12px; color:var(--ink2); }
.ch-hs-l { display:flex; flex-direction:column; }
.ch-hs-bd { position:fixed; inset:0; z-index:9400; background:rgba(15,18,22,.38); animation:chFade .18s ease-out both; }
@keyframes chFade { from { opacity:0; } }
.ch-menu.sheet { left:0 !important; right:0; top:auto !important; bottom:0; width:auto; max-width:none; max-height:82dvh; overflow:auto; padding:10px 10px max(12px, env(safe-area-inset-bottom));
  border-radius:20px 20px 0 0; border-width:1px 0 0; animation:none; }
.ch-menu.sheet::before { content:""; display:block; width:38px; height:4px; margin:0 auto 8px; border-radius:2px; background:var(--ch-line); }
.ch-menu.sheet button { min-height:46px; font-size:15.5px; }
.ch-menu.sheet .ch-hs-q button { min-height:64px; }
/* ---------- поле ввода: скрепка, поле, смайлики, микрофон; есть текст или файлы – «Отправить» */
.ch-compose .ch-vnb { display:none !important; }
.ch-compose:not(.has-text):not(.no-mic):not(.upl) .ch-send { display:none; }
.ch-compose.has-text .ch-mic, .ch-compose.upl .ch-mic { display:none; }
.ch-compose .ch-mic { color:var(--ch-acc-ink); }
.ch-compose .ch-att { color:var(--ch-acc-ink); }
.ch-compose .ch-att .ic, .ch-compose .ch-emo .ic { width:22px; height:22px; }
.ch-emo { color:var(--ch-acc2); }
.ch-emo.on { color:var(--ch-acc-ink); background:var(--ch-field); }
.ch-compose.has-text .ch-send { animation:chSendIn .18s cubic-bezier(.2,.8,.2,1.4) both; }
@keyframes chSendIn { from { transform:scale(.6); opacity:.2; } }
.ch-emop { display:flex; flex-direction:column; margin:0 0 8px; border:1px solid var(--ch-line); border-radius:16px; background:var(--card); box-shadow:0 10px 26px rgba(0,0,0,.12); overflow:hidden; }
.ch-emo-tabs { display:flex; gap:2px; padding:6px 6px 4px; overflow-x:auto; scrollbar-width:none; border-bottom:1px solid var(--ch-line); }
.ch-emo-tabs::-webkit-scrollbar { display:none; }
.ch-emo-tabs button { flex:none; margin:0; padding:5px 11px; border:0; border-radius:999px; background:transparent; color:var(--muted); font-size:13px; font-weight:600; }
.ch-emo-tabs button.on { background:var(--ch-field); color:var(--ink); }
.ch-emo-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(42px, 1fr)); max-height:204px; padding:6px; overflow-y:auto; overscroll-behavior:contain; }
.ch-emo-b { display:grid; place-items:center; height:42px; margin:0; padding:0; border:0; border-radius:10px; background:transparent; font-size:25px; line-height:1;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; }
.ch-emo-b:hover, .ch-emo-b:focus-visible { background:var(--ch-field); outline:none; }
@media (prefers-reduced-motion:reduce) { .ch-compose.has-text .ch-send, .ch-hs-bd { animation:none; } }
html[data-motion=less] .ch-compose.has-text .ch-send, html[data-motion=less] .ch-hs-bd { animation:none; }
/* ---------- задачи как в Битрикс24: листы (снизу на телефоне, окном на компьютере) */
html.osh-open, html.otc-open { overflow:hidden; }
.osh-bd { position:fixed; inset:0; background:rgba(16,18,22,.42); }
.osh { --kb:0px; position:fixed; left:50%; top:50%; display:flex; flex-direction:column; width:min(600px, calc(100vw - 32px)); max-height:min(88dvh, 860px);
  transform:translate(-50%, -50%); border-radius:20px; background:var(--card); color:var(--ink); box-shadow:0 24px 70px rgba(0,0,0,.28); overflow:hidden; }
.osh:not(.osh-new) { width:min(480px, calc(100vw - 32px)); }
.osh.drop { outline:2px dashed #7b83c9; outline-offset:-6px; }
.osh-grab { display:none; }
.osh-h { display:grid; grid-template-columns:44px minmax(0, 1fr) 44px; align-items:center; min-height:54px; padding:4px 8px; border-bottom:1px solid var(--line); flex:none; }
.osh-t { text-align:center; font-size:16.5px; font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.osh-hb { display:grid; place-items:center; width:40px; height:40px; min-height:0; padding:0; border:0; border-radius:12px; background:transparent; color:var(--ink2); font-size:17px; }
.osh-hb:hover { background:var(--soft); }
.osh-hb .ic { width:22px; height:22px; }
.osh-b { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:10px 16px 14px; -webkit-overflow-scrolling:touch; }
.osh-f { display:flex; justify-content:flex-end; gap:10px; flex:none; padding:10px 16px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--card); }
.osh-f .osh-btn { min-width:120px; }
.osh-btn { min-height:44px; border-radius:12px; font-weight:600; }
.osh-btn.small { min-height:38px; padding:6px 14px; }
.osh-row { display:flex; align-items:center; gap:12px; width:100%; min-height:56px; margin:0; padding:8px 4px; border:0; border-bottom:1px solid var(--line); border-radius:0;
  background:transparent; color:var(--ink); text-align:left; font:inherit; cursor:pointer; }
.osh-row:last-child { border-bottom:0; }
.osh-row:hover { background:var(--soft); }
.osh-row:focus-visible { outline:2px solid #7b83c9; outline-offset:-2px; border-radius:10px; }
.osh-row.static { cursor:default; }
.osh-row.static:hover { background:transparent; }
.osh-row.on { background:#eef0fb; }
.osh-row.danger .osh-rt b { color:var(--err); }
.osh-rt { display:flex; flex-direction:column; flex:1; min-width:0; line-height:1.3; }
.osh-rt b { font-weight:550; font-size:15px; overflow-wrap:anywhere; }
.osh-rt small { color:var(--muted); font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.osh-ck { display:grid; place-items:center; width:24px; height:24px; flex:none; border:2px solid #c3c6cc; border-radius:7px; color:#fff; transition:background .15s, border-color .15s; }
.osh-ck.on { background:#4553b8; border-color:#4553b8; }
.osh-ck .ic { width:16px; height:16px; }
.osh-row[role=radio] .osh-ck { border-radius:50%; }
.osh-lic { display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:11px; background:var(--soft); color:var(--ink2); }
.osh-lic .ic { width:20px; height:20px; }
.osh-row > .ic { color:var(--muted); }
.osh-qw { position:sticky; top:-10px; z-index:2; display:flex; align-items:center; gap:8px; margin:0 0 8px; padding:0 12px; border-radius:12px; background:var(--soft);
  border:1px solid var(--line); }
.osh-qw .ic { width:18px; height:18px; color:var(--muted); }
.osh-q { flex:1; min-width:0; height:42px; margin:0; padding:0; border:0 !important; background:transparent !important; box-shadow:none !important; font-size:15px; }
.osh-sec { margin:12px 0 2px; color:var(--muted); font-size:12.5px; font-weight:600; }
.osh-empty { padding:18px 4px; text-align:center; }
.osh-note { margin:2px 0 6px; }
.osh-picked { display:flex; gap:10px; padding:6px 2px 10px; overflow-x:auto; scrollbar-width:none; }
.osh-picked::-webkit-scrollbar { display:none; }
.osh-pk { position:relative; display:flex; flex-direction:column; align-items:center; gap:4px; width:64px; flex:none; }
.osh-pk .oav { width:44px; height:44px; font-size:14px; }
.osh-pk small { width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center; font-size:11.5px; color:var(--ink2); }
.osh-pk-x { position:absolute; top:-4px; right:6px; display:grid; place-items:center; width:20px; height:20px; min-height:0; padding:0; border:2px solid var(--card); border-radius:50%;
  background:#6b7078; color:#fff; font-size:10px; }
.osh-fld { display:flex; flex-direction:column; gap:5px; margin:0 0 14px; font-size:13px; color:var(--muted); font-weight:500; }
.osh-fld input, .osh-fld select, .osh-fld textarea { width:100%; margin:0; font-size:15px; color:var(--ink); }
.osh-inl { display:flex; align-items:center; gap:8px; }
.osh-own { display:flex; align-items:center; gap:8px; padding:8px 4px 12px; }
.osh-own input { flex:1; min-width:0; margin:0; }
.osh-add { display:flex; align-items:center; gap:8px; width:100%; min-height:46px; margin:6px 0 0; padding:0 6px; border:0; background:transparent; color:#4553b8; font-weight:600; justify-content:flex-start; }
.osh-add .ic { width:20px; height:20px; }
.osh-cln { display:block; margin:0 0 8px; }
.osh-cl-r { display:flex; align-items:center; gap:10px; padding:4px 0; border-bottom:1px solid var(--line); }
.osh-cl-b { width:20px; height:20px; flex:none; border:2px solid #c3c6cc; border-radius:6px; }
.osh-cl-r input { flex:1; min-width:0; margin:0; border:0 !important; background:transparent !important; box-shadow:none !important; padding:8px 0; font-size:15px; }
.osh-cl-x { width:34px; height:34px; min-height:0; padding:0; border:0; background:transparent; color:var(--muted); }
.osh-sw { position:relative; display:flex; align-items:center; gap:12px; padding:12px 2px; border-bottom:1px solid var(--line); cursor:pointer; }
.osh-sw > span { flex:1; display:flex; flex-direction:column; gap:2px; }
.osh-sw > span b { font-weight:600; }
.osh-sw > span small { color:var(--muted); font-size:12.5px; line-height:1.35; }
.osh-sw input { position:absolute; opacity:0; width:1px; height:1px; }
.osh-sw i { position:relative; width:46px; height:28px; flex:none; border-radius:999px; background:#cfd2d7; transition:background .2s; }
.osh-sw i::after { content:""; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .2s; }
.osh-sw input:checked + i { background:#4553b8; }
.osh-sw input:checked + i::after { transform:translateX(18px); }
.osh-sw input:focus-visible + i { outline:2px solid #7b83c9; outline-offset:2px; }
.osh-sw input:disabled + i { opacity:.45; }
.osh-ttp { display:flex; align-items:center; gap:8px; padding:12px 2px; }
.osh-ttp input { width:84px; margin:0; text-align:center; font-size:18px; font-weight:600; }
.osh-seg, .ord-seg { display:flex; gap:4px; padding:4px; border-radius:12px; background:var(--soft); border:1px solid var(--line); margin:0 0 14px; overflow-x:auto; }
.osh-seg button, .ord-seg button { flex:1 0 auto; min-height:38px; margin:0; padding:6px 12px; border:0; border-radius:9px; background:transparent; color:var(--muted); font-weight:600; font-size:13.5px; }
.osh-seg button.on, .ord-seg button.on { background:var(--card); color:var(--ink); box-shadow:0 1px 4px rgba(0,0,0,.1); }
.osh-repm .od-wd { margin:0 0 12px; }
.osh-ftext { white-space:pre-wrap; overflow-wrap:anywhere; font-size:15px; line-height:1.55; }
.osh-menu .osh-row { min-height:52px; }
@media (max-width:760px), (pointer:coarse) and (max-height:520px) and (max-width:1000px) {
  .osh, .osh:not(.osh-new) { left:0; right:0; top:auto; bottom:var(--kb, 0px); width:auto; max-height:calc(100dvh - var(--kb, 0px) - 28px); transform:none; border-radius:22px 22px 0 0;
    box-shadow:0 -10px 40px rgba(0,0,0,.2); transition:bottom .12s; }
  .osh-grab { display:block; width:40px; height:5px; margin:8px auto 0; border-radius:3px; background:#d3d5da; flex:none; touch-action:none; }
  .osh-h { border-bottom:0; min-height:46px; touch-action:none; }
  .osh-b { padding:4px 16px 12px; }
  .osh-f { border-top:0; padding-top:6px; }
  .osh-f .osh-btn { flex:1; }
  .osh-row { min-height:58px; }
}
/* ---------- новая задача */
.osh-new .osh-b { padding:14px 18px 6px; }
.ont-mode { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:0 8px; align-items:center; margin:-4px 0 10px; }
.ont-mode small { grid-column:1; }
.ont-mode .osh-x { grid-row:1 / span 2; grid-column:2; }
.ont-ctx { display:flex; flex-direction:column; gap:2px; margin:0 0 10px; padding:8px 12px; border-left:3px solid #7b83c9; border-radius:8px; background:var(--soft); font-size:13px; }
.ont-ctx small { color:var(--muted); font-weight:600; }
.ont-ctx span { display:-webkit-box; overflow:hidden; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.ont-name { width:100%; margin:0 0 6px; font-weight:600; }
.ont-share { margin:0 0 12px; font-size:13.5px; }
.ont-tr { display:flex; align-items:flex-start; gap:6px; }
.ont-title, .ont-text { width:100%; margin:0; padding:4px 0; border:0 !important; background:transparent !important; box-shadow:none !important; resize:none; overflow:hidden; color:var(--ink); }
.ont-title { flex:1; min-width:0; font-size:19px; font-weight:650; line-height:1.3; }
.ont-text { font-size:15px; line-height:1.45; min-height:30px; color:var(--ink2); }
.ont-title::placeholder, .ont-text::placeholder { color:#a2a5ab; font-weight:500; }
.ont-hot { display:grid; place-items:center; width:40px; height:40px; min-height:0; flex:none; padding:0; border:0; border-radius:12px; background:transparent; color:#b4b7bd; }
.ont-hot .ic { width:23px; height:23px; }
.ont-hot.on { color:#e8590c; background:#fff1e6; }
.ont-files { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 2px; }
.ont-f { position:relative; display:block; width:66px; height:66px; border-radius:12px; overflow:hidden; background:#e7e9ec; flex:none; }
.ont-fp { display:grid; place-items:center; width:100%; height:100%; background-size:cover; background-position:center; color:#5d626b; font-weight:800; font-size:12px; }
.ont-fpr { position:absolute; left:6px; right:6px; bottom:6px; height:4px; border-radius:2px; background:rgba(255,255,255,.6); overflow:hidden; }
.ont-fbar { display:block; width:0; height:100%; background:#4553b8; transition:width .2s; }
.ont-f.ok .ont-fpr { display:none; }
.ont-f.bad { outline:2px solid var(--err); outline-offset:-2px; }
.ont-fx { position:absolute; top:3px; right:3px; display:grid; place-items:center; width:22px; height:22px; min-height:0; padding:0; border:0; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; font-size:11px; }
.ont-chips { display:flex; gap:8px; margin:12px -18px 4px; padding:2px 18px 8px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.ont-chips::-webkit-scrollbar { display:none; }
.ont-chip { display:inline-flex; align-items:center; gap:6px; flex:none; min-height:36px; max-width:260px; margin:0; padding:0 13px 0 10px; border:1px solid #d6d8dc; border-radius:999px;
  background:var(--card); color:var(--ink2); font-size:13.5px; font-weight:500; white-space:nowrap; }
.ont-chip span { overflow:hidden; text-overflow:ellipsis; }
.ont-chip .ic { width:17px; height:17px; color:#6b7078; }
.ont-chip:hover { background:var(--soft); }
.ont-chip.on { border-color:#b9bfe8; background:#eef0fb; color:#323d8e; }
.ont-chip.on .ic { color:#4553b8; }
.ont-chip[hidden] { display:none; }
.ont-foot { flex-direction:column; align-items:stretch; gap:6px; }
.ont-err { color:var(--err); font-size:13.5px; font-weight:500; }
.ont-bar { display:flex; align-items:center; gap:10px; }
.ont-to { display:flex; align-items:center; gap:10px; flex:1; min-width:0; min-height:48px; margin:0; padding:4px 10px 4px 6px; border:0; border-radius:14px; background:transparent; text-align:left; justify-content:flex-start; }
.ont-to:hover { background:var(--soft); }
.ont-avs { display:flex; flex:none; }
.ont-avs .oav { width:34px; height:34px; font-size:12px; border:2px solid var(--card); }
.ont-avs .oav + .oav { margin-left:-12px; }
.ont-tot { display:flex; flex-direction:column; min-width:0; line-height:1.2; }
.ont-tot small { color:var(--muted); font-size:11.5px; }
.ont-tot b { font-size:14.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ont-to.none .ont-tot b { color:#4553b8; }
.ont-to > .ic { width:18px; height:18px; color:var(--muted); flex:none; }
.ont-go { display:grid; place-items:center; width:46px; height:46px; min-height:0; flex:none; padding:0; border:0; border-radius:50%; background:var(--dark); color:#fff;
  box-shadow:0 6px 16px -6px rgba(0,0,0,.5); transition:transform .15s, opacity .15s, background .15s; }
.ont-go .ic { width:22px; height:22px; }
.ont-go.txt { width:auto; padding:0 20px; border-radius:14px; font-weight:600; }
.ont-go:disabled { background:#c9ccd1; box-shadow:none; opacity:1; cursor:default; }
.ont-go:not(:disabled):active { transform:scale(.92); }
.ont-go.busy { animation:ontPulse 1s ease-in-out infinite; }
@keyframes ontPulse { 50% { opacity:.55; } }
@media (min-width:761px) { .ont-chips { flex-wrap:wrap; overflow:visible; } }
/* кружок человека или региона */
.oav { display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:50%; overflow:hidden; background:linear-gradient(140deg, #8c96a8, #5d6676); color:#fff;
  font-size:12.5px; font-weight:700; letter-spacing:.02em; }
.oav img { width:100%; height:100%; object-fit:cover; }
.oav.reg { border-radius:11px; background:linear-gradient(140deg, #7d86c9, #4553b8); font-size:10.5px; }
.oav.none { background:#e3e5e9; color:#8b8f96; }
.oav.sp { visibility:hidden; }
/* ---------- вкладки задач */
.ord-moreb { margin-left:auto; padding-left:12px; padding-right:12px; }
.ord-moreb .ic { width:20px; height:20px; }
.ord-roles { display:flex; gap:6px; margin:-4px 0 12px; overflow-x:auto; scrollbar-width:none; }
.ord-roles::-webkit-scrollbar { display:none; }
.ord-role { flex:none; min-height:34px; margin:0; padding:0 14px; border:1px solid #d6d8dc; border-radius:999px; background:var(--card); color:var(--ink2); font-size:13.5px; font-weight:500; }
.ord-role.on { background:var(--dark); border-color:var(--dark); color:#fff; }
.ord-xhead { display:flex; align-items:center; gap:10px; margin:-4px 0 12px; }
.ord-xhead b { font-size:16px; }
.ord-xback { display:inline-flex; align-items:center; gap:2px; }
.ord-xback .ic { width:18px; height:18px; }
.ord-tpl-top .ord-seg { margin:0; }
.ord-tpl-top { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.ord-it-hot { font-size:.95em; }
.ord-it-tag { display:inline-block; padding:1px 7px; border-radius:6px; background:#eef0fb; color:#323d8e; font-size:11.5px; font-weight:600; }
/* ---------- карточка задачи */
.od1.otk { max-width:760px; margin:0 auto; padding-bottom:90px; }
.otk-top { position:sticky; top:0; z-index:30; display:flex; align-items:center; gap:4px; margin:-8px -8px 6px; padding:6px 8px; background:color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); }
.otk-hb { display:grid; place-items:center; width:40px; height:40px; min-height:0; flex:none; padding:0; border:0; border-radius:12px; background:transparent; color:var(--ink2); text-decoration:none; }
.otk-hb:hover { background:rgba(0,0,0,.05); }
.otk-hb .ic { width:22px; height:22px; }
.otk-hb:disabled { opacity:1; cursor:default; }
.otk-hot { color:#b4b7bd; }
.otk-hot.on { color:#e8590c; }
.otk-hs { width:8px; }
.otk-ht { position:relative; flex:1; min-width:0; height:24px; overflow:hidden; text-align:center; font-weight:600; color:var(--muted); }
.otk-ht > span { position:absolute; inset:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; transition:transform .25s, opacity .25s; }
.otk-ht1 { transform:translateY(100%); opacity:0; color:var(--ink); }
.otk-top.scrolled .otk-ht0 { transform:translateY(-100%); opacity:0; }
.otk-top.scrolled .otk-ht1 { transform:none; opacity:1; }
.otk-head { padding:2px 2px 6px; }
.otk-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 8px; }
.otk-title { margin:0 0 8px; font-size:24px; font-weight:700; line-height:1.25; letter-spacing:-.015em; overflow-wrap:anywhere; }
.otk-desc { display:-webkit-box; overflow:hidden; -webkit-line-clamp:6; -webkit-box-orient:vertical; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ink2); font-size:15px; line-height:1.5; }
.otk-dmore { margin:2px 0 0; padding:0; min-height:0; border:0; background:none; color:#4553b8; font-weight:600; font-size:14.5px; }
.otk-files { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 4px; }
.otk-fw { position:relative; flex:none; }
.otk-f { position:relative; display:grid; place-items:center; width:84px; height:84px; border-radius:14px; overflow:hidden; background:#e2e4e8; color:var(--ink2); text-decoration:none; }
.otk-f img { width:100%; height:100%; object-fit:cover; }
.otk-f.k-doc { width:auto; min-width:84px; max-width:220px; padding:8px 12px; grid-template-columns:auto; place-items:start; align-content:center; gap:4px; background:var(--card); border:1px solid var(--line); }
.otk-fi { font-weight:800; font-size:12.5px; color:#4553b8; }
.otk-f small { max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.otk-fplay { position:absolute; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:rgba(0,0,0,.45); color:#fff; font-size:12px; }
.otk-fx { position:absolute; top:-6px; right:-6px; display:grid; place-items:center; width:22px; height:22px; min-height:0; padding:0; border:2px solid var(--bg); border-radius:50%; background:#6b7078; color:#fff; font-size:10px; }
.otk-fadd { display:grid; place-items:center; width:84px; height:84px; min-height:0; padding:0; border:1.5px dashed #c3c6cc; border-radius:14px; background:transparent; color:var(--muted); }
.otk-fadd .ic { width:24px; height:24px; }
.otk-sec { margin:12px 0 0; padding:14px 16px; border-radius:18px; background:var(--card); box-shadow:var(--shadow); }
.otk-sec h2 { display:flex; align-items:baseline; gap:6px; margin:0 0 10px; font-size:15.5px; }
.otk-info { padding:6px 16px; }
.otk-rows { display:flex; flex-direction:column; }
.otk-row { display:flex; align-items:center; gap:12px; width:100%; min-height:58px; margin:0; padding:8px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent;
  color:var(--ink); text-align:left; font:inherit; justify-content:flex-start; }
.otk-row:last-child { border-bottom:0; }
.otk-row.tap { cursor:pointer; }
.otk-row.tap:hover { background:transparent; }
.otk-row.tap:hover .otk-rt b, .otk-row.tap:hover .ord-due b { text-decoration:underline; text-underline-offset:3px; }
.otk-row .oav { width:38px; height:38px; }
.otk-ric { display:grid; place-items:center; width:38px; height:38px; flex:none; border-radius:12px; background:var(--soft); color:#5d626b; }
.otk-ric .ic { width:20px; height:20px; }
.otk-ric.ok { color:var(--ok); background:#e5f1e9; }
.otk-rt { display:flex; flex-direction:column; min-width:0; line-height:1.3; }
.otk-rt > small { color:var(--muted); font-size:12px; }
.otk-rt > b { font-size:15px; font-weight:600; overflow-wrap:anywhere; }
.otk-rt .ord-due { font-size:15px; }
.otk-pos { color:var(--muted); font-size:12.5px; }
.otk-tt { display:flex; align-items:center; gap:10px; margin:12px 0 0; padding:10px 12px 10px 16px; border-radius:16px; background:var(--card); box-shadow:var(--shadow); }
.otk-tt-t { font:700 20px/1 Consolas, "Roboto Mono", monospace; letter-spacing:.03em; font-variant-numeric:tabular-nums; }
.otk-tt-t.over { color:var(--err); }
.otk-tt-n { flex:1; min-width:0; font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.otk-ttb { display:inline-flex; align-items:center; gap:6px; min-height:38px; padding:0 14px; border:0; border-radius:12px; background:var(--dark); color:#fff; font-weight:600; font-size:13.5px; }
.otk-ttb .ic { width:16px; height:16px; }
.otk-ttb.run { background:#e8590c; }
.otk-chips { display:flex; align-items:center; gap:8px; margin:12px -14px 0; padding:2px 14px 6px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.otk-chips::-webkit-scrollbar { display:none; }
.otk-acts { display:flex; gap:8px; flex:none; }
.otk-acts button { min-height:38px; margin:0; border-radius:999px; padding:0 16px; font-size:13.5px; font-weight:600; white-space:nowrap; }
.otk-acts:empty { display:none; }
.otk-chip { display:inline-flex; align-items:center; gap:6px; flex:none; min-height:38px; margin:0; padding:0 14px 0 11px; border:1px solid #d6d8dc; border-radius:999px; background:var(--card);
  color:var(--ink2); font-size:13.5px; font-weight:500; white-space:nowrap; }
.otk-chip .ic { width:17px; height:17px; color:#6b7078; }
.otk-chip.on { border-color:#b9bfe8; background:#eef0fb; color:#323d8e; }
.otk-chip.on .ic { color:#4553b8; }
.otk-social { display:flex; align-items:center; gap:10px; margin:10px 2px 0; }
.otk-like { display:inline-flex; align-items:center; gap:6px; min-height:34px; margin:0; padding:0 12px; border:1px solid #d6d8dc; border-radius:999px; background:var(--card); color:var(--ink2); font-size:13px; }
.otk-like .ic { width:17px; height:17px; }
.otk-like b { font-weight:700; }
.otk-like.on { border-color:#b9bfe8; background:#eef0fb; color:#323d8e; }
.otk-views { display:inline-flex; align-items:center; gap:5px; margin-left:auto; color:var(--muted); font-size:13px; }
.otk-views .ic { width:17px; height:17px; }
.otk-tagl { display:flex; flex-wrap:wrap; gap:6px; }
.otk-tagl:empty { display:none; }
.otk-tag { display:inline-flex; align-items:center; min-height:28px; padding:0 10px; border-radius:8px; background:var(--soft); border:1px solid var(--line); font-size:13px; font-weight:600; color:var(--ink2); }
.otk-addl { display:inline-flex; align-items:center; gap:6px; margin:8px 0 0; padding:4px 0; min-height:0; border:0; background:none; color:#4553b8; font-weight:600; font-size:14px; }
.otk-addl .ic { width:18px; height:18px; }
.otk .od-ppl-sec p { margin-top:-4px; }
.otk-res .od-res { background:var(--soft); }
.otk-chatpill { position:fixed; left:50%; bottom:22px; z-index:650; display:inline-flex; align-items:center; gap:8px; min-height:46px; margin:0; padding:0 20px 0 16px; border:0; border-radius:999px;
  transform:translateX(-50%); background:var(--dark); color:#fff; font-weight:650; font-size:14.5px; box-shadow:0 10px 26px -8px rgba(0,0,0,.55); }
.otk-chatpill:hover { background:#000; }
.otk-chatpill .ic { width:20px; height:20px; }
.otk-cn { min-width:22px; height:22px; padding:0 6px; border-radius:999px; background:rgba(255,255,255,.18); font-size:12px; line-height:22px; text-align:center; }
.otk-cn.new { background:#c8460d; }
html.embed .otk-chatpill { bottom:14px; }
.otk-pop { position:fixed; z-index:9600; display:flex; flex-direction:column; min-width:240px; max-width:calc(100vw - 16px); padding:6px; border:1px solid var(--line); border-radius:14px;
  background:var(--card); box-shadow:0 16px 40px rgba(0,0,0,.18); }
.otk-pop button { display:flex; align-items:center; gap:10px; justify-content:flex-start; width:100%; margin:0; padding:9px 12px; border:0; border-radius:10px; background:transparent; font-size:14px; text-align:left; }
.otk-pop button:hover, .otk-pop button:focus-visible { background:var(--soft); outline:none; }
.otk-pop button .ic { width:18px; height:18px; color:#6b7078; }
.otk-pop button.danger { color:var(--err); }
.otk-pop button.danger .ic { color:var(--err); }
@media (max-width:760px), (pointer:coarse) and (max-height:520px) and (max-width:1000px) {
  .od1.otk { padding-bottom:150px; }
  .otk-top { margin:calc(-10px - env(safe-area-inset-top)) -14px 4px; padding:calc(6px + env(safe-area-inset-top)) 6px 6px; }
  .otk-title { font-size:21px; }
  .otk-sec { border-radius:16px; padding:12px 14px; }
  .otk-chatpill { bottom:calc(78px + env(safe-area-inset-bottom)); }
  html.embed .otk-chatpill { bottom:calc(14px + env(safe-area-inset-bottom)); }
}
/* ---------- чат задачи */
.otc-bd { position:fixed; inset:0; z-index:9000; background:rgba(16,18,22,.3); }
.otc { position:fixed; top:0; right:0; bottom:0; z-index:9001; display:flex; flex-direction:column; width:min(520px, 100vw); background:var(--bg); box-shadow:-12px 0 40px rgba(0,0,0,.2); }
.otc-h { display:flex; align-items:center; gap:8px; min-height:60px; padding:8px 8px calc(8px) 8px; padding-top:max(8px, env(safe-area-inset-top)); border-bottom:1px solid var(--line); background:var(--card); flex:none; }
.otc-hb { display:grid; place-items:center; width:40px; height:40px; min-height:0; flex:none; padding:0; border:0; border-radius:12px; background:transparent; color:var(--ink2); }
.otc-hb .ic { width:22px; height:22px; }
.otc-av { display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:13px; background:linear-gradient(140deg, #7d86c9, #4553b8); color:#fff; }
.otc-av .ic { width:21px; height:21px; }
.otc-ht { display:flex; flex-direction:column; align-items:flex-start; flex:1; min-width:0; margin:0; padding:2px 4px; min-height:0; border:0; background:transparent; text-align:left; line-height:1.25; }
.otc-title { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15.5px; font-weight:650; }
.otc-sub { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:12.5px; }
.otc-list { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:12px 12px 16px; display:flex; flex-direction:column; gap:4px; }
.otc-day { display:flex; justify-content:center; margin:10px 0 6px; }
.otc-day span { padding:3px 12px; border-radius:999px; background:rgba(0,0,0,.06); color:var(--ink2); font-size:12px; font-weight:600; }
.otc-ev { display:flex; justify-content:center; margin:4px 0; }
.otc-ev > span { max-width:88%; padding:5px 12px; border-radius:12px; background:rgba(0,0,0,.045); color:var(--ink2); font-size:12.5px; text-align:center; line-height:1.4; overflow-wrap:anywhere; }
.otc-ev i { font-style:normal; color:var(--muted); }
.otc-ev small { color:var(--muted); }
.otc-ev.a-accept > span { background:#e5f1e9; color:#235c36; }
.otc-ev.a-return > span, .otc-ev.a-cancel > span, .otc-ev.a-over > span { background:#f8e4e2; color:#8a1d17; }
.otc-ev.a-send > span { background:#ebe7fb; color:#3e2fa8; }
.otc-card { align-self:center; position:relative; width:min(420px, 92%); margin:6px 0 8px; padding:12px 14px 22px; border-radius:16px; background:var(--card); box-shadow:var(--shadow); font-size:13.5px; }
.otc-card > b { display:block; margin-bottom:8px; font-size:14px; }
.otc-card dl { display:grid; grid-template-columns:max-content minmax(0, 1fr); gap:4px 12px; margin:0; }
.otc-card dt { color:var(--muted); }
.otc-card dd { margin:0; overflow-wrap:anywhere; }
.otc-cd { display:-webkit-box; overflow:hidden; -webkit-line-clamp:5; -webkit-box-orient:vertical; white-space:pre-wrap; }
.otc-card .otc-time { position:absolute; right:12px; bottom:6px; }
.otc-m { display:flex; align-items:flex-end; gap:8px; max-width:100%; margin-top:6px; }
.otc-m.cont { margin-top:1px; }
.otc-m .oav { width:32px; height:32px; font-size:11px; }
.otc-m.me { justify-content:flex-end; }
.otc-b { position:relative; max-width:min(78%, 420px); padding:7px 12px 18px; border-radius:16px 16px 16px 6px; background:var(--card); box-shadow:0 1px 2px rgba(0,0,0,.07); overflow-wrap:anywhere; }
.otc-m.me .otc-b { border-radius:16px 16px 6px 16px; background:var(--ch-mine); color:var(--ch-mine-ink); }
.otc-who { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 6px; margin-bottom:2px; }
.otc-who b { font-size:13px; color:#4553b8; }
.otc-who small { color:var(--muted); font-size:11.5px; }
.otc-t { white-space:pre-wrap; font-size:14.5px; line-height:1.42; }
.otc-time { position:absolute; right:10px; bottom:4px; color:var(--muted); font-size:11px; }
.otc-m.me .otc-time { color:var(--ch-mine-meta); }
.otc-b.del { font-size:13.5px; }
.otc-media { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:4px; margin:2px 0 6px; }
.otc-media.n1 { grid-template-columns:1fr; }
.otc-media .otk-fw { width:100%; }
.otc-media .otk-f { width:100%; height:auto; aspect-ratio:4 / 3; border-radius:10px; }
.otc-media.n1 .otk-f { max-width:280px; }
.otc-docs { display:flex; flex-direction:column; gap:4px; margin:2px 0 6px; }
.otc-doc { display:flex; align-items:center; gap:10px; padding:6px 8px; border-radius:10px; background:rgba(0,0,0,.04); color:inherit; text-decoration:none; }
.otc-m.me .otc-doc { background:rgba(255,255,255,.1); }
.otc-doc-x { display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:9px; background:#4553b8; color:#fff; font-size:10.5px; font-weight:800; }
.otc-doc > span:last-child { display:flex; flex-direction:column; min-width:0; }
.otc-doc b { font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.otc-doc small { opacity:.7; font-size:11.5px; }
.otc-hint { align-self:center; max-width:340px; margin:14px 0; text-align:center; font-size:13px; }
.otc-f { flex:none; padding:8px 10px calc(10px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--card); }
.otc-tray { display:flex; gap:8px; padding:2px 2px 8px; overflow-x:auto; }
.otc-cmp { display:flex; align-items:flex-end; gap:6px; }
.otc-cmp textarea { flex:1; min-width:0; min-height:44px; max-height:150px; margin:0; padding:11px 16px; border:1px solid transparent; border-radius:22px; background:var(--soft);
  resize:none; overflow-y:auto; font-size:14.5px; line-height:20px; box-shadow:none; }
.otc-cmp textarea:focus { background:var(--card); border-color:#c7c9cd; box-shadow:0 0 0 3px rgba(178,178,178,.25); }
.otc-ib { display:grid; place-items:center; width:44px; height:44px; min-height:0; flex:none; padding:0; border:0; border-radius:50%; background:transparent; color:var(--ink2); }
.otc-ib .ic { width:22px; height:22px; }
.otc-send { display:grid; place-items:center; width:44px; height:44px; min-height:0; flex:none; padding:0; border:0; border-radius:50%; background:var(--dark); color:#fff; }
.otc-send .ic { width:20px; height:20px; margin-left:-2px; }
.otc-send:disabled { background:#c9ccd1; opacity:1; }
.otc-send.busy { animation:ontPulse 1s ease-in-out infinite; }
@media (max-width:760px), (pointer:coarse) and (max-height:520px) and (max-width:1000px) {
  .otc { width:100vw; box-shadow:none; }
  .otc-bd { display:none; }
}
@media (prefers-reduced-motion:reduce) { .ont-go.busy, .otc-send.busy { animation:none; } .otk-ht > span { transition:none; } }
html[data-motion=less] .ont-go.busy, html[data-motion=less] .otc-send.busy { animation:none; }
@media (min-width:761px) {
  .otk-chips { flex-wrap:wrap; overflow:visible; margin:12px 0 0; padding:2px 0 6px; }
  .otk-chatpill { position:sticky; left:auto; bottom:22px; transform:none; margin:18px auto 0; display:flex; width:max-content; }
  .od1.otk { padding-bottom:24px; }
}
.otk-tags h2 { gap:0; }
.otk-ppg { margin:10px 0 0; }
.otk-ppg h3 { margin:0 0 4px; font-size:13px; font-weight:600; color:var(--muted); }
.otk-pp { display:flex; align-items:center; gap:12px; min-height:52px; padding:6px 0; border-bottom:1px solid var(--line); }
.otk-pp:last-of-type { border-bottom:0; }
.otk-pp .oav { width:36px; height:36px; }
.otk-pp.off { opacity:.55; }
.otk-pp .otk-rt { flex:1; }
.otk-ppx { display:grid; place-items:center; width:34px; height:34px; min-height:0; flex:none; padding:0; border:0; border-radius:10px; background:transparent; color:var(--muted); }
.otk-ppx:hover { background:var(--soft); color:var(--err); }
.otk-ppn { margin:2px 0 4px; }
/* ---------- телефон: уведомления на экране – компактнее (не закрывают полэкрана): текст – в две строки, кнопки ниже */
@media (max-width:760px), (pointer:coarse) and (max-height:520px) and (max-width:1000px) {
  .toasts { gap:6px; right:8px; width:calc(100vw - 16px); top:calc(var(--toast-top, 8px) + env(safe-area-inset-top, 0px)); }
  .flash.toast { gap:8px; padding:9px 4px 9px 10px; border-radius:14px; font-size:13.5px; line-height:1.35; }
  .flash.toast .toast-ic { width:20px; height:20px; margin-top:1px; }
  .toast.sticky .toast-t > b, .toast.sticky .tn-h { font-size:14px; }
  .toast .tn-t { display:-webkit-box; overflow:hidden; -webkit-line-clamp:2; -webkit-box-orient:vertical; margin:4px 0 0; padding:4px 8px; font-size:12.5px; }
  .ma-acts { gap:6px; margin-top:7px; }
  .ma-acts button, .ma-acts .btn { min-height:32px; padding:4px 12px; font-size:12.5px; }
  .toasts .nc-ctl { gap:5px; }
  .toasts .nc-ctl button { padding:4px 10px; font-size:12px; }
  .toast-x { padding:3px 7px; }
}
/* ---------- телефон: разделы меню, которые были «для компьютера» */
@media (max-width:760px), (pointer:coarse) and (max-height:520px) and (max-width:1000px) {
  /* «Табло» – для большого монитора: на телефоне кнопка не нужна и сжимала название рабочего места («Рабо чее мест о…») */
  .wp-top > .wp-tablo { display:none; }
  .wp-id { flex:1 1 150px; }
  .wp-title { overflow-wrap:normal; word-break:normal; hyphens:manual; }
  /* «Пользователи»: строка таблицы – карточкой, у каждого поля – подпись */
  .tablewrap:has(> table.users) { overflow:visible; padding:0; background:transparent; box-shadow:none; border:0; }
  table.users, table.users > tbody, table.users > tbody > tr, table.users > tbody > tr > td { display:block; width:auto; }
  table.users > thead { display:none; }
  table.users > tbody > tr { position:relative; margin:0 0 12px; padding:12px 14px 14px; border:1px solid var(--line); border-radius:16px; background:var(--card); box-shadow:var(--shadow); }
  table.users > tbody > tr.uf-none { padding:0; border:0; box-shadow:none; background:transparent; }
  table.users > tbody > tr > td { padding:6px 0; border:0; text-align:left; }
  table.users > tbody > tr > td[data-l]::before { content:attr(data-l); display:block; margin:0 0 4px; color:var(--muted); font-size:12px; font-weight:600; }
  table.users > tbody > tr > td.u-act { display:flex; align-items:center; gap:10px; }
  table.users > tbody > tr > td.u-act::before { margin:0; }
  table.users > tbody > tr > td.u-empty { display:none; }
  table.users > tbody > tr > td.u-sv { display:flex; gap:8px; padding-top:10px; }
  table.users > tbody > tr > td.u-sv > button:first-child { flex:1; min-height:44px; }
  table.users input, table.users select { width:100%; max-width:none; min-width:0; font-size:15px; }
  table.users .u-lg { display:flex; align-items:center; gap:10px; }
  table.users .u-lg input { flex:1; }
  table.users tr.new { border-style:dashed; }
}
@media (max-width:760px), (pointer:coarse) and (max-height:520px) and (max-width:1000px) {
  table.users .pwtemp, table.users td > label.check { display:flex; align-items:center; gap:8px; width:auto; margin:8px 0 0; text-align:left; }
  table.users .pwtemp input, table.users td > label.check input { width:auto; flex:none; }
  table.users .u-devs { display:inline-block; margin-top:8px; }
  table.users .up-btn { margin-top:8px; }
}
@media (max-width:760px), (pointer:coarse) and (max-height:520px) and (max-width:1000px) {
  table.users input[type=checkbox] { width:auto; }
}
@media (max-width:760px), (pointer:coarse) and (max-height:520px) and (max-width:1000px) {
  /* «Перевахтовка»: записка – карточкой (дата, статус, фото – сверху; общество, заказчик, вахта – подписанными строками) */
  .tablewrap:has(> table.rtlist) { overflow:visible; padding:0; background:transparent; box-shadow:none; border:0; }
  table.rtlist, table.rtlist > tbody, table.rtlist > tbody > tr, table.rtlist > tbody > tr > td { display:block; width:auto; }
  table.rtlist > thead { display:none; }
  table.rtlist > tbody > tr { margin:0 0 10px; padding:12px 14px; border:1px solid var(--line); border-radius:16px; background:var(--card); box-shadow:var(--shadow); }
  table.rtlist > tbody > tr > td { display:flex; align-items:baseline; gap:10px; padding:3px 0; border:0; text-align:left; white-space:normal; }
  table.rtlist > tbody > tr > td.rt-c1 { display:block; padding-bottom:8px; }
  table.rtlist > tbody > tr > td[data-l]::before { content:attr(data-l); flex:none; width:118px; color:var(--muted); font-size:12.5px; }
  table.rtlist > tbody > tr > td.pvacts { padding-top:8px; }
  /* «Сводка»: документ шире экрана – листается вбок внутри рамки, страница не разъезжается */
  .mailpreview.sheet { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .mailpreview.sheet table { font-size:12px; }
}
@media (max-width:760px) {
  section.card.macc > h2 { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0; min-height:30px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
  section.card.macc > h2::after { content:""; flex:none; width:9px; height:9px; margin-right:4px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted);
    transform:rotate(45deg) translate(-2px, -2px); transition:transform .2s; }
  section.card.macc.shut > h2::after { transform:rotate(-45deg); }
  section.card.macc:not(.shut) > h2 { margin-bottom:12px; }
  section.card.macc.shut > :not(h2) { display:none !important; }
  section.card.macc.shut { padding-top:14px; padding-bottom:14px; }
}
/* телефон: «Задачи» – отборы одной строкой (листаются вбок), поиск и «Список / Доска» – рядом; список ближе к верху */
@media (max-width:760px), (pointer:coarse) and (max-height:520px) and (max-width:1000px) {
  .ord-tabs { margin-bottom:10px; }
  .ord-roles { margin:-2px -14px 8px; padding:0 14px; }
  .ord-tools { gap:8px; margin-bottom:10px; }
  .ord-flts { flex-wrap:nowrap; width:calc(100% + 28px); margin:0 -14px; padding:0 14px 2px; overflow-x:auto; scrollbar-width:none; }
  .ord-flts::-webkit-scrollbar { display:none; }
  .ord-fl { flex:none; white-space:nowrap; }
  .ord-tools input[type=search] { flex:1 1 0; min-width:0; max-width:none; }
  .ord-vsw { flex:none; }
}
/* мессенджер: метка «Скрыто N уведомлений» не закрывает поле ввода, смайлики и микрофон */
main.main-chat .toasts.allcol { bottom:92px; }
@media (max-width:760px) { html.ch-open main.main-chat .toasts.allcol { bottom:calc(84px + env(safe-area-inset-bottom)); } }
/* карточка задачи: значок чата в шапке; кнопка «Чат задачи» уходит, когда под ней кнопки действий или таймер */
.otk-hchat { position:relative; }
.otk-hcn { position:absolute; top:2px; right:0; min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:#c8460d; color:#fff;
  font-size:11px; font-weight:700; line-height:18px; text-align:center; box-shadow:0 0 0 2px var(--bg); pointer-events:none; }
.otk-chatpill.away { visibility:hidden; pointer-events:none; }  /* сразу, без плавного перехода: после него Chrome на телефоне не попадал касанием по кнопке */
/* телефон: без синей вспышки при касании строк листов, кнопок задач и чата – вместо неё мягкая подсветка */
.osh, .ont, .otk, .otc { -webkit-tap-highlight-color:transparent; }
.osh-row:active, .osh-sw:active { background:var(--soft); }

/* ================= 1.0.33 ================= */
/* ---------- цвета сообщений: свои – #1098E7 с белым текстом (обе темы), чужие – светлые с чёрным (светлая тема) и тёмные с
   белым (тёмная тема, tools/dark_extra.css). Отметки статуса внутри своих сообщений – белые: цветные на синем не читаются */
.otc-m:not(.me) .otc-b { color:var(--ch-them-ink); }
.ch-m.mine .ch-ores-d b, .ch-m.mine .ch-ack-me, .ch-m.mine .ch-stamp, .ch-m.mine .ch-del-h, .ch-m.mine .ch-stt.err small { color:#fff; }
.ch-m.mine .ch-rx-c.me { background:rgba(255,255,255,.3); }
.ch-m.mine mark.ch-chg { background:rgba(255,255,255,.3); color:inherit; }
.ch-m.mine .ch-b .ch-tk.seen { color:#fff; }                   /* «прочитано» на синем – белые галочки, как в Telegram */
/* ---------- звонок в переписке – компактно, как в Telegram/MAX: значок в квадрате, «Входящий вызов», ниже «2:41  Аудио»,
   время – справа внизу. Нажатие на завершённый звонок – позвонить снова */
.ch-b:has(> .ch-call) { padding:7px 10px 7px 7px; }
.ch-call { display:flex; align-items:center; gap:11px; min-width:0; margin:0; padding:0 50px 0 0; }
.ch-m.mine .ch-call { padding-right:62px; }
.ch-call.has-a { padding-right:0; flex-wrap:wrap; }
button.ch-call { width:auto; min-height:0; border:0; border-radius:12px; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer;
  -webkit-tap-highlight-color:transparent; }
button.ch-call:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.ch-call-ic, .ch-m.mine .ch-call-ic { display:grid; place-items:center; flex:none; width:46px; height:46px; border-radius:13px; background:var(--ch-field);
  color:var(--ch-them-ink); box-shadow:none; }
.ch-m.mine .ch-call-ic { background:rgba(255,255,255,.2); color:#fff; }
.ch-call-ic svg { width:25px; height:25px; }
.ch-call.t-ok .ch-call-ic, .ch-m.mine .ch-call.t-ok .ch-call-ic, .ch-m.mine .ch-call.t-miss .ch-call-ic { color:inherit; }
.ch-m.them .ch-call.t-miss .ch-call-ic { color:#e5484d; }
.ch-m.mine .ch-call.t-miss .ch-call-ic { color:#fff; }
button.ch-call:active .ch-call-ic { transform:scale(.94); }
.ch-call-t { display:flex; flex:1; flex-direction:column; gap:1px; min-width:0; line-height:1.25; }
.ch-call-t b { font-size:15.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ch-call-t small { display:flex; flex-wrap:wrap; gap:0 9px; font-size:13.5px; color:var(--ch-meta); }
.ch-m.mine .ch-call-t small { color:var(--ch-mine-meta); }
.ch-call.has-a .ch-call-a { flex:1 0 100%; margin:2px 0 14px 57px; }
.ch-b:has(> .ch-call) > .ch-meta { position:absolute; right:10px; bottom:7px; display:inline-flex; margin:0; }
.ch-b:has(> .ch-call.has-a) > .ch-meta { bottom:6px; }
/* ---------- кружочек как в MAX: тонкое кольцо, без звука крутится по кругу, под ним длительность и время; нажатие –
   почти во всю ширину со звуком, по краю полоса прогресса, под шапкой мини-плеер */
.ch-b.ch-vnb { overflow:visible; }
.ch-vnw { --vns:min(240px, 62cqi); position:relative; width:var(--vns); transition:width .28s cubic-bezier(.2,.8,.2,1); }
.ch-vnw.big { --vns:var(--vnb, 340px); }
.ch-vnote { width:var(--vns); height:var(--vns); background:#1d2025; transition:width .28s cubic-bezier(.2,.8,.2,1), height .28s cubic-bezier(.2,.8,.2,1);
  -webkit-tap-highlight-color:transparent; }
.ch-vnote::after { content:""; position:absolute; inset:0; border-radius:50%; box-shadow:inset 0 0 0 2px var(--vn-ring, #c3c8d0); pointer-events:none; }
.ch-m.mine .ch-vnote { --vn-ring:var(--ch-mine); }
.ch-vnote .ch-vn-play { display:none; }
.ch-vnote:not(.pv):not(.snd) .ch-vn-play, .ch-vnote.snd.paused .ch-vn-play { display:block; opacity:1; transform:none; }
.ch-vn-mute { position:absolute; left:50%; bottom:8%; display:none; place-items:center; width:36px; height:36px; margin-left:-18px; border-radius:50%;
  background:rgba(0,0,0,.42); color:#fff; pointer-events:none; }
.ch-vn-mute svg { width:19px; height:19px; }
.ch-vnote.pv:not(.snd) .ch-vn-mute { display:grid; }
.ch-vnote.snd .ch-vn-pr circle { stroke:#fff; filter:drop-shadow(0 0 2px rgba(0,0,0,.45)); }
.ch-vn-row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:6px; }
.ch-vn-dur, .ch-vn-row > .ch-meta { position:static; display:inline-flex; align-items:center; gap:3px; margin:0; padding:2px 9px; border-radius:999px;
  background:var(--ch-them); color:var(--ch-them-ink); font-size:12px; line-height:18px; font-variant-numeric:tabular-nums; box-shadow:0 1px 2px rgba(0,0,0,.08); }
.ch-m.mine .ch-vn-dur, .ch-m.mine .ch-vn-row > .ch-meta { background:var(--ch-mine); color:var(--ch-mine-ink); }
.ch-vn-row > .ch-meta .ch-tk { color:inherit; }
.ch-vn-tr { position:absolute; top:0; right:0; z-index:2; display:grid; place-items:center; min-width:42px; height:32px; margin:0; padding:0 8px; border:0;
  border-radius:11px; background:var(--ch-them); color:var(--ch-them-ink); font-size:14px; font-weight:700; line-height:1; letter-spacing:.02em;
  box-shadow:0 1px 3px rgba(0,0,0,.16); cursor:pointer; }
.ch-m.mine .ch-vn-tr { background:var(--ch-mine); color:var(--ch-mine-ink); }
.ch-vnw.big .ch-vn-tr { display:none; }
.ch-m.vn-big .ch-b { max-width:none; }
.ch-m.vn-big .ch-more { visibility:hidden; }
@media (prefers-reduced-motion: reduce) { .ch-vnw, .ch-vnote { transition:none; } }
html[data-motion=less] .ch-vnw, html[data-motion=less] .ch-vnote { transition:none; }
.ch-pbar { position:relative; z-index:3; display:flex; align-items:center; gap:8px; min-width:0; padding:5px 6px 5px 8px; background:var(--card);
  border-bottom:1px solid var(--ch-line); }
.ch-pbar[hidden] { display:none; }
.ch-pb-pp { flex:none; display:grid; place-items:center; width:38px; height:38px; min-height:0; margin:0; padding:0; border:0; border-radius:50%; background:none;
  color:var(--ch-mine); }
.ch-pb-pp svg { width:24px; height:24px; }
.ch-pb-t { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:1px; min-height:0; margin:0; padding:2px 4px; border:0;
  border-radius:8px; background:none; color:var(--ink); text-align:left; line-height:1.25; cursor:pointer; }
.ch-pb-t b { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14.5px; }
.ch-pb-t small { color:var(--ch-meta); font-size:12.5px; }
.ch-pb-sp { flex:none; min-width:40px; height:26px; min-height:0; margin:0; padding:0 6px; border:1.5px solid var(--ch-acc2); border-radius:8px; background:none;
  color:var(--ch-acc-ink); font-size:12.5px; font-weight:700; }
.ch-pb-x { flex:none; width:36px; height:36px; min-height:0; margin:0; padding:0; border:0; border-radius:50%; background:none; color:var(--ch-acc); font-size:17px; }
.ch-pb-x:hover, .ch-pb-t:hover { background:var(--ch-field); }
.ch-pb-pr { position:absolute; left:0; bottom:-1px; width:0; height:2px; background:var(--ch-mine); transition:width .25s linear; }
/* ---------- всплывающие уведомления – как в Битрикс24 (вариант 2): фото или значок слева, имя и время, должность или задача,
   текст до трёх строк, кнопки по делу; «Ответить» – поле прямо в уведомлении; на телефоне – смахнуть вбок */
:root { --nt-acc:#1098e7; }
.toast.sticky.nt { display:grid; grid-template-columns:40px minmax(0, 1fr) auto; align-items:start; gap:0 11px; padding:12px 8px 12px 12px;
  border:1px solid var(--line); border-radius:16px; background:var(--card); box-shadow:0 12px 32px rgba(15,18,24,.16), 0 2px 6px rgba(15,18,24,.06);
  touch-action:pan-y; }
.toast.sticky.nt .toast-t { min-width:0; padding-top:0; }
.nt-av { position:relative; display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:#eceef2; color:#4a5260; }
.nt-av > svg { width:22px; height:22px; }   /* 40 − 22 и 36 − 22 – чётные: рисунок ровно по центру, без полупикселя */
.nt-av > img { display:block; width:100%; height:100%; border-radius:50%; object-fit:cover; }
.nt-av > b { font-size:14px; font-weight:700; letter-spacing:.02em; }
.nt-av.k-person { background:#dfe7f3; color:#2c4a73; }
.nt-av.k-chat { background:#e1f0fc; color:#0f78bd; }
.nt-av.k-task { background:#ebe8fb; color:#5141c4; }
.nt-av.k-alert { background:#fde7e6; color:#c0352b; }
.nt-av.k-shift, .nt-av.k-health { background:#fbf0dc; color:#946000; }
.nt-av.k-ev { background:none; }
.nt-av.k-ev > .evi { width:40px; height:40px; border-radius:50%; }
.nt-av.k-ev > .evi .evs { width:22px; height:22px; }
.nt-src { position:absolute; right:-4px; bottom:-4px; display:grid; place-items:center; width:20px; height:20px; border-radius:50%; background:var(--card);
  box-shadow:0 0 0 2px var(--card); color:#0f78bd; }
.nt-src svg { width:12px; height:12px; }
.nt-src.k-task { color:#5141c4; }
.toast.sticky.nt .toast-t > b, .toast.sticky.nt .toast-t > b.nt-h { display:flex; align-items:baseline; gap:8px; margin:0; font-size:14.5px; font-weight:650; line-height:1.3; }
.toast.sticky.nt .toast-t > b.tn-h { align-items:center; }
.nt-h .nt-n { flex:1; min-width:0; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; }
.nt-h time { flex:none; color:var(--muted); font-size:12px; font-weight:400; font-variant-numeric:tabular-nums; }
.nt-cnt { flex:none; align-self:center; min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:var(--nt-acc); color:#fff; font-size:11px;
  font-weight:700; line-height:18px; text-align:center; }
.toast.sticky.nt .ma-r { margin-top:1px; color:var(--muted); font-size:12.5px; line-height:1.35; }
.toast.sticky.nt .tn-t { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; margin:5px 0 0; padding:0; border-radius:0;
  background:none; color:var(--ink); font-size:13.5px; line-height:1.4; }
.toast.sticky.nt .ma-acts { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.toast.sticky.nt .ma-acts .btn, .toast.sticky.nt .ma-acts button { display:inline-flex; align-items:center; min-height:32px; margin:0; padding:5px 14px; border:0;
  border-radius:999px; background:#eef0f3; color:var(--ink); font-size:13px; font-weight:600; line-height:1.2; text-decoration:none; box-shadow:none; }
.toast.sticky.nt .ma-acts .primary { background:var(--nt-acc); color:#fff; }
.toast.sticky.nt .ma-acts .ghost { background:none; color:var(--muted); }
.toast.sticky.nt.urgent, .toast.sticky.nt.accalert, .toast.sticky.nt.escal { border-color:#efb3ad; }
.toast.sticky.nt.urgent .ma-acts .primary, .toast.sticky.nt.accalert .ma-acts .primary, .toast.sticky.nt.escal .ma-acts .primary { background:#d93025; }
.toast.sticky.nt .toast-x { width:28px; height:28px; min-height:0; margin:-5px -2px 0 0; padding:0; border-radius:50%; font-size:12px; }
.toast.sticky.nt.replying .ma-acts [data-n=reply] { display:none; }
.nt-rep { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.nt-rep input { flex:1; min-width:0; height:38px; padding:0 14px; border:1px solid var(--line); border-radius:999px; background:var(--soft); color:var(--ink); font-size:14px; }
.nt-rep input:focus { border-color:var(--nt-acc); outline:none; box-shadow:0 0 0 3px rgba(16,152,231,.18); }
.nt-send { flex:none; display:grid; place-items:center; width:38px; height:38px; min-height:0; margin:0; padding:0; border:0; border-radius:50%;
  background:var(--nt-acc); color:#fff; }
.nt-send svg { width:18px; height:18px; }
.nt-send:disabled { opacity:.6; }
.nt-err { flex-basis:100%; display:block; margin-top:6px; color:var(--err); font-size:12.5px; }
.nt-rep .nt-err { margin-top:0; }
@media (max-width:760px), (pointer:coarse) and (max-height:520px) and (max-width:1000px) {
  .toast.sticky.nt { grid-template-columns:36px minmax(0, 1fr) auto; gap:0 10px; padding:10px 6px 11px 10px; border-radius:16px; }
  .nt-av, .nt-av.k-ev > .evi { width:36px; height:36px; }
  .toast.sticky.nt .toast-t > b, .toast.sticky.nt .toast-t > b.nt-h { font-size:14px; }
  .toast.sticky.nt .tn-t { font-size:13.5px; }
  .toast.sticky.nt .ma-acts .btn, .toast.sticky.nt .ma-acts button { min-height:34px; }
  .nt-rep input { font-size:16px; }                         /* iPhone не приближает страницу */
}
.toast.sticky.nt.nc-hid, .toast.sticky.nt.nc-col, .toast.sticky.nt[hidden] { display:none; }   /* сетка карточки не мешает «свернуть» и «ещё N» */
/* стопка «Требуют внимания» – в том же виде, что и карточки уведомлений */
.ts-head { border-radius:16px; background:var(--card); }
.ts-ic { width:40px; height:40px; border-radius:50%; background:#fbf0dc; color:#946000; }
.ts-ic .ic { width:21px; height:21px; }
/* текст кружочка – под ним в цвете сообщения: свой – синий с белым текстом, чужой – как сообщения собеседника */
.ch-b.ch-vnb > .ch-stt { max-width:var(--vns, 240px); margin-top:6px; padding:7px 11px; border-radius:14px; background:var(--ch-them); color:var(--ch-them-ink);
  box-shadow:0 1px 2px rgba(0,0,0,.08); }
.ch-m.mine .ch-b.ch-vnb > .ch-stt { background:var(--ch-mine); color:var(--ch-mine-ink); }
.ch-m.them .ch-b.ch-vnb > .ch-stt .ch-stt-h, .ch-m.them .ch-b.ch-vnb > .ch-stt small, .ch-m.them .ch-b.ch-vnb > .ch-stt .ch-stt-l { color:var(--ch-meta); }

/* ================= 1.0.34 ================= */
/* кружок: увеличенный – не шире строки сообщения (свой, справа, раньше уходил за край экрана); «⋯» на это время не занимает
   место; на всякий случай кружок не шире пузыря и остаётся кругом */
.ch-m.vn-big .ch-more { display:none; }
.ch-vnw { max-width:100%; }
.ch-vnote { max-width:100%; }
@supports (aspect-ratio: 1 / 1) { .ch-vnote { height:auto; aspect-ratio:1 / 1; } }
/* значок в кружке уведомления – строго по центру и при 20 px (телефон), и при 24 px: рисунок (маска), а не буква со
   сдвигами – раньше галочка «готово» на телефоне уезжала вправо и вниз */
.toast-ic { --ti:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.3' stroke-linecap='round' stroke-linejoin='round' d='M12 5.6v7.6'/%3E%3Ccircle cx='12' cy='18.3' r='2' fill='%23000'/%3E%3C/svg%3E"); }
.toast.ok .toast-ic { --ti:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.3' stroke-linecap='round' stroke-linejoin='round' d='M5.9 12.1l4 4L18.1 7.9'/%3E%3C/svg%3E"); }
.toast.urgent .toast-ic { --ti:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.3' stroke-linecap='round' stroke-linejoin='round' d='M8.6 5.6v7.6M15.4 5.6v7.6'/%3E%3Ccircle cx='8.6' cy='18.3' r='2' fill='%23000'/%3E%3Ccircle cx='15.4' cy='18.3' r='2' fill='%23000'/%3E%3C/svg%3E"); }
.toast.talkn .toast-ic { --ti:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='5.8' cy='12' r='2.1' fill='%23000'/%3E%3Ccircle cx='12' cy='12' r='2.1' fill='%23000'/%3E%3Ccircle cx='18.2' cy='12' r='2.1' fill='%23000'/%3E%3C/svg%3E"); }
.toast.undo .toast-ic { --ti:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.3' stroke-linecap='round' stroke-linejoin='round' d='M9.7 5.7 5.9 9.5l3.8 3.8M6.3 9.5h7.4a4.4 4.4 0 0 1 0 8.8H11.3'/%3E%3C/svg%3E"); }
.toast.toast .toast-ic::after { content:""; position:absolute; inset:4px; width:auto; height:auto; margin:0; border:0; border-radius:0; transform:none;
  background:#fff; font-size:0; line-height:0; -webkit-mask-image:var(--ti); mask-image:var(--ti); -webkit-mask-size:100% 100%; mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; -webkit-mask-position:center; mask-position:center; }
/* поле рисунка – целые пиксели с каждой стороны (24 → 16, на телефоне 20 → 14): иначе браузер округляет и сдвигает значок на полпикселя */
@media (max-width:760px), (pointer:coarse) and (max-height:520px) and (max-width:1000px) { .toast.toast.flash .toast-ic::after { inset:3px; } }
.toast.toast.ok .toast-ic::after { animation:tickIn .32s .3s cubic-bezier(.2,.8,.3,1.3) both; }
@keyframes tickIn { from { opacity:0; transform:scale(.4); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .toast.toast.ok .toast-ic::after { animation:none; } }
html[data-motion=less] .toast.toast.ok .toast-ic::after { animation:none; }
/* «!» в красном кружке срочного события (на значке в уведомлении, в ленте, в метках) – тоже рисунком, по центру на любом
   телефоне: буквой высота зависела от шрифта устройства */
.evi.urg::after { content:""; font-size:0; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 6.4v6.6' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.4' r='1.75' fill='%23fff'/%3E%3C/svg%3E");
  background-position:center; background-size:100% 100%; background-repeat:no-repeat; }
