:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --sidebar: #ffffff;
  --text: #1f2937;
  --text-soft: #4b5563;
  --muted: #9ca3af;
  --border: #e8eaed;
  --border-light: #f0f1f3;

  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fff7ed;
  --orange-glow: rgba(249, 115, 22, 0.12);

  --ok: #16a34a;
  --ok-bg: #f0fdf4;
  --bad: #dc2626;
  --bad-bg: #fef2f2;
  --warn: #d97706;
  --warn-bg: #fffbeb;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 2px 8px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.04);
  --shadow-card: 0 1px 3px rgba(16, 24, 40, 0.05), 0 6px 20px rgba(249, 115, 22, 0.04);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--orange); }

/* ── Login page ── */
.body-login {
  background: linear-gradient(145deg, #fff7ed 0%, #f5f6f8 45%, #ffffff 100%);
  min-height: 100vh;
}

.page-content--auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.login-card h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  display: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: block;
  position: relative;
  z-index: 1;
  filter: none;
  pointer-events: none;
  user-select: none;
  border-radius: 10px;
  object-fit: cover;
}

.login-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.login-brand .brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.install-card {
  max-width: 480px;
}

.install-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.install-step {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2, #f4f4f5);
  border: 1px solid var(--border-light);
}

.install-step.active {
  color: var(--text);
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.08);
}

.install-hint {
  font-size: 13px;
  margin: 0 0 16px;
}

.install-checklist {
  font-size: 13px;
  margin: 0 0 20px;
  padding-left: 18px;
}

.install-checklist li { margin-bottom: 6px; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
}

.install-nav {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.install-nav button[type="submit"],
.btn-next {
  flex: 1;
}

.alert.alert-ok {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #15803d;
}

.input-with-btn input { flex: 1; min-width: 0; }

.install-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 18px 0;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.input-with-btn {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── App shell + sidebar ── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 24px;
}

.sidebar-brand strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.nav-section {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding: 0 12px;
  margin-bottom: 8px;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 500;
  font-size: 14px;
  transition: all .15s ease;
}

.nav-item:hover {
  background: var(--orange-light);
  color: var(--orange-dark);
}

.nav-item.active {
  background: var(--orange-light);
  color: var(--orange-dark);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--orange);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .75;
}

.nav-item.active .nav-icon { opacity: 1; }

.sidebar-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.nav-logout { color: var(--muted); }
.nav-logout:hover { color: var(--bad); background: var(--bad-bg); }

/* ── Main content ── */
.main-wrap {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
}

.page-content {
  padding: 28px 32px 48px;
  width: 100%;
  max-width: none;
}

.page-content--wide {
  padding: 28px 28px 48px;
}

.page-head { margin-bottom: 24px; }
.page-head h1 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}

.row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all .15s ease;
}
.back-link svg { color: var(--orange); flex-shrink: 0; }
.back-link:hover {
  color: var(--orange-dark);
  border-color: #fed7aa;
  background: var(--orange-light);
  box-shadow: var(--shadow-sm);
  transform: translateX(-2px);
}

