:root {
  color-scheme: dark;
  --bg: #020812;
  --bg-soft: #06101d;
  --panel: #081524;
  --panel-2: #0b1d31;
  --line: #1d3148;
  --line-strong: #2b4764;
  --text: #eef6ff;
  --muted: #91a3b8;
  --faint: #607389;
  --blue: #0b84ff;
  --cyan: #00c8ff;
  --green: #23d071;
  --amber: #ff9f1a;
  --red: #ff3d3d;
  --purple: #9b5cff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 74% -10%, rgba(11, 132, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #020812 0%, #06101d 100%);
}

button,
input,
select {
  font: inherit;
}

select {
  color-scheme: dark;
}

select option {
  color: #eef6ff;
  background: #07111f;
}

select option:checked {
  color: #ffffff;
  background: #0b84ff;
}

button {
  color: inherit;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 430px);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 21, 36, 0.94);
  box-shadow: var(--shadow);
}

.login-logo-wrap {
  width: fit-content;
  margin: 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.login-logo {
  display: block;
  width: 230px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.login-card h1,
.page-head h1 {
  margin: 0;
  letter-spacing: 0;
}

.login-card p,
.page-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.login-card label,
.select-shell {
  display: grid;
  gap: 6px;
}

.login-card label span,
.select-shell span {
  color: var(--muted);
  font-size: 0.76rem;
}

.login-card input,
.search-shell input,
.select-shell select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: #07111f;
  outline: none;
}

.login-card input {
  padding: 0 12px;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: rgba(2, 8, 18, 0.88);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.brand img {
  width: 190px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.nav-list {
  display: grid;
  align-content: start;
  gap: 6px;
  overflow: auto;
}

.nav-item {
  min-height: 40px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: #d9e5f2;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(90deg, #096cf0, #0b84ff);
  color: white;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 0.82rem;
}

.nav-badge,
.pill {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
}

.nav-badge.danger {
  background: var(--red);
}

.pill.good {
  color: var(--green);
  background: rgba(35, 208, 113, 0.12);
}

.pill.bad {
  color: var(--red);
  background: rgba(255, 61, 61, 0.13);
}

.pill.warn {
  color: var(--amber);
  background: rgba(255, 159, 26, 0.13);
}

.collector-card,
.panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 21, 36, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.collector-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.collector-card span,
.metric-label,
.table-wrap th,
.muted,
.mini-label {
  color: var(--muted);
}

.collector-card strong {
  display: block;
  margin-top: 4px;
}

dl {
  margin: 0;
}

.collector-card dl {
  display: grid;
  gap: 8px;
}

.collector-card dl div,
.facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.collector-card dl div {
  display: grid;
  align-items: start;
  justify-content: start;
  gap: 4px;
}

.collector-card dd {
  color: var(--text);
  font-weight: 800;
  line-height: 1.25;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
}

.workspace {
  min-width: 0;
  padding: 16px 18px;
}

.topbar,
.page-head,
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  align-items: center;
  margin: -16px -18px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  background: rgba(2, 8, 18, 0.82);
}

.filter-cluster,
.top-actions,
.page-actions,
.toolbar,
.tab-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.select-shell {
  min-width: 260px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #06111f;
}

.select-shell.compact {
  min-width: 190px;
}

.select-shell select {
  min-height: 24px;
  padding: 0 20px 0 0;
  border: 0;
  color: var(--text);
  background: #06111f;
  color-scheme: dark;
}

.select {
  min-height: 36px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: #06111f;
  color-scheme: dark;
}

.compact-select {
  min-width: 150px;
}

.number-control {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #06111f;
}

.number-control span {
  color: var(--muted);
  font-size: 0.72rem;
}

.number-control input {
  width: 62px;
  min-height: 24px;
  border: 0;
  color: var(--text);
  background: transparent;
  outline: none;
}

.live-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
}

.request-activity {
  min-width: 104px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(0, 200, 255, 0.48);
  border-radius: 999px;
  color: #d9f7ff;
  background: rgba(0, 200, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
}

.request-activity i {
  color: var(--cyan);
}

.live-pill i,
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(35, 208, 113, 0.8);
}

.search-shell {
  width: min(34vw, 390px);
}

.search-shell input {
  padding: 0 14px;
}

.button,
.icon-button {
  min-height: 38px;
  border-radius: 8px;
  cursor: pointer;
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: #0b1d31;
}

.button.primary {
  border-color: #0b84ff;
  background: linear-gradient(180deg, #127bff, #075fd7);
}

.button.outline {
  color: var(--cyan);
  background: transparent;
}

.button.small,
.icon-button {
  min-height: 32px;
}

.button.small {
  padding: 0 10px;
  font-size: 0.82rem;
}

.link-button {
  border: 0;
  padding: 0;
  color: var(--cyan);
  background: transparent;
  cursor: pointer;
}

.help-label,
.inline-help {
  color: var(--muted);
  cursor: help;
}

.help-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-help {
  text-decoration: underline dotted rgba(145, 163, 184, 0.55);
  text-underline-offset: 3px;
}

.button i,
.icon-button i,
.nav-icon i,
.metric-icon i {
  flex: 0 0 auto;
  line-height: 1;
}

.icon-button {
  width: 38px;
  border: 1px solid var(--line-strong);
  background: #07111f;
  font-size: 0.88rem;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #0a1726;
  font-size: 0.78rem;
}

.page-head {
  margin-bottom: 16px;
}

.page-head h1 {
  font-size: 1.46rem;
}

.content-grid,
.dashboard-grid {
  display: grid;
  gap: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 14px;
  overflow: hidden;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(11, 132, 255, 0.16);
  font-size: 0.95rem;
}

.metric-value {
  font-size: 1.56rem;
  font-weight: 850;
  line-height: 1;
}

.metric-trend {
  display: flex;
  align-items: end;
  color: var(--green);
  font-size: 0.76rem;
}

.layout-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr);
  gap: 12px;
  align-items: start;
}

