:root {
  --bg: #08141e;
  --panel: rgba(10, 23, 34, 0.7);
  --panel-strong: rgba(12, 28, 41, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(137, 181, 214, 0.14);
  --ink: #ecf4fb;
  --muted: #8aa3b7;
  --accent: #f1994a;
  --accent-strong: #ffcc8f;
  --success: #74d7a7;
  --danger: #ff887d;
  --shadow: 0 30px 60px rgba(1, 7, 13, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body {
  color-scheme: dark;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(241, 153, 74, 0.18), transparent 0 25%),
    radial-gradient(circle at 85% 15%, rgba(115, 213, 234, 0.18), transparent 0 20%),
    linear-gradient(135deg, #07111b 0%, #0b1c2a 45%, #09131d 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
input, select, textarea, button {
  font: inherit;
}
select,
option,
optgroup {
  background-color: #ffffff !important;
  color: #111111 !important;
}
select {
  color-scheme: dark !important;
}
.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
}
.ambient-a {
  width: 320px;
  height: 320px;
  top: -60px;
  right: -40px;
  background: rgba(241, 153, 74, 0.22);
}
.ambient-b {
  width: 360px;
  height: 360px;
  bottom: -120px;
  left: -80px;
  background: rgba(111, 195, 255, 0.18);
}
.shell {
  display: block;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.shell-authenticated {
  display: block;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  height: 100vh;
  overflow-y: auto;
  padding: 32px 24px;
  background: rgba(6, 15, 24, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 18px;
  border-right: 1px solid rgba(137, 181, 214, 0.1);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}
.brand-copy, .muted {
  color: var(--muted);
}
.sidebar .brand-copy, .sidebar .ghost-link, .sidebar .user-chip span {
  color: rgba(223, 238, 250, 0.72);
}
.nav {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.nav-group-title {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(223, 238, 250, 0.45);
  padding: 10px 4px 2px;
  margin-top: 4px;
}
.nav a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  margin: 0;
  min-height: 50px;
}
.nav a:hover {
  transform: translateX(2px);
  border-color: rgba(241, 153, 74, 0.18);
  background: rgba(255, 255, 255, 0.07);
}
.sidebar-footer {
  display: grid;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
}
.user-chip {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}
.content {
  margin-left: 280px;
  width: calc(100vw - 280px);
  max-width: none;
  min-height: 100vh;
  padding: 32px 34px 40px;
}
.content-auth {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  width: 100%;
}
.messages {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.message {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--panel-border);
}
.message.error { border-color: rgba(255, 136, 125, 0.3); }
.message.success { border-color: rgba(116, 215, 167, 0.3); }
.hero-card, .card, .form-card, .stat-card {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}
.hero-card {
  border-radius: 30px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(241, 153, 74, 0.18), transparent 65%);
  pointer-events: none;
}
.compact-hero {
  align-items: flex-start;
}
.auth-card {
  max-width: 980px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 800;
}
h1, h2, p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.94;
  max-width: 13ch;
  margin-bottom: 14px;
  letter-spacing: -0.05em;
}
h2 {
  font-size: 1.15rem;
  margin-bottom: 0;
}
.hero-actions, .chip-row, .form-actions {
  display: flex;
  column-gap: 16px;
  row-gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-actions {
  justify-content: flex-end;
}
.hero-actions > *,
.chip-row > *,
.form-actions > *,
.pagination > * {
  flex: 0 0 auto;
}
.hero-actions form,
.chip-row form,
.form-actions form,
.pagination form {
  margin: 0;
  display: inline-flex;
}
.pagination {
  display: flex;
  column-gap: 14px;
  row-gap: 14px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}
.user-quick-actions {
  margin-top: 18px;
  margin-bottom: 18px;
}
.hero-side {
  display: grid;
  gap: 16px;
  min-width: 260px;
}
.signal-card {
  position: relative;
  min-height: 160px;
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
}
.signal-card p {
  position: absolute;
  left: 20px;
  bottom: 16px;
  margin: 0;
  color: var(--accent-strong);
}
.signal-line {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(241,153,74,0.65), rgba(255,255,255,0.08));
}
.signal-line-a { top: 54px; transform: rotate(-8deg); }
.signal-line-b { top: 88px; transform: rotate(6deg); }
.signal-dot {
  position: absolute;
  right: 28px;
  top: 42px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 10px rgba(241,153,74,0.1);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 14px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.button-primary {
  background: linear-gradient(135deg, var(--accent), #ffb76b);
  color: #241208;
  font-weight: 700;
}
.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.08);
}
.destructive {
  background: linear-gradient(135deg, #eb655f, #ff9b7d);
  color: white;
}
.stats-grid, .panel-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat-card {
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(10, 23, 34, 0.82), rgba(10, 23, 34, 0.58));
}
.stat-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}
.stat-link,
.summary-link {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.stat-link:hover,
.summary-link:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 153, 74, 0.22);
  background: linear-gradient(180deg, rgba(16, 33, 47, 0.92), rgba(10, 23, 34, 0.72));
}
.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}
.stat-card strong {
  font-size: 2rem;
}
.panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.panel-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.single-column {
  grid-template-columns: 1fr;
}
.card, .form-card {
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(10, 23, 34, 0.78), rgba(8, 20, 30, 0.64));
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.card-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.card-head a {
  color: var(--accent-strong);
}
.list {
  display: grid;
  gap: 12px;
}
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.04);
}
.list-item.stacked {
  display: grid;
  justify-content: stretch;
}
.list-item strong,
.stat-card strong {
  letter-spacing: -0.03em;
}
.list-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.list-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.list-item span, .result-box span, .field small, .empty {
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-strong);
  font-size: 0.85rem;
}
.item-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.mini-link {
  font-size: 0.87rem;
  color: var(--accent-strong);
}
.severity-high, .severity-critical { background: rgba(158, 55, 41, 0.12); color: var(--danger); }
.severity-medium { background: rgba(180, 95, 31, 0.12); color: var(--accent-strong); }
.severity-info, .severity-low { background: rgba(45, 122, 86, 0.1); color: var(--success); }
.badge-watchdog {
  background: rgba(90, 146, 255, 0.16);
  color: #b8d7ff;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}
.form-card {
  display: grid;
  gap: 16px;
}
.compact-form {
  margin-bottom: 18px;
}
.compact-form .field span {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.compact-form .field input,
.compact-form .field select,
.compact-form .field textarea {
  padding: 10px 12px;
  min-height: 42px;
}
.wide-form {
  max-width: 760px;
}
.field {
  display: grid;
  gap: 8px;
}
.field span {
  font-weight: 700;
}
.stack-form {
  display: grid;
  gap: 14px;
}
.stack-form label {
  display: grid;
  gap: 8px;
}
.mono-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  word-break: break-all;
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffd59d;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0d1b28;
  color: var(--ink);
}
.field select {
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--accent-strong) 50%) calc(100% - 22px) calc(50% - 3px) / 8px 8px no-repeat,
    linear-gradient(135deg, var(--accent-strong) 50%, transparent 50%) calc(100% - 16px) calc(50% - 3px) / 8px 8px no-repeat,
    #0d1b28;
  padding-right: 44px;
  background-color: #0d1b28 !important;
  color: #ecf4fb !important;
  border-color: rgba(137, 181, 214, 0.16);
}
.field select option,
.field select optgroup {
  background: #ffffff !important;
  color: #111111 !important;
}
.field select option:checked,
.field select option:hover,
.field select option:focus {
  background: #e9eef3 !important;
  color: #111111 !important;
}
.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(241, 153, 74, 0.42);
  box-shadow: 0 0 0 3px rgba(241, 153, 74, 0.12);
}
.field input[type="file"] {
  padding: 12px;
}
.error {
  color: var(--danger) !important;
}
.result-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.finding-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.narrow-card {
  max-width: 860px;
}
.bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 12px;
  align-items: flex-end;
}
.bulk-toolbar .field {
  flex: 0 1 180px;
  min-width: 150px;
  max-width: 220px;
}
.bulk-toolbar .compact-field-search {
  flex: 1 1 260px;
  max-width: 360px;
}
.bulk-toolbar .button {
  flex: 0 0 auto;
  min-height: 42px;
}
.compact-field {
  min-width: 0;
}
.compact-form {
  margin-bottom: 18px;
}
.analytics-stats {
  margin-bottom: 18px;
}
.analytics-grid {
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 12px;
  align-items: flex-end;
}
.analytics-grid-wide {
  display: flex;
  flex-wrap: wrap;
}
.analytics-grid .field {
  flex: 0 1 165px;
  min-width: 138px;
  max-width: 210px;
}
.analytics-grid .compact-field-search {
  flex: 1 1 240px;
  max-width: 320px;
}
.analytics-grid .compact-field-sort {
  max-width: 240px;
}
.filter-actions-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 12px;
  row-gap: 12px;
  flex: 1 1 100%;
  margin-top: 2px;
}
.dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dashboard-story-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.chart-card {
  border-radius: 28px;
  padding: 24px;
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(14, 31, 44, 0.92), rgba(9, 22, 34, 0.82)),
    radial-gradient(circle at top right, rgba(241, 153, 74, 0.10), transparent 35%);
}
.chart-card-wide {
  grid-column: span 7;
}
.dashboard-story-grid > .chart-card:not(.chart-card-wide) {
  grid-column: span 5;
}
.activity-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin-top: 22px;
  min-height: 220px;
}
.activity-day {
  display: grid;
  gap: 8px;
  justify-items: center;
}
.activity-day strong {
  font-size: 0.85rem;
}
.activity-day span {
  font-size: 0.78rem;
  color: var(--muted);
}
.activity-bars {
  width: 100%;
  min-height: 150px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}
