/* ============================================================
   SIMPLY SECURE — Scanner / ASM Dashboard
   Reuses design tokens from styles.css (:root).
   ============================================================ */

body.app-body { overflow: hidden; }
body.app-body::before { opacity: 0.7; }

/* ---------------- App shell ---------------- */
.app {
  display: grid;
  grid-template-columns: 252px 1fr;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* ---------------- Sidebar ---------------- */
.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(0,0,0,0.30);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.side-head {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 22px; height: 64px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.side-head .logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(150deg, var(--accent-hot), var(--accent-deep));
  display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 700; font-size: 0.74rem; color: #1a0e06;
  box-shadow: 0 4px 18px rgba(255,106,31,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}
.side-head .logo-word { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.02em; }
.side-head .logo-word b { font-weight: 600; }
.side-head .logo-word span { color: var(--accent); }

.side-nav { flex: 1; overflow-y: auto; padding: 18px 14px; min-height: 0; }
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.nav-group-label {
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); padding: 0 12px; margin: 18px 0 8px;
}
.nav-group-label:first-child { margin-top: 0; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--text-2); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: background .16s, color .16s;
  position: relative; width: 100%; border: 0; background: transparent; text-align: left;
  font-family: var(--f-body);
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.8; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-hot); }
.nav-item.active::before {
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav-item .count {
  margin-left: auto; font-family: var(--f-mono); font-size: 0.68rem;
  background: var(--surface-3); color: var(--text-2);
  padding: 2px 7px; border-radius: 100px; min-width: 22px; text-align: center;
}
.nav-item.active .count { background: var(--accent); color: #1c0d04; }
.nav-item .count.alert { background: var(--red-soft); color: var(--red); }

.side-foot { padding: 14px; border-top: 1px solid var(--line); flex-shrink: 0; }
.plan-card {
  background: linear-gradient(155deg, rgba(255,106,31,0.14), rgba(255,138,61,0.03));
  border: 1px solid var(--accent-line); border-radius: 14px; padding: 16px;
}
.plan-card .pk { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-hot); }
.plan-card .pt { font-family: var(--f-display); font-weight: 600; font-size: 1rem; margin: 6px 0 4px; }
.plan-card .pd { font-size: 0.78rem; color: var(--text-2); margin-bottom: 12px; }
.plan-card .btn { width: 100%; justify-content: center; padding: 9px; font-size: 0.84rem; }

/* ---------------- Main column ---------------- */
.app-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.topbar {
  display: flex; align-items: center; gap: 18px;
  height: 64px; padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(10,9,8,0.55); backdrop-filter: blur(14px);
  flex-shrink: 0;
  /* backdrop-filter makes the topbar its own stacking context, so the
     dropdown panels' z-index only counts inside it — lift the whole bar
     above the page content or charts paint over the open panels.
     (below .rescan-bar at 200 and .ss-modal at 400) */
  position: relative; z-index: 150;
}
.topbar .search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 9px 14px; width: 340px; max-width: 38vw;
  color: var(--muted); transition: border-color .2s, box-shadow .2s;
}
.topbar .search:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.topbar .search svg { width: 16px; height: 16px; flex-shrink: 0; }
.topbar .search input { flex: 1; background: 0; border: 0; outline: 0; color: var(--text); font-family: var(--f-body); font-size: 0.88rem; }
.topbar .search input::placeholder { color: var(--faint); }
.topbar .search kbd {
  font-family: var(--f-mono); font-size: 0.66rem; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 6px;
}
.topbar .spacer { flex: 1; }

