/* Просрочки: оформление в духе Excel (зелёная шапка, лист с номерами строк, строка состояния). Без внешних ресурсов. */
:root {
  --green: #107c41;
  --green-d: #0b5a2f;
  --green-dd: #0a3d22;
  --green-l: #e4f2ea;
  --green-ll: #f3faf6;
  --ink: #0f2418;
  --ink2: #41554a;
  --ink3: #627469;
  --grid: #c9d9ce;
  --grid2: #e2ebe5;
  --hdr: #edf2ee;
  --canvas: #f2f5f3;
  --white: #fff;
  --chatbg: #f6f9f7;
  --tick: #95a79c;
  --ext-ink: #5b3fb0;
  --ext-bg: #efe9fb;
  --dropov: rgba(228, 242, 234, .92);
  --amber-bg: #fff4d6;
  --amber-line: #e6c97c;
  --amber-ink: #5f4100;
  --red-bg: #fdecea;
  --red-line: #efb0a7;
  --red-ink: #93190f;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
a { color: var(--green-d); }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #7fcaa0; outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink3); }
.mono { font-family: var(--mono); }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- шапка ---------- */
.titlebar { background: var(--green); color: #fff; }
.titlebar .wrap { display: flex; align-items: center; gap: 18px; min-height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; }
.brand svg { width: 26px; height: 26px; }
.tabs { display: flex; gap: 4px; margin-left: 8px; min-width: 0; flex: 1 1 0; }
.tabs a { color: #e9f6ef; text-decoration: none; padding: 15px 11px 13px; border-bottom: 3px solid transparent; white-space: nowrap; flex: none; }
.usermenu, .brand, .local { flex: none; }
@media (max-width: 1000px) { .local { display: none; } }
.tabs a:hover { background: rgba(255, 255, 255, .1); }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: #fff; font-weight: 600; }
.local { margin-left: auto; font-size: 13px; color: #d5ecde; display: flex; align-items: center; gap: 6px; }

/* ---------- вступление ---------- */
.intro { padding: 36px 0 22px; max-width: 760px; }
.intro h1 { font-size: 34px; letter-spacing: -.01em; font-weight: 600; }
.intro p { margin-top: 10px; color: var(--ink2); font-size: 16px; max-width: 62ch; }

/* ---------- рабочая область ---------- */
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }

/* лист с файлами */
.sheet { background: var(--white); border: 1px solid var(--grid); border-radius: 6px; overflow: hidden; position: relative; transition: box-shadow .15s, background .15s; }
.sheet:focus-visible { outline-offset: 3px; }
.sheet.drag { box-shadow: 0 0 0 3px var(--green); background: var(--green-ll); }
.srow { display: grid; grid-template-columns: 40px minmax(240px, 1.35fr) minmax(190px, 1.2fr) 118px 46px; }
.srow > * { border-bottom: 1px solid var(--grid2); border-right: 1px solid var(--grid2); min-width: 0; }
.srow > :last-child { border-right: 0; }
.srow:last-child > * { border-bottom: 0; }
.shead { background: var(--hdr); font-size: 12px; color: var(--ink3); }
.shead > * { padding: 7px 12px; border-color: var(--grid); border-bottom: 1px solid var(--grid); }
.shead .col-letter { font-family: var(--mono); margin-right: 8px; color: var(--ink2); }
.rnum { background: var(--hdr); color: var(--ink3); font-family: var(--mono); font-size: 12px; display: flex; align-items: center; justify-content: center; border-color: var(--grid); }
.cell { padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; min-height: 68px; position: relative; }
.cell .t { font-weight: 600; }
.cell .h { font-size: 13px; color: var(--ink3); margin-top: 1px; }
.need { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 3px; padding: 0 6px; margin-left: 8px; vertical-align: 1px; }
.need.req { background: var(--green); color: #fff; }
.need.rec { background: var(--hdr); color: var(--ink2); border: 1px solid var(--grid); }
.cell-file .ph { color: var(--ink3); }
.cell-file .fname { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-file .fsize { font-size: 13px; color: var(--ink3); }
.cell-date { font-family: var(--mono); font-size: 13.5px; }
.cell-act { align-items: center; padding: 0; }
.srow.ready .rnum { background: var(--green-l); color: var(--green-d); }
.srow.ready .cell-a .t::before { content: ""; }
.srow.ready .cell { background: var(--green-ll); }
.srow.ready .cell-act { background: var(--green-ll); }
.srow.just .cell-file { outline: 2px solid var(--green); outline-offset: -2px; background: var(--white); }
.srow.just .cell-file::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 8px; height: 8px; background: var(--green); border: 1.5px solid #fff; z-index: 2; }
.srow.bad .cell-file .fname { color: var(--red-ink); white-space: normal; }
.srow.bad .cell { background: var(--red-bg); }
.bar { height: 4px; border-radius: 2px; background: var(--grid2); margin-top: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--green); transition: width .15s linear; }
.iconbtn { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 4px; color: var(--ink3); display: grid; place-items: center; cursor: pointer; }
.iconbtn:hover { background: rgba(15, 36, 24, .08); color: var(--ink); }
.okmark { color: var(--green); display: grid; place-items: center; }
.spin { width: 18px; height: 18px; border: 2.5px solid var(--grid); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sheet-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 4px 0; }
.sheet-foot .hint { color: var(--ink3); font-size: 13.5px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 18px; border-radius: 4px; border: 1px solid var(--green); background: var(--white); color: var(--green-d); font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--green-ll); }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-d); }
.btn.primary.big { height: 50px; font-size: 16px; padding: 0 24px; }
.btn.ghost { border-color: var(--grid); color: var(--ink2); font-weight: 500; }
.btn.ghost:hover { background: var(--hdr); }
.btn[disabled] { background: #cfd9d3; border-color: #cfd9d3; color: #fff; cursor: not-allowed; }

/* ---------- панель параметров ---------- */
.panel { background: var(--white); border: 1px solid var(--grid); border-radius: 6px; padding: 20px; position: sticky; top: 16px; }
.panel h2 { font-size: 16px; }
.panel label { display: block; margin-top: 16px; font-size: 14px; font-weight: 600; }
.panel select { margin-top: 6px; width: 100%; height: 40px; border: 1px solid var(--grid); border-radius: 4px; padding: 0 10px; background: var(--white); }
.panel .rule { margin-top: 10px; font-size: 13.5px; color: var(--ink2); }
.panel .btn { width: 100%; margin-top: 18px; }
.notes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.notes li { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.4; padding: 9px 11px; border-radius: 4px; background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink); }
.notes li.info { background: var(--hdr); border-color: var(--grid); color: var(--ink2); }
.notes li.err { background: var(--red-bg); border-color: var(--red-line); color: var(--red-ink); }
.notes li svg { margin-top: 1px; }

/* ---------- результат ---------- */
.result { margin: 34px 0 56px; }
.result h2 { font-size: 24px; }
.result .sub { margin-top: 4px; color: var(--ink2); }
.progress { margin-top: 18px; background: var(--white); border: 1px solid var(--grid); border-radius: 6px; padding: 20px; }
.progress .row { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }
.progress .bar { height: 8px; margin-top: 12px; border-radius: 4px; }
.progress .tip { margin-top: 12px; font-size: 13.5px; color: var(--ink3); }
.statusbar { display: flex; flex-wrap: wrap; margin-top: 18px; background: var(--green-d); color: #fff; border-radius: 6px 6px 0 0; font-size: 14px; }
.statusbar > div { padding: 11px 18px; border-right: 1px solid rgba(255, 255, 255, .22); }
.statusbar > div:last-child { border-right: 0; }
.statusbar b { font-family: var(--mono); font-size: 16px; font-weight: 600; margin-left: 6px; }
.pgrid { background: var(--white); border: 1px solid var(--grid); border-top: 0; border-radius: 0 0 6px 6px; overflow-x: auto; }
.pgrid .srow { grid-template-columns: 40px 120px minmax(220px, 1.3fr) 130px minmax(220px, 1.3fr) 150px; min-width: 860px; }
.pgrid .cell { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.pgrid .cell > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pgrid .shead > * { padding: 6px 12px; }
.facts { margin-top: 16px; display: grid; gap: 4px; color: var(--ink2); font-size: 14.5px; }
.actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.result .notes { max-width: 820px; }
.keep { margin-top: 14px; font-size: 13.5px; color: var(--ink3); max-width: 70ch; }

/* ---------- уведомления ---------- */
#toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--ink); color: #fff; padding: 11px 14px; border-radius: 4px; font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); animation: tin .18s ease-out; }
.toast.err { background: var(--red-ink); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

footer.foot { border-top: 1px solid var(--grid); padding: 18px 0 30px; color: var(--ink3); font-size: 13px; }

/* ---------- инструкция ---------- */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding: 34px 0 60px; align-items: start; }
.toc { position: sticky; top: 16px; font-size: 14px; display: grid; gap: 2px; }
.toc a { color: var(--ink2); text-decoration: none; padding: 6px 10px; border-left: 3px solid var(--grid); }
.toc a:hover { color: var(--green-d); border-left-color: var(--green); background: var(--green-ll); }
.article { max-width: 760px; }
.article h1 { font-size: 32px; letter-spacing: -.01em; }
.article .lead { margin-top: 10px; font-size: 16.5px; color: var(--ink2); }
.article h2 { font-size: 22px; margin: 44px 0 10px; padding-top: 6px; }
.article h3 { font-size: 16.5px; margin: 24px 0 6px; }
.article p, .article li { max-width: 68ch; }
.article p + p { margin-top: 10px; }
.article ul, .article ol { padding-left: 22px; margin: 8px 0; }
.article li { margin: 5px 0; }
.article table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14.5px; background: var(--white); }
.article th, .article td { border: 1px solid var(--grid); padding: 8px 12px; text-align: left; vertical-align: top; }
.article th { background: var(--hdr); font-weight: 600; }
.article code { font-family: var(--mono); font-size: 13.5px; background: var(--hdr); padding: 1px 5px; border-radius: 3px; }
.code { position: relative; margin: 10px 0 14px; background: #0f2418; color: #e8f4ec; border-radius: 6px; }
.code pre { margin: 0; padding: 14px 64px 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.55; }
.code button { position: absolute; top: 8px; right: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #e8f4ec; border-radius: 4px; font-size: 12.5px; padding: 3px 9px; cursor: pointer; }
.code button:hover { background: rgba(255, 255, 255, .18); }
.callout { margin: 14px 0; padding: 11px 14px; border-radius: 4px; background: var(--green-l); border: 1px solid #b9dcc8; max-width: 68ch; }
.callout.warn { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 6px 46px; margin: 18px 0; max-width: none; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 4px; background: var(--green); color: #fff; font-family: var(--mono); font-weight: 600; display: grid; place-items: center; }
.steps > li > strong { display: block; font-size: 16.5px; margin-bottom: 4px; }

/* ---------- узкие экраны ---------- */
@media (max-width: 960px) {
  .workspace { grid-template-columns: 1fr; }
  .panel { position: static; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; grid-auto-flow: column; overflow-x: auto; }
  .toc a { white-space: nowrap; border-left: 0; border-bottom: 3px solid var(--grid); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .local { display: none; }
  .doc table { display: block; max-width: 100%; overflow-x: auto; }
  .intro { padding: 24px 0 16px; }
  .intro h1 { font-size: 26px; }
  .sheet .shead { display: none; }
  .sheet .srow { grid-template-columns: 30px 1fr 44px; }
  .sheet .srow > * { border-right: 0; }
  .sheet .cell-a { grid-column: 2; grid-row: 1; padding-bottom: 2px; min-height: 0; }
  .sheet .cell-file { grid-column: 2; grid-row: 2; padding-top: 2px; min-height: 0; }
  .sheet .cell-date { display: none; }
  .sheet .rnum { grid-row: 1 / span 2; }
  .sheet .cell-act { grid-column: 3; grid-row: 1 / span 2; }
  .sheet .srow > * { border-bottom: 0; }
  .sheet .srow { border-bottom: 1px solid var(--grid2); }
  .sheet .srow:last-child { border-bottom: 0; }
  .statusbar > div { flex: 1 1 45%; }
  .article h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ================= общее: меню пользователя, аватары, формы, окна ================= */
.badge { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 10px; background: #fff; color: var(--green-d); font-size: 12px; font-weight: 700; text-align: center; vertical-align: 1px; }
.usermenu { position: relative; margin-left: 14px; }
.local + .usermenu { margin-left: 18px; }
.tabs + .usermenu { margin-left: auto; }
.umbtn { display: flex; align-items: center; gap: 9px; height: 52px; padding: 0 10px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.umbtn:hover { background: rgba(255, 255, 255, .12); }
.umname { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.umpop { position: absolute; right: 0; top: 52px; width: 250px; background: var(--white); color: var(--ink); border: 1px solid var(--grid); border-radius: 6px; box-shadow: 0 10px 28px rgba(10, 61, 34, .22); z-index: 40; padding: 6px; }
.umpop .umwho { padding: 10px 12px 10px; border-bottom: 1px solid var(--grid2); margin-bottom: 4px; display: grid; }
.umpop .umwho span { font-size: 13px; color: var(--ink3); }
.umpop button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 4px; cursor: pointer; }
.umpop button:hover { background: var(--green-ll); }

.avatar { --s: 32px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-size: calc(var(--s) * .38); font-weight: 600; color: #fff; letter-spacing: .02em; }
.avatar.sm { --s: 26px; }
.avatar.lg { --s: 44px; }
.av0 { background: #107c41; } .av1 { background: #2a6f8f; } .av2 { background: #8a5a12; } .av3 { background: #6b4fa0; }
.av4 { background: #0f7a72; } .av5 { background: #a23b55; } .av6 { background: #4f6b1f; } .av7 { background: #476079; }
.umbtn .avatar { background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }

.field { margin-top: 14px; display: grid; gap: 5px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select { height: 42px; border: 1px solid var(--grid); border-radius: 4px; padding: 0 12px; background: var(--white); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green); }
.field small { color: var(--ink3); font-size: 13px; }
.form-err { color: var(--red-ink); font-size: 14px; min-height: 1.2em; margin-top: 10px; }

dialog.modal { border: 1px solid var(--grid); border-radius: 8px; padding: 0; width: min(460px, calc(100vw - 32px)); color: var(--ink); box-shadow: 0 24px 60px rgba(10, 61, 34, .35); }
dialog.modal::backdrop { background: rgba(10, 36, 22, .45); }
dialog.modal > form, dialog.modal > .modal-body { padding: 24px; }
dialog.modal h2 { font-size: 20px; }
dialog.modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
dialog.modal .btn { height: 40px; }

@media (max-width: 560px) {
  .titlebar .wrap { gap: 6px; padding: 0 10px; }
  .brand { font-size: 0; gap: 0; }
  .tabs { margin-left: 0; }
  .tabs a { padding-left: 9px; padding-right: 9px; font-size: 14px; }
  .local { display: none; }
  .usermenu { margin-left: auto; }
  .umname { display: none; }
}

/* ================= переключатель режима, зона автозагрузки, месяц и год ================= */
.modebar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.mlabel { font-weight: 600; color: var(--ink3); transition: color .15s; }
.mlabel.on { color: var(--green-d); }
.switch { position: relative; width: 56px; height: 30px; border-radius: 15px; border: 1px solid var(--grid); background: #dfe8e2; cursor: pointer; padding: 0; transition: background .15s, border-color .15s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .18s ease-out; }
.switch[aria-checked="true"] { background: var(--green); border-color: var(--green-d); }
.switch[aria-checked="true"] i { transform: translateX(26px); }
.modehint { color: var(--ink2); font-size: 14px; margin: 0 0 14px; max-width: 70ch; }
.autozone { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 28px 20px 24px; margin-bottom: 14px; border: 2px dashed #8fc7a8; border-radius: 8px; background: var(--green-ll); transition: background .15s, border-color .15s; }
.autozone.drag { background: var(--green-l); border-color: var(--green); }
.autozone svg.big { width: 40px; height: 40px; color: var(--green); stroke-width: 1.5; }
.autozone strong { font-size: 18px; }
.autozone span { color: var(--ink2); font-size: 14px; }
.azbtns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.ym { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 6px; }
.panel .ym select { margin-top: 0; }
.srow.slot { cursor: pointer; }
.srow.slot:hover .cell { background: var(--green-ll); }
.srow.dropping .cell { background: var(--green-l) !important; outline: 2px solid var(--green); outline-offset: -2px; }
.pickrow { border: 0; background: transparent; padding: 0; color: var(--green-d); font-weight: 600; cursor: pointer; text-align: left; }
.pickrow:hover { text-decoration: underline; }
.cell-file .ph.dim { color: var(--ink3); font-style: italic; }
@media (prefers-reduced-motion: reduce) { .switch i, .switch, .autozone { transition: none; } }
.local { white-space: nowrap; }
@media (max-width: 1500px) { .local { display: none; } }

.beta { display: inline-block; padding: 2px 7px; border-radius: 9px; background: #fff3cd; color: #7a5b00; border: 1px solid #e6c862; font-size: 11px; font-weight: 700; letter-spacing: .04em; cursor: help; }

/* ---------- страница «Проверка файла» ---------- */
.rs { padding-top: 28px; padding-bottom: 60px; max-width: 900px; }
.rs h1 { font-size: 26px; margin-bottom: 8px; }
.rs .sub { color: var(--ink2); margin-bottom: 20px; max-width: 70ch; }
.rs-queue { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.rs-queue li { display: grid; gap: 6px; padding: 10px 14px; background: var(--white); border: 1px solid var(--grid); border-radius: 6px; }
.rs-queue .rs-state { font-size: 13px; color: var(--ink3); }
.rs-queue .bar { height: 6px; background: var(--grid2); border-radius: 3px; overflow: hidden; }
.rs-queue .bar i { display: block; height: 100%; background: var(--green); }
.rs-card { background: var(--white); border: 1px solid var(--grid); border-left: 5px solid var(--green); border-radius: 6px; padding: 16px 18px; margin-bottom: 14px; display: grid; gap: 10px; }
.rs-card.warn { border-left-color: #d9a21b; }
.rs-card.bad { border-left-color: #c0392b; }
.rs-head { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.rs-head h2 { font-size: 17px; overflow-wrap: anywhere; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.pill.ok { background: var(--green-l); color: var(--green-d); }
.pill.warn { background: var(--amber-bg); color: var(--amber-ink); }
.pill.bad { background: var(--red-bg); color: var(--red-ink); }
.rs-err { color: var(--red-ink); background: var(--red-bg); border: 1px solid var(--red-line); border-radius: 4px; padding: 8px 12px; overflow-wrap: anywhere; }
.rs-facts { margin: 0; padding-left: 18px; color: var(--ink2); }
.rs-list h4 { margin: 0 0 4px; font-size: 14px; }
.rs-list ul { margin: 0; padding-left: 18px; }
.rs-list li { margin: 2px 0; overflow-wrap: anywhere; }
.rs-list.warn { background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 4px; padding: 8px 12px; color: var(--amber-ink); }
.rs-list.tip { color: var(--ink2); }
.rs-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rs-pre { margin: 0; padding: 12px; background: var(--canvas); border: 1px solid var(--grid2); border-radius: 4px; font-family: var(--mono); font-size: 12.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow: auto; }
.rs-keep { color: var(--ink3); font-size: 13px; }
.fnote { margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--amber-ink); background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 3px; padding: 2px 6px; white-space: normal; }
.uphelp { display: inline-block; margin-top: 4px; font-size: 13px; }

/* выключенный раздел в шапке администратора */
.tabs a.off { opacity: .6; }
.tabs a .offtag { font-size: 11px; font-weight: 400; }
.badge.warn { background: var(--amber-bg); color: var(--amber-ink); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13.5px; }

/* меню «Ещё» в шапке */
.tabmorebox { position: relative; flex: none; }
.tabmore { height: 100%; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #e9f6ef; padding: 15px 11px 13px; cursor: pointer; white-space: nowrap; }
.tabmore:hover, .tabmore[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
.tabmore.alert::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #c0392b; vertical-align: 1px; }
.tabpop { position: absolute; left: 0; top: 52px; min-width: 230px; background: var(--white); color: var(--ink); border: 1px solid var(--grid); border-radius: 6px; box-shadow: 0 10px 28px rgba(10, 61, 34, .22); z-index: 40; padding: 6px; display: grid; }
.tabpop.flip { left: auto; right: 0; }
.tabpop a { color: var(--ink); padding: 10px 12px; border: 0; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; }
.tabpop a:hover { background: var(--green-ll); }
.tabpop a[aria-current="page"] { font-weight: 600; color: var(--green-d); }
.tabpop .badge { background: var(--green-d); color: #fff; }
.tabpop .badge.warn { background: var(--amber-bg); color: var(--amber-ink); }