/* ── Cards & panels ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}

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

.card h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; }

/* ── File drop zone ── */
.drop-zone {
  margin: 14px 0;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--orange);
  background: var(--orange-light);
}
.drop-zone-inner {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-soft);
}
.drop-zone-inner svg { color: var(--orange); margin-bottom: 8px; }
.drop-zone-inner p { margin: 4px 0; }
.drop-zone-storage { margin-top: 10px; }
.drop-zone-file {
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.drop-zone-file strong, .drop-zone-file [data-role="file-name"] {
  font-weight: 600;
  color: var(--text);
}
.link-btn {
  background: none;
  border: none;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin: 0 0 0 auto;
  box-shadow: none;
  filter: none;
}

button.link-btn {
  margin-top: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 600;
  display: inline;
}

.link-btn:hover,
button.link-btn:hover {
  text-decoration: underline;
  filter: none;
  color: var(--orange-dark);
  background: none;
  box-shadow: none;
  transform: none;
}

.btn-row-primary { margin-top: 4px; }

.exploit-card .btn-row {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.exploit-card .btn-row-primary {
  grid-template-columns: 1fr 1fr;
}
.exploit-card .btn-row-tools {
  grid-template-columns: 1fr 1fr;
}
.exploit-card .btn-row button,
.exploit-card .btn-row .btn {
  width: 100%;
  margin: 0;
  white-space: nowrap;
}

.stat-pill.muted-pill { color: var(--ok); border-color: #bbf7d0; background: var(--ok-bg); }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.btn-row button, .btn-row .btn { margin-top: 0; }

.wide-card { max-width: 540px; }

/* ── Forms ── */
label {
  display: block;
  margin: 14px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

input[type=text],
input[type=password],
input[type=number],
input[type=url],
input[type=email],
select,
textarea {
  width: 100%;
  margin-top: 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
  background: var(--surface);
}

textarea {
  font: 12px/1.5 ui-monospace, monospace;
  resize: vertical;
}

/* ── Buttons (primary actions only — not inline/link/file-picker controls) ── */
button:not(.link-btn):not(.file-picker-btn):not(.file-picker-clear):not(.tool-tab):not(.panel-tab):not(.storage-tool-btn):not(.storage-icon-btn):not(.wp-status-editable):not(.wp-sort-btn):not(.wp-status-picker-opt):not(.wp-status-picker-reset),
.btn {
  margin-top: 12px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fb923c, var(--orange));
  color: white;
  font: 600 13px var(--font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px var(--orange-glow);
  transition: transform .12s, box-shadow .15s, filter .15s;
}

button:not(.link-btn):not(.file-picker-btn):not(.file-picker-clear):not(.tool-tab):not(.panel-tab):not(.storage-tool-btn):not(.storage-icon-btn):not(.wp-status-editable):not(.wp-sort-btn):not(.wp-status-picker-opt):not(.wp-status-picker-reset):hover,
.btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
  color: white;
}

button:not(.link-btn):not(.file-picker-btn):not(.file-picker-clear):not(.tool-tab):not(.panel-tab):not(.storage-tool-btn):not(.storage-icon-btn):not(.wp-status-editable):not(.wp-sort-btn):not(.wp-status-picker-opt):not(.wp-status-picker-reset):active,
.btn:active { transform: scale(.98); }

.btn { text-decoration: none; margin-top: 0; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-secondary {
  background: var(--surface);
  color: var(--text-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-ok {
  background: linear-gradient(180deg, #22c55e, var(--ok));
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}
.btn-danger {
  background: linear-gradient(180deg, #f87171, var(--bad));
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.actions form { margin: 0; }
.actions button { margin-top: 0; }

/* ── Alerts ── */
.alert {
  background: var(--bad-bg);
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
}

.msg-error { color: var(--bad) !important; }

/* ── Confirm modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.hidden { display: none !important; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.modal-card-wide {
  width: min(720px, calc(100vw - 32px));
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
}

.storage-picker-table {
  max-height: 360px;
  margin: 12px 0 4px;
}

.storage-table .link-btn {
  margin: 0;
  font-size: inherit;
  font-weight: 500;
  text-align: left;
}

.storage-table a.storage-dir,
.storage-table a.storage-entry-name,
.storage-table button.storage-dir {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.storage-table a.storage-dir:hover,
.storage-table a.storage-entry-name:hover,
.storage-table button.storage-dir:hover {
  color: var(--orange-dark);
  background: none;
  box-shadow: none;
  filter: none;
  text-decoration: none;
}

.storage-table a.storage-pick-file,
.storage-table button.storage-pick-file {
  color: var(--orange-dark);
  font-weight: 600;
  text-decoration: none;
}

.storage-table a.storage-pick-file:hover,
.storage-table button.storage-pick-file:hover:not(:disabled) {
  color: var(--orange-dark);
  background: none;
  box-shadow: none;
  filter: none;
  text-decoration: underline;
}

.storage-table .storage-pick-file.is-disabled,
.storage-table button.storage-pick-file:disabled {
  color: var(--muted);
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: none;
  pointer-events: none;
}

.storage-table tbody tr:hover a.storage-pick-file:not(.is-disabled),
.storage-table tbody tr:hover a.storage-dir {
  color: var(--orange-dark);
}

.modal-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.modal-card p {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-actions .btn { margin: 0; }

/* ── Interactive terminal ── */
.terminal-card {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 200px);
}

.terminal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.terminal-head h2 { margin: 0; }

.terminal-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-status.status-err { color: var(--bad); }

.terminal-wrap {
  flex: 1;
  min-height: 480px;
  background: #1a1d24;
  border-radius: var(--radius-sm);
  border: 1px solid #2d3340;
  padding: 8px;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.terminal-wrap .xterm {
  height: 100%;
}

.terminal-wrap .xterm-viewport {
  border-radius: 6px;
}

/* ── Node grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}

.node-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}

.node-card:hover {
  border-color: #fed7aa;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.node-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.node-top strong { font-size: 15px; }

.badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--muted);
}

.status-online .badge { background: var(--ok-bg); border-color: #bbf7d0; color: var(--ok); }
.status-offline .badge { background: var(--bad-bg); border-color: #fecaca; color: var(--bad); }
.status-unknown .badge { background: var(--warn-bg); border-color: #fde68a; color: var(--warn); }

.dot, .dot-inline {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
}

.status-online .dot, .dot-inline.status-online {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}
.status-offline .dot, .dot-inline.status-offline {
  background: var(--bad);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.status-unknown .dot, .dot-inline.status-unknown {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.node-meta { color: var(--muted); font-size: 12px; line-height: 1.7; }

.empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

/* ── Command terminal ── */
.cmd-form { display: flex; gap: 10px; }
.cmd-form input { flex: 1; margin-top: 0; font-family: ui-monospace, monospace; }
.cmd-form button { margin-top: 0; white-space: nowrap; }

.live-output, .log-box {
  margin-top: 12px;
  background: #1e1e2e;
  color: #cdd6f4;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.15);
}

.log-box {
  max-height: 180px;
  overflow: auto;
  margin-bottom: 0;
}

.results-box { max-height: 220px; margin-top: 10px; }

.history { display: flex; flex-direction: column; gap: 10px; }

.hist-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface-soft);
}

.hist-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.hist-head code {
  background: var(--orange-light);
  color: var(--orange-dark);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.hist-item pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  color: var(--text-soft);
  background: var(--surface);
  padding: 10px;
  border-radius: 8px;
}

.hist-time { margin-top: 8px; font-size: 11px; color: var(--muted); }

.node-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.node-side .card,
.terminal-card {
  margin-top: 0;
}

.hidden { display: none !important; }

/* ── Toolkit / Recon ── */
.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tool-tab {
  margin-top: 0;
  box-shadow: none;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

.tool-tab:hover,
button.tool-tab:hover {
  filter: none;
  transform: none;
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--text-soft);
  box-shadow: none;
}

.tool-tab.active,
.tool-tab.active:hover {
  background: var(--orange-light);
  border-color: var(--orange);
  color: var(--orange-dark);
}

.tool-panel { display: none; margin-top: 0 !important; }
.tool-panel.active { display: block; }

.field {
  display: block;
  margin: 0;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.field-hint {
  display: block;
  margin-top: 6px;
  line-height: 1.4;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 16px;
}

.field-full { grid-column: 1 / -1; }

.field-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.field-actions .btn,
.field-actions .btn-secondary {
  margin-top: 0;
}

.check-field {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.check-field:hover {
  border-color: var(--text-soft);
  background: var(--surface);
}

.check-field input[type=checkbox],
.check-field input[type=radio] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.check-field span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  user-select: none;
}

.check-field.field-full {
  grid-column: 1 / -1;
}

.form-section {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.form-section-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.form-section-lead {
  margin: 0 0 14px;
}

.di-index-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px 20px;
  width: 100%;
}

.di-index-options.is-disabled {
  opacity: 0.55;
}

.di-index-options.is-disabled .check-field {
  cursor: not-allowed;
}

.di-index-options.is-disabled input,
.di-index-options.is-disabled button {
  cursor: not-allowed;
}

/* Legacy alias — use .check-field for new markup */
.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.file-picker:hover {
  border-color: var(--text-soft);
  background: var(--surface);
}

.file-picker-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-picker .file-picker-btn {
  flex-shrink: 0;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  filter: none;
  cursor: pointer;
}

.file-picker .file-picker-btn:hover {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--text-soft);
  box-shadow: none;
  filter: none;
}

.file-picker .file-picker-storage {
  background: var(--surface-soft);
}

.file-picker .file-picker-storage:hover {
  background: var(--surface);
}

.file-picker-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted);
}

.file-picker-name.has-file {
  color: var(--text);
}

.file-picker-clear {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  box-shadow: none;
  filter: none;
  cursor: pointer;
}

.file-picker-clear:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--bad);
  box-shadow: none;
  filter: none;
}

.file-picker-clear.hidden {
  display: none;
}

.settings-card { max-width: 640px; }

.settings-card + .settings-card {
  margin-top: 20px;
}

/* ── System info ── */
.sys-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.sys-metric-card-wide {
  grid-column: 1 / -1;
}

.sys-metric-card,
.sys-storage-card {
  padding-top: 18px;
}

.sys-metric-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sys-metric-head h2 {
  margin: 0;
  font-size: 1rem;
}

.sys-metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.sys-metric-track {
  margin-bottom: 8px;
}

.sys-metric-fill.sys-bar-warn {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.sys-metric-fill.sys-bar-critical {
  background: linear-gradient(90deg, #f87171, var(--bad));
}

.sys-metric-meta {
  margin: 0;
  line-height: 1.45;
}

.sys-disk-list {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.sys-disk-row code {
  font-size: 12px;
}

.sys-storage-card .storage-table-wrap {
  margin-top: 14px;
}

.sys-breakdown-table td code {
  font-size: 12px;
}

.sys-active-card {
  margin-bottom: 20px;
}

.sys-active-count {
  font-size: 1.1rem;
}

.sys-active-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.sys-active-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--surface-2, rgba(255, 255, 255, 0.02));
}

.sys-active-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sys-active-badge {
  font-size: 11px;
  margin-left: 6px;
  vertical-align: middle;
}

.sys-active-badge.sys-active-running {
  background: var(--warn-bg);
  border-color: #fde68a;
  color: var(--warn);
}

.sys-active-badge.sys-active-warn {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.sys-active-badge.sys-active-idle {
  background: var(--surface-2, #f3f4f6);
}

.sys-active-track {
  margin-bottom: 6px;
}

.sys-active-detail,
.sys-active-meta {
  font-size: 12px;
  line-height: 1.45;
}

.sys-active-meta {
  margin-top: 6px;
}

.sys-active-empty {
  margin: 0;
}

@media (max-width: 900px) {
  .sys-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.settings-section-head { margin-bottom: 4px; }

.settings-subsection {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.settings-subsection h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.status-banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--border-light);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--muted);
  vertical-align: middle;
}

.status-dot.ok { background: var(--ok); }
.status-dot.warn { background: #f59e0b; }

.tool-form label.field {
  margin-top: 0;
}

.tool-form .field + .field {
  margin-top: 0;
}

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .check-field { margin-top: 0; }
}

.tool-form label {
  display: block;
  margin-top: 12px;
  font-size: 13px;
}

.tool-form input:not([type=checkbox]):not([type=radio]),
.tool-form select {
  display: block;
  width: 100%;
  margin-top: 6px;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.check-row input { width: auto; margin: 0; }

.job-box { margin-top: 14px; }

.job-head { margin-bottom: 8px; }

.job-meta {
  margin: 0 0 8px;
  line-height: 1.5;
}

.job-meta code {
  font-size: 12px;
}

.job-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.job-actions .btn-danger {
  margin-top: 0;
}

.crawl-hints {
  margin-top: 12px;
  line-height: 1.55;
}

.job-progress-wrap {
  margin: 10px 0 12px;
}

.job-progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}

.job-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb923c, var(--orange));
  transition: width .35s ease;
  min-width: 0;
}

.job-progress-label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-soft);
}

.job-log {
  margin-top: 10px;
  max-height: 220px;
  min-height: 0;
  font-size: 12px;
}

.storage-card { padding-top: 18px; }

.storage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.storage-toolbar-modal {
  margin-bottom: 10px;
}

.storage-toolbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.storage-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.storage-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.storage-tool-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.storage-tool-btn svg {
  width: 17px;
  height: 17px;
}

.storage-tool-btn:hover {
  background: var(--surface);
  color: var(--orange-dark);
  box-shadow: none;
  filter: none;
}

.storage-tool-btn-danger {
  background: rgba(239, 68, 68, 0.06);
  color: var(--bad);
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.storage-tool-btn-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--bad);
}