.layout-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.layout-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.compact-grid {
  align-items: stretch;
}

.overview-second-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 1fr) minmax(420px, 1.28fr);
  gap: 12px;
  align-items: stretch;
}

.overview-third-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.overview-second-row > .panel,
.overview-third-row > .panel {
  height: 100%;
}

.overview-sites-table {
  min-width: 100%;
  table-layout: fixed;
}

.overview-sites-table th,
.overview-sites-table td {
  padding: 10px 9px;
}

.overview-sites-table th:nth-child(1),
.overview-sites-table td:nth-child(1) {
  width: 32%;
}

.overview-sites-table th:nth-child(2),
.overview-sites-table td:nth-child(2) {
  width: 16%;
}

.overview-sites-table th:nth-child(3),
.overview-sites-table td:nth-child(3),
.overview-sites-table th:nth-child(4),
.overview-sites-table td:nth-child(4) {
  width: 18%;
}

.overview-sites-table th:nth-child(5),
.overview-sites-table td:nth-child(5) {
  width: 16%;
  text-align: right;
}

.search-console {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.facet-panel {
  position: sticky;
  top: 92px;
}

.facet-block {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(29, 49, 72, 0.78);
}

.facet-block h3 {
  margin: 0 0 10px;
  font-size: 0.84rem;
}

.facet-row {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.facet-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.facet-row i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.query-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.query-form {
  margin: 0;
}

.query-string {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #d7ecff;
  background: #07111f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.query-string input {
  min-width: 0;
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  outline: none;
  font: inherit;
}

.query-string input::placeholder {
  color: var(--faint);
}

.query-string span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.panel-head {
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-size: 0.96rem;
}

.panel-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.panel-body {
  padding: 14px 16px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(29, 49, 72, 0.8);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.72rem;
  font-weight: 700;
}

td {
  font-size: 0.86rem;
}

.row-title {
  display: grid;
  gap: 3px;
}

.row-title strong,
.row-title span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.row-title span,
.subtle {
  color: var(--muted);
  font-size: 0.76rem;
}

.ua-sample {
  color: var(--faint) !important;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem !important;
}

.query-sample {
  max-width: 360px;
}

.query-sample strong,
.query-sample span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(72, 103, 136, 0.45);
  border-radius: 6px;
  color: var(--text);
  background: rgba(10, 25, 43, 0.72);
}

.status,
.severity {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: capitalize;
}

.status.good,
.severity.low {
  color: var(--green);
  background: rgba(35, 208, 113, 0.12);
}

.ip-link.trusted-ip {
  color: var(--green);
  background: rgba(35, 208, 113, 0.1);
  border-color: rgba(35, 208, 113, 0.35);
}

.ip-link.provider-verified-ip {
  color: #ff7ad9;
  background: rgba(255, 122, 217, 0.1);
  border-color: rgba(255, 122, 217, 0.38);
}

.ip-link.suspicious-ip {
  color: var(--amber);
  background: rgba(255, 159, 26, 0.12);
  border-color: rgba(255, 159, 26, 0.42);
}

.ip-status-badge {
  display: inline-flex;
  margin-left: 6px;
  font-size: 0.72em;
}

.ua-link.verified-ua {
  color: var(--green);
  background: rgba(35, 208, 113, 0.1);
  border-color: rgba(35, 208, 113, 0.35);
}

.ua-link.official-ua {
  color: #ff7ad9;
  background: rgba(255, 122, 217, 0.1);
  border-color: rgba(255, 122, 217, 0.38);
}

.ua-link.malicious-ua {
  color: var(--red);
  background: rgba(255, 61, 61, 0.12);
  border-color: rgba(255, 61, 61, 0.42);
}

.ua-status-badge {
  display: inline-flex;
  margin-left: 6px;
  font-size: 0.72em;
}

.status.warn,
.severity.medium,
.severity.high {
  color: var(--amber);
  background: rgba(255, 159, 26, 0.13);
}

.status.bad,
.severity.critical {
  color: var(--red);
  background: rgba(255, 61, 61, 0.13);
}

.list {
  display: grid;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(29, 49, 72, 0.78);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row strong,
.list-row span {
  display: block;
  overflow-wrap: anywhere;
}

.list-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.chart-card {
  min-height: 318px;
}

.chart-card canvas,
.large-chart {
  width: 100%;
  height: 220px;
  display: block;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.76rem;
}

.chart-legend span,
.chart-tooltip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i,
.chart-tooltip i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.chart-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: max-content;
  max-width: 220px;
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: rgba(2, 8, 18, 0.96);
  box-shadow: var(--shadow);
  pointer-events: none;
  font-size: 0.78rem;
}

.chart-tooltip strong {
  font-size: 0.82rem;
}

.facts {
  display: grid;
  gap: 10px;
}

.pager {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(29, 49, 72, 0.8);
  color: var(--muted);
  font-size: 0.78rem;
}

.pager-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pager-gap {
  padding: 0 4px;
  color: var(--faint);
}

.facts div {
  min-height: 34px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(29, 49, 72, 0.72);
}

.empty {
  padding: 18px;
  color: var(--muted);
}

.toast {
  position: sticky;
  top: 74px;
  z-index: 8;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px auto;
  padding: 10px 12px;
  border: 1px solid rgba(35, 208, 113, 0.4);
  border-radius: 8px;
  background: rgba(12, 70, 44, 0.94);
}

.toast.error {
  border-color: rgba(255, 61, 61, 0.5);
  background: rgba(98, 20, 26, 0.94);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  width: min(560px, 100vw);
  height: 100vh;
  border-left: 1px solid var(--line-strong);
  background: #06101d;
  box-shadow: var(--shadow);
}

.drawer.wide {
  width: min(900px, 100vw);
}

.drawer header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer h2 {
  margin: 4px 0 0;
}

.drawer header span {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.drawer-body {
  height: calc(100vh - 82px);
  padding: 16px 18px;
  overflow: auto;
}

.drawer-body pre {
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d9e5f2;
  background: #020812;
}

.markdown-body {
  color: #dbe9f8;
  line-height: 1.55;
}

.markdown-body.compact {
  max-height: 360px;
  padding: 0 14px 14px;
  overflow: auto;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin: 16px 0 8px;
  color: #f3f8ff;
}

.markdown-body h1:first-child,
.markdown-body h2:first-child,
.markdown-body h3:first-child,
.markdown-body p:first-child {
  margin-top: 0;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body pre {
  margin: 0 0 12px;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 20px;
}

.markdown-body li + li {
  margin-top: 6px;
}

.markdown-body a {
  color: var(--cyan);
}

.markdown-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #020812;
}

.markdown-table-wrap {
  margin: 0 0 14px;
}

.markdown-table {
  min-width: 720px;
}

.markdown-table th,
.markdown-table td {
  vertical-align: top;
  white-space: normal;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 7, 16, 0.74);
}

.modal {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #06101d;
  box-shadow: var(--shadow);
}

.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal header span {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.modal h2,
.modal h3,
.modal p {
  margin: 0;
}

.modal h2 {
  margin-top: 4px;
}

.modal h3 {
  font-size: 0.9rem;
}

.modal-body {
  max-height: calc(100vh - 140px);
  padding: 18px;
  overflow: auto;
}

.guide-grid {
  display: grid;
  gap: 14px;
}

.guide-grid section {
  display: grid;
  gap: 8px;
}

.guide-grid p {
  color: var(--muted);
  line-height: 1.45;
}

.guide-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-examples code {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #020812;
  color: #d7ecff;
}

.mini-metric-grid,
.detail-grid {
  display: grid;
  gap: 12px;
}

.mini-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.mini-metric,
.detail-card,
.trace-hero,
.pipeline-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 21, 36, 0.72);
}

