/* Центр 2ТРИС: оформление – как у 2TRIS SGRC (цвета, шрифт, вкладки, разделы, таблицы, сообщения) */
:root { --bg:#f6f7f9; --panel:#fff; --text:#1d2330; --muted:#5b6475; --line:#d9dde5; --accent:#1f5fbf; --ok:#1e7a3b; --err:#b3261e; --warn:#8a5a00; --soft:#f3f6fb; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; font:14px/1.45 "Segoe UI", Arial, sans-serif; background:var(--bg); color:var(--text); }
header { background:var(--panel); border-bottom:1px solid var(--line); padding:12px 24px; display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
header h1 { font-size:17px; margin:0 auto 0 0; font-weight:600; display:flex; align-items:baseline; gap:10px; }
header h1 .brand { color:var(--accent); }
header h1 .logo { width:32px; height:32px; align-self:center; flex:none; }
.card-box .brand::before { content:""; display:inline-block; width:34px; height:34px; margin-right:8px; vertical-align:-11px; background:url(/brand/sgrc.png) no-repeat center/contain; }
header h1 .area { color:var(--muted); font-weight:400; font-size:15px; }
#who { color:var(--text); font-size:15px; font-weight:500; }
nav.tabs { display:flex; gap:4px; padding:0 24px; background:var(--panel); border-bottom:1px solid var(--line); flex-wrap:wrap; }
button.tab { background:none; color:var(--text); border:0; border-bottom:3px solid transparent; border-radius:0; padding:10px 14px; position:relative; }
button.tab.active { border-bottom-color:var(--accent); color:var(--accent); font-weight:600; }
button.tab .count { display:inline-block; min-width:18px; padding:0 5px; margin-left:6px; border-radius:9px; background:var(--err); color:#fff; font-size:11px; line-height:18px; font-weight:600; }
main { max-width:1200px; margin:0 auto; padding:20px 24px 60px; display:grid; gap:16px; }
main > * { min-width:0; }
section { background:var(--panel); border:1px solid var(--line); border-radius:6px; padding:16px 18px; }
h2 { font-size:15px; margin:0 0 12px; }
h3 { font-size:14px; margin:14px 0 8px; }
p { margin:6px 0; }
.muted { color:var(--muted); font-size:13px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:12px 16px; align-items:start; }
.cols { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; align-items:start; }
/* Колонки не расширяются содержимым (широкие таблицы, длинные адреса): таблица прокручивается внутри своего блока */
.cols > * { min-width:0; }
.cols > div { grid-template-columns:minmax(0, 1fr); }
.cols section, .cols section > * { min-width:0; }
.cols code { overflow-wrap:anywhere; }
@media (max-width: 900px) { .cols { grid-template-columns:1fr; } }
label { display:grid; gap:4px; font-size:13px; color:var(--muted); align-content:start; }
label > span.cap { color:var(--text); }
label.flag { display:flex; flex-direction:row; align-items:center; gap:8px; color:var(--text); }
input[type=text], input[type=email], input[type=password], input[type=date], select, textarea {
  font:inherit; color:var(--text); padding:6px 8px; border:1px solid var(--line); border-radius:4px; width:100%; background:#fff; }
textarea { resize:vertical; min-height:60px; }
textarea.grow { resize:none; overflow:hidden; min-height:0; line-height:1.35; display:block; }
input[type=file] { font:inherit; font-size:13px; }
button { font:inherit; padding:7px 14px; border-radius:4px; border:1px solid var(--accent); background:var(--accent); color:#fff; cursor:pointer; }
button.secondary { background:#fff; color:var(--accent); }
a.button { display:inline-block; font:inherit; padding:7px 14px; border-radius:4px; border:1px solid var(--accent); background:var(--accent); color:#fff; text-decoration:none; }
button.danger { background:#fff; color:var(--err); border-color:#e6b8b4; }
button.small { padding:2px 10px; font-size:12px; }
button.link { background:none; border:0; color:var(--accent); padding:0; text-decoration:underline; font-size:inherit; }
button:disabled { opacity:.5; cursor:default; }
.actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:10px; }
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:4px; }
table { border-collapse:collapse; min-width:100%; }
th, td { border-bottom:1px solid var(--line); padding:6px 8px; text-align:left; vertical-align:top; font-size:13px; }
tr:last-child td { border-bottom:0; }
th { background:#eef1f5; font-weight:600; white-space:nowrap; }
tr.click { cursor:pointer; } tr.click:hover td { background:#f5f8fd; }
td.num, th.num { text-align:right; white-space:nowrap; }
td.nowrap { white-space:nowrap; }
.status { padding:10px 12px; border-radius:4px; }
.status.ok { background:#e9f6ee; color:var(--ok); }
.status.err { background:#fdeceb; color:var(--err); }
.status.warn { background:#fff4dc; color:var(--warn); }
.info { background:#eef4fd; border-left:4px solid var(--accent); padding:10px 14px 10px 18px; border-radius:4px; }
.info ul { margin:6px 0 0; padding-left:20px; } .info li { margin:3px 0; }
.chip { display:inline-block; font-size:12px; padding:1px 8px; border-radius:10px; white-space:nowrap; font-weight:600; }
.chip.ok { background:#e3f1e7; color:var(--ok); } .chip.warn { background:#fff1d6; color:var(--warn); }
.chip.err { background:#fbe4e2; color:var(--err); } .chip.plain { background:#eef0f4; color:var(--muted); } .chip.blue { background:#dbe7fb; color:#123f82; }
.card-box { max-width:460px; margin:56px auto; background:#fff; border:1px solid var(--line); border-radius:6px; padding:24px 26px; display:grid; gap:12px; }
.card-box h2 { font-size:18px; margin:0; }
.card-box .brand { color:var(--accent); font-weight:600; font-size:13px; letter-spacing:.3px; text-transform:uppercase; }
code { font-family:Consolas, monospace; font-size:12px; word-break:break-all; }
.secret { font-size:16px; letter-spacing:1px; background:var(--soft); padding:6px 10px; border-radius:4px; display:inline-block; }
.kv { display:grid; grid-template-columns:max-content minmax(0, 1fr); gap:4px 16px; font-size:13px; }
.kv dt { color:var(--muted); } .kv dd { margin:0; }
.back { margin-bottom:-4px; }
.head-row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; justify-content:space-between; }
.head-row h2 { margin:0; }
ul.plain { list-style:none; padding:0; margin:0; } ul.plain > li { border-top:1px solid var(--line); padding:8px 0; } ul.plain > li:first-child { border-top:0; }
ul.changes { margin:4px 0; padding-left:18px; } ul.changes li { margin:2px 0; }
details.sec { border:1px solid var(--line); border-radius:6px; background:var(--panel); }
details.sec > summary { padding:12px 16px; cursor:pointer; font-weight:600; display:flex; gap:10px; align-items:center; }
details.sec > summary .muted { font-weight:400; }
details.sec > .body { padding:4px 16px 16px; display:grid; gap:12px; }
details.sec[open] > summary { border-bottom:1px solid var(--line); }
.field { display:grid; gap:4px; align-content:start; }
.field .cap { font-size:13px; color:var(--text); }
.field small.hint { color:var(--muted); font-size:12px; line-height:1.35; }
.field.has-remark textarea, .field.has-remark select { border-color:#e0a300; background:#fffaf0; }
.remark { border-left:3px solid #e0a300; background:#fff8e6; padding:8px 12px 8px 16px; border-radius:0 4px 4px 0; font-size:13px; display:grid; gap:4px; }
.remark.error { border-left-color:var(--err); background:#fdf1f0; }
.remark.info { border-left-color:var(--accent); background:#eef4fd; }
.remark.fixed { border-left-color:var(--ok); background:#eff8f2; }
.remark .who { color:var(--muted); font-size:12px; }
.answers { display:flex; gap:18px; } label.answer { display:flex; flex-direction:row; align-items:center; gap:6px; color:var(--text); font-size:14px; }
.question { display:grid; gap:4px; }
.question .cap { font-weight:600; font-size:13px; }
.savebar { position:sticky; bottom:0; z-index:5; background:rgba(255,255,255,.96); border:1px solid var(--line); border-radius:6px; padding:10px 16px;
           display:flex; gap:10px; align-items:center; flex-wrap:wrap; box-shadow:0 -4px 12px rgba(20,25,35,.06); }
.savebar .grow { flex:1; }
header .versions { flex-basis:100%; font-size:12px; color:var(--muted, #5f6b7a); margin-top:2px; }
header .versions.warn { color:#9a5b00; font-weight:600; }
.steps { list-style:none; margin:0; padding:0; display:grid; gap:0; counter-reset:step; }
.steps > li { display:grid; grid-template-columns:32px minmax(0, 1fr) auto; gap:4px 14px; align-items:center; border-top:1px solid var(--line); padding:12px 0; }
.steps > li:first-child { border-top:0; }
.steps .mark { width:26px; height:26px; border-radius:50%; border:1.5px solid #b9c0cc; color:var(--muted); font-size:13px; display:flex; align-items:center; justify-content:center; font-weight:600; }
.steps li.done .mark { background:var(--ok); border-color:var(--ok); color:#fff; }
.steps li.now .mark { border-color:var(--accent); color:var(--accent); }
.steps .title { font-weight:600; } .steps .detail { font-size:13px; color:var(--muted); }
@media (max-width: 700px) { .steps > li { grid-template-columns:32px minmax(0, 1fr); } .steps > li > :last-child { grid-column:2; } }
.tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:12px; }
.tile { border:1px solid var(--line); border-radius:6px; padding:12px 14px; background:var(--panel); display:grid; gap:4px; }
.tile .value { font-size:22px; font-weight:600; }
.tile .label { font-size:13px; color:var(--muted); }
.drop { border:1.5px dashed #b9c4d6; border-radius:6px; padding:14px; background:var(--soft); display:grid; gap:8px; }
.empty { color:var(--muted); font-size:13px; padding:8px 0; }
.list-table td textarea { min-width:180px; }
.badge-field { display:inline-block; font-size:11px; padding:0 6px; border-radius:8px; background:#fff1d6; color:var(--warn); margin-left:6px; font-weight:600; }

.cap1::first-letter { text-transform:uppercase; }
@media (max-width: 600px) { header, nav.tabs { padding-left:12px; padding-right:12px; } main { padding:12px 10px 40px; } section { padding:12px; } }

/* Перечни опросника – строка карточкой (как в 2TRIS SGRC); перечни лиц – только пометка */
.field.wide { grid-column:1 / -1; }
.list-cards { display:grid; gap:6px; }
.list-card { border:1px solid var(--line, #d9dde5); border-radius:4px; background:#fafbfc; }
.list-card > summary { cursor:pointer; padding:6px 10px; display:flex; gap:6px; align-items:center; }
.list-card > summary button { margin-left:auto; }
.list-card > .grid { padding:8px 10px 10px; }
.personal-list { background:#f3f5f8; border-radius:4px; padding:8px 10px; }
.offer-box { border:1px solid var(--line, #d9dde5); border-radius:4px; padding:10px 12px; background:#f7f9fc; }
.offer-box label.flag { display:flex; gap:8px; align-items:flex-start; }
.offer-box label.flag input { margin-top:4px; }
/* Рекомендации ООО «2ТРИС» */
.recs > li { padding:8px 0; border-bottom:1px solid var(--line, #e3e7ee); }
.recs > li:last-child { border-bottom:none; }
.rec-form { border:1px solid var(--line, #e3e7ee); border-radius:6px; padding:12px 14px; display:grid; gap:10px; }
.rec-form textarea { width:100%; }
/* Всплывающие сообщения */
.toasts { position:fixed; right:16px; bottom:16px; display:grid; gap:10px; z-index:1000; max-width:min(420px, calc(100vw - 32px)); }
.toast { background:#fff; border:1px solid var(--line, #e3e7ee); border-left:4px solid var(--accent); border-radius:6px; box-shadow:0 6px 24px rgba(0,0,0,.18); padding:10px 14px; font-size:14px; display:grid; gap:6px; animation:toast-in .25s ease-out; }
.toast-head { display:flex; justify-content:space-between; align-items:center; }
@keyframes toast-in { from { transform:translateY(12px); opacity:0; } to { transform:none; opacity:1; } }
/* Переписка по обращениям: цвет по состоянию, сообщения клиента и ООО «2ТРИС» */
/* Текст отодвинут от цветной вертикальной линии (правило ul.plain > li не отменяет отступ) */
li.req, ul.plain > li.req { border:1px solid var(--line, #e3e7ee); border-left:5px solid var(--err, #c62828); border-radius:6px; padding:12px 16px 12px 20px; margin:10px 0; background:#fff; }
li.req.in-work { border-left-color:#e0a100; }
li.req.done { border-left-color:var(--ok, #2e7d32); background:#f6fbf7; }
.thread { display:grid; gap:6px; margin:8px 0; }
.msg { max-width:80%; padding:8px 12px; border-radius:10px; background:#f1f3f6; }
.msg.center { justify-self:end; background:#e7f1fd; }
.msg-head { font-size:12px; color:var(--muted, #667); margin-bottom:2px; }
.msg.client-view-center { background:#e7f1fd; }
.msg.client-view-own { justify-self:end; background:#f1f3f6; }
.reply { display:flex; gap:8px; align-items:flex-start; margin-top:6px; } .reply textarea { flex:1; }

/* Поле пароля с кнопкой «Показать / скрыть» */
.pw-wrap { position:relative; display:block; }
.pw-wrap > input { width:100%; box-sizing:border-box; padding-right:38px; }
.pw-toggle { position:absolute; right:4px; top:50%; transform:translateY(-50%); border:0; background:none; padding:4px 6px; margin:0; cursor:pointer; color:var(--muted, #5b6475); line-height:0; box-shadow:none; min-width:0; }
.pw-toggle:hover { color:var(--accent, #1f5fbf); background:none; }

/* Изменения законодательства (панель): потоки, записи, форма */
.rc-streams { display:flex; gap:6px; flex-wrap:wrap; margin:12px 0 6px; }
.rc-stream { background:var(--soft); color:var(--text); border:1px solid var(--line); padding:5px 12px; border-radius:16px; font-size:13px; }
.rc-stream.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.rc-list > li.rc-item { border-bottom:1px solid var(--line); padding:10px 0; }
.rc-item .head-row.click { cursor:pointer; }
.rc-item.open { background:var(--soft); border-radius:6px; padding:10px 12px; }
.rc-form { display:grid; gap:10px; margin-top:12px; }
.rc-form .grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px 16px; }
.rc-form textarea, .rc-form input[type=text], .rc-form select { width:100%; }
@media (max-width:700px) { .rc-form .grid2 { grid-template-columns:1fr; } }

li.req.req-urgent { border-left-color:#b71c1c; box-shadow:0 0 0 2px rgba(183,28,28,.15); }
li.req .vuln { margin:6px 0; padding:6px 10px; background:#fff5f5; border-radius:4px; font-size:13px; }
li.req .vuln .actions { margin-top:6px; }
.msg > div:last-child { white-space:pre-wrap; }

/* Отметка об авторских правах внизу страницы */
.copyright { margin: 32px 16px 16px; text-align: center; font-size: 12px; color: #6b7280; }
@media print { .copyright { display: none; } }

/* Указатель «рука» у всего, что нажимается: строки, раскрывающие подробности (summary), кнопки, ссылки, выпадающие списки,
   флажки с подписью, пункты меню, элементы с обработчиком нажатия (класс clickable – добавляется функцией el) */
summary, button:not(:disabled), a[href], select, label:has(> input[type="checkbox"]), label:has(> input[type="radio"]), input[type="checkbox"], input[type="radio"],
input[type="file"], .clickable, .menu-item, [role="button"] { cursor:pointer; }
button:disabled, select:disabled, input:disabled { cursor:default; }
/* «Документы»: слева виды документов, справа документы вида (как в программе 2TRIS SGRC) */
.docs-layout { display:grid; grid-template-columns:240px minmax(0, 1fr); gap:16px; align-items:start; }
.docs-nav { position:sticky; top:12px; border:1px solid var(--line, #dfe3ea); border-radius:8px; padding:12px; background:var(--panel, #fff); }
.docs-nav .nav-title { font-weight:600; margin-bottom:8px; }
.docs-kinds { list-style:none; margin:0; padding:0; }
.docs-kinds li { margin:1px 0; border-radius:5px; }
.docs-kinds li.active { background:#eef3fa; }
.docs-kinds button.docs-kind { display:flex; gap:8px; width:100%; text-align:left; padding:6px; font-size:14px; color:inherit; text-decoration:none; background:none; border:0; }
.docs-kinds li.active button.docs-kind { font-weight:600; }
.docs-count { margin-left:auto; flex:none; text-align:right; font-size:12px; font-variant-numeric:tabular-nums; color:var(--muted, #5f6b7a); }
#docsTable td a, #docsTable td button.doc-link { font-weight:600; font-size:14px; color:var(--accent); }
#docsTable td .doc-off { font-weight:600; color:var(--muted, #5f6b7a); }
@media (max-width: 760px) { .docs-layout { grid-template-columns:1fr; } .docs-nav { position:static; } }

/* ===== Оформление по согласованным эскизам (19.10.2026): шрифт IBM Plex Sans, меню слева, поля и кнопки 40 пикселей ===== */
@font-face { font-family:"IBM Plex Sans"; font-weight:400; font-display:swap; src:url("/fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:"IBM Plex Sans"; font-weight:500; font-display:swap; src:url("/fonts/ibm-plex-sans-cyrillic-500-normal.woff2") format("woff2"); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:"IBM Plex Sans"; font-weight:600; font-display:swap; src:url("/fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2"); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:"IBM Plex Sans"; font-weight:700; font-display:swap; src:url("/fonts/ibm-plex-sans-cyrillic-700-normal.woff2") format("woff2"); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:"IBM Plex Sans"; font-weight:400; font-display:swap; src:url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"IBM Plex Sans"; font-weight:500; font-display:swap; src:url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"IBM Plex Sans"; font-weight:600; font-display:swap; src:url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"IBM Plex Sans"; font-weight:700; font-display:swap; src:url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root { --bg:#f4f6f9; --panel:#fff; --text:#172133; --muted:#5b6678; --line:#e2e7ef; --field:#d5dce7; --accent:#112e86; --accent-soft:#e6ecf8; --link:#1d4ed8; --radius:12px; }
body { font-family:"IBM Plex Sans", "Segoe UI", Arial, sans-serif; font-size:14px; line-height:1.5; }
a { color:var(--link); } a:hover { color:var(--accent); }
header { padding:12px 24px; }
header h1 .brand { color:var(--accent); font-weight:700; }
section { border-color:var(--line); border-radius:var(--radius); padding:20px 24px; }
h2 { font-size:17px; margin:0 0 14px; }
button, a.button { padding:9px 16px; border-radius:8px; font-weight:600; line-height:20px; }
button.secondary { border-color:#c7d2e5; } button.secondary:hover { background:var(--accent-soft); }
button.small { padding:3px 10px; line-height:18px; font-size:12px; }
button.link { font-weight:400; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea { padding:9px 12px; border-color:var(--field); border-radius:8px; line-height:20px; }
th { background:#f8fafc; color:#475569; font-size:12px; padding:10px 12px; }
td { padding:10px 12px; border-bottom-color:#edf0f5; }
.table-wrap { border-color:var(--line); border-radius:var(--radius); }
.status { border-radius:8px; }
.shell { display:flex; align-items:stretch; min-height:calc(100vh - 61px); }
.shell:has(> nav.tabs:not([hidden])) { background:linear-gradient(to right, var(--panel) 247px, var(--line) 247px, var(--line) 248px, transparent 248px); }
nav.tabs { display:block; flex:none; width:248px; padding:16px 12px 24px; background:none; border:0; position:sticky; top:0; align-self:flex-start; }
nav.tabs[hidden] { display:none; }
button.tab { display:flex; align-items:center; gap:10px; width:100%; padding:8px 12px; margin:1px 0; border:0; border-radius:8px; background:none; color:#334155; font-weight:400; text-align:left; }
button.tab:hover { background:#f1f4f9; color:var(--text); }
button.tab.active { background:var(--accent-soft); color:var(--accent); font-weight:600; border:0; }
button.tab .count { margin-left:auto; min-width:22px; padding:0 7px; border-radius:11px; line-height:20px; font-size:12px; text-align:center; }
.shell > main { flex:1 1 auto; min-width:0; max-width:none; margin:0; padding:28px 32px 60px; align-content:start; }
.shell > main > * { max-width:1180px; width:100%; margin-left:auto; margin-right:auto; }
@media (max-width: 900px) {
  .shell { display:block; } .shell:has(> nav.tabs:not([hidden])) { background:none; }
  nav.tabs { position:static; width:auto; display:flex; flex-wrap:wrap; gap:4px; padding:8px 12px; border-bottom:1px solid var(--line); background:var(--panel); }
  button.tab { width:auto; } .shell > main { padding:16px; }
}
.actions.sep { margin-top:18px; padding-top:16px; border-top:1px solid #edf0f5; }
.restore-row { display:grid; grid-template-columns:220px 140px auto; gap:16px; align-items:end; justify-content:start; margin:12px 0; }
.restore-row input[type=number] { width:100% !important; }
@media (max-width:640px) { .restore-row { grid-template-columns:1fr; } }
label small.muted { font-size:12px; }
/* Личный кабинет – «Главная»: заголовок, «Внедрение комплекта» карточкой */
section#home { background:none; border:0; padding:0; display:grid; gap:16px; }
.home-title h1 { margin:0; font-size:26px; line-height:1.25; }
section.steps-card { padding:0; overflow:hidden; }
section.steps-card > .head-row { padding:18px 24px; border-bottom:1px solid var(--line); margin:0; }
section.steps-card > .head-row h2 { margin:0; }
.steps-card .steps > li { padding:16px 24px; border-top-color:#edf0f5; }
.steps-card .steps li.now { background:#f8fafd; }
.steps .mark { width:32px; height:32px; border-radius:16px; }
.steps li.done .mark { background:#e3f1e7; border-color:#e3f1e7; color:var(--ok); }
.steps li.now .mark { background:var(--accent); border-color:var(--accent); color:#fff; }
.steps > li { grid-template-columns:40px minmax(0, 1fr) auto; }
/* Поиск в шапке панели: выпадающий перечень по группам */
.hdr-search { display:none; position:relative; flex:1 1 300px; max-width:460px; margin:0 auto 0 24px; }
body:has(#nav:not([hidden])) .hdr-search { display:block; }
/* Поиск в шапке (панель): заголовок, поиск, справа – пользователь и кнопки; без поиска (кабинет) – пользователь и кнопки справа */
body:has(#nav:not([hidden])) header:has(.hdr-search) h1 { margin-right:0; }
.hdr-search svg { position:absolute; left:12px; top:11px; color:#64748b; pointer-events:none; }
.hdr-search input[type=search] { padding-left:38px; background:#f8fafc; }
.search-pop { position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:70; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 12px 32px rgba(20,30,50,.16); padding:8px; max-height:min(70vh, 560px); overflow:auto; }
.search-group + .search-group { margin-top:6px; }
.search-head { font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:#64748b; padding:8px 10px 4px; }
button.search-item { display:block; width:100%; text-align:left; background:none; border:0; border-radius:8px; color:var(--text); font-weight:400; padding:8px 10px; line-height:1.4; }
button.search-item:hover, button.search-item.on { background:#eef2fa; }
button.search-item mark { background:#fff1b8; color:inherit; padding:0 1px; border-radius:2px; }
.search-empty { padding:12px; color:var(--muted); }
li.req.found { outline:2px solid var(--accent); outline-offset:2px; border-radius:8px; }
@media (max-width: 900px) { .hdr-search { order:10; flex:1 1 100%; margin:0; } }
/* Поле выбора файла – по ширине кнопки и имени файла (не на всю строку: указатель «ладонь» только над полем) */
input[type=file] { width:auto; max-width:100%; }
/* В сетке поле выбора файла не растягивается на всю строку: область нажатия – только кнопка и имя файла */
.drop > input[type=file], .drop input[type=file] { justify-self:start; width:auto; }

/* Заголовок как у 2TRIS AML: знак 2TRIS SGRC, наименование и раздел под ним */
header h1.masthead { align-items:center; gap:12px; line-height:1.15; }
header h1.masthead .logo { width:44px; height:44px; }
header h1.masthead .titles { display:flex; flex-direction:column; gap:1px; }
header h1.masthead .brand { color:#112e86; font-size:19px; font-weight:700; letter-spacing:.2px; margin:0; }
header h1.masthead .area { color:var(--muted); font-size:13px; font-weight:400; }