.storage-tool-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.storage-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.storage-col-check {
  width: 40px;
  text-align: center;
}

.storage-col-check input { cursor: pointer; }

.storage-col-name {
  min-width: 180px;
}

.storage-entry-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.storage-entry-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-entry-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--orange-dark);
  opacity: 0.85;
}

.storage-entry-icon svg {
  width: 16px;
  height: 16px;
}

a.storage-entry-name:hover {
  color: var(--orange-dark);
}

.storage-col-action {
  width: 148px;
  text-align: right;
}

.storage-icon-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.storage-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.storage-icon-btn svg {
  width: 15px;
  height: 15px;
}

.storage-icon-btn:hover {
  background: var(--surface-soft);
  color: var(--orange-dark);
  box-shadow: none;
  filter: none;
}

.storage-icon-btn.is-danger:hover {
  color: var(--bad);
  background: rgba(239, 68, 68, 0.08);
}

.storage-table tbody tr:hover .storage-icon-btn {
  color: var(--text);
}

.storage-table tbody tr:hover .storage-icon-btn.is-danger {
  color: var(--bad);
}

.storage-prompt-textarea {
  margin-top: 10px;
  min-height: 120px;
  resize: vertical;
}

#storagePromptModal input[type=text] {
  width: 100%;
  margin-top: 4px;
}

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

