/* HiTex SIEM 3 · дизайн-система */
:root {
  --bg: #f3f5f8; --surface: #ffffff; --surface2: #f7f9fb; --border: #dde3ea; --text: #17202b; --muted: #627084;
  --accent: #1f6feb; --accent-fg: #fff; --accent-soft: #e6f0ff; --nav: #101822; --nav-text: #b8c4d3; --nav-active: #1b2a3c;
  --ok: #1a8f4c; --ok-soft: #e2f5ea; --warn: #b26a00; --warn-soft: #fff3da; --err: #c62828; --err-soft: #fde8e8;
  --s0: #6b7a8c; --s1: #2f7fd6; --s2: #c98a00; --s3: #e0601a; --s4: #c62828;
  --radius: 8px; --shadow: 0 1px 2px rgba(16,24,34,.06), 0 4px 16px rgba(16,24,34,.06);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d131a; --surface: #151d27; --surface2: #1a2430; --border: #283545; --text: #e3e9f0; --muted: #8d9bad;
  --accent: #4c94ff; --accent-fg: #06111f; --accent-soft: #17304f; --nav: #0a0f15; --nav-text: #9fb0c3; --nav-active: #18263a;
  --ok: #46c57c; --ok-soft: #12301f; --warn: #e6a93a; --warn-soft: #33270f; --err: #f26d6d; --err-soft: #391818;
  --s0: #8494a8; --s1: #5aa6f5; --s2: #e3b341; --s3: #f5874a; --s4: #f26d6d;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 20px; margin: 0; font-weight: 650; } h2 { font-size: 15px; margin: 0 0 10px; font-weight: 650; } h3 { font-size: 13px; margin: 0 0 6px; font-weight: 650; }
p { margin: 0 0 10px; } code, .mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.hidden { display: none !important; }

/* каркас */
.app { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.nav { background: var(--nav); color: var(--nav-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.brand svg { color: var(--accent); flex: none; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 18px; color: var(--nav-text); border-left: 3px solid transparent; }
.nav a:hover { background: var(--nav-active); text-decoration: none; color: #fff; }
.nav a.active { background: var(--nav-active); color: #fff; border-left-color: var(--accent); }
.nav a svg { flex: none; opacity: .85; } .nav .sep { margin: 10px 18px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #5d6c80; }
.nav .badge { margin-left: auto; }
.nav-foot { margin-top: auto; padding: 12px 18px; font-size: 12px; color: #5d6c80; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar .spacer { flex: 1; } .btn.burger { display: none; }
.content { padding: 20px 24px 40px; max-width: 1500px; width: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .spacer { flex: 1; } .page-head .sub { color: var(--muted); font-size: 13px; width: 100%; margin-top: -6px; }

/* элементы */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; } .card.flush { padding: 0; overflow: hidden; } .card-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); } .card-head h2 { margin: 0; } .card-head .spacer { flex: 1; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g21 { grid-template-columns: 2fr 1fr; } .grid > .card + .card { margin-top: 0; } .grid > *, .stack > * { min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row .spacer { flex: 1; } .stack > * + * { margin-top: 12px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent); } .btn:disabled { opacity: .55; cursor: default; border-color: var(--border); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); } .btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--err); } .btn.danger:hover { border-color: var(--err); } .btn.sm { padding: 3px 9px; font-size: 12.5px; } .btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--surface2); }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: auto; margin: 0 6px 0 0; accent-color: var(--accent); vertical-align: -2px; }
textarea { resize: vertical; min-height: 70px; } textarea.mono, input.mono { font-family: var(--mono); font-size: 12.5px; }
label.field { display: block; } label.field > span, .label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.field .hint, .hint { font-size: 12px; color: var(--muted); margin-top: 4px; } .field.err input, .field.err select, .field.err textarea { border-color: var(--err); } .field .msg { color: var(--err); font-size: 12px; margin-top: 4px; }
label.check { display: inline-flex; align-items: center; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; } .form-grid .full { grid-column: 1 / -1; } .form-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.badge { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 650; background: var(--surface2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .badge.err { background: var(--err-soft); color: var(--err); border-color: transparent; }
.badge.info { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.sev { display: inline-block; min-width: 68px; text-align: center; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .03em; color: #fff; }
.sev.s0 { background: var(--s0); } .sev.s1 { background: var(--s1); } .sev.s2 { background: var(--s2); } .sev.s3 { background: var(--s3); } .sev.s4 { background: var(--s4); }
.flag { width: 20px; height: 15px; vertical-align: -2px; margin-right: 6px; border-radius: 2px; box-shadow: 0 0 0 1px var(--border); object-fit: cover; }
.worldmap { width: 100%; height: auto; display: block; max-height: 460px; } .worldmap path { fill: var(--border); stroke: var(--surface); stroke-width: .4; } .worldmap path.hit { stroke: var(--surface); }
.map-scale { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #f6d7a8, #ef8a4a, #c62828); flex: 1; max-width: 220px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--s0); margin-right: 6px; } .dot.ok { background: var(--ok); } .dot.err { background: var(--err); } .dot.warn { background: var(--warn); }

table.tbl { width: 100%; border-collapse: collapse; } .tbl th { text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--surface2); white-space: nowrap; }
.tbl td { padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; } .tbl tr:last-child td { border-bottom: 0; } .tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--surface2); }
.tbl td.msg { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12px; } .tbl.compact td, .tbl.compact th { padding: 5px 10px; }
.tbl td.nowrap { overflow-wrap: normal; } .tbl th.sortable { cursor: pointer; user-select: none; } .tbl th.sortable:hover { color: var(--text); } .tbl th .arrow { opacity: .55; font-size: 10px; }
.tbl td .mono, .tbl td.mono { word-break: break-all; }
.tbl-wrap { overflow-x: auto; } .empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.kv.v { grid-template-columns: 1fr; gap: 0; } .kv.v dt { margin-top: 9px; font-size: 12px; } .kv.v dt:first-child { margin-top: 0; }
pre.raw { margin: 0; padding: 10px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow: auto; }

.stat { display: flex; flex-direction: column; gap: 2px; } .stat .v { font-size: 26px; font-weight: 700; line-height: 1.15; } .stat .l { color: var(--muted); font-size: 12.5px; } .stat .d { font-size: 12px; color: var(--muted); }
.stat.alert .v { color: var(--err); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; } .tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); } .tabs button:hover { color: var(--text); }
.note { padding: 10px 12px; border-radius: 6px; background: var(--accent-soft); color: var(--text); font-size: 13px; border-left: 3px solid var(--accent); } .note.warn { background: var(--warn-soft); border-left-color: var(--warn); } .note.err { background: var(--err-soft); border-left-color: var(--err); } .note.ok { background: var(--ok-soft); border-left-color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 20px; background: var(--surface2); border: 1px solid var(--border); font-size: 12.5px; cursor: pointer; } .chip:hover { border-color: var(--accent); }
.bar { height: 8px; border-radius: 4px; background: var(--surface2); overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--accent); }