.mini-metric {
  min-height: 78px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.mini-metric span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
}

.mini-metric strong {
  font-size: 1.22rem;
}

.detail-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.detail-card {
  min-width: 0;
  padding: 14px;
  margin-bottom: 12px;
}

.detail-card h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.detail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-card-head h3 {
  margin: 0;
}

.detail-card-head span {
  color: var(--muted);
  font-size: 0.76rem;
}

.ip-intel-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 180px) minmax(180px, 1.2fr) auto;
  align-items: end;
  gap: 12px;
}

.ip-intel-form p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.ip-intel-form label {
  display: grid;
  gap: 6px;
}

.ip-intel-form label span {
  color: var(--muted);
  font-size: 0.72rem;
}

.ip-intel-form input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: #07111f;
  outline: none;
}

.report-actions-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.report-actions-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.report-detail-grid {
  align-items: start;
}

.report-preview {
  border-top: 1px solid var(--line);
}

.report-row {
  align-items: start;
}

.catalog-summary {
  max-height: 82px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.42;
}

.catalog-summary h1,
.catalog-summary h2,
.catalog-summary h3,
.catalog-summary h4,
.catalog-summary p,
.catalog-summary ul,
.catalog-summary ol {
  margin: 0 0 6px;
}

.catalog-summary ul,
.catalog-summary ol {
  padding-left: 16px;
}