.card-msg.msg-ok {
  color: var(--ok);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
}

.storage-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.storage-crumbs a {
  color: var(--orange-dark);
  text-decoration: none;
}

.storage-crumbs a:hover { text-decoration: underline; }

.storage-crumb-sep { opacity: 0.45; }

.storage-crumb-current { color: var(--text); font-weight: 600; }

.storage-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.storage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.storage-table th,
.storage-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.storage-table th {
  background: var(--surface-soft);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 12px;
}

.storage-table tr:last-child td { border-bottom: 0; }

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

.storage-col-size,
.storage-col-date {
  white-space: nowrap;
}

.recon-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.catalog-box {
  max-height: 200px;
  overflow: auto;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .recon-layout { grid-template-columns: 1fr; }
}

/* ── Exploit full-width layout ── */
.exploit-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 20px;
  align-items: start;
  width: 100%;
  min-height: calc(100vh - 160px);
}

.exploit-nodes-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exploit-card {
  margin-top: 0 !important;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.exploit-card.selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.exploit-panel {
  margin-top: 0 !important;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 160px);
  position: sticky;
  top: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.panel-head h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.panel-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.panel-tab {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text-soft);
  font: 600 12px var(--font);
  cursor: pointer;
  box-shadow: none;
  margin: 0;
}

