/* ============================================================
   IP HUNTER · DESIGN TOKENS
   ============================================================ */

:root {
  /* Type */
  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", monospace;

  /* Brand accents */
  --accent: oklch(0.58 0.18 250);
  --accent-hover: oklch(0.52 0.19 250);
  --accent-soft: oklch(0.94 0.04 250);
  --accent-glow: oklch(0.58 0.18 250 / 0.18);
  --cyan: oklch(0.72 0.12 220);
  --cyan-soft: oklch(0.95 0.04 220);

  /* Status */
  --st-idle: oklch(0.65 0.01 260);
  --st-running: oklch(0.62 0.18 250);
  --st-cooldown: oklch(0.72 0.16 60);
  --st-found: oklch(0.62 0.16 155);
  --st-error: oklch(0.62 0.20 25);
  --st-stopped: oklch(0.55 0.02 260);

  --st-running-bg: oklch(0.95 0.04 250);
  --st-cooldown-bg: oklch(0.96 0.04 75);
  --st-found-bg: oklch(0.95 0.05 155);
  --st-error-bg: oklch(0.96 0.04 25);
  --st-idle-bg: oklch(0.96 0.005 260);

  /* Motion */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 620ms;
}

/* LIGHT */
:root, .theme-light {
  --bg: oklch(0.985 0.003 250);
  --bg-soft: oklch(0.97 0.004 250);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.985 0.003 250);
  --surface-elev: oklch(1 0 0);
  --border: oklch(0.92 0.005 250);
  --border-strong: oklch(0.86 0.006 250);
  --text: oklch(0.22 0.012 260);
  --text-muted: oklch(0.50 0.012 260);
  --text-subtle: oklch(0.62 0.010 260);
  --text-faint: oklch(0.75 0.008 260);

  --shadow-xs: 0 1px 2px oklch(0.4 0.02 260 / 0.04);
  --shadow-sm: 0 1px 2px oklch(0.4 0.02 260 / 0.04), 0 2px 6px oklch(0.4 0.02 260 / 0.04);
  --shadow-md: 0 4px 16px -4px oklch(0.4 0.02 260 / 0.08), 0 2px 6px oklch(0.4 0.02 260 / 0.04);
  --shadow-lg: 0 24px 48px -16px oklch(0.4 0.02 260 / 0.12), 0 4px 12px oklch(0.4 0.02 260 / 0.06);
  --shadow-glow: 0 0 0 4px var(--accent-glow);

  --log-bg: oklch(0.18 0.014 260);
  --log-text: oklch(0.86 0.005 250);
  --log-line: oklch(0.26 0.014 260);
}

/* DARK */
.theme-dark {
  --bg: oklch(0.16 0.012 260);
  --bg-soft: oklch(0.19 0.013 260);
  --surface: oklch(0.21 0.014 260);
  --surface-2: oklch(0.23 0.014 260);
  --surface-elev: oklch(0.24 0.015 260);
  --border: oklch(0.30 0.014 260);
  --border-strong: oklch(0.36 0.014 260);
  --text: oklch(0.96 0.004 250);
  --text-muted: oklch(0.74 0.010 260);
  --text-subtle: oklch(0.62 0.010 260);
  --text-faint: oklch(0.50 0.010 260);

  --accent: oklch(0.72 0.16 250);
  --accent-hover: oklch(0.78 0.16 250);
  --accent-soft: oklch(0.32 0.10 250);
  --accent-glow: oklch(0.72 0.18 250 / 0.30);
  --cyan: oklch(0.78 0.13 220);
  --cyan-soft: oklch(0.32 0.08 220);

  --st-running: oklch(0.72 0.16 250);
  --st-cooldown: oklch(0.78 0.14 70);
  --st-found: oklch(0.72 0.16 155);
  --st-error: oklch(0.72 0.18 25);
  --st-idle: oklch(0.62 0.01 260);
  --st-stopped: oklch(0.55 0.01 260);

  --st-running-bg: oklch(0.30 0.08 250);
  --st-cooldown-bg: oklch(0.30 0.06 70);
  --st-found-bg: oklch(0.30 0.07 155);
  --st-error-bg: oklch(0.30 0.08 25);
  --st-idle-bg: oklch(0.26 0.012 260);

  --shadow-xs: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3), 0 2px 6px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 16px -4px oklch(0 0 0 / 0.4), 0 2px 6px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 24px 48px -16px oklch(0 0 0 / 0.5), 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-glow: 0 0 0 4px var(--accent-glow);

  --log-bg: oklch(0.13 0.012 260);
  --log-text: oklch(0.88 0.005 250);
  --log-line: oklch(0.22 0.012 260);
}

