/* Полка — минималистичная дизайн-система. Все цвета — токены; тёмная тема через prefers-color-scheme и data-theme. */
:root {
  color-scheme: light;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #f2f2ef;
  --surface-3: #eaeae6;
  --border: #e5e4df;
  --border-strong: #d4d3cd;
  --text: #18181a;
  --text-2: #55544f;
  --text-3: #8b8a84;
  --accent: #2a78d6;
  --accent-ink: #ffffff;
  --accent-soft: #e8f1fc;
  --accent-text: #1c5cab;
  --good: #1a7f4b; --good-soft: #e5f4ec;
  --warn: #a36200; --warn-soft: #fbf0dc;
  --bad: #c03636; --bad-soft: #fbe8e7;
  --info: #5b4fc4; --info-soft: #eeecfb;
  --series-1: #2a78d6;
  --series-3: #1baf7a;
  --shadow: 0 1px 2px rgba(20, 20, 18, .04), 0 4px 16px rgba(20, 20, 18, .06);
  --shadow-lg: 0 8px 40px rgba(20, 20, 18, .18);
  --radius: 10px;
  --radius-sm: 7px;
  --sidebar: 232px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111110; --surface: #1a1a19; --surface-2: #222220; --surface-3: #2b2b29;
    --border: #2d2d2a; --border-strong: #3c3c38;
    --text: #f2f2ef; --text-2: #b8b7af; --text-3: #85847d;
    --accent: #3987e5; --accent-ink: #ffffff; --accent-soft: #1b2a3d; --accent-text: #86b6ef;
    --good: #4cc68a; --good-soft: #15291f; --warn: #e7a740; --warn-soft: #2e2413;
    --bad: #ef6b6b; --bad-soft: #321a1a; --info: #9085e9; --info-soft: #24213b;
    --series-1: #3987e5; --series-3: #199e70;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 8px 40px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110; --surface: #1a1a19; --surface-2: #222220; --surface-3: #2b2b29;
  --border: #2d2d2a; --border-strong: #3c3c38;
  --text: #f2f2ef; --text-2: #b8b7af; --text-3: #85847d;
  --accent: #3987e5; --accent-ink: #ffffff; --accent-soft: #1b2a3d; --accent-text: #86b6ef;
  --good: #4cc68a; --good-soft: #15291f; --warn: #e7a740; --warn-soft: #2e2413;
  --bad: #ef6b6b; --bad-soft: #321a1a; --info: #9085e9; --info-soft: #24213b;
  --series-1: #3987e5; --series-3: #199e70;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 8px 40px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0; }
.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.gap-4 { gap: 4px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }

/* ---------- Каркас ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 16px 12px; border-right: 1px solid var(--border); background: var(--surface); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 650; font-size: 16px; letter-spacing: -0.02em; }
.brand img { width: 26px; height: 26px; }
.brand small { display: block; font-weight: 450; font-size: 11.5px; color: var(--text-3); letter-spacing: 0; }
.nav-group { margin-bottom: 14px; }
.nav-label { padding: 0 10px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--surface-3); color: var(--text); }
.nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.nav a .count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 600; line-height: 18px; text-align: center; }
.nav a .count.muted-count { background: var(--surface-3); color: var(--text-2); }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 600; font-size: 12px; color: var(--text-2); flex: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .crumbs { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; }
.topbar .crumbs a:hover { color: var(--text); }
.topbar .crumbs b { color: var(--text); font-weight: 600; }
.content { padding: 24px 28px 64px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { margin-top: 4px; color: var(--text-2); }
.btn.menu-btn { display: none; }

/* ---------- Карточки и сетки ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 14.5px; }
.card-body { padding: 16px 20px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }

.stat { padding: 16px 18px; }
.stat .label { color: var(--text-2); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.stat .value { margin-top: 6px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .foot { margin-top: 4px; font-size: 12px; color: var(--text-3); }

/* Плитки «требует действия» */
.todo { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, transform .15s; }
.todo:hover { border-color: var(--border-strong); }
.todo .n { font-size: 26px; font-weight: 650; min-width: 36px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.todo .t { font-weight: 550; }
.todo .d { font-size: 12.5px; color: var(--text-2); }
.todo.zero .n { color: var(--text-3); }
.todo .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.todo .ico svg { width: 18px; height: 18px; }
.tone-accent { background: var(--accent-soft); color: var(--accent-text); }
.tone-good { background: var(--good-soft); color: var(--good); }
.tone-warn { background: var(--warn-soft); color: var(--warn); }
.tone-bad { background: var(--bad-soft); color: var(--bad); }
.tone-info { background: var(--info-soft); color: var(--info); }
.tone-neutral { background: var(--surface-3); color: var(--text-2); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); font-weight: 550; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, opacity .12s; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary:hover { opacity: .88; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { opacity: .9; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn.icon { width: 34px; padding: 0; }
.btn.sm.icon { width: 28px; }
.btn .spin { width: 14px; height: 14px; }
.link { color: var(--accent-text); cursor: pointer; background: none; border: 0; padding: 0; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- Формы ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field > .label { font-size: 12.5px; font-weight: 550; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, .select, .textarea { width: 100%; height: 36px; padding: 0 11px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); outline: none; transition: border-color .12s, box-shadow .12s; }
.textarea { height: auto; min-height: 90px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.input.sm, .select.sm { height: 30px; font-size: 13px; padding: 0 9px; }
.input.num { text-align: right; }
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238b8a84' stroke-width='1.6'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input-group { position: relative; }
.input-group .suffix { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; font-size: 13px; }
.input-group .input { padding-right: 30px; }
.input-group .prefix-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 16px; height: 16px; pointer-events: none; }
.input-group .prefix-ico + .input { padding-left: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 20px; background: var(--border-strong); transition: background .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border-radius: 9px; }
.segmented button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 7px; font-weight: 550; font-size: 13px; color: var(--text-2); cursor: pointer; }
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- Вкладки ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 10px 12px; font-weight: 550; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); }
.tabs button.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); }
.tabs .cnt { font-size: 11.5px; padding: 0 6px; line-height: 18px; border-radius: 9px; background: var(--surface-3); color: var(--text-2); font-weight: 600; }
.tabs .cnt.hot { background: var(--accent); color: var(--accent-ink); }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 550; font-size: 12px; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover td { background: var(--surface-2); }
.table tbody tr.selected td { background: var(--accent-soft); }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table tfoot td { font-weight: 600; border-top: 1px solid var(--border-strong); border-bottom: 0; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.table.compact td { padding: 8px 12px; }
.cell-title { font-weight: 550; }
.cell-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }

/* ---------- Бейджи ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 550; white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.chip.critical { background: var(--bad-soft); color: var(--bad); }
.chip.high { background: var(--warn-soft); color: var(--warn); }
.chip.medium { background: var(--surface-3); color: var(--text); }
.scheme { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 650; letter-spacing: .03em; border: 1px solid var(--border-strong); color: var(--text-2); }

/* ---------- Модалки и панели ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15, 15, 14, .38); display: flex; animation: fade .15s ease-out; }
.overlay.center { align-items: center; justify-content: center; padding: 24px; }
.modal { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; animation: pop .16s ease-out; }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px 14px; }
.modal-head h2 { font-size: 16.5px; }
.modal-body { padding: 4px 22px 18px; overflow-y: auto; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--border); }
.drawer { margin-left: auto; height: 100%; width: min(760px, 100vw); background: var(--bg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s ease-out; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 40px; }
.drawer-foot { display: flex; gap: 8px; padding: 14px 24px; background: var(--surface); border-top: 1px solid var(--border); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.99); } }
@keyframes slide { from { transform: translateX(24px); opacity: .4; } }

/* ---------- Прочее ---------- */
.empty { padding: 48px 24px; text-align: center; color: var(--text-2); }
.empty .ico { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.empty .ico svg { width: 22px; height: 22px; }
.empty h3 { color: var(--text); margin-bottom: 4px; font-size: 15px; }
.loader { display: flex; align-items: center; justify-content: center; padding: 60px; color: var(--text-3); gap: 10px; }
.spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; }
.alert svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.alert.info { background: var(--accent-soft); color: var(--accent-text); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.good { background: var(--good-soft); color: var(--good); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; }
.score { display: inline-grid; place-items: center; width: 40px; height: 26px; border-radius: 7px; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 13px; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: flex-start; gap: 10px; min-width: 260px; max-width: 420px; padding: 12px 14px; border-radius: 10px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); animation: pop .18s ease-out; font-size: 13.5px; }
.toast.error { background: var(--bad); color: #fff; }
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.dropdown { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 300px; overflow-y: auto; padding: 4px; }
.dropdown button { display: flex; width: 100%; text-align: left; gap: 10px; align-items: center; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.dropdown button:hover, .dropdown button.hl { background: var(--surface-2); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { width: 280px; }
.bulkbar { position: sticky; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 12px; margin: 12px auto 0; padding: 10px 12px 10px 18px; width: fit-content; border-radius: 12px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); }
.bulkbar .btn { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.bulkbar .btn:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: 2px; width: 1px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.econ-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.econ-row.sub { padding: 3px 0 3px 14px; font-size: 12.5px; color: var(--text-2); }
.econ-row.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-weight: 650; font-size: 15px; }

/* Графики */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis text { fill: var(--text-3); font-size: 11px; }
.chart .grid line { stroke: var(--border); }
.chart .tip { position: absolute; pointer-events: none; z-index: 5; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; min-width: 150px; transform: translate(-50%, -100%); white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Вход */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { padding: 48px; background: var(--text); color: var(--bg); display: flex; flex-direction: column; }
.auth-side h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.03em; margin-top: auto; max-width: 460px; }
.auth-side p { margin-top: 14px; max-width: 440px; opacity: .7; font-size: 15px; }
.auth-side ul { margin: 28px 0 auto; padding: 0; list-style: none; display: grid; gap: 10px; opacity: .85; }
.auth-side li::before { content: "—"; margin-right: 10px; opacity: .5; }
.auth-form { display: grid; place-items: center; padding: 32px; }
.auth-form form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.demo-logins { display: grid; gap: 6px; }
.demo-logins button { display: flex; justify-content: space-between; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); padding: 9px 12px; cursor: pointer; text-align: left; }
.demo-logins button:hover { border-color: var(--border-strong); background: var(--surface-2); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 90; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 48px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .toolbar .search { width: 100%; }
}
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