.report-chart-stack,
.report-drilldown-stack {
  display: grid;
  gap: 12px;
}

.report-subcard {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.36);
}

.report-subcard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.report-subcard-head strong {
  overflow-wrap: anywhere;
}

.report-subcard-head span {
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.report-chart-visual {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid rgba(29, 49, 72, 0.72);
  border-radius: 8px;
  background: rgba(5, 14, 27, 0.54);
}

.report-chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.74rem;
}

.report-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.report-chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.report-bars {
  display: grid;
  gap: 8px;
}

.report-bar-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.8fr) minmax(120px, 1.4fr) minmax(48px, auto);
  gap: 10px;
  align-items: center;
  min-height: 24px;
}

.report-bar-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-bar-row b {
  color: var(--text);
  font-size: 0.76rem;
  text-align: right;
  white-space: nowrap;
}

.report-bar-track {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(43, 67, 96, 0.72);
}

.report-bar-track i,
.report-bar-track em {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: inherit;
}

.report-bar-track i {
  opacity: 0.92;
}

.report-bar-track em {
  background: var(--amber);
  opacity: 0.62;
}

.compact-list .list-row {
  padding: 9px 0;
}

.drawer-pager {
  min-height: 44px;
  margin: 0 -14px -14px;
  padding: 8px 14px;
}

.trace-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 12px;
}

.trace-hero strong {
  overflow-wrap: anywhere;
}

.method {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--green);
  background: rgba(35, 208, 113, 0.12);
  font-weight: 850;
}

.method.post,
.method.put,
.method.patch {
  color: var(--amber);
  background: rgba(255, 159, 26, 0.13);
}

.method.delete {
  color: var(--red);
  background: rgba(255, 61, 61, 0.13);
}

.trace-bars {
  display: grid;
  gap: 10px;
}

.trace-bar {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.trace-bar i {
  height: 10px;
  border-radius: 999px;
  background: #0c2238;
  overflow: hidden;
}

.trace-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.trace-bar em {
  font-style: normal;
  text-align: right;
}

.compact-table table {
  min-width: 560px;
}

.ingestion-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.pipeline-step {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.pipeline-step > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(11, 132, 255, 0.14);
}

.pipeline-step div {
  display: grid;
  gap: 4px;
}

.pipeline-step small {
  color: var(--muted);
}

.tab-list {
  margin-bottom: 12px;
}

.tab-button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: #07111f;
  cursor: pointer;
}

.tab-button.active {
  color: white;
  border-color: var(--blue);
  background: rgba(11, 132, 255, 0.22);
}

@media (max-width: 1320px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .overview-second-row {
    grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 1fr);
  }

  .overview-second-row > .panel:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .brand {
    grid-column: 1 / 2;
  }

  .nav-list {
    grid-column: 1 / -1;
    display: flex;
    overflow-x: auto;
  }

  .nav-item {
    min-width: max-content;
  }

  .collector-card {
    display: none;
  }

  .topbar,
  .page-head,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search-shell {
    width: 100%;
  }

  .layout-2,
  .layout-3,
  .layout-4,
  .overview-second-row,
  .overview-third-row,
  .search-console,
  .ip-intel-form,
  .detail-grid.two {
    grid-template-columns: 1fr;
  }

  .overview-second-row > .panel:last-child {
    grid-column: auto;
  }

  .facet-panel {
    position: static;
  }

  .mini-metric-grid,
  .ingestion-pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .workspace {
    padding: 12px;
  }

  .topbar {
    margin: -12px -12px 14px;
    padding: 12px;
  }

  .filter-cluster,
  .top-actions,
  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .select-shell,
  .select-shell.compact {
    width: 100%;
    min-width: 0;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .mini-metric-grid,
  .ingestion-pipeline,
  .trace-hero,
  .trace-bar {
    grid-template-columns: 1fr;
  }

}