.activity-bar {
  width: 18px;
  min-height: 8px;
  border-radius: 999px 999px 6px 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.activity-bar-scan {
  background: linear-gradient(180deg, #ffcb93, #f1994a);
}
.activity-bar-import {
  background: linear-gradient(180deg, #8fe5c1, #52b98a);
}
.donut-wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}
.donut-ring {
  --progress: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(8, 20, 30, 1) 0 56px, transparent 57px),
    conic-gradient(from -90deg, #f1994a 0 calc(var(--progress) * 1%), rgba(255,255,255,0.08) 0 100%);
  display: grid;
  place-items: center;
}
.donut-core {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(7, 17, 27, 0.95);
  border: 1px solid rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  text-align: center;
}
.donut-core strong {
  font-size: 1.5rem;
}
.donut-core span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}
.donut-stats {
  display: grid;
  gap: 12px;
}
.donut-stats div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
}
.donut-stats span {
  color: var(--muted);
}
.metric-bars {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(110px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.04);
}
.metric-copy {
  display: grid;
  gap: 4px;
}
.metric-copy span,
.metric-value {
  color: var(--muted);
  font-size: 0.85rem;
}
.metric-line {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.metric-fill {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f98ff, #9cbcff);
}
.metric-fill.severity-critical,
.queue-pill.severity-critical i {
  background: linear-gradient(90deg, #ff887d, #ffb19d);
}
.metric-fill.severity-high,
.queue-pill.severity-high i {
  background: linear-gradient(90deg, #ff9f83, #ffc09a);
}
.metric-fill.severity-medium,
.queue-pill.severity-medium i {
  background: linear-gradient(90deg, #f1994a, #ffd28f);
}
.metric-fill.severity-low,
.metric-fill.severity-info,
.queue-pill.severity-info i {
  background: linear-gradient(90deg, #59c38f, #92ebbd);
}
.queue-chart {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.queue-pill {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}
.queue-pill span,
.queue-pill strong {
  position: relative;
  z-index: 1;
}
.queue-pill i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(111, 152, 255, 0.30), rgba(111, 152, 255, 0.08));
}
.dashboard-panels {
  align-items: start;
}
.summary-list {
  display: grid;
  gap: 12px;
}
.summary-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.04);
}
.summary-static {
  cursor: default;
  transform: none !important;
}
.summary-static:hover {
  border-color: rgba(255,255,255,0.04);
  background: rgba(255, 255, 255, 0.04);
}
.summary-link strong {
  display: block;
}
.summary-link span {
  color: var(--muted);
}
.summary-link .badge {
  color: var(--accent-strong);
}
.analytics-presets {
  margin-bottom: 20px;
  column-gap: 14px;
  row-gap: 14px;
}
.finding-title {
  font-weight: 700;
  line-height: 1.35;
}
.bulk-actions-row {
  display: flex;
  column-gap: 14px;
  row-gap: 14px;
  flex-wrap: wrap;
}
.split-control-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.25fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.split-control-card {
  margin-bottom: 0;
  height: 100%;
}
.bulk-list {
  display: grid;
  gap: 10px;
}
.template-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bulk-row {
  display: grid;
  grid-template-columns: 34px 1fr 1.4fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
}
.bulk-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.progress-wrap {
  display: grid;
  gap: 8px;
}
.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffcf8f);
}
.bulk-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.bulk-name {
  font-weight: 700;
}
.bulk-url {
  color: var(--muted);
  word-break: break-word;
}
.table-wrap {
  overflow-x: auto;
}
.table-card {
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(10, 23, 34, 0.78), rgba(8, 20, 30, 0.64));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}
.table-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}
.data-table th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.table-link {
  color: var(--accent-strong);
  font-weight: 700;
}
.table-sort {
  color: var(--accent-strong);
}
.table-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
  word-break: break-word;
}
.table-empty {
  color: var(--muted);
}
.status-2xx {
  background: rgba(45, 122, 86, 0.12);
  color: var(--success);
}
.status-3xx {
  background: rgba(72, 134, 196, 0.14);
  color: #9dd1ff;
}
.status-4xx {
  background: rgba(180, 95, 31, 0.14);
  color: var(--accent-strong);
}
.status-5xx {
  background: rgba(158, 55, 41, 0.14);
  color: var(--danger);
}
.analytics-table-card {
  grid-column: 1 / -1;
}
@media (max-width: 760px) {
  .shell,
  .shell-authenticated { display: block; }
  .sidebar {
    position: static;
    left: auto;
    bottom: auto;
    width: auto;
    height: auto;
    overflow-y: visible;
    gap: 24px;
  }
  .content { margin-left: 0; }
  .content { width: 100%; }
  .stats-grid, .panel-grid, .panel-grid-2 { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-story-grid { grid-template-columns: 1fr; }
  .chart-card-wide,
  .dashboard-story-grid > .chart-card:not(.chart-card-wide) { grid-column: auto; }
  .activity-chart { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donut-wrap { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .split-control-row { grid-template-columns: 1fr; }
  .bulk-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .analytics-grid,
  .analytics-grid-wide {
    flex-direction: column;
    align-items: stretch;
  }
  .bulk-toolbar .field,
  .bulk-toolbar .button,
  .analytics-grid .field,
  .filter-actions-inline {
    width: 100%;
    max-width: none;
  }
  .bulk-row { grid-template-columns: 1fr; }
  .hero-card, .section-head { flex-direction: column; align-items: flex-start; }
  .content { padding: 20px; }
}

/* ── Active nav ── */
.nav a.nav-active {
  background: rgba(241, 153, 74, 0.12);
  border-color: rgba(241, 153, 74, 0.28);
  color: var(--accent-strong);
  font-weight: 700;
}
.nav a.nav-active::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  flex-shrink: 0;
}

/* ── Sidebar live badge ── */
.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(241,153,74,0.22);
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0 5px;
  margin-left: auto;
}
.sidebar-badge.badge-running {
  background: rgba(116,215,167,0.18);
  color: var(--success);
  animation: pulse-badge 2s infinite;
}
.sidebar-badge.badge-failed {
  background: rgba(255,136,125,0.18);
  color: var(--danger);
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ── Live status bar ── */
.status-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 20px;
  border-radius: 20px;
  background: rgba(10,23,34,0.7);
  border: 1px solid rgba(137,181,214,0.12);
  margin-bottom: 22px;
  backdrop-filter: blur(14px);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
}
.status-ok {
  color: var(--success);
}
.status-warn {
  color: var(--accent-strong);
}
.status-danger {
  color: var(--danger);
}
.status-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pill-running .status-pill-dot { background: var(--success); animation: pulse-badge 1.5s infinite; }
.pill-queued  .status-pill-dot { background: var(--accent); }
.pill-failed  .status-pill-dot { background: var(--danger); }
.pill-ok      .status-pill-dot { background: var(--success); }
.pill-sites   .status-pill-dot { background: #9dd1ff; }
.pill-import  .status-pill-dot { background: #c9b8ff; }
.status-bar-label {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Stat cards v2 ── */
.stat-card-v2 {
  border-radius: 22px;
  padding: 20px 22px;
  display: grid;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease;
}
.stat-card-v2:hover { transform: translateY(-2px); border-color: rgba(241,153,74,0.24); }
.stat-card-v2 .sc-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 600;
}
.stat-card-v2 .sc-value {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-card-v2 .sc-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}
.stat-card-v2 .sc-accent { color: var(--accent-strong); }
.stat-card-v2 .sc-success { color: var(--success); }
.stat-card-v2 .sc-danger  { color: var(--danger); }
.stat-card-v2 .sc-blue    { color: #9dd1ff; }
.stat-card-v2 .sc-purple  { color: #c9b8ff; }
.sc-glow {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  right: -30px; bottom: -40px;
  filter: blur(50px);
  opacity: 0.35;
  pointer-events: none;
}
.sc-glow-orange { background: rgba(241,153,74,0.5); }
.sc-glow-green  { background: rgba(116,215,167,0.5); }
.sc-glow-red    { background: rgba(255,136,125,0.5); }
.sc-glow-blue   { background: rgba(157,209,255,0.5); }
.sc-glow-purple { background: rgba(201,184,255,0.5); }

/* ── Stats grid v2 ── */
.stats-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

/* ── Import progress ── */
.import-progress-card {
  border-radius: 22px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.import-bar-wrap {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.import-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.import-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9b8ff, #9dd1ff);
  transition: width 0.6s ease;
}
.import-bar-fill.fill-orange {
  background: linear-gradient(90deg, var(--accent), #ffcf8f);
}
.import-stats-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.import-stat {
  display: grid;
  gap: 2px;
}
.import-stat .is-val {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.import-stat .is-lbl {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── Filter pills ── */
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
.active-filter-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin-right: 2px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(241,153,74,0.12);
  border: 1px solid rgba(241,153,74,0.22);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 140ms;
}
.filter-pill:hover {
  background: rgba(241,153,74,0.2);
}
.filter-pill-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(241,153,74,0.25);
  font-size: 0.65rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Inline progress in table ── */
.scan-progress-bar {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}
.scan-bar-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.scan-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffcf8f);
}
.scan-bar-fill.fill-success { background: linear-gradient(90deg, var(--success), #a8edcb); }
.scan-bar-fill.fill-danger  { background: var(--danger); }

/* ── Time ago ── */
.time-ago { color: var(--muted); font-size: 0.82rem; }

/* ── Queue mini chart ── */
.queue-row-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  color: inherit;
  transition: background 140ms, border-color 140ms;
  margin-bottom: 8px;
}
.queue-row-v2:last-child { margin-bottom: 0; }
.queue-row-v2:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.qr-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.qr-label { font-weight: 600; font-size: 0.9rem; flex: 1; }
.qr-count { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.03em; margin-left: auto; }
.qr-bar-wrap { flex: 1; max-width: 80px; }
.qr-bar-track { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.qr-bar-fill  { height: 100%; border-radius: 999px; }

/* ── Dashboard grid v2 ── */
.dash-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
  align-items: start;
}
.dash-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
  align-items: start;
}
@media (max-width: 900px) {
  .dash-two-col, .dash-three-col { grid-template-columns: 1fr; }
  .stats-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Section title ── */
.section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
  margin: 22px 0 12px;
}

/* ── User chip v2 ── */
.user-chip-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffb76b);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; color: #241208;
  flex-shrink: 0;
}
.user-chip-v2 .uc-name { font-weight: 700; font-size: 0.9rem; }
.user-chip-v2 .uc-role { font-size: 0.75rem; color: var(--muted); }
.user-chip-v2 .uc-logout { margin-left: auto; color: var(--muted); font-size: 0.8rem; }
.user-chip-v2 .uc-logout:hover { color: var(--ink); }

/* ── Severity badge colors in table ── */
.badge-critical { background: rgba(158,55,41,0.18); color: #ff887d; border: 1px solid rgba(255,136,125,0.2); }
.badge-high     { background: rgba(200,80,50,0.12); color: #ffb09a; border: 1px solid rgba(255,176,154,0.2); }
.badge-medium   { background: rgba(180,95,31,0.12); color: var(--accent-strong); border: 1px solid rgba(241,153,74,0.2); }
.badge-low      { background: rgba(45,122,86,0.1);  color: var(--success); border: 1px solid rgba(116,215,167,0.2); }
.badge-info     { background: rgba(45,90,140,0.12); color: #9dd1ff; border: 1px solid rgba(157,209,255,0.2); }

/* ── Status chips for scan jobs ── */
.status-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
}
.chip-running  { background: rgba(116,215,167,0.12); color: var(--success); }
.chip-queued   { background: rgba(241,153,74,0.1);  color: var(--accent-strong); }
.chip-succeeded{ background: rgba(45,90,140,0.1);   color: #9dd1ff; }
.chip-failed   { background: rgba(158,55,41,0.12);  color: var(--danger); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.chip-running .chip-dot { animation: pulse-badge 1.5s infinite; }

/* ── Compact table ── */
.compact-table th,
.compact-table td {
  padding: 6px 10px;
  font-size: 0.82rem;
}
.compact-table .table-sub { font-size: 0.75rem; }

/* ── Compact hero ── */
.compact-hero {
  padding: 18px 22px;
  margin-bottom: 16px;
}
.compact-hero h1 { font-size: 1.4rem; margin: 4px 0 6px; }

/* ── site-detail two-col tables ── */
.site-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
  align-items: start;
}
@media (max-width: 1100px) {
  .site-tables-grid { grid-template-columns: 1fr; }
}

/* ── Compact filter form ── */
.compact-form { padding: 12px 16px; margin-bottom: 16px; }
.compact-form .form-actions { margin-top: 10px; }

/* ── Latency color chips ── */
.latency-ok   { color: var(--success); }
.latency-warn { color: var(--accent-strong); }
.latency-bad  { color: var(--danger); }

/* ── Filter grid wide ── */
.filter-grid-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.filter-grid-compact .field { min-width: 150px; flex: 1; }

/* ── Quick links horizontal grid ── */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.quick-links-grid .summary-link {
  border-radius: 14px;
  padding: 10px 14px;
}
@media (max-width: 900px) {
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
}