/* мастер */
.steps { display: flex; gap: 0; margin-bottom: 18px; overflow-x: auto; counter-reset: st; } .steps .st { flex: 1; min-width: 108px; position: relative; padding: 0 6px; text-align: center; font-size: 12px; color: var(--muted); cursor: default; background: none; border: 0; font-family: inherit; }
.steps .st::before { counter-increment: st; content: counter(st); display: block; width: 28px; height: 28px; line-height: 26px; margin: 0 auto 6px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); font-weight: 700; position: relative; z-index: 1; }
.steps .st::after { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--border); } .steps .st:first-child::after { display: none; }
.steps .st.done { color: var(--text); cursor: pointer; } .steps .st.done::before { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); content: "✓"; } .steps .st.done::after, .steps .st.cur::after { background: var(--accent); }
.steps .st.cur { color: var(--accent); font-weight: 650; } .steps .st.cur::before { border-color: var(--accent); color: var(--accent); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; } .type-card { text-align: left; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.type-card:hover, .type-card.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); } .type-card b { display: block; margin-bottom: 4px; } .type-card span { font-size: 12.5px; color: var(--muted); }
.check-list { list-style: none; margin: 0; padding: 0; } .check-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); } .check-list li:last-child { border: 0; } .check-list .ic { flex: none; width: 20px; height: 20px; border-radius: 50%; color: #fff; text-align: center; line-height: 20px; font-size: 12px; font-weight: 700; }
.ic.ok { background: var(--ok); } .ic.err { background: var(--err); } .ic.warn { background: var(--warn); }

/* оверлеи */
.overlay { position: fixed; inset: 0; background: rgba(8,12,18,.55); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.35); width: 100%; max-width: 640px; } .modal.wide { max-width: 980px; }
.modal-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); } .modal-head h2 { margin: 0; flex: 1; } .modal-body { padding: 18px; } .modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 100vw); background: var(--surface); z-index: 40; box-shadow: -10px 0 40px rgba(0,0,0,.25); display: flex; flex-direction: column; } .drawer .modal-body { overflow-y: auto; flex: 1; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: min(440px, calc(100vw - 32px)); }
.toast { padding: 11px 14px; border-radius: 8px; background: #1c2735; color: #fff; box-shadow: var(--shadow); font-size: 13.5px; border-left: 4px solid var(--accent); } .toast.err { border-left-color: #f26d6d; } .toast.ok { border-left-color: #46c57c; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; } @keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); min-width: 200px; padding: 6px; z-index: 30; } .menu a, .menu button { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: none; font: inherit; color: var(--text); border-radius: 5px; cursor: pointer; } .menu a:hover, .menu button:hover { background: var(--surface2); text-decoration: none; }
.rel { position: relative; }

/* вход */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; color: #e6edf6;
  background: radial-gradient(900px 520px at 50% -8%, rgba(31,111,235,.38) 0%, transparent 62%), radial-gradient(700px 500px at 100% 110%, rgba(19,154,123,.16) 0%, transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0/32px 32px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/32px 32px, #0b1220; }
.auth-col { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; } .auth-col.wide { max-width: 760px; }
.auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 22px; }
.auth-logo { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #3b8bff; background: linear-gradient(145deg, rgba(59,139,255,.22), rgba(59,139,255,.06)); border: 1px solid rgba(110,165,255,.35); box-shadow: 0 10px 40px rgba(31,111,235,.35), inset 0 1px 0 rgba(255,255,255,.12); }
.auth-logo svg { width: 38px; height: 38px; filter: drop-shadow(0 2px 6px rgba(31,111,235,.6)); }
.auth-name { margin-top: 14px; font-size: 24px; font-weight: 700; letter-spacing: .2px; color: #fff; }
.auth-tag { margin-top: 4px; font-size: 13px; color: #8fa3bf; }
.auth-card { width: 100%; background: var(--surface); color: var(--text); border-radius: 16px; padding: 30px 30px 24px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 70px rgba(0,0,0,.5); } .auth-card.wide { max-width: 760px; }
.auth-card .brand { color: var(--text); padding: 0 0 18px; font-size: 17px; } .auth-card h1 { margin-bottom: 6px; font-size: 21px; } .auth-card .stack { margin-top: 18px; } .auth-card p.center { margin: 0 auto; max-width: 320px; line-height: 1.45; }
.auth-card .btn.primary[type=submit] { height: 42px; font-size: 15px; margin-top: 4px; }
.auth-foot { margin-top: 18px; display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: #8091a8; }
.auth-lang { background: none; border: 0; color: #a9bbd3; cursor: pointer; font: inherit; padding: 2px 4px; border-radius: 4px; } .auth-lang:hover { color: #fff; text-decoration: underline; }
.inp-ico { position: relative; display: flex; align-items: center; } .inp-ico > svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.inp-ico > input { padding-left: 38px; height: 42px; width: 100%; } .inp-ico > input[type=password], .inp-ico > input:has(+ .inp-eye) { padding-right: 40px; }
.inp-eye { position: absolute; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; } .inp-eye:hover, .inp-eye.on { color: var(--accent, #1f6feb); }
.auth-badge { width: 56px; height: 56px; margin: 0 auto 2px; border-radius: 50%; display: grid; place-items: center; color: #1f6feb; background: rgba(31,111,235,.1); }
.otp { display: flex; justify-content: center; gap: 8px; } .otp .otp-cell { width: 46px; height: 54px; padding: 0; text-align: center; font-size: 24px; font-weight: 600; font-family: ui-monospace, Menlo, Consolas, monospace; border-radius: 10px; }
.otp .otp-cell:nth-child(3) { margin-right: 10px; } .otp .otp-cell:focus { border-color: #1f6feb; box-shadow: 0 0 0 3px rgba(31,111,235,.2); outline: none; }
.otp.shake { animation: shake .4s; } @keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 420px) { .auth-card { padding: 24px 18px 20px; } .otp { gap: 6px; } .otp .otp-cell { width: 40px; height: 48px; font-size: 21px; } .otp .otp-cell:nth-child(3) { margin-right: 6px; } }
.tbl th.chk, .tbl td.chk { width: 34px; padding-right: 0; } .tbl td.chk input, .tbl th.chk input { width: 16px; height: 16px; margin: 0; cursor: pointer; vertical-align: middle; }
.bulkbar { position: sticky; top: 8px; z-index: 5; margin-top: 16px; background: var(--accent-soft); border-color: var(--accent); } .bulkbar[hidden] { display: none; }
.qr { background: #fff; padding: 10px; border-radius: 8px; display: inline-block; line-height: 0; } .qr svg { width: 180px; height: 180px; }

/* графики */
.chart { width: 100%; height: 200px; display: block; } .chart text { fill: var(--muted); font-size: 10.5px; } .chart .grid-line { stroke: var(--border); stroke-width: 1; } .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 13px; } .wide-names .hbar { grid-template-columns: minmax(90px, 62%) 1fr auto; } .hbar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hbar .n { font-variant-numeric: tabular-nums; color: var(--muted); }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3, .g21 { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; } .nav { position: fixed; z-index: 45; width: 250px; transform: translateX(-100%); transition: transform .2s; } .nav.open { transform: none; box-shadow: 10px 0 40px rgba(0,0,0,.4); }
  .btn.burger { display: inline-flex; } .content { padding: 14px 12px 32px; } .topbar { padding: 8px 12px; } .g2, .g4, .form-grid, .form-grid.c3 { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; gap: 0 0; } .kv dt { margin-top: 8px; font-size: 12px; }
  .tbl td.msg { max-width: 240px; } .hide-sm { display: none; }
}
.grid.g6 { grid-template-columns: repeat(6, 1fr); } .grid > .span-all { grid-column: 1 / -1; } .print-only { display: none; }
.donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; } .donut { width: 150px; height: 150px; flex: none; } .donut-total { font-size: 20px; font-weight: 700; fill: var(--text); }
.donut-legend { flex: 1; min-width: 180px; font-size: 13px; } .donut-legend > div { display: flex; align-items: center; gap: 6px; padding: 3px 0; } .donut-legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.donut-legend b { margin-left: auto; font-variant-numeric: tabular-nums; } .donut-legend .muted { width: 48px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .grid.g6 { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 640px) { .grid.g6 { grid-template-columns: repeat(2, 1fr); } }
@media print { .nav, .sidebar, aside.side, .topbar, .btn, .no-print, .toast { display: none !important; } .app { display: block; } .main, main { margin: 0 !important; padding: 0 !important; } .card { box-shadow: none; break-inside: avoid; border: 1px solid #d1d5db; }
  body { background: #fff; } .print-only { display: block; } .print-title { margin-bottom: 12px; } .print-title h1 { margin: 0 0 4px; } .page-head, .card.row { display: none !important; } .tbl-wrap { overflow: visible; } .tbl td, .tbl th { padding: 4px 8px; font-size: 11px; } }
/* дашборд: сетка 12 колонок × строки по 8 px; карточка занимает прямоугольник, отступ снизу входит в её строки */
.dash { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 8px; column-gap: 16px; row-gap: 0; }
.dash > .dw { position: relative; min-width: 0; align-self: start; display: flex; flex-direction: column; }
.dash > .dw > .card { margin: 0; min-height: 0; }
.dash > .dw.fixed > .card { flex: 1 1 auto; overflow: auto; } .dash > .dw.fixed > .card.flush { display: flex; flex-direction: column; } .dash > .dw.fixed > .card.flush > .tbl-wrap { flex: 1; overflow: auto; }
.dash > .dw.fixed > .card.fill { display: flex; flex-direction: column; } .dash > .dw.fixed > .card.fill > .chart { flex: 1; height: auto; min-height: 80px; }
.dash > .dw.fixed > .card .worldmap-box { height: calc(100% - 70px); } .dash > .dw.fixed > .card .worldmap { max-height: 100%; height: 100%; }
.dw-ph { border: 2px dashed var(--accent); border-radius: var(--radius); background: var(--accent-soft); opacity: .6; align-self: start; pointer-events: none; }
.dw-ph { height: calc(100% - 16px); align-self: stretch; }
.dw-btn { position: absolute; top: 6px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 6px; padding: 0; opacity: 0; transition: opacity .15s; z-index: 2; cursor: pointer; }
.dw-grip { right: 34px; cursor: grab; touch-action: none; } .dw-hide { right: 6px; } .dw-btn:hover { color: var(--text); border-color: var(--muted); }
.dw-resize { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; touch-action: none; opacity: 0; transition: opacity .15s; z-index: 2;
  background: linear-gradient(135deg, transparent 0 55%, var(--muted) 55% 62%, transparent 62% 72%, var(--muted) 72% 79%, transparent 79%); border-bottom-right-radius: var(--radius); }
.dw:hover > .dw-btn, .dw:hover > .dw-resize, .dw-btn:focus-visible, .dw.dragging > .dw-btn, .dw.resizing > .dw-resize { opacity: 1; }
.dash.arranging, .dash.arranging * { cursor: grabbing !important; user-select: none; }
.dw.dragging { box-shadow: 0 18px 50px rgba(0,0,0,.25); border-radius: var(--radius); } .dw.dragging > .card { opacity: .92; } .dash > .dw.dragging { transition: none; } .dw.resizing > .card { outline: 2px solid var(--accent); outline-offset: 2px; }
.dash-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
@media (hover: none) { .dw-btn, .dw-resize { opacity: .8; } }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; grid-auto-rows: auto; row-gap: 16px; } .dash > .dw { grid-column: 1 / -1 !important; grid-row: auto !important; height: auto !important; } .dw-grip { display: none; } .dw-resize { display: none; } .dash > .dw.fixed > .card { overflow: visible; } .dash-checks { grid-template-columns: 1fr; } }

/* всплывающие подсказки графиков и карты */
.tip { position: fixed; z-index: 100; pointer-events: none; min-width: 150px; max-width: 280px; background: #0f1722; color: #e6edf6; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.tip[hidden] { display: none; } .tip-head { font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; } .tip-total { color: #9fb0c3; margin-bottom: 4px; }
.tip-row { display: flex; align-items: center; gap: 8px; line-height: 1.6; } .tip-row > span:first-of-type { flex: 1; } .tip-row i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; } .tip-pct { color: #9fb0c3; min-width: 32px; text-align: right; }
.tip-hint { margin-top: 4px; color: #7fb2ff; font-size: 11.5px; }
.chart-hl { fill: var(--accent); opacity: .08; }
.worldmap-box { position: relative; } .worldmap { touch-action: none; } .worldmap.pick path.hit { cursor: pointer; } .worldmap.zoomed { cursor: grab; } .worldmap.zoomed:active { cursor: grabbing; }
.worldmap path { transition: fill .15s, opacity .15s; } .worldmap path.hover { stroke: var(--text); stroke-width: .9; } .worldmap path.hit.hover { filter: brightness(1.08); }
.map-zoom { position: absolute; left: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 4px; } .map-zoom .btn { width: 28px; height: 28px; padding: 0; justify-content: center; font-size: 16px; line-height: 1; }
.country-inc { display: flex; gap: 8px; align-items: center; color: inherit; text-decoration: none; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; } .country-inc:hover { background: var(--surface2); } .country-inc > span:nth-child(2) { flex: 1; min-width: 0; }
.dash > .dw > .card:not(.stat) > :first-child { padding-right: 58px; } .dash > .dw > .card.flush > .card-head:first-child { padding-right: 66px; }
.excl-rules { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
@media (max-width: 640px) { .excl-rules { grid-template-columns: 1fr; } }
.brand-logo { width: 56px; height: 56px; border: 1px solid var(--border); border-radius: 12px; display: grid; place-items: center; background: #fff; overflow: hidden; } .brand-logo img { max-width: 46px; max-height: 46px; object-fit: contain; }
.mail-preview { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; max-height: 780px; overflow-y: auto; }
.ipinfo h3 { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } .ip-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ipkv dt { margin-top: 6px; } .ipkv dd { word-break: break-word; } .ip-contact { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; } .ip-link { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.ipbtn { padding: 0 6px; height: 22px; font-size: 14px; line-height: 1; vertical-align: middle; color: var(--accent); }
/* настройки: боковое меню разделов по группам; на узком экране — выпадающий список */
.set-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-nav { position: sticky; top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.set-group + .set-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.set-group-title { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.set-nav a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.3; }
.set-nav a:hover { background: var(--surface2); } .set-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.set-select { display: none; margin-bottom: 14px; width: 100%; } .set-content { min-width: 0; }
@media (max-width: 900px) { .set-layout { grid-template-columns: 1fr; } .set-nav { display: none; } .set-select { display: block; } }
/* вкладки в остальных разделах: перенос строк вместо полосы прокрутки */
.tabs { flex-wrap: wrap; overflow: visible; row-gap: 0; }
/* цепочки атак */
.kill { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; } .kill-st { border: 1px solid var(--border); border-radius: 6px; padding: 6px 4px; font-size: 11.5px; text-align: center; color: var(--muted); background: var(--surface2); line-height: 1.2; min-height: 34px; display: grid; place-items: center; }
.kill-st.on { color: #fff; font-weight: 600; } .kill.sm { gap: 2px; width: 180px; } .kill.sm .kill-st { min-height: 8px; padding: 0; border-radius: 3px; }
.chain-kpi .kpi-v { font-size: 18px; font-weight: 700; margin-top: 2px; }
.swim-wrap { overflow-x: auto; } .swim { width: 100%; min-width: 640px; height: auto; display: block; } .swim .lane { fill: var(--surface); } .swim .lane.odd { fill: var(--surface2); }
.swim .lane-label { font-size: 12px; fill: var(--text); font-weight: 600; } .swim .axis { font-size: 10.5px; fill: var(--muted); } .swim-path { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 4 3; opacity: .7; }
.swim-dot { stroke: var(--surface); stroke-width: 2; } .swim-dot.inc { stroke-width: 2.5; }
.tl-day + .tl-day { margin-top: 14px; } .tl-date { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.tl-item { display: flex; gap: 10px; position: relative; padding: 6px 0 6px 2px; border-left: 2px solid var(--border); margin-left: 6px; } .tl-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-left: -8px; margin-top: 4px; border: 2px solid var(--surface); }
.tl-body { min-width: 0; flex: 1; font-size: 14px; } .tl-body .chip { padding: 1px 8px; font-size: 12px; }
.attck { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; } .attck-col { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; opacity: .55; } .attck-col.on { opacity: 1; border-width: 2px; }
.attck-h { font-size: 12px; font-weight: 700; padding: 6px 8px; background: var(--surface2); display: flex; justify-content: space-between; gap: 6px; } .attck-col.on .attck-h { color: #fff; } .attck-code { font-weight: 400; opacity: .8; }
.attck-t { font-size: 12px; padding: 4px 8px; border-top: 1px solid var(--border); }
@media (max-width: 640px) { .kill { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* профили учётных записей */
.hmap { display: grid; grid-template-columns: repeat(24, 1fr); gap: 1px; width: 168px; } .hcell { height: 12px; background: var(--surface2); border-radius: 2px; }
.hmap.big { width: 100%; gap: 2px; } .hmap.big .hcell { height: 26px; font-size: 9.5px; color: var(--muted); display: grid; place-items: end center; padding-bottom: 1px; }
.wdbars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; } .wd { display: flex; flex-direction: column; align-items: center; font-size: 12px; } .wdbar { width: 100%; height: 50px; background: var(--surface2); border-radius: 4px; display: flex; align-items: flex-end; overflow: hidden; } .wdbar i { display: block; width: 100%; background: var(--accent); }

/* отчёты для руководства и о соответствии */
.report-notes ul { margin: 6px 0 0; padding-left: 20px; line-height: 1.6; }
.report-notes li + li { margin-top: 4px; }
.badge.st-met { background: rgba(22, 163, 74, .14); color: #15803d; }
.badge.st-partial { background: rgba(217, 119, 6, .15); color: #b45309; }
.badge.st-not { background: rgba(220, 38, 38, .14); color: #b91c1c; }
.badge.st-manual { background: rgba(100, 116, 139, .15); color: var(--muted); }
.stat .v.risk-высокий { color: #dc2626; }
.stat .v.risk-средний { color: #d97706; }
.stat .v.risk-низкий { color: #16a34a; }

/* самопроверка SIEM */
.sc-list { display: flex; flex-direction: column; }
.sc-row { display: grid; grid-template-columns: 22px minmax(160px, 260px) 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.sc-row:last-child { border-bottom: 0; }
.sc-mark { font-weight: 700; text-align: center; }
.sc-row.ok .sc-mark { color: #16a34a; }
.sc-row.warn .sc-mark { color: #d97706; }
.sc-row.err .sc-mark { color: #dc2626; }
.sc-row.err b { color: #dc2626; }
@media (max-width: 640px) { .sc-row { grid-template-columns: 22px 1fr; } .sc-row > .muted { grid-column: 2; } }
.sys-mini { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; border-left: 4px solid var(--border); }
.sys-mini span { color: var(--muted); font-size: 13px; }
.sys-mini.ok { border-left-color: #16a34a; }
.sys-mini.err { border-left-color: #dc2626; }
.sys-mini.err span { color: #dc2626; }
.sys-mini:hover { box-shadow: 0 0 0 1px var(--accent); }
.bk-name { word-break: break-all; min-width: 120px; }
pre.mono { white-space: pre-wrap; word-break: break-all; }

/* ИИ */
.ai-card { border-left: 3px solid #8b5cf6; }
.ai-card h2 svg { color: #8b5cf6; vertical-align: -2px; }
.ai-card.compact { padding: 12px; margin-top: 16px; }
.ai-res h4 { margin: 12px 0 4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.ai-text { margin: 6px 0; line-height: 1.55; }
.ai-list { margin: 4px 0; padding-left: 20px; line-height: 1.55; }
.ai-cmd { white-space: pre-wrap; }
.ai-fb { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); gap: 4px; }
.ai-disclaimer { font-size: 11.5px; margin-top: 8px; }
.ai-pattern { margin: 8px 0; }
.ai-pattern pre { margin: 4px 0 0; white-space: pre-wrap; word-break: break-all; }
.ai-nl { margin-bottom: 16px; border-left: 3px solid #8b5cf6; padding: 12px 16px; }
.ai-nl svg { color: #8b5cf6; }
.ai-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ai-feat { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.ai-modal .ai-card { border: 0; box-shadow: none; padding: 0; }
.ai-fab { position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #7c3aed; color: #fff; box-shadow: 0 6px 20px rgba(124,58,237,.4); cursor: pointer; z-index: 40; display: grid; place-items: center; }
.ai-fab:hover { background: #6d28d9; }
.ai-chat { position: fixed; right: 22px; bottom: 86px; width: min(440px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.25); z-index: 41; display: flex; flex-direction: column; padding: 12px; }
.ai-chat-head { gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.ai-chat-head svg { color: #8b5cf6; }
.ai-chat-log { flex: 1; overflow-y: auto; padding: 10px 2px; display: flex; flex-direction: column; gap: 8px; }
.ai-msg { padding: 8px 12px; border-radius: 12px; max-width: 90%; white-space: pre-wrap; line-height: 1.45; font-size: 14px; }
.ai-msg.user { align-self: flex-end; background: var(--accent); color: #fff; }
.ai-msg.assistant { align-self: flex-start; background: var(--surface2); border: 1px solid var(--border); }
.ai-chat-input { gap: 8px; align-items: flex-end; }
.ai-chat-input textarea { resize: none; }
@media (max-width: 640px) { .ai-fab { right: 14px; bottom: 14px; } .ai-chat { right: 8px; bottom: 76px; width: calc(100vw - 16px); } }
@media print { .ai-fab, .ai-chat, .ai-card .btn, .ai-fb, .no-print-empty .ai-disclaimer { display: none !important; } }
.host-det .form-grid { margin-top: 4px; }

/* граф связей */
.graph-card { padding: 8px 12px 12px; }
.graph { width: 100%; height: auto; max-height: 76vh; display: block; }
.graph .gnode { cursor: pointer; }
.graph .gnode:hover circle, .graph .gnode:focus circle { stroke: var(--accent); stroke-width: 3; }
.graph .glabel { font-size: 11px; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }

/* кабинет клиента хостинга */
.cab-finding { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.cab-finding.open { border-color: #fca5a5; background: color-mix(in srgb, #fee2e2 35%, transparent); }

/* выбор дней недели в расписании */
.days-row { display: flex; flex-wrap: wrap; gap: 6px; }
.daybox { display: inline-flex; cursor: pointer; }
.daybox input { position: absolute; opacity: 0; pointer-events: none; }
.daybox span { min-width: 38px; text-align: center; padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; user-select: none; }
.daybox input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.daybox input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* просмотр содержимого файла сайта в находке защиты хостинга */
.file-view { max-height: 420px; overflow: auto; white-space: pre; font-size: 12px; tab-size: 4; }
/* Учётные записи: строки по серверам и вкладки серверов в карточке */
.acc-sub > td { background: var(--surface2); padding: 6px 12px 10px 36px; }
.acc-hosts { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.acc-hosts .hmap { min-width: 168px; }
.acc-tabs { margin: 4px 0 6px; } .acc-tabs .chip { font: inherit; font-size: 12.5px; color: inherit; } .acc-tabs .chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); } .acc-tabs .chip.active .muted { color: rgba(255,255,255,.8); }
.stale-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1000; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 32px);
  background: var(--surface); color: var(--text); border: 1px solid var(--accent); border-radius: 10px; padding: 10px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); font-size: 14px; }
/* 3.8: география атак — живые атаки, провайдеры и сети */
.geo-card { display: flex; flex-direction: column; gap: 12px; }
.geo-head { flex-wrap: wrap; gap: 12px; }
.geo-live-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.geo-live-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.geo-live-btn.on { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.geo-live-btn.on .dot { background: var(--ok); animation: geoBlink 1.2s ease-in-out infinite alternate; }
@keyframes geoBlink { from { opacity: .35; } to { opacity: 1; } }
.geo-cnt { display: flex; gap: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; } .geo-cnt b { font-size: 15px; color: var(--text); } .geo-cnt .geo-inc { color: var(--err); }
.geo-body { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.geo-left { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.geo-nets { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.worldmap .geo-live, .worldmap .geo-sites { pointer-events: none; }
.worldmap .geo-head { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.worldmap .geo-trail { fill: none; stroke-width: 1; stroke-dasharray: 2 4; opacity: .45; }
.worldmap .geo-site { fill: #0891b2; stroke: var(--surface); stroke-width: 2; }
.worldmap .geo-site-label { font: 700 12px Inter, system-ui, sans-serif; fill: var(--text); stroke: var(--surface); stroke-width: 3.5px; paint-order: stroke; }
.geo-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.geo-legend span { display: inline-flex; align-items: center; gap: 5px; } .geo-legend i { width: 16px; height: 3px; display: inline-block; } .geo-legend i.site { width: 9px; height: 9px; border-radius: 50%; background: #0891b2; }
.geo-feed { display: flex; flex-direction: column; font-size: 12px; }
.geo-feed-head { gap: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.geo-row { display: grid; grid-template-columns: 62px 78px 44px minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.2fr); gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--border); animation: geoIn .4s ease-out; }
@keyframes geoIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-align: left; }
.geo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.geo-net { border: 0; border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit; font-size: 12px; color: #fff; cursor: pointer; min-height: 58px; transition: opacity .15s, box-shadow .15s; }
.geo-net b { font-size: 13px; } .geo-net .sub { opacity: .85; font-size: 11px; }
.geo-net.host { background: #1e40af; } .geo-net.host:nth-child(3n+2) { background: #1d4ed8; } .geo-net.host:nth-child(3n) { background: #2563eb; }
.geo-net.isp { background: #c2410c; } .geo-net.isp:nth-child(2n) { background: #ea580c; }
.geo-net.wide { grid-column: span 2; min-height: 72px; }
.geo-net.sel { box-shadow: inset 0 0 0 3px #facc15; } .geo-net.dim { opacity: .6; }
.geo-row > .sev { justify-self: start; } .geo-net:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.geo-keys { gap: 14px; font-size: 11px; color: var(--muted); } .geo-keys span { display: inline-flex; align-items: center; gap: 5px; } .geo-keys .k { width: 10px; height: 10px; border-radius: 2px; display: inline-block; } .geo-keys .k.host { background: #1e40af; } .geo-keys .k.isp { background: #c2410c; }
.geo-net-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.geo-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .geo-stats span { display: block; font-size: 11px; color: var(--muted); } .geo-stats b { font-size: 16px; }
.geo-subnets { display: flex; flex-direction: column; gap: 4px; } .geo-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.btn.danger-outline { color: var(--err); border-color: var(--err); background: var(--surface); }
.geo-card:fullscreen { overflow: auto; padding: 24px; border-radius: 0; } .geo-card:fullscreen .worldmap { max-height: 72vh; }
@media (max-width: 700px) { .geo-row { grid-template-columns: 58px 70px 40px minmax(0, 1fr); } .geo-row > :nth-child(5), .geo-row > :nth-child(6) { display: none; } }
/* 3.8: руководство пользователя */
.guide { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.guide-side { flex: 1 1 240px; max-width: 300px; position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.guide-content { flex: 999 1 560px; min-width: 0; max-width: 980px; }
.guide-search-wrap { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; background: var(--surface); }
.guide-search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.guide-search { border: 0 !important; box-shadow: none !important; padding: 9px 0 !important; flex: 1; min-width: 0; background: transparent; }
.guide-toc { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.guide-toc a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.guide-toc a:hover { background: var(--accent-soft); } .guide-toc a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.guide-group { margin-top: 8px; } .guide-group-t { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 4px 10px; }
.guide-badge { margin-left: auto; font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; } .guide-badge.full { color: var(--ok); border-color: var(--ok); }
.guide-title { margin: 0 0 4px; font-size: 26px; }
.guide-hero h1 { margin: 0 0 6px; font-size: 28px; }
.guide-body { display: flex; flex-direction: column; gap: 14px; line-height: 1.6; font-size: 14px; }
.guide-body p { margin: 0; } .guide-h { margin: 14px 0 0; font-size: 18px; scroll-margin-top: 80px; }
.guide-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.guide-body code, .guide-hit code { background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; word-break: break-word; }
.guide-cmd { display: flex; gap: 8px; align-items: flex-start; background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 10px 12px; }
.guide-cmd pre { margin: 0; flex: 1; white-space: pre-wrap; word-break: break-all; font-size: 12.5px; } .guide-cmd code { background: none; color: inherit; padding: 0; }
.guide-shot { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.guide-img { border: 1px solid var(--border); border-radius: 8px; padding: 0; overflow: hidden; cursor: zoom-in; background: var(--surface); display: block; }
.guide-img img { width: 100%; height: auto; display: block; } .guide-img:hover { box-shadow: 0 4px 16px rgba(15,23,42,.12); }
.guide-shot figcaption { font-size: 12px; color: var(--muted); }
.guide-note { line-height: 1.55; }
.guide-steps { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.guide-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.guide-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px; border-radius: 8px; }
.guide-steps li:hover { background: var(--accent-soft); } .guide-steps li.done .guide-step-t { text-decoration: line-through; color: var(--muted); }
.guide-step-check { display: flex; align-items: center; gap: 8px; cursor: pointer; padding-top: 2px; } .guide-step-check input { width: 18px; height: 18px; margin: 0; }
.guide-step-check .num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.guide-steps li.done .num { background: var(--ok); }
.guide-step-body { flex: 1; min-width: 0; } .guide-step-t { font-weight: 600; }
.guide-bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; margin-top: 6px; } .guide-bar span { display: block; height: 100%; background: var(--ok); transition: width .3s; }
.guide-faq { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; } .guide-faq summary { cursor: pointer; font-weight: 600; } .guide-faq > div { margin-top: 8px; }
.guide-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.guide-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; } .guide-groups h3 { margin-top: 0; }
.guide-card-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); padding: 6px 8px; border-radius: 6px; } .guide-card-link:hover { background: var(--accent-soft); }
.guide-hit { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; } .guide-hit:hover { border-color: var(--accent); }
.guide mark, .guide-hit mark { background: #fde68a; color: inherit; border-radius: 2px; padding: 0 1px; }
.guide-search:focus { outline: none; } .guide-hit:hover, .guide-card-link:hover { text-decoration: none; }
.guide-toc-btn { display: none; align-self: flex-start; }
.help-btn { width: 34px; height: 34px; padding: 0; justify-content: center; }
@media (max-width: 800px) { .guide-side { position: static; max-width: none; max-height: none; } .guide.in-ch .guide-toc-btn { display: inline-flex; } .guide.in-ch .guide-toc { display: none; } .guide.in-ch.toc-open .guide-toc { display: flex; } }

.custom-paths { padding: 10px 16px; border-bottom: 1px solid var(--border); } .custom-path-row { padding: 4px 0; }
.geo-net-modal { gap: 10px; font-size: 13px; } .geo-net-modal .note { padding: 8px 10px; }
.geo-net-modal .geo-subnets { max-height: 210px; overflow-y: auto; padding-right: 4px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }
.overlay:has(.geo-net-modal) .modal { max-width: 560px; max-height: 88vh; display: flex; flex-direction: column; } .overlay:has(.geo-net-modal) .modal-body { overflow-y: auto; }
