/* LogSentinel — light / dark theme tokens */

:root {
  color-scheme: light;
  --theme-color: #f1f5f9;
  --bg-page: #f1f5f9;
  --bg-app-grad-1: rgba(37, 99, 235, 0.08);
  --bg-app-grad-2: rgba(59, 130, 246, 0.05);
  --bg-app-grad-3: rgba(99, 102, 241, 0.04);
  --bg-app-grad-4: rgba(226, 232, 240, 0.6);
  --bg-noise-opacity: 0.025;
  --grid-line: rgba(100, 116, 139, 0.12);
  --text-primary: rgb(15 23 42);
  --text-secondary: rgb(51 65 85);
  --text-muted: rgb(100 116 139);
  --text-subtle: rgb(148 163 184);
  --text-inverse: rgb(248 250 252);
  --text-kicker: rgb(37 99 235);
  --border-subtle: rgb(226 232 240);
  --border-strong: rgb(203 213 225);
  --surface-card: rgb(255 255 255 / 0.92);
  --surface-panel: rgb(255 255 255 / 0.96);
  --surface-muted: rgb(248 250 252);
  --surface-input: rgb(255 255 255);
  --surface-table: rgb(255 255 255 / 0.95);
  --surface-table-head: rgb(248 250 252 / 0.98);
  --surface-table-hover: rgb(239 246 255);
  --surface-table-stripe: rgb(248 250 252 / 0.7);
  --shadow-card: 0 0 0 1px rgb(226 232 240 / 0.9), 0 8px 24px -8px rgb(15 23 42 / 0.08);
  --shadow-card-lg: 0 0 0 1px rgb(226 232 240), 0 20px 40px -12px rgb(15 23 42 / 0.12);
  --shadow-nav: 0 4px 24px -6px rgb(15 23 42 / 0.08);
  --nav-bg: rgb(255 255 255 / 0.82);
  --nav-border: rgb(226 232 240);
  --nav-pill: rgb(51 65 85 / 0.88);
  --nav-pill-hover-bg: rgb(241 245 249);
  --nav-pill-hover-text: rgb(15 23 42);
  --nav-pill-active-border: rgb(59 130 246 / 0.35);
  --nav-pill-active-bg: rgb(239 246 255);
  --nav-pill-active-text: rgb(29 78 216);
  --placeholder: rgb(148 163 184);
  --input-focus-ring: rgb(59 130 246 / 0.25);
  --brand-icon-bg-from: rgba(59, 130, 246, 0.15);
  --brand-icon-ring: rgb(226 232 240);
}

html.dark {
  color-scheme: dark;
  --theme-color: #060a12;
  --bg-page: #060a12;
  --bg-app-grad-1: rgba(37, 99, 235, 0.12);
  --bg-app-grad-2: rgba(59, 130, 246, 0.07);
  --bg-app-grad-3: rgba(99, 102, 241, 0.06);
  --bg-app-grad-4: rgba(15, 23, 42, 0.4);
  --bg-noise-opacity: 0.04;
  --grid-line: rgba(148, 163, 184, 0.028);
  --text-primary: rgb(248 250 252);
  --text-secondary: rgb(203 213 225);
  --text-muted: rgb(148 163 184);
  --text-subtle: rgb(100 116 139);
  --text-inverse: rgb(248 250 252);
  --text-kicker: rgb(96 165 250 / 0.88);
  --border-subtle: rgb(255 255 255 / 0.06);
  --border-strong: rgb(255 255 255 / 0.1);
  --surface-card: rgb(15 23 42 / 0.35);
  --surface-panel: rgb(15 23 42 / 0.6);
  --surface-muted: rgb(15 23 42 / 0.45);
  --surface-input: rgb(15 23 42 / 0.75);
  --surface-table: rgb(15 23 42 / 0.45);
  --surface-table-head: rgb(15 23 42 / 0.96);
  --surface-table-hover: rgb(59 130 246 / 0.06);
  --surface-table-stripe: rgb(255 255 255 / 0.02);
  --shadow-card: 0 0 0 1px rgba(148, 163, 184, 0.06), 0 8px 32px -8px rgba(0, 0, 0, 0.55);
  --shadow-card-lg: 0 0 0 1px rgba(148, 163, 184, 0.08), 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  --shadow-nav: 0 8px 32px -8px rgba(0, 0, 0, 0.5);
  --nav-bg: rgb(2 6 23 / 0.65);
  --nav-border: rgb(255 255 255 / 0.06);
  --nav-pill: rgb(226 232 240 / 0.88);
  --nav-pill-hover-bg: rgb(255 255 255 / 0.04);
  --nav-pill-hover-text: rgb(248 250 252);
  --nav-pill-active-border: rgb(96 165 250 / 0.35);
  --nav-pill-active-bg: rgb(59 130 246 / 0.12);
  --nav-pill-active-text: rgb(219 234 254);
  --placeholder: rgb(100 116 139);
  --input-focus-ring: rgb(59 130 246 / 0.22);
  --brand-icon-bg-from: rgba(59, 130, 246, 0.25);
  --brand-icon-ring: rgb(255 255 255 / 0.1);
}