/* ============================================================
   BASE
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  transition: background var(--dur-med) var(--ease-soft), color var(--dur-med) var(--ease-soft);
}

button, input, textarea, select { font-family: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
input, textarea { outline: none; }
.mono { font-family: var(--font-mono); font-feature-settings: "zero", "ss01"; letter-spacing: -0.01em; }

::selection { background: var(--accent-soft); color: var(--accent); }

/* ============================================================
   ATOMS
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition:
    background-color var(--dur-med) var(--ease-soft),
    border-color var(--dur-med) var(--ease-soft),
    box-shadow var(--dur-med) var(--ease-soft),
    transform var(--dur-med) var(--ease-soft);
}
.card-pad { padding: 18px; }
.card-pad-lg { padding: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; height: 34px;
  border-radius: 9px;
  font-size: 13px; font-weight: 500;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  transition:
    background-color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft);
  white-space: nowrap;
}
.btn:hover { background: var(--surface-elev); border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: 90ms; }

.btn-primary {
  background: var(--accent); color: white; border-color: transparent;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.04), 0 0 0 1px oklch(0 0 0 / 0.04) inset;
}
.btn-primary:hover { background: var(--accent-hover); border-color: transparent; }

.btn-danger { color: var(--st-error); border-color: var(--border); }
.btn-danger:hover { background: var(--st-error-bg); border-color: var(--st-error); color: var(--st-error); }

.btn-warn { color: var(--st-cooldown); }
.btn-warn:hover { background: var(--st-cooldown-bg); border-color: var(--st-cooldown); color: var(--st-cooldown); }

.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }

.btn-lg { height: 40px; padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn-sm { height: 28px; padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn-icon { width: 34px; padding: 0; }

.kbd {
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 6px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Status dot */
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.dot-idle    { background: var(--st-idle); }
.dot-running { background: var(--st-running); box-shadow: 0 0 0 3px oklch(from var(--st-running) l c h / 0.18); }
.dot-cooldown{ background: var(--st-cooldown); box-shadow: 0 0 0 3px oklch(from var(--st-cooldown) l c h / 0.20); }
.dot-found   { background: var(--st-found); box-shadow: 0 0 0 3px oklch(from var(--st-found) l c h / 0.22); }
.dot-error   { background: var(--st-error); box-shadow: 0 0 0 3px oklch(from var(--st-error) l c h / 0.20); }
.dot-stopped { background: var(--st-stopped); }

.dot-pulse-running { animation: pulse 2.4s var(--ease-soft) infinite; }
.dot-pulse-cooldown { animation: pulse 3s var(--ease-soft) infinite; }
.dot-pulse-found { animation: pulseGlow 3s var(--ease-soft) infinite; }
.dot-pulse-error { animation: pulseError 2s var(--ease-soft) infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(from currentColor l c h / 0.0); }
  50%      { box-shadow: 0 0 0 5px oklch(from currentColor l c h / 0.20); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0px var(--st-found); }
  50%      { box-shadow: 0 0 0 6px oklch(from var(--st-found) l c h / 0.0); }
}
@keyframes pulseError {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* Status badge / pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.pill-running { background: var(--st-running-bg); color: var(--st-running); border-color: transparent; }
.pill-cooldown{ background: var(--st-cooldown-bg); color: var(--st-cooldown); border-color: transparent; }
.pill-found   { background: var(--st-found-bg); color: var(--st-found); border-color: transparent; }
.pill-error   { background: var(--st-error-bg); color: var(--st-error); border-color: transparent; }
.pill-idle    { background: var(--st-idle-bg); color: var(--text-muted); border-color: transparent; }

/* Inputs */
.field-label {
  display: block;
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
  line-height: 1.4;
}
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text);
  transition:
    background-color var(--dur-med) var(--ease-soft),
    border-color var(--dur-med) var(--ease-soft),
    box-shadow var(--dur-med) var(--ease-soft),
    color var(--dur-med) var(--ease-soft);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.attention-field {
  border-color: var(--st-error) !important;
  box-shadow: 0 0 0 3px oklch(from var(--st-error) l c h / .18) !important;
}
.input.mono, .textarea.mono { font-size: 12.5px; }
.textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.input-group { position: relative; }
.input-group .input { padding-right: 42px; }
.input-group .input-action {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
  color: var(--text-muted);
  transition: background-color var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}