.org-pick { position: relative; }
.op-trigger {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 7px 12px; cursor: pointer; transition: border-color .2s; font-family: var(--f-body); color: var(--text);
}
.op-trigger:hover { border-color: var(--accent-line); }
.org-pick.open .op-trigger { border-color: var(--accent-line); background: var(--surface-2); }
.org-pick .av { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(150deg, var(--accent-hot), var(--accent-deep)); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; font-size: 0.7rem; color: #1a0e06; flex-shrink: 0; }
.org-pick .on { font-size: 0.86rem; font-weight: 600; }
.op-trigger > svg { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.org-pick.open .op-trigger > svg { transform: rotate(180deg); }

/* "О компании" dropdown */
.org-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 300px; z-index: 120;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: viewIn .18s ease;
}
.om-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.om-av { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(150deg, var(--accent-hot), var(--accent-deep)); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; font-size: 0.92rem; color: #1a0e06; flex-shrink: 0; }
.om-id { min-width: 0; }
.om-name { font-family: var(--f-display); font-weight: 600; font-size: 0.98rem; color: var(--text); }
.om-dom { font-family: var(--f-mono); font-size: 0.78rem; color: var(--accent-hot); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-role { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.om-title { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.om-meta { display: flex; gap: 10px; margin: 4px 0 16px; }
.omm { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.omm span { display: block; font-size: 0.72rem; color: var(--muted); }
.omm b { font-family: var(--f-mono); font-size: 0.92rem; color: var(--text); }
.org-menu .btn { width: 100%; justify-content: center; }
.org-menu .btn + .btn { margin-top: 8px; }

.set-hint { font-size: 0.86rem; color: var(--muted); margin: 0 0 18px; }
.set-hint b { color: var(--text); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface);
  display: grid; place-items: center; color: var(--text-2); position: relative;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--accent-line); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }

/* notification bell dropdown */
.notif-pick { position: relative; }
.notif-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 340px; z-index: 120;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: viewIn .18s ease; overflow: hidden;
}
.nm-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.nm-head span { font-family: var(--f-display); font-weight: 600; font-size: 0.94rem; }
.nm-mark { background: 0; border: 0; color: var(--accent-hot); font-family: var(--f-mono); font-size: 0.72rem; cursor: pointer; }
.nm-mark:hover { text-decoration: underline; }
.nm-list { max-height: 380px; overflow-y: auto; }
.nm-item { display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.nm-item:last-child { border-bottom: 0; }
.nm-item.unread { background: rgba(255,106,31,0.05); }
.nm-bar { width: 3px; border-radius: 3px; flex-shrink: 0; background: var(--muted); }
.nm-bar.crit { background: var(--red); } .nm-bar.high { background: var(--sev-high); }
.nm-bar.med { background: var(--amber); } .nm-bar.low { background: var(--green); }
.nm-body { min-width: 0; flex: 1; }
.nm-title { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.nm-text { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.nm-time { font-family: var(--f-mono); font-size: 0.68rem; color: var(--faint); margin-top: 4px; }
.nm-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 0.84rem; }

/* global search results dropdown */
.topbar .search { position: relative; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; width: 420px; max-width: 60vw; z-index: 130;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: viewIn .16s ease; overflow: hidden; padding: 6px;
}
.sr-group { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 4px; }
.sr-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.sr-item:hover { background: var(--surface-2); }
.sr-item .sr-main { flex: 1; min-width: 0; font-size: 0.86rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-item .sr-tag { font-family: var(--f-mono); font-size: 0.68rem; color: var(--muted); flex-shrink: 0; }
.sr-empty { padding: 18px 12px; text-align: center; color: var(--muted); font-size: 0.84rem; }
.user-pick { position: relative; }
.user-av { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; font-size: 0.82rem; color: var(--text-2); border: 1px solid var(--line-2); cursor: pointer; padding: 0; transition: border-color .2s, color .2s; }
.user-av:hover { border-color: var(--accent-line); color: var(--text); }
.user-pick.open .user-av { border-color: var(--accent-line); color: var(--text); background: var(--surface-2); }

/* ---------------- Page scroll area ---------------- */
.page { flex: 1; overflow-y: auto; padding: 30px 34px 60px; min-height: 0; }
.page::-webkit-scrollbar { width: 9px; }
.page::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
.page::-webkit-scrollbar-track { background: transparent; }

.view { display: none; }
.view.active { display: block; opacity: 1; animation: viewIn .35s ease; }
@keyframes viewIn { from { transform: translateY(8px); } to { transform: none; } }

/* page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head h1 { font-family: var(--f-display); font-size: 2.1rem; font-weight: 600; letter-spacing: -0.025em; }
.page-head h1 .dim { color: var(--muted); font-weight: 500; }
.page-head .ph-meta { display: flex; align-items: center; gap: 16px; }
.scan-status { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.scan-status b { color: var(--text-2); }

/* ---------------- Score band ---------------- */
.score-band {
  display: grid; grid-template-columns: 300px 1fr; gap: 18px; margin-bottom: 18px;
}
.score-hero {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: 18px; padding: 26px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; overflow: hidden;
}
.score-hero .ring { position: relative; width: 168px; height: 168px; margin: 6px 0 4px; }
.score-hero .ring svg { transform: rotate(-90deg); width: 168px; height: 168px; }
.score-hero .ring .center { position: absolute; inset: 0; display: grid; place-content: center; }
.score-hero .ring .center .t { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.score-hero .ring .center .s { font-family: var(--f-display); font-size: 3.2rem; font-weight: 700; line-height: 1; }
.score-hero .delta { margin-top: 12px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--green); background: var(--green-soft); padding: 4px 12px; border-radius: 100px; }
.score-hero .grade { margin-top: 14px; font-size: 0.86rem; color: var(--text-2); }
.score-hero .grade b { color: var(--text); }

/* two-pillar mini gauges under the overall ring */
.pillar-gauges { width: 100%; margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.pgauge .pg-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.pgauge .pg-l { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pgauge .pg-v { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; line-height: 1; }
.pgauge .pg-bar { height: 6px; border-radius: 100px; background: var(--surface-3); overflow: hidden; }
.pgauge .pg-bar i { display: block; height: 100%; width: 0; border-radius: 100px; background: var(--green); transition: width 0.9s cubic-bezier(.4,0,.2,1), background 0.3s; }

/* asset detail modal */
.ss-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; }
.ss-modal[hidden] { display: none; }
.ss-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.ss-modal-panel { position: relative; width: 100%; max-width: 560px; max-height: 82vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55); animation: viewIn .18s ease; }
.ss-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.ss-modal-head h3 { font-family: var(--f-display); font-size: 1.05rem; word-break: break-all; }
.ss-modal-x { background: 0; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.ss-modal-x:hover { color: var(--text); }
.ss-modal-body { padding: 18px 20px; }
.am-summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.am-sec { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); margin: 16px 0 8px; }
.am-row { font-size: 0.86rem; padding: 5px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.am-row b { font-family: var(--f-mono); color: var(--text); }
.am-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.am-finding { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.am-finding .issue-sev-bar { width: 3px; border-radius: 3px; flex-shrink: 0; }
.am-ft { font-size: 0.88rem; font-weight: 600; }
.am-fm { font-size: 0.76rem; color: var(--muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* score-history trend chart */
.score-trend-chart { height: 150px; position: relative; }
.score-trend-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.score-trend-chart .issue-empty { position: absolute; inset: 0; display: grid; place-items: center; }

/* exposure sub-score cards (E1–E5) — reuse .icard visuals, 5 across */
.exposure-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.exposure-cards .icard { min-height: 148px; cursor: default; }
@media (max-width: 1100px) { .exposure-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .exposure-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .exposure-cards { grid-template-columns: 1fr; } }

/* trend card */
.trend-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px;
  display: flex; flex-direction: column;
}
.trend-card .tc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.trend-card h4 { font-family: var(--f-display); font-size: 1.02rem; font-weight: 600; }
.trend-card .tc-sub { font-size: 0.82rem; color: var(--muted); }
.trend-legend { display: flex; gap: 16px; }
.trend-legend span { font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.trend-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.trend-chart { flex: 1; min-height: 150px; position: relative; margin-top: 6px; }
.trend-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.trend-stats { display: flex; gap: 0; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.trend-stats .ts { flex: 1; border-right: 1px solid var(--line); padding: 0 16px; }
.trend-stats .ts:first-child { padding-left: 0; }
.trend-stats .ts:last-child { border-right: 0; }
.trend-stats .ts .v { font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; }
.trend-stats .ts .v.up { color: var(--red); } .trend-stats .ts .v.down { color: var(--green); }
.trend-stats .ts .l { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

/* ---------------- Section title within page ---------------- */
.block { margin-top: 26px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.block-head h3 { font-family: var(--f-display); font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.block-head h3 .idx, .panel-head h3 .idx { font-family: var(--f-mono); font-size: 0.68rem; color: var(--faint); letter-spacing: 0.16em; margin-right: 10px; }
.block-head .link, .panel-head .link { font-family: var(--f-mono); font-size: 0.76rem; color: var(--accent-hot); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.block-head .link svg, .panel-head .link svg { width: 14px; height: 14px; }

/* ---------------- Asset tiles (SnapSec style) ---------------- */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; position: relative; overflow: hidden; cursor: pointer;
  transition: border-color .2s, transform .2s, background .2s;
}
.tile:hover { border-color: var(--accent-line); transform: translateY(-3px); background: var(--surface-2); }
.tile .ti {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-hot);
  margin-bottom: 16px;
}
.tile .ti svg { width: 18px; height: 18px; }
.tile .tn { font-family: var(--f-display); font-size: 1.85rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.tile .tl { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.tile .tl-note { font-family: var(--f-mono); font-size: 0.64rem; color: var(--muted); margin-top: 4px; }
.tile .tdelta { position: absolute; top: 16px; right: 16px; font-family: var(--f-mono); font-size: 0.68rem; padding: 2px 7px; border-radius: 100px; }
.tile .tdelta.up { color: var(--accent-hot); background: var(--accent-soft); }
.tile .tdelta.flat { color: var(--muted); background: var(--surface-3); }
.tile.feature { background: linear-gradient(155deg, rgba(255,106,31,0.18), rgba(255,138,61,0.03)); border-color: var(--accent-line); }
.tile.feature .ti { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: var(--text); }

/* ---------------- Issue cards (Group-IB scored) ---------------- */
.issues-row { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.issue-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.icard {
  border-radius: 16px; padding: 20px; min-height: 156px; position: relative; overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .2s, opacity .2s, box-shadow .2s; cursor: pointer;
}
.icard:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(0,0,0,0.7); }
.icard.hide { display: none; }
.icard .iscore { font-family: var(--f-display); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.icard .ititle { font-size: 0.96rem; color: var(--text); margin-top: 6px; font-weight: 600; }
.icard .isub { font-size: 0.76rem; color: var(--text-2); margin-top: 3px; }
.icard .pills { display: flex; gap: 7px; margin-top: 14px; }
.icard .pill { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; min-width: 26px; height: 24px; padding: 0 8px; border-radius: 100px; display: grid; place-items: center; }
.icard .pill.e { background: var(--red); color: #2a0907; }
.icard .pill.w { background: var(--amber); color: #2c2306; }
.icard .pill.p { background: var(--green); color: #052414; }
.icard.crit { background: linear-gradient(155deg, rgba(240,88,79,0.22), rgba(240,88,79,0.04)); border-color: rgba(240,88,79,0.32); }
.icard.warn { background: linear-gradient(155deg, rgba(255,106,31,0.20), rgba(255,138,61,0.04)); border-color: rgba(255,138,61,0.32); }
.icard.ok   { background: linear-gradient(155deg, rgba(70,209,138,0.16), rgba(70,209,138,0.03)); border-color: rgba(70,209,138,0.28); }
.icard.crit .iscore { color: var(--red); }
.icard.warn .iscore { color: var(--sev-high); }
.icard.ok .iscore { color: var(--green); }

/* discovered assets rail */
.disc-rail { display: flex; flex-direction: column; gap: 12px; }
.disc-card {
  background: linear-gradient(155deg, rgba(70,209,138,0.10), transparent);
  border: 1px solid rgba(70,209,138,0.22); border-radius: 16px; padding: 18px 20px;
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
}
.disc-card .dn { font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; color: var(--green); line-height: 1; }
.disc-card .dl { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-top: 4px; }
.disc-card .badge { font-family: var(--f-mono); font-size: 0.66rem; color: var(--green); background: var(--green-soft); padding: 2px 7px; border-radius: 100px; }
.disc-card .dico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(70,209,138,0.12); color: var(--green); }
.disc-card .dico svg { width: 20px; height: 20px; }
.disc-card .dspark { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; opacity: 0.7; }

/* ---------------- Filter chips ---------------- */
.qfilter { display: flex; gap: 8px; flex-wrap: wrap; }
.qfilter button {
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.04em;
  padding: 7px 13px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text-2); transition: all .18s; display: flex; align-items: center; gap: 7px;
}
.qfilter button:hover { color: var(--text); }
.qfilter button.active[data-f="errors"] { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.qfilter button.active[data-f="warnings"] { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.qfilter button.active[data-f="passed"] { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.qfilter button.active[data-f="all"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-hot); }

/* ---------------- Data table ---------------- */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); gap: 16px; flex-wrap: wrap; }
.panel-head h3 { font-family: var(--f-display); font-size: 1.06rem; font-weight: 600; }
.panel-head h3 span { color: var(--muted); font-family: var(--f-mono); font-size: 0.78rem; margin-left: 8px; }

.dtable { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dtable thead th {
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-align: left; font-weight: 500; padding: 13px 22px;
  border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.18);
}
.dtable tbody td { padding: 15px 22px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.dtable tbody tr { transition: background .15s; }
.dtable tbody tr:hover { background: var(--surface-2); }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable .mono { font-family: var(--f-mono); color: var(--text); font-size: 0.84rem; }
.dtable .host { color: var(--text); font-weight: 600; }
.dtable .id-link { font-family: var(--f-mono); color: var(--accent-hot); }
.dtable tr.hide { display: none; }
/* grouped-by-host asset rows */
.asset-grp .grp-caret { color: var(--muted); user-select: none; text-align: center; }
.asset-grp.open { background: var(--surface-2); }
.asset-sub td { background: rgba(255,255,255,0.02); font-size: 0.92em; }
.asset-sub td.dim { padding-left: 8px; }

.sev {
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 100px; display: inline-flex; align-items: center; gap: 6px;
}
.sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.sev.crit { background: var(--red-soft); color: var(--red); } .sev.crit::before { background: var(--red); }
.sev.high { background: var(--sev-high-soft); color: var(--sev-high); } .sev.high::before { background: var(--sev-high); }
.sev.med  { background: var(--amber-soft); color: var(--amber); } .sev.med::before { background: var(--amber); }
.sev.low  { background: var(--green-soft); color: var(--green); } .sev.low::before { background: var(--green); }
.sev.info { background: var(--surface-3); color: var(--muted); } .sev.info::before { background: var(--muted); }

.tag-chip {
  font-family: var(--f-mono); font-size: 0.72rem; padding: 3px 9px; border-radius: 7px;
  border: 1px solid var(--line-2); color: var(--text-2); background: var(--bg);
}
.status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; }
.status-dot.open i { background: var(--red); } .status-dot.open { color: var(--red); }
.status-dot.prog i { background: var(--amber); } .status-dot.prog { color: var(--amber); }
.status-dot.fixed i { background: var(--green); } .status-dot.fixed { color: var(--green); }

.bar-mini { width: 80px; height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; display: inline-block; vertical-align: middle; }
.bar-mini i { display: block; height: 100%; border-radius: 4px; }

/* two-col layout for tables view */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* mini geo distribution */
.geo-list { padding: 8px 0; }
.geo-row { display: flex; align-items: center; gap: 14px; padding: 11px 22px; border-bottom: 1px solid var(--line); }
.geo-row:last-child { border-bottom: 0; }
.geo-row .cc { font-family: var(--f-mono); font-weight: 600; font-size: 0.78rem; color: var(--text); width: 30px; }
.geo-row .gn { flex: 1; font-size: 0.86rem; color: var(--text-2); }
.geo-row .gbar { width: 120px; height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.geo-row .gbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent-hot)); border-radius: 4px; }
.geo-row .gv { font-family: var(--f-mono); font-size: 0.8rem; color: var(--text); width: 42px; text-align: right; }

/* tech list */
.rank-list { padding: 6px 0; }
.rank-row { display: flex; align-items: center; gap: 14px; padding: 11px 22px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-row .rn { font-size: 0.88rem; color: var(--text); flex: 1; }
.rank-row .rbar { width: 110px; height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.rank-row .rbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent-hot)); }
.rank-row .rv { font-family: var(--f-mono); font-size: 0.82rem; color: var(--text-2); width: 36px; text-align: right; }

/* empty state for placeholder views */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 90px 20px; color: var(--muted);
}
.empty .ei { width: 64px; height: 64px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent-hot); margin-bottom: 20px; }
.empty .ei svg { width: 28px; height: 28px; }
.empty h3 { font-family: var(--f-display); font-size: 1.3rem; color: var(--text); margin-bottom: 8px; }
.empty p { max-width: 380px; font-size: 0.95rem; }

/* scan progress bar (re-scan) */
.rescan-bar { position: fixed; top: 0; left: 252px; right: 0; height: 2px; background: transparent; z-index: 200; overflow: hidden; }
.rescan-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hot)); box-shadow: 0 0 12px rgba(255,106,31,0.6); transition: width .3s; }

/* ============================================================
   Reports builder + scan targets
   ============================================================ */
.cfg-body { padding: 20px 22px; }
.tag-chip.alert { border-color: var(--red-soft); color: var(--red); background: var(--red-soft); }

/* reports layout */
.report-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.report-main { display: flex; flex-direction: column; gap: 18px; }
.report-aside { position: sticky; top: 0; }

/* format radio cards */
.opt-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.opt-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface); cursor: pointer; transition: border-color .18s, background .18s, transform .18s;
}
.opt-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card.selected { border-color: var(--accent-line); background: var(--accent-soft); }
.opt-card .oc-ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2);
}
.opt-card.selected .oc-ico { background: var(--accent); color: #1c0d04; border-color: transparent; }
.opt-card .oc-ico svg { width: 18px; height: 18px; }
.opt-card .oc-t { font-family: var(--f-display); font-weight: 600; font-size: 0.98rem; }
.opt-card .oc-d { font-size: 0.76rem; color: var(--muted); line-height: 1.4; }

/* data section checklist */
.check-list { padding: 6px 0; }
.check-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 22px;
  border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s;
}
.check-row:last-child { border-bottom: 0; }
.check-row:hover { background: var(--surface-2); }
.check-row input[type="checkbox"], .pick-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.check-row .cr-ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-hot);
}
.check-row .cr-ico svg { width: 17px; height: 17px; }
.check-row .cr-text { flex: 1; min-width: 0; }
.check-row .cr-text b { display: block; font-weight: 600; color: var(--text); font-size: 0.9rem; }
.check-row .cr-text i { font-style: normal; font-size: 0.78rem; color: var(--muted); }

/* ===== users tab controls ===== */
.mini-sel { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 8px; padding: 5px 8px; font-size: 0.8rem; font-family: var(--f-body); cursor: pointer; }
.mini-sel:disabled { opacity: 0.5; cursor: default; }
.mini-btn.ok { border-color: var(--green); color: var(--green); }
.mini-btn.ok:hover { background: var(--green-soft); }

/* ===== problems list ===== */
.issue-list { padding: 4px 0; }
.issue-row {
  display: flex; align-items: center; gap: 15px; padding: 14px 22px;
  border-bottom: 1px solid var(--line); transition: background .15s, opacity .25s;
}
.issue-row:last-child { border-bottom: 0; }
.issue-row:hover { background: var(--surface-2); }
.issue-sev-bar { flex-shrink: 0; width: 4px; height: 34px; border-radius: 4px; }
.issue-sev-bar.crit { background: var(--red); } .issue-sev-bar.high { background: var(--sev-high); }
.issue-sev-bar.med { background: var(--amber); } .issue-sev-bar.low { background: var(--green); }
.issue-main { flex: 1; min-width: 0; }
.issue-title { font-weight: 600; color: var(--text); font-size: 0.92rem; }
.issue-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.issue-meta .im-host { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
.issue-meta .im-cat { font-size: 0.74rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 100px; padding: 2px 9px; }
/* fixed-width action columns: buttons and the severity chip line up across rows */
.issue-row .issue-act { flex-shrink: 0; width: 88px; text-align: center; }
.issue-row .issue-act.wide { width: 118px; }
.issue-row .sev { flex-shrink: 0; width: 92px; justify-content: center; }
.issue-row.done { opacity: 0.55; }
.issue-row.done .issue-title { text-decoration: line-through; color: var(--muted); }
.issue-empty { padding: 38px 22px; text-align: center; color: var(--muted); font-size: 0.88rem; }

/* segmented control */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.seg button {
  font-family: var(--f-body); font-size: 0.82rem; color: var(--text-2); cursor: pointer;
  background: transparent; border: 0; border-radius: 7px; padding: 8px 14px; transition: background .15s, color .15s;
}
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--accent-soft); color: var(--accent-hot); }

.scope-hint { font-size: 0.86rem; color: var(--muted); margin: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-tog {
  font-family: var(--f-mono); font-size: 0.76rem; cursor: pointer; padding: 7px 13px; border-radius: 100px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); transition: all .15s;
}
.chip-tog:hover { border-color: var(--accent-line); }
.chip-tog.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-hot); }