body.theme-body {
  color: var(--text-secondary);
}

.bg-app {
  background-color: var(--bg-page);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, var(--bg-app-grad-1), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% -10%, var(--bg-app-grad-2), transparent 50%),
    radial-gradient(ellipse 45% 40% at 0% 100%, var(--bg-app-grad-3), transparent 50%),
    linear-gradient(180deg, var(--bg-app-grad-4) 0%, transparent 35%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

html:not(.dark) .bg-app {
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, var(--bg-app-grad-1), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% -10%, var(--bg-app-grad-2), transparent 50%),
    radial-gradient(ellipse 45% 40% at 0% 100%, var(--bg-app-grad-3), transparent 50%),
    linear-gradient(180deg, var(--bg-app-grad-4) 0%, transparent 35%);
}

.grid-overlay {
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 20%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 20%, black, transparent 72%);
}

.site-header {
  border-bottom: 1px solid var(--nav-border);
  background: var(--nav-bg);
  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(16px) saturate(150%);
}

.shadow-card {
  box-shadow: var(--shadow-card) !important;
}

.shadow-card-lg {
  box-shadow: var(--shadow-card-lg) !important;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nav-pill);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.nav-pill:hover {
  border-color: var(--border-strong);
  background: var(--nav-pill-hover-bg);
  color: var(--nav-pill-hover-text);
}

.nav-pill-active {
  border-color: var(--nav-pill-active-border);
  background: var(--nav-pill-active-bg);
  color: var(--nav-pill-active-text);
  box-shadow: 0 0 20px -6px rgb(59 130 246 / 0.35);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  color: var(--text-muted);
  transition: border-color .2s, background-color .2s, color .2s;
}

.theme-toggle:hover {
  border-color: var(--nav-pill-active-border);
  color: var(--text-primary);
}

.theme-toggle .icon-sun,
html.dark .theme-toggle .icon-moon {
  display: none;
}

html.dark .theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: block;
}

.metric-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.metric-card:hover {
  transform: translateY(-2px);
}

.auth-panel {
  border: 1px solid var(--border-subtle);
  background: var(--surface-panel);
  box-shadow: var(--shadow-card-lg);
}

.auth-glow {
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.12), transparent);
}

html:not(.dark) .auth-glow {
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.08), transparent);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color .2s, background-color .2s, color .2s;
}

.btn-secondary:hover {
  border-color: var(--nav-pill-active-border);
  background: var(--nav-pill-active-bg);
  color: var(--text-primary);
}

.text-theme-primary { color: var(--text-primary); }
.text-theme-secondary { color: var(--text-secondary); }
.text-theme-muted { color: var(--text-muted); }
.text-theme-subtle { color: var(--text-subtle); }

.ui-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border-width: 1px;
  padding: 0.2rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ui-badge-ok {
  border-color: rgb(34 197 94 / 0.35);
  background: rgb(34 197 94 / 0.1);
  color: rgb(21 128 61);
  box-shadow: 0 0 16px -4px rgb(34 197 94 / 0.2);
}

html.dark .ui-badge-ok {
  color: rgb(187 247 208);
  box-shadow: 0 0 16px -4px rgb(34 197 94 / 0.35);
}

.ui-badge-warn {
  border-color: rgb(251 191 36 / 0.4);
  background: rgb(251 191 36 / 0.12);
  color: rgb(180 83 9);
}

html.dark .ui-badge-warn {
  color: rgb(254 243 199);
  box-shadow: 0 0 14px -4px rgb(251 191 36 / 0.25);
}

.ui-badge-danger {
  border-color: rgb(248 113 113 / 0.45);
  background: rgb(239 68 68 / 0.12);
  color: rgb(185 28 28);
}

html.dark .ui-badge-danger {
  color: rgb(254 226 226);
  box-shadow: 0 0 16px -4px rgb(248 113 113 / 0.35);
}

.ui-table-wrap {
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface-table);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

table.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

table.ui-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-table-head);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

table.ui-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-secondary);
}

table.ui-table tbody tr:nth-child(even) {
  background: var(--surface-table-stripe);
}

table.ui-table tbody tr {
  transition: background .15s ease;
}

table.ui-table tbody tr:hover {
  background: var(--surface-table-hover);
}