.input-group .input-action:hover { background: var(--surface-2); color: var(--text); }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12.5px; font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft);
  user-select: none;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.chip.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: oklch(from var(--accent) l c h / 0.4);
}
.chip-pill { border-radius: 999px; }

/* Toggle */
.toggle {
  position: relative;
  width: 34px; height: 20px;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: background-color var(--dur-med) var(--ease-soft);
  flex-shrink: 0;
}
.toggle::after {
  content: ""; position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.2);
  transition: left var(--dur-med) var(--ease-spring), box-shadow var(--dur-med) var(--ease-soft);
}
.toggle.is-on { background: var(--accent); }
.toggle.is-on::after { left: 16px; }

/* Section header */
.section-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 13px; font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.section-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

.divider { height: 1px; background: var(--border); margin: 14px 0; }
.divider-vert { width: 1px; background: var(--border); align-self: stretch; }

/* Scrollbar */
.scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll::-webkit-scrollbar-track { background: transparent; }
.scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.scroll::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes radarPing {
  0% { transform: scale(0.6); opacity: 0; }
  12% { opacity: 0.55; }
  100% { transform: scale(2.35); opacity: 0; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes workspaceEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroDataIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.fade-in { animation: fadeIn var(--dur-med) var(--ease-soft) both; }
.slide-up { animation: slideUp 0.55s var(--ease-spring) both; }

/* Progress bar */
.progress {
  width: 100%; height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill {
  height: 100%;
  min-width: 8px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 999px;
  transition: width 0.9s var(--ease-spring), background-color var(--dur-med) var(--ease-soft);
  box-shadow: 0 0 8px oklch(from var(--accent) l c h / 0.5);
}
.progress-cooldown .progress-fill { background: var(--st-cooldown); }

/* ============================================================
   LAYOUT
   ============================================================ */

.app {
  display: grid;
  grid-template-columns: 296px 1fr;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}

.main {
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.topbar {
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: oklch(from var(--bg) l c h / 0.7);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.content {
  padding: 24px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 20px;
}

.login-gate {
  position: fixed; inset: 0;
  background: oklch(from var(--bg) l c h / 0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 24px;
  animation: gateFadeIn var(--dur-med) var(--ease-soft);
}
.login-gate-card {
  width: 100%; max-width: 380px;
  padding: 32px 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg), 0 30px 80px -20px rgba(0,0,0,0.45);
  animation: gatePop 0.42s var(--ease-spring);
}
@keyframes gateFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gatePop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.field-helper-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft);
  max-width: 100%;
}
.field-helper-link:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}
.field-helper-link svg {
  flex-shrink: 0;
  opacity: 0.8;
}
.field-helper-link:hover svg { opacity: 1; }

.quicklink {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition:
    background-color var(--dur-med) var(--ease-soft),
    border-color var(--dur-med) var(--ease-soft),
    transform var(--dur-med) var(--ease-soft);
}
.quicklink:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}
@media (max-width: 700px) {
  .quicklinks-grid { grid-template-columns: 1fr !important; }
}

/* FoundHero overrides — keep readable text + pills regardless of theme */
.found-hero .pill { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.found-hero .pill-found { background: var(--st-found); color: white; border-color: transparent; }
.found-hero .pill-found .dot { background: white !important; box-shadow: 0 0 0 3px rgba(255,255,255,0.3) !important; }
.found-hero .btn { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.found-hero .btn:hover { background: var(--surface-elev); }
.found-hero .btn-primary { background: var(--accent); color: white; border-color: transparent; }
.found-hero .btn-primary:hover { background: var(--accent-hover); }

/* Tablet/narrow-desktop topbar: hide run-counts so title + active hunter fit */
@media (max-width: 1100px) and (min-width: 901px) {
  .topbar-runcounts { display: none !important; }
}

/* Mobile */
.mobile-tab-select {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 10px 14px;
  position: sticky; top: 60px; z-index: 19;
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-tab-select { display: block; }
  .topbar { padding: 0 14px; gap: 8px; }
  .content { padding: 14px; gap: 14px; }
  .hide-mobile { display: none !important; }
}

@media (min-width: 901px) {
  .show-mobile { display: none !important; }
}

/* ============================================================
   SELECTEL REAL APP ADAPTERS
   ============================================================ */

.hidden { display: none !important; }

.brand-lock {
  width: 76px; height: 76px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 18px auto 4px;
  background: transparent;
  color: white; font-size: 24px;
}
.sidebar-brand {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  text-align: center;
}
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px;
  flex-shrink: 0;
}
.brand-logo,
.provider-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-logo {
  width: 130%;
  height: 130%;
  max-width: none;
}
.brand-title { font-weight: 700; font-size: 15px; letter-spacing: 0; text-transform: uppercase; }
.provider-header-static {
  margin: 12px 10px 4px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.provider-glyph {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: white; font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.provider-title { font-weight: 600; font-size: 13px; }
.provider-sub { font-size: 10.5px; color: var(--text-faint); }
.hunter-list { padding: 6px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.provider-body {
  max-height: 420px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.42s cubic-bezier(.2, .8, .2, 1),
    opacity 0.28s ease,
    transform 0.34s cubic-bezier(.2, .8, .2, 1),
    padding-top 0.34s cubic-bezier(.2, .8, .2, 1),
    padding-bottom 0.34s cubic-bezier(.2, .8, .2, 1);
  will-change: max-height, opacity, transform;
}
.provider-group.is-provider-collapsed .provider-body {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  padding-top: 0;
  padding-bottom: 0;
}
.hunter-tab {
  width: 100%; text-align: left; padding: 11px 12px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  display: flex; align-items: center; gap: 10px;
  transition:
    background-color var(--dur-med) var(--ease-soft),
    border-color var(--dur-med) var(--ease-soft),
    box-shadow var(--dur-med) var(--ease-soft),
    transform var(--dur-med) var(--ease-soft);
  position: relative;
}
.hunter-tab:hover { background: var(--surface-2); transform: translateX(2px); }
.hunter-tab.active { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-xs); }
.hunter-tab.active::before {
  content: ""; position: absolute; left: -6px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 2px; background: var(--accent);
}
.hunter-tab-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hunter-tab-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 13px; }
.hunter-tab-top .mono { font-size: 10.5px; color: var(--text-faint); font-weight: 400; }
.hunter-tab-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-subtle); }
.hunter-tab-ip { font-size: 10.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot { padding: 12px 14px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-faint); line-height: 1.5; }
.topbar-sub { margin-top: 1px; color: var(--text-faint); font-size: 11.5px; }
.workspace-panel { display: none; }
.workspace-panel.active {
  display: flex;
  animation: workspaceEnter 0.32s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-card {
  position: relative; overflow: hidden;
  scroll-margin-top: 76px;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--surface) 0%, oklch(0.25 0.045 250) 100%);
  isolation: isolate;
  animation: slideUp 0.55s var(--ease-spring) both;
  transition:
    border-color 0.72s cubic-bezier(.2, .8, .2, 1),
    box-shadow 0.72s cubic-bezier(.2, .8, .2, 1);
}
.hero-card.is-running {
  border-color: oklch(0.58 0.022 245);
  box-shadow: var(--shadow-sm);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 104% 8%, oklch(0.76 0.055 235 / 0.34) 0%, transparent 38%),
    linear-gradient(135deg, oklch(0.38 0.014 255) 0%, oklch(0.52 0.018 250) 50%, oklch(0.82 0.035 240) 100%);
  opacity: 0;
  transition: opacity 0.78s cubic-bezier(.2, .8, .2, 1);
  transform: translateZ(0);
  will-change: opacity;
  z-index: 0;
}
.hero-card.is-running::before {
  opacity: 1;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 92% 14%, oklch(0.82 0.045 235 / 0.16) 0%, transparent 45%);
  opacity: .62;
  transition: opacity 0.72s cubic-bezier(.2, .8, .2, 1);
  transform: translateZ(0);
  will-change: opacity;
  z-index: 0;
}
.hero-card.is-running::after {
  opacity: .28;
}
.hero-main, .big-status, .metrics-row { position: relative; z-index: 1; }
.hero-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.hero-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.hero-title-row h1 { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -0.02em; }
.hero-tag { font-size: 11px; color: var(--text-muted); padding: 3px 7px; border: 1px solid var(--border-strong); border-radius: 6px; background: oklch(0.17 0.012 260 / 0.72); }
.hero-sub { font-size: 12px; color: var(--text-subtle); }
.hero-actions {
  position: relative;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 176px;
  min-height: 40px;
}
.hero-actions .btn {
  will-change: opacity, transform;
  transition:
    background-color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft),
    opacity 0.34s cubic-bezier(.2, .8, .2, 1),
    transform 0.34s cubic-bezier(.2, .8, .2, 1);
}
.hero-actions .btn.hidden {
  display: inline-flex !important;
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.98);
}
.hero-card.is-running .hero-sub { color: oklch(0.72 0.012 255); }
.hero-card.is-running .btn-warn {
  background: var(--surface);
  border-color: var(--border);
  color: var(--st-cooldown);
  box-shadow: var(--shadow-xs);
}
.hero-card.is-cooldown {
  background: linear-gradient(135deg, var(--surface) 0%, oklch(0.22 0.014 255) 100%);
  border-color: oklch(from var(--st-cooldown) l c h / 0.32);
  box-shadow: var(--shadow-sm), 0 0 24px -16px var(--st-cooldown);
}
.hero-card.is-cooldown::after {
  background: radial-gradient(circle at 94% 12%, oklch(from var(--st-cooldown) l c h / 0.12) 0%, transparent 44%);
}
.hero-card.is-cooldown .hero-sub { color: var(--text-subtle); }
.hero-card.is-cooldown .btn-warn {
  background: var(--surface);
  border-color: var(--border);
  color: var(--st-cooldown);
  box-shadow: var(--shadow-xs);
}
.big-status {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 10px 14px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border);
  transition:
    background-color 0.62s cubic-bezier(.2, .8, .2, 1),
    border-color 0.62s cubic-bezier(.2, .8, .2, 1),
    box-shadow 0.62s cubic-bezier(.2, .8, .2, 1),
    opacity 0.42s cubic-bezier(.2, .8, .2, 1),
    transform 0.42s cubic-bezier(.2, .8, .2, 1);
  will-change: background-color, border-color, opacity, transform;
}
.hero-card.is-running .big-status,
.hero-card.is-running .metric,
.hero-card.is-cooldown .big-status,
.hero-card.is-cooldown .metric {
  background: oklch(0.29 0.012 255 / 0.72);
  border-color: oklch(0.48 0.014 255 / 0.5);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.035);
}
.hero-card.is-running .big-status {
  animation: heroDataIn 0.46s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-card.is-running .metric {
  animation: heroDataIn 0.46s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-card.is-running .metric:nth-child(1) { animation-delay: 0.04s; }
.hero-card.is-running .metric:nth-child(2) { animation-delay: 0.07s; }
.hero-card.is-running .metric:nth-child(3) { animation-delay: 0.10s; }
.hero-card.is-running .metric:nth-child(4) { animation-delay: 0.13s; }
.hero-card.is-running .metric:nth-child(5) { animation-delay: 0.16s; }
.hero-card.is-running .metric:nth-child(6) { animation-delay: 0.19s; }
.hero-card.is-cooldown .big-status-title,
.hero-card.is-cooldown .metric strong {
  color: var(--text);
}
.hero-card.is-cooldown .big-status-sub,
.hero-card.is-cooldown .metric:nth-child(3) strong {
  color: var(--st-cooldown);
}
.big-status-left { display: flex; align-items: center; gap: 10px; }
.big-status-title { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; }
.big-status-sub { font-size: 12px; color: var(--text-subtle); margin-top: 3px; }
.big-status-count { font-size: 18px; font-weight: 600; color: var(--text); }
.metrics-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.metric, .stat {
  padding: 8px 10px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--border);
  transition:
    background-color 0.62s cubic-bezier(.2, .8, .2, 1),
    border-color 0.62s cubic-bezier(.2, .8, .2, 1),
    box-shadow 0.62s cubic-bezier(.2, .8, .2, 1),
    opacity 0.42s cubic-bezier(.2, .8, .2, 1),
    transform 0.42s cubic-bezier(.2, .8, .2, 1);
  will-change: background-color, border-color, opacity, transform;
}
.metric span, .stat span {
  display: block; font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px;
}
.metric strong, .stat strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.metric strong.mono { font-size: 14px; }
.found-hero {
  background: linear-gradient(135deg, var(--st-found-bg), var(--surface));
  border-color: oklch(from var(--st-found) l c h / .35);
}
.found-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 1.3fr; gap: 18px; align-items: center; }
.found-ip { margin: 12px 0 4px; font-size: clamp(28px, 5vw, 52px); color: var(--st-found); letter-spacing: -0.04em; }
.found-meta { color: var(--text-muted); font-size: 13px; }
.code-card { background: var(--log-bg); border-radius: 12px; border: 1px solid var(--border); padding: 10px; overflow: hidden; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px; }
.code-row code { color: var(--log-text); font-family: var(--font-mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cooldown-card {
  padding: 14px 16px; border-radius: 12px; background: var(--st-cooldown-bg);
  border: 1px solid oklch(from var(--st-cooldown) l c h / .3); color: var(--st-cooldown);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-grid { margin-bottom: 14px; }
.actions-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.alert { border-radius: 10px; padding: 10px 12px; margin-top: 12px; font-size: 13px; white-space: pre-line; }
.alert-info { background: var(--st-idle-bg); color: var(--text-muted); border: 1px solid var(--border); }
.alert-ok { background: var(--st-found-bg); color: var(--st-found); border: 1px solid oklch(from var(--st-found) l c h / .35); }
.alert-error { background: var(--st-error-bg); color: var(--st-error); border: 1px solid oklch(from var(--st-error) l c h / .35); }
.toast-stack {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  min-width: 170px;
  max-width: min(300px, calc(100vw - 32px));
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: toastEnter 0.28s var(--ease-soft) both;
}
.toast-ok {
  background: oklch(from var(--st-found) l c h / 0.38);
  color: white;
  border: 1px solid oklch(from var(--st-found) l c h / .38);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.toast-error {
  background: oklch(from var(--st-error) l c h / 0.38);
  color: white;
  border: 1px solid oklch(from var(--st-error) l c h / .38);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.toast-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: oklch(from var(--surface-elev) l c h / 0.84);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.toast-dots {
  display: inline-flex;
  gap: 3px;
}
.toast-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: toastDot 0.9s ease-in-out infinite;
}
.toast-dots span:nth-child(2) { animation-delay: 0.15s; }
.toast-dots span:nth-child(3) { animation-delay: 0.30s; }
.toast-dots span {
  opacity: 0.25;
}
.toast-leave {
  animation: toastLeave 0.22s var(--ease-soft) both;
}
@keyframes toastDot {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(-1px); }
}
@keyframes toastEnter {
  from { opacity: 0; transform: translateY(-14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastLeave {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(0.98); }
}
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.danger-chip { color: var(--st-error); }
.normalization-box { margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--border); }
.normalization-title { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.preview-list, .preview-errors { display: flex; flex-wrap: wrap; gap: 6px; }
.pitem, .perr {
  font-family: var(--font-mono); font-size: 11.5px; padding: 2px 8px; border-radius: 5px; font-weight: 500;
}
.pitem { background: var(--st-found-bg); color: var(--st-found); }
.perr { background: var(--st-error-bg); color: var(--st-error); }
.toggle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.toggle-card {
  padding: 12px 14px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; text-align: left;
  transition:
    background-color var(--dur-med) var(--ease-soft),
    border-color var(--dur-med) var(--ease-soft),
    transform var(--dur-med) var(--ease-soft);
  cursor: pointer;
}
.toggle-card:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.toggle-card input { display: none; }
.toggle-card input:checked + .toggle { background: var(--accent); }
.toggle-card input:checked + .toggle::after { left: 16px; }
.toggle-card strong { display: block; font-size: 12.5px; font-weight: 500; }
.toggle-card small { display: block; font-size: 11px; color: var(--text-faint); margin-top: 1px; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.logs-card { overflow: hidden; }
.logs-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.logs-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.log-box {
  background: var(--log-bg); color: var(--log-text); font-family: var(--font-mono);
  font-size: 12.5px; line-height: 1.55; padding: 10px 18px 12px; height: 320px; overflow-y: auto;
}
.log-lines {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.log-line {
  display: grid;
  grid-template-columns: 62px 74px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  min-height: 22px;
  padding: 1px 0;
  border-radius: 6px;
  transition: background-color var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
}
.log-line:hover {
  background: oklch(from var(--surface) l c h / 0.22);
  transform: translateX(2px);
}
.log-time {
  color: oklch(0.56 0.012 260);
  font-variant-numeric: tabular-nums;
}
.log-level {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.log-msg {
  min-width: 0;
  color: var(--log-text);
  overflow-wrap: anywhere;
}
.log-created .log-level { color: oklch(0.73 0.13 220); }
.log-deleted .log-level { color: oklch(0.68 0.025 270); }
.log-found .log-level { color: var(--st-found); }
.log-success .log-level { color: oklch(0.76 0.16 150); }
.log-info .log-level { color: oklch(0.70 0.04 250); }
.log-warning .log-level,
.log-cooldown .log-level { color: var(--st-cooldown); }
.log-error .log-level { color: var(--st-error); }
.log-found .log-msg,
.log-success .log-msg {
  color: oklch(0.88 0.08 150);
  font-weight: 600;
}
.log-error .log-msg {
  color: oklch(0.86 0.09 25);
}
.log-ip {
  color: oklch(0.91 0.03 250);
  font-weight: 700;
}
.log-pool {
  color: oklch(0.82 0.09 250);
  font-weight: 700;
}
.log-method {
  color: oklch(0.78 0.13 220);
  font-weight: 700;
}
.log-code {
  color: oklch(0.82 0.08 95);
  font-weight: 700;
}
.log-empty {
  color: var(--text-faint);
  padding: 8px 0;
}
.workspace-foot { text-align: center; padding: 16px 0; color: var(--text-faint); font-size: 11px; }

.dot-failed { background: var(--st-error); box-shadow: 0 0 0 3px oklch(from var(--st-error) l c h / .2); }
.pill-failed { background: var(--st-error-bg); color: var(--st-error); border-color: transparent; }

@media (max-width: 1100px) {
  .toggle-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .toggle-grid, .found-grid, .status-grid { grid-template-columns: 1fr !important; }
  .big-status { grid-template-columns: 1fr; }
  .hero-title-row h1 { font-size: 24px; }
}

/* ============================================================
   PARSER2 DESIGN ADAPTERS
   ============================================================ */

.provider-shell {
  padding: 12px 10px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}
.provider-header-static {
  width: 100%;
  margin: 0;
  background: var(--surface);
  text-align: left;
}
.provider-header {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition:
    background-color var(--dur-med) var(--ease-soft),
    border-color var(--dur-med) var(--ease-soft),
    box-shadow var(--dur-med) var(--ease-soft),
    transform var(--dur-med) var(--ease-soft);
}
.provider-header:hover {
  border-color: var(--border-strong);
  background: var(--surface-elev);
  box-shadow: var(--shadow-xs);
}
.provider-muted {
  background: transparent;
  border-color: transparent;
}
.provider-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.provider-chevron {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform 0.32s cubic-bezier(.2, .8, .2, 1),
    background-color var(--dur-med) var(--ease-soft),
    color var(--dur-med) var(--ease-soft);
}
.provider-header:hover .provider-chevron {
  background: var(--surface-2);
  color: var(--text);
}
.provider-group.is-provider-collapsed .provider-chevron { transform: rotate(-90deg); }
.selectel-glyph {
  background: transparent;
  color: inherit;
  width: 24px;
  height: 24px;
}
.yandex-glyph {
  background: transparent;
  color: inherit;
  width: 24px;
  height: 24px;
  font-size: 0;
  border-radius: 7px;
}
.topbar-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.topbar-line,
.topbar-mobile-title,
.topbar-runcounts,
.topbar-actions,
.run-count,
.topbar-provider {
  display: flex;
  align-items: center;
}
.topbar-line {
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.topbar-provider {
  gap: 6px;
  color: #ff5500;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.provider-mini-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #ff5500;
  flex-shrink: 0;
}
.topbar-current {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}
.topbar-runcounts {
  gap: 14px;
  color: var(--text-muted);
  font-size: 12px;
}
.run-count {
  gap: 6px;
}
.run-count .mono {
  color: var(--text);
  font-weight: 600;
}
.run-count span:last-child,
.topbar-windows {
  color: var(--text-faint);
  font-size: 11px;
}
.topbar-actions {
  gap: 4px;
}
.brand-mark-sm {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.topbar-mobile-title {
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.collapsible-card {
  overflow: hidden;
  scroll-margin-top: 76px;
}
.collapsible-head {
  padding: 18px 18px 0;
  margin: 0;
  cursor: pointer;
  transition: padding 0.34s cubic-bezier(.2, .8, .2, 1);
  user-select: none;
}
.collapsible-card.is-collapsed .collapsible-head { padding: 14px 18px; }
.collapsible-body {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    grid-template-rows 0.52s cubic-bezier(.2, .8, .2, 1),
    opacity 0.28s ease,
    transform 0.34s cubic-bezier(.2, .8, .2, 1);
  will-change: grid-template-rows, opacity, transform;
}
.collapsible-inner {
  min-height: 0;
  overflow: hidden;
}
.collapsible-content {
  padding: 14px 18px 18px;
}
.collapsible-card.is-collapsed .collapsible-body {
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-6px);
}
.collapse-chev {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.32s cubic-bezier(.2, .8, .2, 1),
    background-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft);
}
.collapsible-head:hover .collapse-chev { background: var(--surface-2); color: var(--text); }
.collapsible-card.is-collapsed .collapse-chev { transform: rotate(-90deg); }
.section-meta {
  margin-left: 4px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 400;
}
.target-errors-meta { color: var(--st-error); }
.native-region-select {
  display: none;
}
.pool-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pool-picked {
  color: var(--text-faint);
  font-size: 11px;
}
.pool-grid {
  gap: 16px;
}
.pool-title {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.pool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.region-chip .chip-check {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 9px;
  line-height: 1;
}
.region-chip.is-active .chip-check {
  border-color: var(--accent);
  background: var(--accent);
}
.pool-route {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.actions-spacer {
  flex: 1;
}
.run-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: auto;
}
.hero-card.is-found {
  display: none;
}
.found-radar::before,
.found-radar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.progress-caption {
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 11px;
  margin-bottom: 6px;
}
.big-status-pool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-subtle);
  font-size: 12px;
}
.metrics-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.found-hero {
  position: relative;
  border-radius: 18px;
  padding: 0;
  background: linear-gradient(135deg, oklch(from var(--st-found) l c h / 0.18), oklch(from var(--accent) l c h / 0.14));
  border: 1px solid oklch(from var(--st-found) l c h / 0.4);
  box-shadow: var(--shadow-lg), 0 0 32px -8px oklch(from var(--st-found) l c h / 0.25);
  overflow: hidden;
  animation: slideUp 0.65s var(--ease-spring) both;
}
.found-radar {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.found-radar span {
  position: absolute;
  top: 60px;
  right: 80px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--st-found);
  animation: radarPing 3.2s var(--ease-soft) infinite;
}
.found-radar span:nth-child(2) {
  animation-delay: 0.8s;
}
.found-radar i {
  position: absolute;
  top: -114px;
  right: -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid oklch(from var(--st-found) l c h / 0.08);
}
.found-radar::before {
  top: -34px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 1px solid oklch(from var(--st-found) l c h / 0.15);
}
.found-head {
  position: relative;
  padding: 22px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.found-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.found-title-row h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
}
.found-panel {
  position: relative;
  margin: 16px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.found-ip-band {
  padding: 26px 28px 22px;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border-bottom: 1px solid var(--border);
}
.found-label {
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.found-ip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.found-ip {
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: 0;
  font-feature-settings: "zero", "ss01", "tnum";
}
.found-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 16px 22px;
}
.kv-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label label" "value copy";
  gap: 2px 6px;
}
.kv-row span {
  grid-area: label;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.kv-row strong {
  grid-area: value;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kv-row button {
  grid-area: copy;
  height: 22px;
  padding: 0 6px;
}
.found-actions {
  border-top: 1px solid var(--border);
  padding: 12px 18px;
  background: var(--bg-soft);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.found-commands {
  border-top: 1px solid var(--border);
  padding: 16px 22px;
  background: var(--bg-soft);
}
.found-commands pre {
  margin: 0;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--log-bg);
  color: var(--log-text);
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
}
.found-commands code {
  display: block;
}
.status-grid {
  grid-template-columns: repeat(4, 1fr);
}
.suffixed-input {
  position: relative;
}
.suffixed-input .input {
  padding-right: 32px;
}
.suffixed-input span {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .found-head,
  .found-ip-band,
  .found-kv-grid,
  .found-actions,
  .found-commands {
    padding-left: 16px;
    padding-right: 16px;
  }
  .found-panel {
    margin: 14px 14px 18px;
  }
  .found-kv-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