.panel-tab.active {
  background: var(--orange-light);
  border-color: #fed7aa;
  color: var(--orange-dark);
}

.panel-tab:hover { filter: none; transform: none; }

.log-box-large {
  flex: 1;
  min-height: 420px;
  max-height: none;
  height: auto;
}

.exploit-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.exploit-card-head strong { font-size: 16px; }

.scan-badge.scan-running { background: var(--warn-bg); border-color: #fde68a; color: var(--warn); }
.scan-badge.scan-completed { background: var(--ok-bg); border-color: #bbf7d0; color: var(--ok); }
.scan-badge.scan-interrupted, .scan-badge.scan-error { background: var(--bad-bg); border-color: #fecaca; color: var(--bad); }
.scan-badge.scan-idle { background: var(--surface-soft); color: var(--muted); }

.progress-wrap { margin: 12px 0; }
.progress-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #fb923c);
  width: 0;
  transition: width .35s ease;
  border-radius: 999px;
}

.result-stats { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }

.stat-pill {
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text-soft);
}

.stat-pill b { color: var(--text); font-weight: 700; }
.stat-pill.ok b { color: var(--ok); }

.targets-label { display: block; margin-top: 12px; }
.card-msg { min-height: 18px; margin-top: 10px; font-size: 12px; }
.card-msg.msg-error {
  color: var(--bad);
  background: var(--bad-bg);
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 10px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .exploit-layout {
    grid-template-columns: 1fr;
  }
  .exploit-panel {
    position: static;
    min-height: 400px;
  }
  .log-box-large { min-height: 280px; }
}

@media (max-width: 900px) {
  .node-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .node-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    align-items: start;
  }
  .node-layout .card { margin-top: 0; }
  .node-history .history { max-height: calc(100vh - 220px); overflow-y: auto; }
}

@media (max-width: 768px) {
  .app-shell { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
  }
  .sidebar-brand { padding: 4px 8px 8px; flex: 1; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; flex: none; width: 100%; }
  .nav-section { display: none; }
  .sidebar-footer {
    flex-direction: row;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    justify-content: space-between;
  }
  .page-content { padding: 20px 16px 32px; }
}