.asset-pick { max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.asset-pick::-webkit-scrollbar { width: 8px; }
.asset-pick::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover { background: var(--surface-2); }
.pick-row .pk-host { flex: 1; font-weight: 600; color: var(--text); font-size: 0.86rem; }

/* form fields (shared by reports aside + targets) */
.fld { display: block; margin-bottom: 16px; }
.fld[hidden] { display: none; }
.fld:last-child { margin-bottom: 0; }
.fld .fl { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.fld .fl i { font-style: normal; color: var(--faint); }
.fld .fl-hint { display: block; margin-top: 8px; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.fld input, .fld select {
  width: 100%; font-family: var(--f-body); font-size: 0.88rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; padding: 11px 13px; outline: 0;
  transition: border-color .18s, box-shadow .18s;
}
.fld input::placeholder { color: var(--faint); }
.fld input:focus, .fld select:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8079' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px; padding-right: 34px;
}

/* report summary */
.rsum { margin: 4px 0 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.rsum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 0.86rem; }
.rsum-row span { color: var(--muted); }
.rsum-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.rsum-panel .btn { width: 100%; justify-content: center; }
.rsum-note { margin-top: 12px; font-size: 0.82rem; padding: 10px 12px; border-radius: 9px; line-height: 1.45; }
.rsum-note.ok { background: var(--green-soft); color: var(--green); }
.rsum-note.err { background: var(--red-soft); color: var(--red); }

/* targets form */
.target-form { display: grid; grid-template-columns: 160px 1fr 170px auto; gap: 14px; align-items: end; }
.target-form .fld { margin-bottom: 0; }
.target-form .btn { height: 43px; }
.tf-err { margin-top: 12px; font-size: 0.83rem; color: var(--red); background: var(--red-soft); padding: 9px 12px; border-radius: 9px; }
.ss-modal-body .target-form { grid-template-columns: 1fr; }
.ss-modal-body .target-form .btn { width: 100%; justify-content: center; }

/* users table is the widest (8 columns) — tighter cell padding so it fits */
#view-users .dtable thead th, #view-users .dtable tbody td { padding-left: 14px; padding-right: 14px; }
/* breathing room between the user's name and the super/2FA chips (esp. when wrapped) */
#view-users .dtable .host .tag-chip { display: inline-block; margin-top: 6px; }

/* asset row picker + bulk bar (inline `display:flex` used to defeat [hidden]) */
.asset-pick { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; vertical-align: middle; }
#assetBulkBar { display: flex; gap: 8px; }
#assetBulkBar[hidden] { display: none; }

/* table row actions */
.row-acts { display: inline-flex; gap: 8px; row-gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mini-btn {
  font-family: var(--f-body); font-size: 0.78rem; cursor: pointer; padding: 6px 11px; border-radius: 7px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); transition: all .15s;
  white-space: nowrap;
}
.mini-btn:hover { border-color: var(--accent-line); color: var(--text); }
.mini-btn.del { color: var(--muted); padding: 6px 9px; }
.mini-btn.del:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

/* ============================================================
   Settings
   ============================================================ */
.set-panel { margin-bottom: 18px; }
.set-panel:last-child { margin-bottom: 0; }
.settings-note { margin-bottom: 18px; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.seg-set { margin-bottom: 0; }

/* connection badge */
.conn-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 0.72rem; padding: 5px 11px; border-radius: 100px; }
.conn-badge i { width: 7px; height: 7px; border-radius: 50%; }
.conn-badge.on { background: var(--green-soft); color: var(--green); } .conn-badge.on i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.conn-badge.off { background: var(--surface-3); color: var(--muted); } .conn-badge.off i { background: var(--muted); }

/* toggle switch */
.sw-list { margin-top: 20px; border-top: 1px solid var(--line); }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.sw-list .sw-row:last-child { border-bottom: 0; }
.sw-row.standalone { padding: 16px 18px; margin-top: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.sw-text b { display: block; font-weight: 600; color: var(--text); font-size: 0.9rem; }
.sw-text i { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.switch { position: relative; flex-shrink: 0; width: 44px; height: 25px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: 100px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background .2s, border-color .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + .track { background: var(--accent-soft); border-color: var(--accent-line); }
.switch input:checked + .track::after { transform: translateX(19px); background: var(--accent); }
.switch input:disabled + .track { opacity: 0.45; }

/* integration intro */
.intg-intro { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.intg-intro p { margin: 0; font-size: 0.86rem; color: var(--text-2); line-height: 1.5; }
.intg-intro p b { color: var(--text); font-family: var(--f-mono); font-size: 0.82rem; }
.intg-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.intg-ico svg { width: 20px; height: 20px; }
.intg-ico.tg { background: rgba(54, 170, 225, 0.16); color: #36aae1; }
.intg-ico.mail { background: var(--accent-soft); color: var(--accent-hot); border: 1px solid var(--accent-line); }

/* integration fields (collapsible enabled state) */
.intg-fields { margin-top: 18px; transition: opacity .2s; }
.intg-fields.disabled { opacity: 0.4; pointer-events: none; }
.intg-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.intg-test { font-size: 0.82rem; font-family: var(--f-mono); }
.intg-test.ok { color: var(--green); } .intg-test.err { color: var(--red); }

.sub-label { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 24px 0 4px; }
.check-list.flat { border: 1px solid var(--line); border-radius: 12px; padding: 4px 0; }
.check-row.slim { padding: 11px 16px; }
.check-row.slim .cr-text b { font-size: 0.88rem; }

/* email recipients */
.recip-add { display: flex; gap: 10px; }
.recip-add input { flex: 1; font-family: var(--f-body); font-size: 0.88rem; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; padding: 11px 13px; outline: 0; transition: border-color .18s, box-shadow .18s; }
.recip-add input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.recip-add .mini-btn { padding: 0 16px; }
.recip-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.recip-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.78rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 100px; padding: 6px 8px 6px 13px; }
.recip-chip button { border: 0; background: var(--surface-3); color: var(--muted); width: 18px; height: 18px; border-radius: 50%; cursor: pointer; font-size: 0.7rem; line-height: 1; display: grid; place-items: center; transition: background .15s, color .15s; }
.recip-chip button:hover { background: var(--red-soft); color: var(--red); }
.recip-empty { font-size: 0.82rem; color: var(--muted); }

/* ---------------- Внешние интеграции ---------------- */
.intg-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.intg-block:first-child { padding-top: 4px; }
.intg-block:last-child { border-bottom: 0; padding-bottom: 4px; }
.intg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.intg-name { flex: 1; min-width: 0; }
.intg-name b { display: block; font-family: var(--f-display); font-size: 1rem; font-weight: 600; color: var(--text); }
.intg-name i { display: block; font-style: normal; font-size: 0.78rem; color: var(--muted); }
.intg-note { margin: 0 0 14px; font-size: 0.84rem; color: var(--text-2); line-height: 1.55; }
.intg-note b { color: var(--text); font-family: var(--f-mono); font-size: 0.8rem; }
.intg-ico.otx { background: var(--accent-soft); color: var(--accent-hot); border: 1px solid var(--accent-line); }
.intg-ico.vt { background: rgba(111,168,220,0.14); color: #6fa8dc; border: 1px solid rgba(111,168,220,0.32); }
.intg-ico.hibp { background: rgba(240,88,79,0.12); color: var(--red); border: 1px solid rgba(240,88,79,0.3); }

/* поле с секретом: по умолчанию скрыт, рядом «показать» и «скопировать» */
.secret-field { position: relative; display: block; }
.secret-field input { width: 100%; padding-right: 76px !important; font-family: var(--f-mono); letter-spacing: 0.03em; }
.secret-field .secret-eye { right: 38px; }
.secret-field .secret-copy { right: 6px; }

/* ---------------- Смена пароля (модальное окно) ---------------- */
.pwd-panel { max-width: 440px; }
.pwd-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 18px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
}
.pwd-av {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent-hot), var(--accent-deep));
  font-family: var(--f-mono); font-weight: 700; font-size: 0.8rem; color: #1a0e06;
}
.pwd-id { min-width: 0; }
.pwd-id b { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.pwd-id i { display: block; font-style: normal; font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }

.pwd-field { position: relative; display: block; }
.pwd-field input { width: 100%; padding-right: 76px !important; font-family: var(--f-mono); letter-spacing: 0.04em; }
.pwd-icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 8px; border: 0; background: 0;
  display: grid; place-items: center; color: var(--muted); cursor: pointer; transition: color .15s, background .15s;
}
.pwd-icon:hover { color: var(--text); background: var(--surface-3); }
.pwd-icon.on { color: var(--accent-hot); }
.pwd-icon svg { width: 17px; height: 17px; }
#pwdReveal { right: 38px; }
#pwdCopy { right: 6px; }

.pwd-meter { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin: -6px 0 8px; }
.pwd-meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--red); transition: width .25s, background .25s; }
.pwd-hint { font-size: 0.78rem; color: var(--muted); line-height: 1.45; margin-bottom: 16px; }
.pwd-hint b { color: var(--text-2); }
.pwd-hint.weak b { color: var(--red); }
.pwd-hint.mid b { color: var(--amber); }
.pwd-hint.ok b { color: var(--green); }

.pwd-gen { display: inline-flex; align-items: center; gap: 7px; }
.pwd-foot { display: flex; gap: 10px; margin-top: 20px; }
.pwd-foot .btn { flex: 1; justify-content: center; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .issues-row { grid-template-columns: 1fr; }
  .disc-rail { display: grid; grid-template-columns: repeat(3, 1fr); }
  .score-band { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .report-aside { position: static; }
  .target-form { grid-template-columns: 1fr 1fr; }
  .set-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .rescan-bar { left: 0; }
  .split-2 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .issue-cards { grid-template-columns: 1fr; }
  .disc-rail { grid-template-columns: 1fr; }
  .topbar .search { display: none; }
  .page { padding: 22px 18px 50px; }
  .opt-cards { grid-template-columns: 1fr; }
  .target-form { grid-template-columns: 1fr; }
}

/* ---------------- Шаблоны nuclei (админ-вид суперадмина) ---------------- */
.nuclei-status { display: flex; gap: 14px; flex-wrap: wrap; }
.ns-card { display: flex; flex-direction: column; gap: 3px; min-width: 200px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ns-lbl { font-size: 0.74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.ns-card b { font-family: var(--f-display); font-size: 1.15rem; color: var(--text); }
.ns-sub { font-size: 0.76rem; color: var(--muted); }

.nuclei-add { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 2px; }
.nuclei-add input, .nuclei-add textarea {
  font: inherit; font-size: 0.86rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 12px;
}
.nuclei-add textarea { font-family: var(--f-mono); font-size: 0.8rem; resize: vertical; min-height: 120px; }
.nuclei-add input:focus, .nuclei-add textarea:focus { outline: none; border-color: var(--accent-line); }
.nuclei-add .btn { align-self: flex-start; }

.nuc-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.nuc-row:last-child { border-bottom: 0; }
.nuc-row.off { opacity: .55; }
.nuc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nuc-main b { font-size: 0.9rem; color: var(--text); }
.nuc-main .mono { font-family: var(--f-mono); font-size: 0.74rem; color: var(--faint); }
.nuc-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-2); cursor: pointer; }
.nuc-toggle input { accent-color: var(--accent); }

/* ---------------- Настройка сканера (в админ-виде nuclei) ---------------- */
.scan-cfg { display: flex; flex-direction: column; gap: 14px; padding: 4px 2px 2px; }
.scfg-check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text); cursor: pointer; }
.scfg-check input { accent-color: var(--accent); }
.scfg-check .dim { font-style: normal; color: var(--faint); }
.scfg-inline label { display: inline-flex; flex-direction: column; gap: 5px; }
.scfg-inline span { font-size: 0.78rem; font-weight: 600; color: var(--text-2); }
.scfg-inline input { font: inherit; font-size: 0.86rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 11px; width: 140px; }
.scfg-inline input:focus { outline: none; border-color: var(--accent-line); }
.scfg-sevs { display: flex; flex-direction: column; gap: 8px; }
.scfg-lbl { font-size: 0.78rem; font-weight: 600; color: var(--text-2); }
.scfg-lbl .dim { font-style: normal; font-weight: 400; color: var(--faint); }
.scfg-checks { display: flex; flex-wrap: wrap; gap: 9px 16px; }
.scan-cfg .btn { align-self: flex-start; }
