:root {
  --bg: #f4f5f2;
  --panel: #fbfbf9;
  --panel-2: #f0f1ee;
  --panel-3: #e8ebe6;
  --line: #202421;
  --line-soft: #c7cbc5;
  --text: #111512;
  --muted: #6b716d;
  --faint: #929894;
  --green: #00a85a;
  --green-dark: #007f43;
  --green-soft: #dcf5e8;
  --red: #f3321b;
  --red-soft: #fee7e3;
  --orange: #d78200;
  --orange-soft: #fff0cf;
  --blue: #2368d4;
  --blue-soft: #e3edff;
  --purple: #7753c4;
  --purple-soft: #eee8fb;
  --rail: 56px;
  --sidebar: 224px;
  --topbar: 55px;
  --radius: 0;
  --shadow: 0 14px 40px rgba(15, 23, 17, .14);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.app-shell { display: grid; grid-template-columns: var(--rail) var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.icon-rail { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--rail); border-right: 1px solid var(--line); background: #eff1ee; display: flex; flex-direction: column; align-items: center; }
.brand-mark { width: 100%; height: var(--topbar); display: grid; place-items: center; border-bottom: 1px solid var(--line); background: #fbfbf9; color: var(--line); }
.brand-mark svg { width: 26px; height: 26px; fill: var(--green); stroke: var(--line); stroke-width: 1.3; }
.rail-nav { display: flex; flex: 1; width: 100%; flex-direction: column; }
.rail-button, .rail-avatar { border: 0; border-bottom: 1px solid transparent; background: transparent; cursor: pointer; }
.rail-button { position: relative; width: 100%; height: 56px; display: grid; place-items: center; color: #737973; transition: .16s ease; }
.rail-button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.rail-button:hover { color: var(--text); background: #e7ebe6; }
.rail-button.active { color: #001c0e; background: var(--green-soft); }
.rail-button.active::before { background: var(--green); }
.rail-button svg { width: 19px; height: 19px; }
.rail-avatar { margin: auto 0 12px; width: 30px; height: 30px; background: #1c2420; color: #38db8f; font-size: 9px; font-weight: 900; letter-spacing: .03em; }

.side-panel { position: fixed; inset: 0 auto 0 var(--rail); z-index: 35; width: var(--sidebar); border-right: 1px solid var(--line); background: #e8f0eb; display: flex; flex-direction: column; }
.side-title-row { min-height: var(--topbar); padding: 12px 20px; border-bottom: 1px solid #a8bbb0; display: flex; align-items: center; justify-content: space-between; }
.eyebrow { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.side-title { font-size: 10px; font-weight: 900; letter-spacing: .15em; color: #07321e; }
.side-close { display: none; width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.side-nav { overflow-y: auto; padding: 10px 0 92px; scrollbar-width: thin; }
.nav-category { display: grid; }
.nav-category a { position: relative; padding: 10px 18px 10px 21px; color: #58625c; font-size: 12px; border-left: 3px solid transparent; transition: .14s ease; }
.nav-category a:hover { background: rgba(255,255,255,.45); color: var(--text); }
.nav-category a.active { background: #cae7d8; color: #005e31; font-weight: 800; border-left-color: var(--green); }
.mobile-category-switcher { display: none; }
.account-card { position: absolute; left: 0; right: 0; bottom: 0; height: 65px; border: 0; border-top: 1px solid #a8bbb0; background: #eef5f0; display: grid; grid-template-columns: 30px 1fr 16px; gap: 10px; align-items: center; padding: 10px 16px; text-align: left; cursor: pointer; }
.account-card:hover { background: #fff; }
.account-avatar { width: 30px; height: 30px; background: #1c2420; color: #38db8f; display: grid; place-items: center; font-size: 9px; font-weight: 900; }
.account-card strong, .account-card small { display: block; }
.account-card strong { font-size: 11px; }
.account-card small { margin-top: 3px; color: #17733f; font-size: 10px; }
.account-card svg { width: 14px; color: #6f7771; }

.workspace-shell { grid-column: 3; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar); border-bottom: 1px solid #aeb2ae; background: rgba(245,246,243,.96); backdrop-filter: blur(12px); display: flex; align-items: center; gap: 18px; padding: 0 22px; }
.mobile-menu { display: none; border: 0; background: transparent; width: 32px; padding: 6px; cursor: pointer; }
.mobile-menu span { display: block; height: 2px; margin: 4px 0; background: var(--text); }
.search-box { width: min(460px, 45vw); height: 32px; border: 1px solid #9ea39f; background: #f8f8f6; display: grid; grid-template-columns: 31px 1fr 27px; align-items: center; }
.search-box:focus-within { outline: 2px solid rgba(0,168,90,.18); border-color: var(--green-dark); }
.search-box svg { width: 15px; justify-self: center; color: #7d837f; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-box kbd { justify-self: center; padding: 1px 5px; color: #777; border: 1px solid #d0d3d0; background: #fff; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live-indicator { display: inline-flex; gap: 6px; align-items: center; color: #086e3d; font-size: 11px; font-weight: 800; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0,168,90,.09); }
.select-wrap select { height: 32px; border: 1px solid #aeb2ae; background: #f8f8f6; padding: 0 28px 0 10px; font-size: 11px; color: var(--text); }
.icon-button { position: relative; width: 34px; height: 32px; border: 1px solid #aeb2ae; background: #f8f8f6; display: grid; place-items: center; cursor: pointer; }
.icon-button svg { width: 16px; }
.icon-button b { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; border-radius: 10px; background: var(--red); color: #fff; border: 2px solid var(--bg); font-size: 8px; display: grid; place-items: center; }
.primary-button, .secondary-button, .ghost-button, .danger-button { min-height: 32px; border: 1px solid var(--line); padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; font-weight: 800; cursor: pointer; transition: .14s ease; }
.primary-button { background: var(--red); border-color: var(--red); color: #fff; }
.primary-button:hover { background: #d6210e; }
.secondary-button { background: #fff; }
.secondary-button:hover, .ghost-button:hover { background: #eceeeb; }
.ghost-button { background: transparent; border-color: #b8bcb8; }
.danger-button { background: #fff; color: var(--red); border-color: var(--red); }
.small-button { min-height: 28px; padding: 0 10px; font-size: 10px; }

.content { min-height: calc(100vh - var(--topbar)); width: 100%; padding: 23px 23px 40px; overflow: hidden; }
.page-shell { width: 100%; animation: page-in .16s ease; }
@keyframes page-in { from { opacity: .2; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.page-heading { min-height: 54px; margin-bottom: 16px; display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.page-heading h1 { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -.035em; }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.period-control, .filter-select { height: 32px; border: 1px solid #aeb2ae; background: #fbfbf9; display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; }
.period-control svg { width: 14px; }
.period-control select, .filter-select select { border: 0; outline: 0; background: transparent; font-size: 11px; font-weight: 700; }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); border: 1px solid var(--line); background: var(--panel); margin-bottom: 16px; }
.metric-card { min-height: 108px; padding: 16px; border-right: 1px solid #b8bcb8; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.metric-card:last-child { border-right: 0; }
.metric-card--wide { grid-column: span 1; }
.metric-label { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.metric-value { font-size: clamp(24px, 2.5vw, 39px); line-height: 1; letter-spacing: -.05em; }
.metric-value.small { font-size: 26px; }
.metric-row, .metric-with-icon { display: flex; align-items: flex-end; gap: 10px; }
.metric-with-icon { justify-content: space-between; }
.metric-delta { margin-bottom: 5px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.success { color: var(--green-dark) !important; }
.danger { color: var(--red) !important; }
.warning { color: var(--orange) !important; }
.info { color: var(--blue) !important; }
.negative { color: var(--red); }
.positive { color: var(--green-dark); }
.trend-icon { font-size: 18px; }
.mini-icon { width: 18px; height: 18px; margin-bottom: 3px; }

.alert-strip { min-height: 56px; margin-bottom: 16px; padding: 0 16px; background: var(--red); color: #fff; display: flex; align-items: center; gap: 12px; }
.alert-strip svg { width: 18px; }
.alert-strip strong { font-size: 14px; }
.alert-strip span { font-size: 11px; opacity: .9; }
.alert-strip .spacer { flex: 1; }
.alert-strip button { border-color: #fff; color: #fff; background: transparent; }
.alert-strip button:last-child { background: #fff; color: var(--red); }

.panel, .table-panel { border: 1px solid var(--line); background: var(--panel); margin-bottom: 16px; min-width: 0; }
.panel-header { min-height: 46px; padding: 0 16px; border-bottom: 1px solid #b8bcb8; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.panel-header .text-link { color: #006935; font-size: 10px; font-weight: 900; }
.panel-body { padding: 16px; }
.panel-body.flush { padding: 0; }
.panel-footer { min-height: 42px; padding: 0 16px; border-top: 1px solid #c7cbc5; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid-main-side { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); gap: 16px; }
.grid-side-main { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.5fr); gap: 16px; }

.toolbar { min-height: 48px; border-bottom: 1px solid #c7cbc5; padding: 8px 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .search-mini { position: relative; min-width: 230px; flex: 1; max-width: 390px; }
.search-mini input { width: 100%; height: 31px; border: 1px solid #b9bdb9; background: #fff; padding: 0 10px 0 31px; outline: 0; font-size: 11px; }
.search-mini svg { position: absolute; width: 14px; left: 10px; top: 8px; color: var(--muted); }
.filter-chip { height: 30px; padding: 0 10px; border: 1px solid #b9bdb9; background: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; cursor: pointer; }
.filter-chip.active { background: var(--green-soft); border-color: var(--green-dark); color: #005f31; }
.toolbar-spacer { flex: 1; }

.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.data-table th { height: 31px; padding: 0 12px; background: #ececea; border-bottom: 1px solid #b8bcb8; color: #707670; text-align: left; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.data-table td { min-height: 47px; padding: 10px 12px; border-bottom: 1px solid #c7cbc5; font-size: 11px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f3f5f1; }
.data-table .row-title { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.data-table .row-title strong, .data-table .row-title span { display: block; }
.data-table .row-title strong { font-size: 11px; }
.data-table .row-title span { margin-top: 2px; color: var(--faint); font-size: 9px; }
.type-icon { width: 23px; height: 23px; border: 1px solid #b9bdb9; display: grid; place-items: center; background: #fafafa; flex: 0 0 auto; }
.type-icon svg { width: 13px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 20px; padding: 0 8px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; background: currentColor; }
.status-badge.online, .status-badge.resolved, .status-badge.active, .status-badge.healthy { color: var(--green-dark); background: var(--green-soft); }
.status-badge.incident, .status-badge.critical, .status-badge.failed, .status-badge.blocked { color: var(--red); background: var(--red-soft); }
.status-badge.warning, .status-badge.pending, .status-badge.degraded { color: var(--orange); background: var(--orange-soft); }
.status-badge.info, .status-badge.running, .status-badge.open { color: var(--blue); background: var(--blue-soft); }
.status-badge.neutral { color: #626863; background: #eceeeb; }
.muted { color: var(--muted); }
.small { font-size: 10px; }
.nowrap { white-space: nowrap; }

.check-bars { height: 22px; display: flex; align-items: flex-end; gap: 2px; min-width: 150px; }
.check-bars i { display: block; width: 3px; height: var(--h, 12px); background: var(--c, var(--green)); }
.sparkline { height: 34px; display: flex; align-items: flex-end; gap: 2px; }
.sparkline i { flex: 1; min-width: 2px; max-width: 7px; height: var(--h); background: currentColor; opacity: .8; }
.line-chart { position: relative; height: 190px; overflow: hidden; border-left: 1px solid #b8bcb8; border-bottom: 1px solid #b8bcb8; background: repeating-linear-gradient(to bottom, transparent 0, transparent 46px, #e4e6e2 47px); }
.line-chart svg { width: 100%; height: 100%; overflow: visible; }
.line-chart .area { fill: rgba(0,168,90,.09); stroke: none; }
.line-chart .line { fill: none; stroke: var(--green-dark); stroke-width: 2; vector-effect: non-scaling-stroke; }
.line-chart .line.red { stroke: var(--red); }
.chart-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: 9px; margin-top: 7px; }
.bar-chart { height: 190px; display: flex; align-items: flex-end; gap: 5px; padding: 10px 0 0; border-bottom: 1px solid #b8bcb8; background: repeating-linear-gradient(to bottom, transparent 0, transparent 46px, #e4e6e2 47px); }
.bar-chart i { flex: 1; min-width: 5px; height: var(--h); background: var(--green); position: relative; }
.bar-chart i.warning { background: var(--orange); }
.bar-chart i.danger { background: var(--red); }
.stacked-chart { display: flex; height: 12px; width: 100%; overflow: hidden; background: #e4e6e2; }
.stacked-chart i { height: 100%; width: var(--w); background: var(--c); }
.donut { --value: 75; --donut-color: var(--green); width: 102px; height: 102px; border-radius: 50%; background: conic-gradient(var(--donut-color) calc(var(--value)*1%), #e6e8e5 0); display: grid; place-items: center; }
.donut::after { content: attr(data-label); width: 72px; height: 72px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-size: 18px; font-weight: 900; }

.quick-stat { border: 1px solid #b8bcb8; background: #fff; padding: 14px; min-height: 90px; }
.quick-stat span { display: block; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.quick-stat strong { display: block; margin-top: 14px; font-size: 24px; letter-spacing: -.04em; }
.quick-stat small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }

.list { display: grid; }
.list-item { min-height: 54px; padding: 11px 14px; border-bottom: 1px solid #d0d3cf; display: flex; align-items: center; gap: 11px; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: #f3f5f1; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item strong, .list-item span { display: block; }
.list-item strong { font-size: 11px; }
.list-item span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.avatar { width: 29px; height: 29px; border: 1px solid #b8bcb8; background: #eef0ed; display: grid; place-items: center; font-size: 9px; font-weight: 900; flex: 0 0 auto; }
.avatar.green { background: var(--green-soft); color: var(--green-dark); border-color: #8dcaab; }
.avatar.red { background: var(--red-soft); color: var(--red); border-color: #f1aaa0; }
.avatar.blue { background: var(--blue-soft); color: var(--blue); border-color: #9fb9eb; }
.avatar.purple { background: var(--purple-soft); color: var(--purple); border-color: #b7a3df; }
.icon-square { width: 32px; height: 32px; border: 1px solid #b8bcb8; display: grid; place-items: center; background: #fff; flex: 0 0 auto; }
.icon-square svg { width: 16px; }

.tabs { min-height: 43px; border-bottom: 1px solid #c7cbc5; display: flex; align-items: flex-end; padding: 0 14px; gap: 18px; overflow-x: auto; }
.tabs button { height: 43px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--text); border-color: var(--green); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.incident-list { display: grid; gap: 10px; }
.incident-card { border: 1px solid #b8bcb8; background: #fff; padding: 14px; display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 13px; align-items: start; }
.incident-card:hover { border-color: var(--line); box-shadow: 3px 3px 0 #d5d9d4; }
.incident-severity { width: 5px; align-self: stretch; background: var(--red); }
.incident-severity.warning { background: var(--orange); }
.incident-severity.info { background: var(--blue); }
.incident-card h3 { margin: 0; font-size: 13px; }
.incident-card p { margin: 5px 0 10px; color: var(--muted); font-size: 10px; }
.incident-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 9px; }
.incident-meta b { color: var(--text); }

.issue-row { display: grid; grid-template-columns: minmax(280px, 1.2fr) 120px 110px 170px 90px; gap: 14px; align-items: center; min-height: 74px; padding: 12px 14px; border-bottom: 1px solid #c7cbc5; }
.issue-row:hover { background: #f4f6f2; }
.issue-row:last-child { border-bottom: 0; }
.issue-title { min-width: 0; }
.issue-title strong { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.issue-title code { display: block; margin-top: 5px; color: var(--muted); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.issue-count strong { display: block; font-size: 16px; }
.issue-count span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }

.ai-hero { position: relative; overflow: hidden; border: 1px solid var(--line); min-height: 182px; padding: 24px; background: #0f1712; color: #fff; margin-bottom: 16px; }
.ai-hero::after { content: ""; position: absolute; inset: -60% -10% auto 48%; height: 340px; background: radial-gradient(circle, rgba(0,197,105,.34), transparent 63%); pointer-events: none; }
.ai-hero h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.ai-hero p { max-width: 600px; color: #b8c5bd; font-size: 11px; line-height: 1.6; }
.ai-hero .primary-button { background: #fff; color: #0d1510; border-color: #fff; }
.ai-signal { border: 1px solid #b8bcb8; background: #fff; padding: 15px; }
.ai-signal header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-signal h3 { margin: 0; font-size: 12px; }
.ai-signal p { margin: 12px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.confidence { height: 6px; background: #e4e6e2; }
.confidence i { display: block; height: 100%; width: var(--w); background: var(--green); }

.status-page-preview { border: 1px solid #b8bcb8; background: #fff; padding: 18px; min-height: 230px; }
.status-page-preview .preview-top { display: flex; align-items: center; justify-content: space-between; }
.status-page-preview .preview-brand { display: flex; align-items: center; gap: 8px; font-weight: 900; }
.status-page-preview .preview-logo { width: 24px; height: 24px; background: var(--green); display: grid; place-items: center; color: #fff; }
.status-page-preview .big-status { margin: 28px 0 18px; padding: 15px; background: var(--green-soft); color: #006434; font-weight: 900; }
.component-row { display: grid; grid-template-columns: 1fr 110px 80px; gap: 12px; align-items: center; border-top: 1px solid #dde0dc; padding: 9px 0; font-size: 9px; }
.uptime-pips { display: flex; gap: 2px; }
.uptime-pips i { flex: 1; height: 18px; background: var(--green); opacity: .8; }
.uptime-pips i.warn { background: var(--orange); }
.uptime-pips i.fail { background: var(--red); }

.integration-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 12px; }
.integration-card { min-height: 156px; border: 1px solid #b8bcb8; background: #fff; padding: 15px; display: flex; flex-direction: column; transition: .14s ease; }
.integration-card:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: 3px 3px 0 #d8dbd7; }
.integration-logo { width: 36px; height: 36px; border: 1px solid #b8bcb8; display: grid; place-items: center; font-size: 11px; font-weight: 900; background: #f4f5f2; }
.integration-card h3 { margin: 12px 0 4px; font-size: 12px; }
.integration-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.integration-card footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }

.rule-row { display: grid; grid-template-columns: 38px minmax(230px, 1fr) 120px 100px 110px; gap: 12px; align-items: center; min-height: 62px; padding: 11px 14px; border-bottom: 1px solid #c7cbc5; }
.rule-row:last-child { border-bottom: 0; }
.rule-row:hover { background: #f3f5f1; }
.rule-order { width: 26px; height: 26px; border: 1px solid #b8bcb8; display: grid; place-items: center; color: var(--muted); font-size: 9px; font-weight: 900; cursor: grab; }
.rule-copy strong, .rule-copy code { display: block; }
.rule-copy strong { font-size: 11px; }
.rule-copy code { margin-top: 5px; color: var(--muted); font: 9px ui-monospace, Menlo, monospace; }
.action-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.action-badge.allow { background: var(--green-soft); color: var(--green-dark); }
.action-badge.block { background: var(--red-soft); color: var(--red); }
.action-badge.challenge { background: var(--orange-soft); color: var(--orange); }
.toggle { position: relative; width: 32px; height: 18px; border: 0; border-radius: 10px; background: #b9bdb9; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: .16s ease; }
.toggle.on { background: var(--green); }
.toggle.on::after { transform: translateX(14px); }

.bot-score { display: flex; height: 14px; width: 100%; }
.bot-score span { height: 100%; width: var(--w); background: var(--c); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.legend i { width: 8px; height: 8px; background: var(--c); }
.country-row { display: grid; grid-template-columns: 25px 1fr 90px 50px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #d9dcd8; font-size: 10px; }
.country-row:last-child { border-bottom: 0; }
.country-bar { height: 6px; background: #e3e6e2; }
.country-bar i { display: block; height: 100%; width: var(--w); background: var(--red); }

.journey-card { border: 1px solid #b8bcb8; background: #fff; padding: 15px; }
.journey-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.journey-head h3 { margin: 0; font-size: 13px; }
.journey-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.journey-flow { display: flex; align-items: center; margin-top: 20px; overflow-x: auto; padding-bottom: 6px; }
.journey-step { min-width: 98px; padding: 10px; border: 1px solid #b8bcb8; background: #fafafa; text-align: center; }
.journey-step strong { display: block; font-size: 9px; }
.journey-step span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.journey-step.fail { border-color: var(--red); background: var(--red-soft); }
.journey-connector { width: 36px; height: 1px; background: #aeb2ae; flex: 0 0 auto; position: relative; }
.journey-connector::after { content: ""; position: absolute; right: 0; top: -3px; border-left: 5px solid #aeb2ae; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }

.log-shell { border: 1px solid #1e2721; background: #0d120f; color: #d3ddd6; }
.log-toolbar { padding: 10px; border-bottom: 1px solid #344039; display: flex; align-items: center; gap: 8px; }
.log-query { flex: 1; min-width: 0; height: 34px; border: 1px solid #405048; background: #141c17; color: #d6e1da; padding: 0 11px; font: 11px ui-monospace, Menlo, monospace; outline: 0; }
.log-query:focus { border-color: #35c77f; }
.log-stream { max-height: 510px; overflow: auto; font: 10px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.log-row { display: grid; grid-template-columns: 86px 72px 92px minmax(260px, 1fr); gap: 10px; padding: 5px 10px; border-bottom: 1px solid #1f2923; }
.log-row:hover { background: #151f19; }
.log-level { font-weight: 900; }
.log-level.error { color: #ff6957; }
.log-level.warn { color: #f2b134; }
.log-level.info { color: #59a4ff; }
.log-level.debug { color: #7bd9aa; }
.log-message { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.schedule-board { overflow-x: auto; }
.schedule-grid { min-width: 780px; display: grid; grid-template-columns: 92px repeat(7, minmax(90px, 1fr)); border-top: 1px solid #c7cbc5; border-left: 1px solid #c7cbc5; }
.schedule-grid > div { min-height: 70px; border-right: 1px solid #c7cbc5; border-bottom: 1px solid #c7cbc5; padding: 8px; font-size: 9px; }
.schedule-grid .schedule-head { min-height: 42px; background: #eeefed; font-weight: 900; text-align: center; }
.schedule-grid .shift { margin: 2px 0; padding: 7px; background: var(--green-soft); color: #005e31; font-weight: 800; }
.schedule-grid .shift.secondary { background: var(--blue-soft); color: var(--blue); }
.schedule-grid .shift.off { background: #eceeeb; color: var(--muted); }

.member-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 12px; }
.member-card { border: 1px solid #b8bcb8; background: #fff; padding: 14px; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: start; }
.member-card .avatar { width: 38px; height: 38px; }
.member-card h3 { margin: 2px 0 3px; font-size: 11px; }
.member-card p { margin: 0; color: var(--muted); font-size: 9px; }
.role-pill { background: #eceeeb; color: #565d58; padding: 4px 7px; font-size: 8px; font-weight: 900; }

.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.settings-menu { border: 1px solid var(--line); background: var(--panel); padding: 8px; align-self: start; }
.settings-menu button { width: 100%; min-height: 36px; padding: 0 10px; border: 0; background: transparent; text-align: left; font-size: 10px; cursor: pointer; }
.settings-menu button.active { background: var(--green-soft); color: #006234; font-weight: 900; }
.settings-section { border: 1px solid var(--line); background: var(--panel); }
.setting-row { min-height: 68px; border-bottom: 1px solid #c7cbc5; padding: 13px 16px; display: grid; grid-template-columns: minmax(210px, .8fr) minmax(260px, 1.2fr); gap: 20px; align-items: center; }
.setting-row:last-child { border-bottom: 0; }
.setting-copy strong, .setting-copy span { display: block; }
.setting-copy strong { font-size: 11px; }
.setting-copy span { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.setting-control input, .setting-control select, .setting-control textarea { width: 100%; min-height: 34px; border: 1px solid #b8bcb8; background: #fff; padding: 8px 10px; outline: 0; font-size: 10px; }
.setting-control textarea { min-height: 78px; resize: vertical; }
.setting-control.inline { display: flex; align-items: center; gap: 8px; }

.support-hero { border: 1px solid var(--line); background: #132018; color: #fff; padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-bottom: 16px; }
.support-hero h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.support-hero p { margin: 7px 0 0; color: #b6c5bc; font-size: 10px; }
.support-search { width: min(390px, 42vw); height: 38px; border: 1px solid #536259; background: #f7faf8; color: var(--text); padding: 0 12px; outline: 0; }
.help-card { border: 1px solid #b8bcb8; background: #fff; padding: 16px; min-height: 135px; }
.help-card h3 { margin: 10px 0 6px; font-size: 12px; }
.help-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.help-card .icon-square { width: 34px; height: 34px; background: var(--green-soft); color: var(--green-dark); border-color: #9acfb4; }

.empty-state { min-height: 200px; display: grid; place-items: center; text-align: center; padding: 28px; color: var(--muted); }
.empty-state strong { display: block; color: var(--text); margin-bottom: 5px; }
.empty-state svg { width: 28px; height: 28px; margin-bottom: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(12,17,14,.48); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; }
.modal-backdrop[hidden] { display: none !important; }
.modal { width: min(480px, 100%); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.modal-header { padding: 21px 22px; border-bottom: 1px solid #aeb2ae; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-header h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.modal-close { width: 35px; height: 35px; border: 1px solid var(--line); background: #fff; font-size: 23px; cursor: pointer; }
.modal-form { display: grid; gap: 15px; padding: 22px; }
.modal-form label > span { display: block; margin-bottom: 7px; font-size: 9px; font-weight: 900; }
.modal-form input, .modal-form select { width: 100%; height: 40px; border: 1px solid #aeb2ae; background: #fff; padding: 0 11px; outline: 0; font-size: 11px; }
.modal-form input:focus, .modal-form select:focus { border-color: var(--green-dark); box-shadow: 0 0 0 2px rgba(0,168,90,.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: 15px; height: 15px; }
.checkbox-row span { margin: 0 !important; font-weight: 500 !important; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }

.notification-popover { position: fixed; top: 48px; right: 126px; z-index: 90; width: 335px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.notification-popover header { min-height: 43px; padding: 0 13px; border-bottom: 1px solid #c7cbc5; display: flex; align-items: center; justify-content: space-between; }
.notification-popover header button { border: 0; background: transparent; color: var(--green-dark); font-size: 9px; font-weight: 900; cursor: pointer; }
.notification-popover article { display: flex; gap: 10px; padding: 12px; border-bottom: 1px solid #d4d7d3; }
.notification-popover article:last-child { border-bottom: 0; }
.notification-popover article i { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; flex: 0 0 auto; }
.tone-danger { background: var(--red); }
.tone-warning { background: var(--orange); }
.tone-success { background: var(--green); }
.notification-popover strong, .notification-popover span { display: block; }
.notification-popover strong { font-size: 10px; }
.notification-popover span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); background: #111813; color: #fff; display: flex; align-items: center; font-size: 10px; font-weight: 800; box-shadow: var(--shadow); transition: .18s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1260px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-card { border-bottom: 1px solid #b8bcb8; }
  .metric-card:nth-child(3n) { border-right: 0; }
  .metric-card:nth-last-child(-n+3) { border-bottom: 0; }
  .integration-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
  .grid-main-side, .grid-side-main { grid-template-columns: minmax(0, 1fr); }
  .issue-row { grid-template-columns: minmax(260px, 1fr) 100px 100px 150px; }
  .issue-row > :last-child { display: none; }
  .member-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 1020px) {
  :root { --sidebar: 205px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .topbar { padding: 0 14px; }
  .select-wrap.compact { display: none; }
  .support-hero { grid-template-columns: 1fr; }
  .support-search { width: 100%; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-menu { display: flex; overflow-x: auto; }
  .settings-menu button { width: auto; white-space: nowrap; }
}

@media (max-width: 820px) {
  :root { --rail: 0px; --sidebar: min(300px, 88vw); }
  .app-shell { display: block; }
  .icon-rail { display: none; }
  .side-panel { left: 0; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .side-panel.open { transform: translateX(0); }
  .side-close { display: grid; place-items: center; }
  .mobile-category-switcher { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid #a8bbb0; }
  .mobile-category-switcher button { height: 42px; border: 0; border-right: 1px solid #bdc8c0; background: transparent; color: #65716a; }
  .mobile-category-switcher button:last-child { border-right: 0; }
  .mobile-category-switcher button.active { background: var(--green-soft); color: var(--green-dark); }
  .mobile-category-switcher svg { width: 16px; }
  .workspace-shell { width: 100%; }
  .topbar { gap: 9px; }
  .mobile-menu { display: block; }
  .search-box { flex: 1; width: auto; }
  .live-indicator, .icon-button { display: none; }
  .primary-button#newMonitorButton { width: 34px; overflow: hidden; padding: 0; font-size: 0; }
  .primary-button#newMonitorButton::after { content: "+"; font-size: 18px; }
  .content { padding: 17px 14px 32px; }
  .page-heading { flex-direction: column; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card:nth-child(3n) { border-right: 1px solid #b8bcb8; }
  .metric-card:nth-child(2n) { border-right: 0; }
  .metric-card:nth-last-child(-n+3) { border-bottom: 1px solid #b8bcb8; }
  .metric-card:nth-last-child(-n+2) { border-bottom: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .integration-grid, .member-grid { grid-template-columns: 1fr; }
  .issue-row { grid-template-columns: minmax(220px, 1fr) 90px; }
  .issue-row > :nth-child(n+3) { display: none; }
  .rule-row { grid-template-columns: 30px minmax(200px, 1fr) 90px; }
  .rule-row > :nth-child(n+4) { display: none; }
  .setting-row { grid-template-columns: 1fr; gap: 10px; }
  .notification-popover { right: 10px; width: min(335px, calc(100vw - 20px)); }
}

@media (max-width: 520px) {
  .topbar { padding: 0 9px; }
  .search-box kbd { display: none; }
  .search-box { grid-template-columns: 28px 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card, .metric-card:nth-child(n) { border-right: 0; border-bottom: 1px solid #b8bcb8; }
  .metric-card:last-child { border-bottom: 0; }
  .alert-strip { align-items: flex-start; padding: 13px; flex-wrap: wrap; }
  .alert-strip .spacer { display: none; }
  .alert-strip button { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .support-hero { padding: 17px; }
  .modal-header, .modal-form { padding: 17px; }
}


/* Protection product views: Gate, BitGuard and security insights */
.protection-page { max-width: 1480px; margin: 0 auto; }
.protection-page .page-heading { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #d9e0dc; }
.protection-page .page-heading p { max-width: 900px; }
.page-eyebrow { display: block; margin-bottom: 7px; color: #60716b; }
.dark-button { min-height: 34px; padding: 0 13px; border: 1px solid #063b2b; background: #063b2b; color: #fff; font-size: 10px; font-weight: 900; cursor: pointer; }
.danger-outline-button { min-height: 30px; padding: 0 10px; border: 1px solid #f2a79e; background: #fff; color: #d92d20; font-size: 10px; font-weight: 800; cursor: pointer; }
.text-button { padding: 0; border: 0; background: transparent; color: #0a523b; font-size: 10px; font-weight: 900; cursor: pointer; }
.security-pill { display: inline-flex; min-height: 20px; align-items: center; padding: 0 8px; font-size: 9px; font-weight: 900; text-transform: lowercase; white-space: nowrap; }
.security-pill.success { background: #ccf7df; color: #087a42 !important; }

.gate-summary-grid { display: grid; grid-template-columns: .55fr 1fr 1.1fr; gap: 12px; margin-bottom: 20px; }
.gate-summary-card { min-height: 74px; border: 1px solid #d4ddd8; background: rgba(255,255,255,.9); padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.gate-summary-card span { color: #62716b; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.gate-summary-card strong { font-size: 26px; line-height: 1; }
.gate-summary-card code { display: block; padding: 7px 9px; border-radius: 12px; background: #edf0ee; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gate-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .72fr); gap: 20px; align-items: start; }
.gate-main-column { min-width: 0; }
.gate-side-column { display: grid; gap: 16px; position: sticky; top: calc(var(--topbar) + 18px); }
.gate-widget-card, .gate-guide-card, .gate-create-card, .gate-endpoint-card { border: 1px solid #d4ddd8; background: rgba(255,255,255,.94); margin-bottom: 16px; }
.gate-widget-head { min-height: 66px; padding: 14px 16px; border-bottom: 1px solid #edf0ee; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.gate-widget-head h2, .gate-create-card h2, .gate-guide-card h2 { margin: 0; font-size: 16px; }
.gate-widget-head p { margin: 4px 0 0; color: #69756f; font-size: 10px; }
.gate-widget-form { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; }
.vg-field { display: grid; gap: 6px; min-width: 0; }
.vg-field > span, .gate-endpoint-card label > span { color: #65736d; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.vg-field input, .vg-field textarea, .vg-field select { width: 100%; border: 1px solid #d2d9d5; border-radius: 9px; background: #fff; padding: 9px 11px; color: #18211e; font: inherit; font-size: 10px; outline: 0; resize: vertical; }
.vg-field input:focus, .vg-field textarea:focus, .vg-field select:focus { border-color: #1cbf73; box-shadow: 0 0 0 3px rgba(28,191,115,.1); }
.gate-site-key { align-self: end; }
.vg-check { display: inline-flex; align-items: center; gap: 7px; align-self: end; min-height: 35px; font-size: 10px; font-weight: 700; }
.vg-check input { accent-color: #0ca45d; }
.gate-save-row { padding: 0 16px 14px; border-bottom: 1px solid #edf0ee; }
.gate-save-row svg, .gate-guide-card button svg { width: 13px; vertical-align: -3px; margin-right: 4px; }
.gate-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; }
.gate-code-card { border: 1px solid #dce2de; border-radius: 9px; padding: 10px; background: #fff; min-width: 0; }
.gate-code-card > span { display: block; margin-bottom: 8px; color: #66746e; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.gate-code-card pre, .gate-guide-steps pre { min-height: 145px; margin: 0; padding: 13px; overflow: auto; background: #020817; color: #95a3b7; font: 8px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.gate-widget-actions { padding: 0 16px 14px; display: flex; gap: 9px; }
.gate-create-card { padding: 16px; border-color: #8ee5ba; box-shadow: 0 12px 30px rgba(18,95,66,.08); display: grid; gap: 14px; }
.gate-create-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gate-create-card .eyebrow { color: #0a9d5b; }
.gate-submit-wide { width: 100%; min-height: 38px; border: 1px solid #c6d3cc; border-radius: 8px; background: #fff; font-size: 10px; font-weight: 900; cursor: pointer; box-shadow: 0 4px 13px rgba(29,85,61,.12); }
.gate-submit-wide:hover { border-color: #10a663; color: #087a42; }
.gate-endpoint-card { padding: 16px; display: grid; gap: 12px; }
.gate-endpoint-card h3 { margin: 0; font-size: 12px; }
.gate-endpoint-card label { display: grid; gap: 6px; }
.gate-endpoint-card code { padding: 9px 10px; border-radius: 7px; background: #eef1ef; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gate-guide-card { padding: 16px; }
.gate-guide-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.gate-guide-card .eyebrow { color: #68766f; }
.gate-guide-steps { display: grid; grid-template-columns: .9fr 1fr 1fr; gap: 12px; }
.gate-guide-steps article { min-width: 0; min-height: 190px; border: 1px solid #dce2de; border-radius: 9px; padding: 14px; background: #fff; }
.gate-guide-steps article > span { display: block; color: #61706a; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.gate-guide-steps p { color: #6d7974; font-size: 10px; line-height: 1.6; }
.gate-guide-steps pre { min-height: 142px; margin-top: 10px; }

.bitguard-sites-panel { border: 1px solid #d4ddd8; background: rgba(255,255,255,.95); }
.bitguard-sites-panel > header { min-height: 78px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #d4ddd8; }
.bitguard-sites-panel > header h2 { margin: 0; font-size: 15px; }
.bitguard-sites-panel > header p { margin: 5px 0 0; color: #738079; font-size: 10px; }
.bitguard-sites-panel > header > span { color: #718078; font-size: 11px; }
.bitguard-table-wrap { overflow-x: auto; }
.bitguard-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.bitguard-table th { height: 42px; padding: 0 20px; background: #eff9fc; color: #6b7772; text-align: left; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.bitguard-table td { padding: 18px 20px; border-top: 1px solid #e0e6e2; vertical-align: top; font-size: 10px; }
.bitguard-table tbody tr:first-child td { border-top: 0; }
.bitguard-table td strong, .bitguard-table td span, .bitguard-table td small, .bitguard-table td code, .bitguard-table td a { display: block; }
.bitguard-table td strong { font-size: 12px; }
.bitguard-table td span:not(.security-pill):not(.protection-mode) { color: #65736d; }
.bitguard-table td small { margin-top: 5px; color: #728079; font-size: 9px; }
.bitguard-table td code { margin-bottom: 4px; font-size: 9px; white-space: nowrap; }
.bitguard-table td a { margin-top: 5px; color: #07834b; font-size: 9px; font-weight: 800; }
.protection-mode { display: inline-flex !important; padding: 5px 8px; background: #eef1f5; color: #3d4c58; font-size: 9px; font-weight: 900; }
.protection-mode.info { background: #eaf2ff; color: #295b9d !important; }
.bitguard-setup-list { display: grid; gap: 14px; margin-top: 30px; }
.bitguard-setup-card { min-height: 78px; padding: 16px 20px; border: 1px solid #d4ddd8; background: rgba(255,255,255,.94); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.bitguard-setup-card h3 { margin: 0; font-size: 14px; }
.bitguard-setup-card p { margin: 6px 0 0; color: #718078; font-size: 10px; }
.setup-statuses { display: flex; gap: 8px; }

.security-top-grid, .security-middle-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; margin-bottom: 18px; }
.security-posture-card, .security-snapshot-card, .security-breakdown-card, .security-main-observations, .security-findings-card { border: 1px solid #d4ddd8; background: rgba(255,255,255,.95); }
.security-posture-card > header { min-height: 65px; padding: 14px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.security-posture-card h2, .security-snapshot-card h2, .security-breakdown-card h2, .security-main-observations h2, .security-findings-card h2 { margin: 0; font-size: 13px; }
.security-posture-card header p { margin: 5px 0 0; color: #738079; font-size: 9px; }
.attention-badge { padding: 6px 9px; background: #fff0bf; color: #9a6500; font-size: 9px; font-weight: 900; }
.security-posture-content { display: grid; grid-template-columns: 165px 1fr; gap: 18px; padding: 0 18px 18px; }
.security-score-box { border: 1px solid #d7dfda; padding: 14px; }
.security-score-box strong { display: inline-block; font-size: 54px; line-height: .9; letter-spacing: -.06em; }
.security-score-box > span { margin-left: 7px; color: #65736d; font-size: 8px; font-weight: 900; }
.security-score-box > i { display: block; width: 31%; height: 6px; margin-top: 9px; background: #19c879; }
.security-score-box p { margin: 9px 0 0; color: #6d7a74; font-size: 9px; line-height: 1.55; }
.security-posture-main { min-width: 0; }
.security-kpi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.security-kpi-grid article { min-height: 86px; padding: 12px; border: 1px solid #dbe2de; background: #f7faf8; }
.security-kpi-grid span, .security-snapshot-grid span { display: block; color: #68766f; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.security-kpi-grid strong { display: block; margin-top: 11px; font-size: 24px; }
.security-severity-legend { display: flex; gap: 13px; margin: 14px 0 8px; flex-wrap: wrap; color: #5f6e67; font-size: 9px; font-weight: 700; }
.security-severity-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; }
.security-severity-legend .high { background: #ef4444; }.security-severity-legend .moderate { background: #f6b91d; }.security-severity-legend .low { background: #65bff0; }
.security-severity-bar { height: 10px; display: flex; background: #e8ecea; overflow: hidden; }
.security-severity-bar i.moderate { width: 75%; background: #f6b91d; }.security-severity-bar i.low { width: 25%; background: #65bff0; }
.security-snapshot-card { padding: 18px; }
.security-snapshot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.security-snapshot-grid article { min-height: 102px; padding: 14px; border: 1px solid #dce3df; background: #f7faf8; }
.security-snapshot-grid strong { display: block; margin-top: 10px; font-size: 25px; }
.security-snapshot-grid p { margin: 6px 0 0; color: #728078; font-size: 9px; }
.security-breakdown-card, .security-main-observations { padding: 18px; }
.security-breakdown-card > header, .security-main-observations > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.security-breakdown-card > header span { color: #728078; font-size: 8px; font-weight: 900; }
.breakdown-list { display: grid; gap: 19px; }
.breakdown-list article > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }
.breakdown-list article span { font-weight: 800; }
.breakdown-list article span i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--c); }
.breakdown-track, .main-observation-list article > div { height: 7px; margin-top: 9px; background: #e7ebe9; overflow: hidden; }
.breakdown-track i, .main-observation-list article > div i { display: block; width: var(--w); height: 100%; background: var(--c,#13b878); }
.main-observation-list { display: grid; gap: 18px; }
.main-observation-list article { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; font-size: 10px; }
.main-observation-list article > div { grid-column: 1 / -1; margin: 0; }
.security-findings-card { margin-bottom: 20px; }
.security-findings-head { min-height: 78px; padding: 15px 18px 8px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.security-findings-head p { margin: 5px 0 0; color: #738079; font-size: 9px; }
.security-findings-toolbar { padding: 0 18px 12px; display: grid; grid-template-columns: minmax(260px,1fr) 165px 180px; gap: 10px; }
.security-search { position: relative; min-width: 0; }
.security-search svg { position: absolute; left: 10px; top: 9px; width: 14px; color: #849089; }
.security-search input, .security-findings-toolbar select { width: 100%; height: 34px; border: 1px solid #d4ddd8; border-radius: 9px; background: #fff; padding: 0 10px; font-size: 10px; outline: 0; }
.security-search input { padding-left: 32px; }
.security-table-wrap { overflow-x: auto; }
.security-findings-table { width: 100%; border-collapse: collapse; min-width: 1050px; }
.security-findings-table th { height: 39px; padding: 0 18px; background: #eff9fc; color: #6b7772; text-align: left; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.security-findings-table td { padding: 15px 18px; border-top: 1px solid #e0e6e2; vertical-align: top; font-size: 9px; line-height: 1.45; }
.security-findings-table td strong { display: block; font-size: 10px; }
.security-findings-table td p { max-width: 360px; margin: 5px 0 0; color: #718078; }
.security-findings-table td small { display: block; margin-top: 5px; color: #47715f; font-size: 8px; font-weight: 900; }
.finding-severity { display: inline-flex; padding: 5px 8px; font-size: 8px; font-weight: 900; }
.finding-severity.warning { background: #fff0bf; color: #9a6500 !important; }.finding-severity.info { background: #dff3ff; color: #17618d !important; }
.security-findings-card > footer { min-height: 42px; padding: 0 18px; border-top: 1px solid #e0e6e2; display: flex; align-items: center; color: #718078; font-size: 9px; }

@media (max-width: 1180px) {
  .gate-layout { grid-template-columns: 1fr; }
  .gate-side-column { position: static; grid-template-columns: 1fr 1fr; }
  .security-top-grid, .security-middle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .gate-summary-grid { grid-template-columns: 1fr; }
  .gate-widget-form, .gate-code-grid, .gate-guide-steps, .gate-side-column { grid-template-columns: 1fr; }
  .gate-code-card pre { min-height: 120px; }
  .bitguard-setup-card { align-items: flex-start; flex-direction: column; }
  .security-posture-content { grid-template-columns: 1fr; }
  .security-kpi-grid, .security-snapshot-grid { grid-template-columns: 1fr; }
  .security-findings-toolbar { grid-template-columns: 1fr; }
}