.ui-input,
.ui-select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-input);
  padding: 0.55rem 0.85rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.ui-input:focus,
.ui-select:focus {
  border-color: rgb(96 165 250 / 0.45);
  box-shadow: 0 0 0 3px var(--input-focus-ring);
}

::placeholder {
  color: var(--placeholder);
}

.page-kicker {
  font-size: 0.6875rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-kicker);
}

.page-h1 {
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .page-h1 { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .page-h1 { font-size: 1.625rem; }
}

.page-lead {
  max-width: 42rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.page-lead--sm {
  max-width: 40rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .page-shell { gap: 2rem; }
}

.section-title {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.metric-value {
  margin-top: 0.5rem;
  font-size: 1.375rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .metric-value { font-size: 1.5rem; }
}

.metric-icon {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

.empty-state-icon {
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ── Shared surfaces & controls ── */

.panel-card {
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}

.filter-panel {
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}

.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.text-link {
  font-weight: 600;
  color: rgb(29 78 216);
  transition: color .15s ease;
}

.text-link:hover {
  color: rgb(37 99 235);
}

html.dark .text-link {
  color: rgb(147 197 253);
}

html.dark .text-link:hover {
  color: rgb(191 219 254);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color .15s, background-color .15s, color .15s;
}

.btn-pill:hover {
  border-color: var(--nav-pill-active-border);
  background: var(--nav-pill-active-bg);
  color: var(--text-primary);
}

.btn-pill-emerald:hover {
  border-color: rgb(52 211 153 / 0.45);
  background: rgb(209 250 229 / 0.85);
  color: rgb(6 95 70);
}

html.dark .btn-pill-emerald:hover {
  background: rgb(6 78 59 / 0.45);
  color: rgb(209 250 229);
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.625rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-strong);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color .15s, background-color .15s, color .15s;
}

.btn-reset:hover {
  border-color: var(--border-strong);
  background: var(--surface-muted);
  color: var(--text-primary);
}

.alert-success {
  border-radius: 0.75rem;
  border: 1px solid rgb(52 211 153 / 0.35);
  background: rgb(209 250 229 / 0.75);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(6 95 70);
}

html.dark .alert-success {
  border-color: rgb(52 211 153 / 0.3);
  background: rgb(6 78 59 / 0.35);
  color: rgb(209 250 229);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  color: var(--text-muted);
  transition: border-color .15s, background-color .15s, color .15s;
}

.icon-btn:hover {
  border-color: var(--nav-pill-active-border);
  background: var(--nav-pill-active-bg);
  color: var(--text-primary);
}

.icon-btn-danger {
  border-color: rgb(248 113 113 / 0.35);
  background: rgb(254 226 226 / 0.65);
  color: rgb(185 28 28);
}

html.dark .icon-btn-danger {
  border-color: rgb(248 113 113 / 0.35);
  background: rgb(127 29 29 / 0.35);
  color: rgb(254 202 202);
}

.icon-btn-danger:hover {
  border-color: rgb(248 113 113 / 0.5);
  background: rgb(254 226 226);
  color: rgb(153 27 27);
}

html.dark .icon-btn-danger:hover {
  background: rgb(127 29 29 / 0.55);
  color: rgb(254 226 226);
}

.empty-state {
  display: flex;
  min-height: 17.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  border: 1px dashed var(--border-strong);
  background: var(--surface-muted);
  padding: 4rem 1.5rem;
  text-align: center;
}

.empty-state-sm {
  min-height: 12.5rem;
  border-radius: 1rem;
  padding: 3rem 1.5rem;
}

.badge-severity {
  display: inline-block;
  border-radius: 0.5rem;
  border-width: 1px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-severity-high {
  border-color: rgb(248 113 113 / 0.45);
  background: rgb(254 226 226);
  color: rgb(153 27 27);
}

html.dark .badge-severity-high {
  border-color: rgb(248 113 113 / 0.4);
  background: rgb(127 29 29 / 0.45);
  color: rgb(254 202 202);
}

.badge-severity-medium {
  border-color: rgb(251 191 36 / 0.5);
  background: rgb(254 243 199);
  color: rgb(146 64 14);
}

html.dark .badge-severity-medium {
  border-color: rgb(251 191 36 / 0.4);
  background: rgb(120 53 15 / 0.45);
  color: rgb(253 230 138);
}

.badge-severity-low {
  border-color: rgb(148 163 184 / 0.55);
  background: rgb(241 245 249);
  color: rgb(51 65 85);
}

html.dark .badge-severity-low {
  border-color: rgb(148 163 184 / 0.35);
  background: rgb(51 65 85 / 0.55);
  color: rgb(226 232 240);
}

.hosts-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  transition: color .15s ease;
}

.hosts-sort-link:hover {
  color: var(--text-primary);
}

.hosts-sort-link.is-active {
  color: var(--text-kicker);
}

.hosts-sort-hint {
  opacity: 0.45;
}

/* ── Windows collector ── */

.collector-hero {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgb(239 246 255) 0%, rgb(248 250 252) 42%, rgb(241 245 249) 100%);
  padding: 1.5rem;
  box-shadow: var(--shadow-card-lg);
}

html.dark .collector-hero {
  border-color: rgb(255 255 255 / 0.07);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgb(10 16 39) 50%, rgb(2 6 23) 100%);
}

@media (min-width: 640px) {
  .collector-hero { padding: 2rem; }
}

@media (min-width: 1024px) {
  .collector-hero { padding: 2.5rem; }
}

.collector-hero-glow-1,
.collector-hero-glow-2 {
  pointer-events: none;
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
}

.collector-hero-glow-1 {
  top: -8rem;
  right: -5rem;
  height: 28rem;
  width: 28rem;
  background: rgb(59 130 246 / 0.14);
}

.collector-hero-glow-2 {
  bottom: -6rem;
  left: -5rem;
  height: 20rem;
  width: 20rem;
  background: rgb(99 102 241 / 0.1);
}

html.dark .collector-hero-glow-1 {
  background: rgb(59 130 246 / 0.12);
}

html.dark .collector-hero-glow-2 {
  background: rgb(79 70 229 / 0.1);
}

.collector-hero .page-h1,
.collector-hero .section-title {
  color: var(--text-primary);
}

.collector-hero .page-lead {
  color: var(--text-muted);
}

.collector-hero .hero-version {
  font-family: ui-monospace, monospace;
  font-weight: 600;
  color: rgb(29 78 216);
}

html.dark .collector-hero .hero-version {
  color: rgb(191 219 254);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-chip i,
.hero-chip svg {
  color: rgb(37 99 235);
}

html.dark .hero-chip i,
html.dark .hero-chip svg {
  color: rgb(96 165 250);
}

.collector-art-light {
  display: block;
  height: auto;
  width: 100%;
}

.collector-art-dark {
  display: none;
  height: auto;
  width: 100%;
}

html.dark .collector-art-light {
  display: none;
}

html.dark .collector-art-dark {
  display: block;
}

.collector-download {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgb(59 130 246 / 0.25);
  background: linear-gradient(135deg, rgb(239 246 255) 0%, rgb(255 255 255) 55%, rgb(248 250 252) 100%);
  padding: 1.5rem;
  box-shadow: 0 0 40px -12px rgb(59 130 246 / 0.2);
}

html.dark .collector-download {
  border-color: rgb(96 165 250 / 0.2);
  background: linear-gradient(135deg, rgb(37 99 235 / 0.15) 0%, rgba(15, 23, 42, 0.4) 55%, rgb(2 6 23) 100%);
  box-shadow: 0 0 40px -12px rgb(59 130 246 / 0.45);
}

@media (min-width: 640px) {
  .collector-download { padding: 2rem; }
}

@media (min-width: 1024px) {
  .collector-download { padding: 2.5rem; }
}

.collector-download .text-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.collector-download .mono-muted {
  font-family: ui-monospace, monospace;
  color: var(--text-secondary);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgb(52 211 153 / 0.35);
  background: rgb(209 250 229 / 0.75);
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(6 95 70);
}

html.dark .version-badge {
  border-color: rgb(52 211 153 / 0.25);
  background: rgb(6 78 59 / 0.35);
  color: rgb(209 250 229);
}

.step-card {
  border-radius: 1.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.step-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgb(29 78 216);
}

html.dark .step-label {
  color: rgb(96 165 250);
}

.step-card h3 {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.step-card p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.step-card .mono-muted {
  font-family: ui-monospace, monospace;
  color: var(--text-secondary);
}

.code-panel {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface-muted);
  box-shadow: inset 0 1px 2px rgb(15 23 42 / 0.04);
}

html.dark .code-panel {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.625rem 1rem;
}

.code-panel-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.code-panel-copy {
  border-radius: 0.5rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color .15s, background-color .15s, color .15s;
}

.code-panel-copy:hover {
  border-color: var(--nav-pill-active-border);
  background: var(--nav-pill-active-bg);
  color: var(--text-primary);
}

.code-panel pre {
  overflow-x: auto;
  padding: 1rem;
  font-family: ui-monospace, monospace;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.code-panel pre.code-url {
  color: rgb(29 78 216);
}

html.dark .code-panel pre.code-url {
  color: rgb(191 219 254);
}

.detail-dl dt {
  color: var(--text-muted);
}

.detail-dl dd {
  color: var(--text-primary);
}