/* ── WP Checker ── */
.wp-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wp-subtabs {
  margin-bottom: 0;
}

.wp-panel {
  display: none;
  margin-top: 0 !important;
  border-top-left-radius: 0;
}

.wp-panel.active {
  display: block;
}

.wp-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.wp-table-wrap {
  overflow-x: auto;
}

.wp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wp-table th,
.wp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: middle;
}

.wp-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  font-weight: 600;
}

.wp-sort-th {
  white-space: nowrap;
}

.wp-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.wp-sort-btn:hover,
.wp-sort-btn.is-active {
  color: var(--text);
}

.wp-sort-icon {
  font-size: 12px;
  line-height: 1;
  opacity: 0.55;
}

.wp-sort-btn.is-active .wp-sort-icon {
  opacity: 1;
  color: var(--orange);
}

.wp-col-separated {
  width: 96px;
  white-space: nowrap;
}

.wp-separated-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
}

.wp-separated-toggle input[type=checkbox] {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--orange);
}

tr.is-separated-row {
  opacity: 0.92;
}

.wp-col-check {
  width: 36px;
  text-align: center;
}

.wp-col-check input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--orange);
}

.wp-table tr.is-selected {
  background: rgba(249, 115, 22, 0.06);
}

#wpBulkDeleteBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wp-col-status {
  width: 28px;
}

.wp-col-actions {
  width: 220px;
  white-space: nowrap;
}

.wp-col-actions .btn {
  margin: 0 4px 4px 0;
}

.wp-status-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  border-radius: 4px;
  vertical-align: middle;
  position: relative;
  padding: 0;
  margin: 0;
  border: none;
  flex-shrink: 0;
  box-shadow: none;
  background-image: none;
  font-size: 0;
  line-height: 0;
}

button.wp-status-box.wp-status-active {
  background: var(--ok);
  box-shadow: 0 0 0 2px rgba(46, 160, 67, 0.25);
}

button.wp-status-box.wp-status-inactive {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

button.wp-status-box.wp-status-warn {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

button.wp-status-box.wp-status-pending {
  background: var(--muted);
  box-shadow: none;
}

button.wp-status-editable {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button.wp-status-editable:hover {
  transform: scale(1.12);
  filter: none;
  color: inherit;
}

.wp-status-manual.wp-status-active::after,
.wp-status-picker-opt .wp-status-manual.wp-status-active::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.wp-status-manual:not(.wp-status-active)::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.wp-status-active { background: var(--ok); box-shadow: 0 0 0 2px rgba(46, 160, 67, 0.25); }
.wp-status-inactive { background: #ef4444; box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2); }
.wp-status-warn { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2); }
.wp-status-pending { background: var(--muted); }

.wp-status-picker {
  position: fixed;
  z-index: 1200;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.wp-status-picker-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.wp-status-picker-auto {
  margin-bottom: 8px;
  font-size: 11px;
}

.wp-status-picker-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.wp-status-picker-opt,
.wp-status-picker-reset {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.wp-status-picker-opt:hover,
.wp-status-picker-reset:hover {
  background: var(--surface-soft);
}

.wp-status-picker-opt.is-current,
.wp-status-picker-reset.is-current {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.08);
}

.wp-status-picker-reset {
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  color: var(--text-soft);
  font-size: 12px;
}

.wp-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.wp-pill-ok { background: rgba(46, 160, 67, 0.15); color: var(--ok); }
.wp-pill-bad { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.wp-pill-muted { background: var(--surface-soft); color: var(--text-soft); }

.wp-bulk-text {
  width: 100%;
  min-height: 200px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  resize: vertical;
}

#wpStatusBar {
  margin-bottom: 12px;
}

.wp-table-wrap-wide {
  max-width: 100%;
}

.wp-table-active .wp-cell-mono {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.wp-table-active .wp-cell-wrap {
  max-width: 220px;
  word-break: break-all;
}

.wp-table-active .wp-cell-domain a {
  font-weight: 500;
}

.wp-pass-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.wp-pass-row input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

.wp-pass-row .btn {
  flex-shrink: 0;
}

.wp-export-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

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

.wp-export-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.wp-export-text {
  width: 100%;
  min-height: 140px;
  max-height: 320px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text);
  font: 12px/1.5 ui-monospace, monospace;
  resize: vertical;
}
