:root {
  --bg: #0b0f17;
  --bg-elevated: #111827;
  --bg-panel: #151d2e;
  --bg-hover: #1e293b;
  --ink: #f0f4f8;
  --ink-secondary: #94a3b8;
  --muted: #64748b;
  --hairline: rgba(148,163,184,0.12);
  --accent: #d97757;
  --accent-dim: rgba(217,119,87,0.12);
  --accent-glow: rgba(217,119,87,0.35);
  --success: #22c55e;
  --success-dim: rgba(34,197,94,0.12);
  --fail: #ef4444;
  --fail-dim: rgba(239,68,68,0.12);
  --warning: #f59e0b;
  --info: #3b82f6;
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.app { max-width: 1200px; margin: 0 auto; padding: 32px 24px 80px; }
.page-header { margin-bottom: 28px; animation: fadeInUp 0.6s var(--ease-expo-out) both; }
.header-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.title-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.page-subtitle { font-size: 14px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.domain-power-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-glow);
}
.power-high { background: var(--success-dim); color: var(--success); border-color: rgba(34,197,94,0.3); }
.power-mid { background: rgba(245,158,11,0.12); color: var(--warning); border-color: rgba(245,158,11,0.3); }
.power-low { background: var(--fail-dim); color: var(--fail); border-color: rgba(239,68,68,0.3); }
.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }
.global-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-panel); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); padding: 9px 14px; transition: border-color 0.2s;
}
.global-search:focus-within { border-color: var(--accent); }
.global-search svg { color: var(--muted); flex-shrink: 0; }
.search-input {
  border: none; background: transparent; font-size: 13px; color: var(--ink);
  outline: none; width: 150px; font-family: inherit;
}
.search-input::placeholder { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s var(--ease-expo-out); white-space: nowrap; font-family: inherit;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 12px var(--accent-glow); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 24px var(--accent-glow); }
.btn-secondary { background: var(--bg-panel); color: var(--ink-secondary); border: 1px solid var(--hairline); }
.btn-secondary:hover { background: var(--bg-hover); color: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-danger-sm {
  background: var(--fail-dim); color: var(--fail); border: 1px solid rgba(239,68,68,0.2);
  padding: 7px 12px; font-size: 12px; border-radius: 8px; cursor: pointer;
  transition: all 0.2s; font-family: inherit; font-weight: 600;
}
.btn-danger-sm:hover { background: rgba(239,68,68,0.2); }
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 24px; animation: fadeInUp 0.6s 0.1s var(--ease-expo-out) both;
}
.stat-card {
  background: var(--bg-panel); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 22px;
  display: flex; align-items: center; gap: 16px;
  transition: all 0.25s var(--ease-expo-out);
}
.stat-card:hover {
  border-color: rgba(217,119,87,0.25); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.stat-clickable { cursor: pointer; }
.stat-clickable:hover { border-color: var(--accent); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon.blue { background: rgba(59,130,246,0.12); color: #60a5fa; }
.stat-icon.green { background: var(--success-dim); color: var(--success); }
.stat-icon.orange { background: rgba(245,158,11,0.12); color: var(--warning); }
.stat-icon.accent { background: var(--accent-dim); color: var(--accent); }
.stat-value { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.click-hint { font-size: 11px; color: var(--accent); font-weight: 400; }
.stat-gauge-wrap { flex-shrink: 0; }
.gauge-ring { display: block; }
.gauge-label { margin-top: 4px; font-weight: 600; text-align: center; }
.panel {
  background: var(--bg-panel); border: 1px solid var(--hairline);
  border-radius: var(--radius); margin-bottom: 20px; overflow: hidden;
  animation: fadeInUp 0.6s 0.15s var(--ease-expo-out) both;
}
.panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; border-bottom: 1px solid var(--hairline);
}
.panel-header h2 {
  font-size: 15px; font-weight: 700; color: var(--ink); margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.panel-header-actions { display: flex; gap: 8px; }
.panel-body { padding: 22px; }
.input-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.input-group { flex: 1; min-width: 220px; }
.input-group.small { flex: 0 0 120px; min-width: 90px; }
.input-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink-secondary); margin-bottom: 6px; letter-spacing: 0.02em;
}
.input-group input[type="text"],
.input-group input[type="number"],
.input-group input[type="email"],
.input-group input[type="url"] {
  width: 100%; padding: 11px 14px; border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--ink);
  background: var(--bg-elevated); transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit; box-sizing: border-box;
}
.input-group input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim); background: var(--bg);
}
.input-group input:disabled { opacity: 0.5; cursor: not-allowed; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { flex: 1; }
.input-with-btn .btn { white-space: nowrap; }
.speed-slider-wrap { padding-top: 4px; }
.speed-slider {
  width: 100%; height: 6px; -webkit-appearance: none; appearance: none;
  background: linear-gradient(90deg, var(--success), var(--warning), var(--fail));
  border-radius: 3px; outline: none; cursor: pointer;
}
.speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  background: var(--ink); border: 3px solid var(--accent); border-radius: 50%;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.speed-slider::-moz-range-thumb {
  width: 20px; height: 20px; background: var(--ink);
  border: 3px solid var(--accent); border-radius: 50%;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.speed-labels {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: 11px; color: var(--muted); font-weight: 500;
}
.speed-labels span.active { color: var(--accent); font-weight: 700; }
.dry-run-row { padding: 12px 0 6px; border-bottom: 1px solid var(--hairline); margin-bottom: 10px; }
.toggle-switch-label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.dry-run-label { color: #a78bfa; font-size: 13px; font-weight: 600; }
.dry-run-label em { font-size: 11px; color: var(--muted); font-style: normal; font-weight: 400; }
.advanced-toggle {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  font-size: 13px; color: var(--muted); cursor: pointer; user-select: none;
  transition: color 0.2s; font-weight: 500;
}
.advanced-toggle:hover { color: var(--ink-secondary); }
.chevron { transition: transform 0.25s var(--ease-expo-out); }
.chevron.rotated { transform: rotate(180deg); }
.advanced-settings { padding-top: 14px; border-top: 1px solid var(--hairline); margin-top: 10px; }
.adv-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.options-row { display: flex; gap: 20px; flex-wrap: wrap; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; font-weight: 500; }
.checkbox-label input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.live-dot {
  display: inline-block; width: 8px; height: 8px; background: var(--success);
  border-radius: 50%; animation: pulse-dot 1.5s infinite; margin-right: 8px;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.4); } }
.dry-run-dot { background: #a78bfa !important; }
.activity-feed {
  max-height: 380px; overflow-y: auto; border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); margin-top: 14px; background: var(--bg-elevated);
}
.activity-feed::-webkit-scrollbar { width: 6px; }
.activity-feed::-webkit-scrollbar-track { background: transparent; }
.activity-feed::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 3px; }
.activity-entry {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid rgba(148,163,184,0.06);
  font-size: 13px; transition: background 0.15s;
}
.activity-entry:hover { background: var(--bg-hover); }
.activity-entry:last-child { border-bottom: none; }
.entry-success { border-left: 3px solid var(--success); }
.entry-fail { border-left: 3px solid var(--fail); }
.entry-badge {
  font-size: 10px; font-weight: 800; padding: 3px 8px;
  border-radius: 4px; letter-spacing: 0.5px; flex-shrink: 0;
}
.badge-ok { background: var(--success-dim); color: var(--success); }
.badge-err { background: var(--fail-dim); color: var(--fail); }
.badge-dry { background: rgba(167,139,250,0.15); color: #a78bfa; }
.dry-run-badge {
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  background: rgba(167,139,250,0.15); color: #a78bfa;
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  margin-left: 8px; vertical-align: middle;
}
.dry-run-summary {
  display: flex; gap: 14px; padding: 16px 18px; margin-bottom: 14px;
  background: rgba(167,139,250,0.08); border: 1px solid rgba(167,139,250,0.2);
  border-left: 4px solid #a78bfa; border-radius: var(--radius-sm);
}
.dry-run-summary-icon { font-size: 24px; flex-shrink: 0; }
.dry-run-summary-content { font-size: 13px; color: #c4b5fd; line-height: 1.6; }
.dry-run-summary-content strong { color: #ddd6fe; }
.dry-run-summary-content ul { margin: 8px 0 10px 20px; padding: 0; }
.dry-run-summary-content li { margin-bottom: 3px; }
.dry-run-summary-hint { font-size: 12px; color: #a78bfa; }
.entry-text { flex: 1; color: var(--ink-secondary); min-width: 0; font-weight: 500; }
.entry-url {
  flex: 2; color: var(--muted); font-size: 11px; text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.entry-url:hover { color: var(--accent); text-decoration: underline; }
.entry-status { color: var(--muted); font-size: 12px; flex-shrink: 0; font-weight: 500; }
.entry-time { color: var(--muted); font-size: 11px; flex-shrink: 0; opacity: 0.7; }
.activity-empty { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.progress-bar-container { margin-bottom: 10px; }
.progress-bar {
  height: 8px; background: var(--bg-elevated); border-radius: 4px;
  overflow: hidden; margin-bottom: 10px; position: relative;
}
.progress-fill-success {
  height: 100%; background: var(--success); position: absolute;
  top: 0; left: 0; transition: width 0.4s var(--ease-expo-out);
}
.progress-fill-fail {
  height: 100%; background: var(--fail); position: absolute;
  top: 0; transition: width 0.4s var(--ease-expo-out), left 0.4s var(--ease-expo-out);
}
.progress-stats { display: flex; gap: 18px; font-size: 13px; }
.progress-text { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-green { color: var(--success); font-weight: 700; }
.stat-red { color: var(--fail); font-weight: 700; }
.stat-gray { color: var(--muted); }
.results-table-wrapper { overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.results-table th {
  text-align: left; padding: 12px 14px; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid var(--hairline); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.results-table td {
  padding: 12px 14px; border-bottom: 1px solid rgba(148,163,184,0.06);
  color: var(--ink-secondary); font-weight: 500;
}
.row-success td { background: rgba(34,197,94,0.04); }
.row-fail td { background: rgba(239,68,68,0.04); }
.result-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.result-link:hover { text-decoration: underline; }
.result-url-full { font-size: 11px; color: var(--muted); word-break: break-all; margin-top: 3px; max-width: 360px; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.badge-success { background: var(--success-dim); color: var(--success); }
.badge-fail { background: var(--fail-dim); color: var(--fail); }
.dr-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.dr-high { background: var(--success-dim); color: var(--success); }
.dr-mid { background: rgba(245,158,11,0.12); color: var(--warning); }
.dr-low { background: var(--bg-hover); color: var(--muted); }
.index-status { font-size: 12px; font-weight: 600; }
.idx-indexed { color: var(--success); }
.idx-crawling { color: var(--warning); }
.idx-pending { color: var(--muted); }
.date-cell { font-size: 12px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 0 6px; }
.page-btn {
  padding: 7px 16px; border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--bg-panel); color: var(--ink-secondary); font-size: 13px;
  cursor: pointer; transition: all 0.2s; font-family: inherit; font-weight: 600;
}
.page-btn:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--accent); color: var(--ink); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { font-size: 13px; color: var(--muted); font-weight: 500; }
.history-summary { padding-bottom: 14px; font-size: 14px; color: var(--ink-secondary); font-weight: 500; }
.history-note { padding-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.schedule-card {
  padding: 24px 20px; border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); transition: all 0.25s var(--ease-expo-out);
  background: var(--bg-elevated);
}
.schedule-card:hover {
  border-color: rgba(217,119,87,0.25); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.schedule-icon { color: var(--accent); margin-bottom: 14px; }
.schedule-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.schedule-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.schedule-control { display: flex; align-items: center; gap: 12px; }
.schedule-status { font-size: 13px; font-weight: 600; color: var(--muted); }
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-hover); border-radius: 26px;
  transition: all 0.3s var(--ease-expo-out); border: 1px solid var(--hairline);
}
.toggle-slider::before {
  content: ''; position: absolute; height: 20px; width: 20px;
  left: 3px; bottom: 3px; background: var(--ink-secondary);
  border-radius: 50%; transition: all 0.3s var(--ease-expo-out);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); background: #fff; }
.agent-recommendation {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-left: 4px solid var(--info); border-radius: var(--radius-sm);
  margin-bottom: 22px; position: relative;
  animation: fadeInUp 0.5s var(--ease-expo-out) both;
}
.agent-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--info), #2563eb);
  color: white; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.agent-text { font-size: 13px; color: #93c5fd; line-height: 1.6; font-weight: 500; }
.agent-text strong { color: #bfdbfe; }
.agent-dismiss {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; color: var(--muted);
  cursor: pointer; padding: 4px; transition: color 0.2s;
}
.agent-dismiss:hover { color: var(--ink); }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .app { padding: 20px 16px 60px; }
  .page-title { font-size: 24px; }
  .header-content { flex-direction: column; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .speed-group { flex: 1; min-width: 200px; }
  .input-group.small { flex: 1; min-width: 80px; }
  .schedule-grid { grid-template-columns: 1fr; }
  .activity-entry { flex-wrap: wrap; }
  .entry-url { width: 100%; flex: none; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Engine Toggle */
.engine-row { margin-bottom: 14px; }
.engine-row > label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-secondary); margin-bottom: 8px; }
.engine-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.engine-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: var(--bg-elevated); color: var(--ink-secondary); font-size: 13px;
  cursor: pointer; transition: all 0.2s var(--ease-expo-out); font-family: inherit; font-weight: 600;
}
.engine-btn:hover { border-color: var(--accent); color: var(--ink); }
.engine-btn.active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.engine-btn.disabled {
  opacity: 0.5; cursor: not-allowed; position: relative;
  background: var(--bg-hover); color: var(--muted);
}
.engine-btn.disabled:hover { border-color: var(--hairline); color: var(--muted); }
.engine-badge-unavailable {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 12px;
  background: var(--fail-dim); color: var(--fail); margin-left: 4px;
}
.engine-hint { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.browser-unavailable-notice {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 12px 16px;
  background: var(--fail-dim); border: 1px solid rgba(239,68,68,0.2);
  border-left: 4px solid var(--fail); border-radius: var(--radius-sm);
  font-size: 13px; color: #fca5a5; line-height: 1.5;
  animation: fadeInUp 0.3s var(--ease-expo-out) both;
}
.browser-unavailable-notice svg { flex-shrink: 0; color: var(--fail); }
.browser-unavailable-notice code {
  background: rgba(239,68,68,0.15); padding: 2px 6px; border-radius: 4px;
  font-size: 12px; color: #fecaca; font-family: monospace;
}

/* Target Browser */
.target-stats { font-size: 13px; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.target-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; max-height: 480px; overflow-y: auto; }
.target-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: var(--bg-elevated); transition: all 0.2s; cursor: pointer;
}
.target-item:hover { border-color: var(--accent); background: var(--bg-hover); }
.target-item.selected { border-color: var(--accent); background: var(--accent-dim); }
.target-item input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.target-info { flex: 1; min-width: 0; }
.target-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.target-url { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target-meta { display: flex; gap: 6px; margin-top: 4px; }
.target-tag {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  background: var(--bg-hover); color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px;
}
.target-tag.auto { background: var(--success-dim); color: var(--success); }
.target-tag.manual { background: rgba(245,158,11,0.12); color: var(--warning); }
.select-sm, .input-sm {
  padding: 8px 12px; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: var(--bg-elevated); color: var(--ink); font-size: 13px; font-family: inherit;
}
.select-sm:focus, .input-sm:focus { outline: none; border-color: var(--accent); }

/* Settings */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.settings-col h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 14px; }
.settings-col .input-group { margin-bottom: 14px; }
.settings-col .input-group input[type="text"],
.settings-col .input-group input[type="email"],
.settings-col .input-group input[type="url"] {
  width: 100%; padding: 11px 14px; border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--ink);
  background: var(--bg-elevated); transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit; box-sizing: border-box;
}
.settings-col .input-group input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim); background: var(--bg);
}
.settings-col .input-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--ink);
  background: var(--bg-elevated); transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit; box-sizing: border-box; resize: vertical;
}
.settings-col .input-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); background: var(--bg);
}
.settings-hint { font-size: 12px; color: var(--muted); margin: 10px 0 14px; line-height: 1.5; }

/* Batch Jobs */
.batch-list { max-height: 400px; overflow-y: auto; }
.batch-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--hairline);
  transition: background 0.15s;
}
.batch-item:hover { background: var(--bg-hover); }
.batch-item:last-child { border-bottom: none; }
.batch-id { font-size: 12px; font-weight: 700; color: var(--muted); width: 50px; flex-shrink: 0; }
.batch-domain { font-size: 13px; font-weight: 600; color: var(--ink); flex: 1; min-width: 0; }
.batch-progress { flex: 1; min-width: 120px; }
.batch-progress-bar { height: 6px; background: var(--bg-hover); border-radius: 3px; overflow: hidden; }
.batch-progress-fill { height: 100%; background: var(--accent); transition: width 0.4s var(--ease-expo-out); }
.batch-progress-text { font-size: 11px; color: var(--muted); margin-top: 4px; }
.batch-status {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 12px; flex-shrink: 0;
}
.batch-status.pending { background: rgba(245,158,11,0.12); color: var(--warning); }
.batch-status.running { background: var(--accent-dim); color: var(--accent); }
.batch-status.completed { background: var(--success-dim); color: var(--success); }
.batch-status.failed { background: var(--fail-dim); color: var(--fail); }
.empty-state { text-align: center; padding: 40px 24px; color: var(--muted); font-size: 14px; }

/* Tooltip System */
.tooltip-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.tooltip-icon {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-hover); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; cursor: help;
  border: 1px solid var(--hairline); flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.tooltip-icon:hover { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.tooltip-box {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) scale(0.96); opacity: 0; pointer-events: none;
  background: var(--bg-panel); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 12px; color: var(--ink-secondary); line-height: 1.5;
  white-space: nowrap; z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: opacity 0.2s, transform 0.2s var(--ease-expo-out);
}
.tooltip-wrap:hover .tooltip-box {
  opacity: 1; transform: translateX(-50%) scale(1); pointer-events: auto;
}
.tooltip-box::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--bg-panel);
}

/* Export */
.export-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 768px) {
  .engine-toggle { flex-direction: column; }
  .engine-btn { width: 100%; justify-content: center; }
  .target-list { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .export-actions { flex-direction: column; }
  .export-actions .btn { width: 100%; justify-content: center; }
  .batch-item { flex-wrap: wrap; }
  .batch-progress { width: 100%; flex: none; margin-top: 8px; }
}
