/* Disconnected product demo — dark WikiFuzzer shell, fixed height (no landing jump) */
.demo-mount {
  height: 560px;
  overflow: hidden;
  background: #0b1220;
}
#gallery-demo.demo-mount,
.product-demo.demo-mount { height: 760px; }
#hero-demo.demo-mount { height: 0; }
#how-demo.demo-mount { height: 0; }

.wf-demo {
  --d-bg: #0b1220;
  --d-surf: #121a2b;
  --d-elev: #1a2438;
  --d-chrome: #0e1626;
  --d-input: #0b1220;
  --d-border: #243044;
  --d-text: #e8eef7;
  --d-muted: #8b9bb4;
  --d-accent: #3b82f6;
  --d-soft: rgba(59, 130, 246, 0.16);
  --d-ok: #22c55e;
  --d-warn: #eab308;
  --d-err: #ef4444;
  --d-nav: 148px;
  direction: ltr;
  text-align: left;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--d-text);
  background:
    radial-gradient(ellipse 70% 40% at 15% -5%, rgba(59, 130, 246, 0.14), transparent),
    radial-gradient(ellipse 50% 35% at 90% 0%, rgba(244, 63, 94, 0.06), transparent),
    var(--d-bg);
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  user-select: none;
  box-sizing: border-box;
}

.wf-demo select {
  pointer-events: auto !important;
  cursor: pointer;
}

.wf-demo-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: linear-gradient(180deg, #1a1020 0%, #121a2b 100%);
  border-bottom: 1px solid var(--d-border);
  min-height: 44px;
}
.wf-demo-logo { font-weight: 700; font-size: 14px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; }
.wf-logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
  flex-shrink: 0;
}
.wf-theme {
  display: inline-flex;
  gap: 3px;
  margin-inline-start: 10px;
  margin-inline-end: auto;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--d-border);
  background: var(--d-elev);
}
.wf-theme button {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--d-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: default;
  pointer-events: none;
}
.wf-theme button.active {
  background: var(--d-soft);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}
.wf-top-meta {
  margin-inline-start: 0;
}
.wf-local-engine {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  padding: 3px 9px;
  font-family: ui-monospace, Consolas, monospace;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wf-local-engine i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
  animation: demoPulse 1.6s ease-in-out infinite;
}
.wf-demo-top .wf-prog {
  flex: 1;
  max-width: 220px;
  height: 6px;
  border-radius: 999px;
  background: var(--d-input);
  overflow: hidden;
  margin-inline-start: 8px;
}
.wf-demo-top .wf-prog i {
  display: block;
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, var(--d-accent), #22d3ee);
  border-radius: 999px;
  font-style: normal;
}
.wf-demo-chip {
  margin-inline-start: auto;
  font-size: 10px;
  font-weight: 700;
  color: #93c5fd;
  background: var(--d-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
}
.wf-demo-chip.running { animation: demoPulse 1.6s ease-in-out infinite; }
.wf-demo-chip.idle {
  color: var(--d-muted);
  background: rgba(139, 155, 180, 0.12);
  border-color: rgba(139, 155, 180, 0.35);
}
@keyframes demoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.wf-scanner-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--d-chrome);
  border-bottom: 1px solid var(--d-border);
  flex-shrink: 0;
}
.wf-scanner-bar[hidden] { display: none !important; }
.wf-scanner-bar strong {
  font-size: 13px;
  font-weight: 600;
}
.wf-scanner-bar .wf-prog {
  flex: 1;
  min-width: 120px;
  max-width: 280px;
  height: 8px;
  border-radius: 999px;
  background: var(--d-input);
  border: 1px solid var(--d-border);
  overflow: hidden;
}
.wf-scanner-bar .wf-prog i {
  display: block;
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 45%, #22c55e 100%);
  border-radius: 999px;
  font-style: normal;
}
.wf-scanner-bar .wf-demo-btn {
  padding: 5px 10px;
  font-size: 11px;
}
.wf-scanner-bar .wf-demo-btn.danger {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
}
.wf-phase-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wf-phase-mini i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--d-border);
  font-style: normal;
}
.wf-phase-mini i.done { background: var(--d-ok); }
.wf-phase-mini i.run {
  background: var(--d-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  animation: demoPulse 1.4s ease-in-out infinite;
}

.wf-inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.wf-inline-fields label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--d-text);
}
.wf-inline-fields select {
  font: inherit;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--d-border);
  background: var(--d-input);
  color: var(--d-text);
  pointer-events: auto;
  cursor: pointer;
}
.wf-inline-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--d-border);
  background: var(--d-elev);
  color: #93c5fd;
}
.wf-help {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--d-border);
  font-size: 9px;
  color: var(--d-muted);
  vertical-align: middle;
}
.wf-static {
  padding: 8px 10px;
  border: 1px solid var(--d-border);
  border-radius: 6px;
  background: var(--d-input);
  font-size: 12px;
}
.wf-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--d-muted);
  margin: 4px 0 8px;
}
.wf-check input { accent-color: var(--d-accent); }
.wf-scan-adv {
  border: 1px solid var(--d-border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--d-chrome);
  flex-shrink: 0;
}
.wf-scan-adv > summary {
  cursor: default;
  font-size: 12px;
  font-weight: 700;
  color: var(--d-text);
  list-style: none;
}
.wf-scan-adv > summary::-webkit-details-marker { display: none; }
.wf-scan-adv > summary::before {
  content: "▸ ";
  color: var(--d-muted);
}
.wf-scan-adv[open] > summary::before { content: "▾ "; }
.wf-scan-adv.nested {
  margin-top: 8px;
  background: var(--d-elev);
}
.wf-adv-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wf-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 4px 8px;
  margin-top: 6px;
}
.wf-opt-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--d-muted);
}
.wf-opt-grid input { accent-color: var(--d-accent); flex-shrink: 0; }
.wf-demo-row.two { grid-template-columns: 1fr 1fr; }
.wf-demo-row.three { grid-template-columns: 1fr 1fr 1fr; }
.wf-run-status {
  font-size: 11px;
  color: var(--d-muted);
  padding: 8px 10px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-chrome);
  flex-shrink: 0;
}
.wf-mission-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.wf-mission-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.wf-mission-kpis div {
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-chrome);
  padding: 6px 8px;
}
.wf-mission-kpis em {
  display: block;
  font-style: normal;
  font-size: 9px;
  color: var(--d-muted);
}
.wf-mission-kpis strong { font-size: 13px; font-family: ui-monospace, Consolas, monospace; }
.wf-mission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.wf-mission-grid span {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--d-border);
  color: var(--d-muted);
  background: var(--d-chrome);
  font-family: ui-monospace, Consolas, monospace;
}
.wf-mission-grid span.run {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--d-soft);
}
.wf-mission-grid span.done {
  color: var(--d-ok);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}
.wf-list.wf-compact {
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-chrome);
  padding: 4px 10px;
  margin-bottom: 4px;
}
.wf-list.wf-compact > div {
  padding: 4px 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10.5px;
}

.wf-demo-body {
  display: grid;
  grid-template-columns: var(--d-nav) minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.wf-demo-nav {
  background: var(--d-surf);
  border-right: 1px solid var(--d-border);
  padding: 10px 6px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
}
.wf-demo-nav > span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--d-muted);
  padding: 6px 8px 8px;
}
.wf-nav-spacer {
  flex: 1 1 auto;
  min-height: 16px;
  pointer-events: none;
}
.wf-nav-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--d-border);
  margin-bottom: 4px;
}
.wf-demo-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--d-muted);
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}
.wf-demo-nav button:hover { background: var(--d-elev); color: var(--d-text); }
.wf-demo-nav button.active {
  background: var(--d-soft);
  color: #93c5fd;
  box-shadow: inset 3px 0 0 var(--d-accent);
}

.wf-demo-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: var(--d-surf);
  margin: 10px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  overflow: hidden;
}

.wf-demo-ws {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 6px 10px 0;
  background: var(--d-chrome);
  border-bottom: 1px solid var(--d-border);
  flex-shrink: 0;
  height: 42px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: flex-end;
}
.wf-demo-ws.empty {
  height: 0;
  padding: 0;
  border-bottom: 0;
  overflow: hidden;
}
.wf-demo-ws:empty::after {
  content: "";
  display: block;
  height: 1px;
}
.wf-demo-ws button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--d-muted);
  font-weight: 700;
  font-size: 11.5px;
  padding: 8px 12px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.wf-demo-ws button.active {
  background: var(--d-surf);
  color: #93c5fd;
}

.wf-demo-stack {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--d-surf);
}

.wf-demo-panel {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  overflow: auto;
  background: var(--d-surf);
}
.wf-demo-panel.active { display: flex; }
.wf-demo-panel[data-demo-panel="findings"] {
  overflow: hidden;
}
.wf-demo-panel[data-demo-panel="proxy"] {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.wf-demo-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.wf-demo-h strong { font-size: 14px; }
.wf-demo-meta {
  font-size: 10.5px;
  color: var(--d-muted);
  font-family: ui-monospace, Consolas, monospace;
}

.wf-demo-field label {
  display: block;
  font-size: 10px;
  color: var(--d-muted);
  margin-bottom: 3px;
  font-weight: 600;
}
.wf-demo-field input,
.wf-demo-field textarea {
  width: 100%;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--d-input);
  color: var(--d-text);
  font: inherit;
  pointer-events: none;
  resize: none;
}
.wf-demo-field select {
  width: 100%;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--d-input);
  color: var(--d-text);
  font: inherit;
  pointer-events: auto;
  cursor: pointer;
}
.wf-demo-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; }
.wf-demo-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.wf-demo-btn {
  appearance: none;
  border: 1px solid var(--d-border);
  background: var(--d-elev);
  color: var(--d-text);
  border-radius: 8px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 11.5px;
  pointer-events: none;
}
.wf-demo-btn[data-ptas-back],
.wf-demo-btn[data-ast-to-findings],
.wf-ptas-subtabs button,
.wf-mgr-tabs button,
.wf-ast-rail-item {
  pointer-events: auto;
  cursor: pointer;
}
.wf-demo-btn.primary {
  background: var(--d-accent);
  border-color: var(--d-accent);
  color: #fff;
}

.wf-hero {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), rgba(244, 63, 94, 0.06));
  flex-shrink: 0;
}
.wf-hero input {
  flex: 1;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--d-input);
  color: var(--d-text);
  font: inherit;
  pointer-events: none;
}
.wf-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.wf-presets span {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--d-border);
  background: var(--d-elev);
  color: var(--d-muted);
}

.wf-card {
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-elev);
  padding: 8px 10px;
  flex-shrink: 0;
}
.wf-card strong { display: block; font-size: 11px; margin-bottom: 4px; }
.wf-card .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--d-muted);
  font-family: ui-monospace, Consolas, monospace;
}

.wf-fsm,
.wf-phases {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex-shrink: 0;
}
.wf-fsm i,
.wf-phases b {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--d-border);
  color: var(--d-muted);
  background: var(--d-chrome);
}
.wf-fsm i.on,
.wf-phases b.run {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--d-soft);
}
.wf-phases b.done {
  color: var(--d-ok);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.wf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  flex-shrink: 0;
}
.wf-stats div {
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-chrome);
  padding: 7px 9px;
}
.wf-stats em { display: block; font-style: normal; font-size: 9px; color: var(--d-muted); }
.wf-stats strong { font-size: 12px; font-family: ui-monospace, Consolas, monospace; }

.wf-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8px;
  flex: 1;
  min-height: 160px;
}
.wf-split.eq { grid-template-columns: 1fr 1.2fr; }
.wf-pane {
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-chrome);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.wf-pane header {
  padding: 7px 10px;
  border-bottom: 1px solid var(--d-border);
  background: var(--d-elev);
  font-size: 10.5px;
  color: var(--d-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.wf-pane pre,
.wf-pane .wf-list {
  margin: 0;
  padding: 8px 10px;
  overflow: auto;
  flex: 1;
  min-height: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.wf-list > div {
  padding: 5px 0;
  border-bottom: 1px solid rgba(36, 48, 68, 0.8);
}

.wf-line-obs { color: var(--d-muted); }
.wf-line-hyp { color: #93c5fd; }
.wf-line-win { color: var(--d-ok); }
.wf-line-pack { color: #38bdf8; }
.wf-line-auth { color: #34d399; }
.wf-line-brain { color: #a78bfa; }

.wf-find {
  border: 1px solid var(--d-border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--d-chrome);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.wf-sev {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  background: var(--d-err);
  line-height: 1.2;
}
.wf-sev.med { background: var(--d-warn); color: #111; }
.wf-sev.low { background: #64748b; }
.wf-find h4 { margin: 0 0 2px; font-size: 12px; font-weight: 600; }
.wf-find p { margin: 0; font-size: 10px; color: var(--d-muted); font-family: ui-monospace, Consolas, monospace; }
.wf-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--d-ok);
  border: 1px solid rgba(34, 197, 94, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}
.wf-badge.lead {
  background: rgba(234, 179, 8, 0.12);
  color: var(--d-warn);
  border-color: rgba(234, 179, 8, 0.35);
}
.wf-badge.likely {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.35);
}
.wf-badge.idle {
  background: rgba(139, 155, 180, 0.12);
  color: var(--d-muted);
  border-color: rgba(139, 155, 180, 0.35);
}

.wf-table-wrap {
  border: 1px solid var(--d-border);
  border-radius: 8px;
  overflow: auto;
  background: var(--d-chrome);
  flex-shrink: 0;
}
.wf-ptas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.wf-ptas-table th,
.wf-ptas-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--d-border);
  white-space: nowrap;
}
.wf-ptas-table th {
  font-size: 10px;
  font-weight: 700;
  color: var(--d-muted);
  background: var(--d-elev);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wf-ptas-table tbody tr {
  cursor: pointer;
}
.wf-ptas-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.1);
}
.wf-ptas-table tbody tr.active {
  background: var(--d-soft);
}
.wf-ptas-list,
.wf-ptas-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.wf-ptas-results[hidden],
.wf-ptas-list[hidden],
.wf-ptas-pane[hidden],
[data-ptas-back][hidden] {
  display: none !important;
}
.wf-ptas-results-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.08), rgba(37, 99, 235, 0.08));
  flex-shrink: 0;
}
.wf-ptas-results-head .title { font-size: 13px; font-weight: 700; }
.wf-ptas-results-head .meta {
  font-size: 10.5px;
  color: var(--d-muted);
  font-family: ui-monospace, Consolas, monospace;
  margin-top: 2px;
}
.wf-ptas-subtabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.wf-ptas-subtabs button {
  appearance: none;
  border: 1px solid var(--d-border);
  background: var(--d-elev);
  color: var(--d-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.wf-ptas-subtabs button.active {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--d-soft);
}
.wf-ptas-subtabs .count {
  margin-inline-start: 4px;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
}
.wf-ptas-pane {
  display: none;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.wf-ptas-pane.active { display: flex; }
.wf-sev-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wf-sev-ribbon .sev-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  color: var(--d-muted);
}
.wf-sev-ribbon .sev-pill .n { font-size: 14px; font-weight: 800; }
.wf-sev-ribbon .sev-pill.critical {
  color: #fecdd3;
  border-color: rgba(225, 29, 72, 0.5);
  background: rgba(225, 29, 72, 0.16);
}
.wf-sev-ribbon .sev-pill.critical .n { color: #fb7185; }
.wf-sev-ribbon .sev-pill.high {
  color: #ffedd5;
  border-color: rgba(234, 88, 12, 0.5);
  background: rgba(234, 88, 12, 0.16);
}
.wf-sev-ribbon .sev-pill.high .n { color: #fb923c; }
.wf-sev-ribbon .sev-pill.medium {
  color: #fef08a;
  border-color: rgba(202, 138, 4, 0.45);
  background: rgba(202, 138, 4, 0.14);
}
.wf-sev-ribbon .sev-pill.medium .n { color: #fbbf24; }
.wf-sev-ribbon .sev-pill.low {
  color: #bfdbfe;
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.14);
}
.wf-sev-ribbon .sev-pill.low .n { color: #60a5fa; }
.wf-sev-ribbon .sev-pill.info {
  color: #cbd5e1;
  border-color: rgba(100, 116, 139, 0.45);
  background: rgba(100, 116, 139, 0.14);
}
.wf-sev-ribbon .sev-pill.info .n { color: #94a3b8; }
.wf-sev-ribbon .sev-pill.confirmed {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}
.wf-sev-ribbon .sev-pill.confirmed .n { color: #22c55e; }
.wf-sev-ribbon.tight .sev-pill { padding: 3px 6px; gap: 4px; }
.wf-sev-ribbon.tight .sev-pill .n { font-size: 12px; }
.wf-ptas-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}
.wf-ptas-toolbar input,
.wf-ptas-toolbar select {
  border: 1px solid var(--d-border);
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--d-input);
  color: var(--d-text);
  font: inherit;
  font-size: 11px;
  pointer-events: auto;
  cursor: pointer;
}
.wf-ptas-toolbar input { flex: 1; min-width: 140px; cursor: text; }
.wf-ptas-toolbar select { flex: 0 0 120px; }
.wf-ptas-main-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(200px, 0.9fr);
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.wf-ptas-table-full {
  height: 100%;
  max-height: none;
  flex: 1;
}
.wf-ptas-table-full .wf-ptas-table td {
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wf-score {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 13px;
  font-family: ui-monospace, Consolas, monospace;
  line-height: 1.15;
}
.wf-score span {
  font-size: 9px;
  font-weight: 600;
  color: var(--d-muted);
  text-transform: capitalize;
}
.wf-score.critical { color: #fb7185; }
.wf-score.high { color: #fb923c; }
.wf-score.medium { color: #fbbf24; }
.wf-score.low { color: #60a5fa; }
.wf-score.info { color: #94a3b8; }
.wf-sev-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--d-border);
  text-transform: capitalize;
}
.wf-sev-badge.critical { color: #fecdd3; border-color: rgba(225, 29, 72, 0.45); background: rgba(225, 29, 72, 0.15); }
.wf-sev-badge.high { color: #ffedd5; border-color: rgba(234, 88, 12, 0.45); background: rgba(234, 88, 12, 0.15); }
.wf-sev-badge.medium { color: #fef08a; border-color: rgba(202, 138, 4, 0.4); background: rgba(202, 138, 4, 0.12); }
.wf-sev-badge.low { color: #bfdbfe; border-color: rgba(37, 99, 235, 0.4); background: rgba(37, 99, 235, 0.12); }
.wf-sev-badge.info { color: #cbd5e1; border-color: rgba(100, 116, 139, 0.4); background: rgba(100, 116, 139, 0.12); }
.wf-ptas-detail {
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-chrome);
  padding: 10px;
  overflow: auto;
  min-height: 0;
}
.wf-ptas-detail.full { flex: 1; }
.wf-ptas-detail-h {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.wf-ptas-detail-h strong { display: block; font-size: 13px; }
.wf-ptas-detail-h em {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: var(--d-muted);
  margin-top: 2px;
}
.wf-ptas-kv {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 4px 8px;
  font-size: 11px;
  margin: 0 0 10px;
}
.wf-ptas-kv dt { color: var(--d-muted); }
.wf-ptas-kv dd {
  margin: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10.5px;
  word-break: break-word;
}
.wf-ptas-block {
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--d-border);
  background: var(--d-elev);
}
.wf-ptas-block h5 {
  margin: 0 0 5px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--d-muted);
}
.wf-ptas-block pre,
.wf-ptas-block .body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--d-text);
}
.wf-ptas-block pre { font-family: ui-monospace, Consolas, monospace; }
.wf-ptas-block .body { font-family: inherit; }
@media (max-width: 900px) {
  .wf-ptas-main-split { grid-template-columns: 1fr; }
}
.wf-findings-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 4px !important;
  margin: 0 -4px;
}
.wf-findings-list > div:hover {
  background: rgba(59, 130, 246, 0.1);
}
.wf-findings-list > div.active {
  background: var(--d-soft);
}
.wf-ptas-table .mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10.5px;
  color: var(--d-muted);
}

.wf-wiki-subtabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.wf-wiki-subtabs button {
  appearance: none;
  border: 1px solid var(--d-border);
  background: var(--d-elev);
  color: var(--d-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: default;
  pointer-events: none;
}
.wf-wiki-subtabs button.active {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--d-soft);
}

/* Assets hub */
.wf-ast-hub {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.wf-ast-rail {
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-elev);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
}
.wf-ast-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
}
.wf-ast-rail-item {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--d-muted);
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wf-ast-rail-item span { font-size: 10px; font-weight: 500; color: var(--d-muted); }
.wf-ast-rail-item:hover { background: var(--d-surf); color: var(--d-text); }
.wf-ast-rail-item.active {
  background: var(--d-soft);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}
.wf-ast-main {
  min-width: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Reports */
.wf-mgr-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wf-mgr-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--d-muted);
  margin: 0;
}
.wf-mgr-filters select {
  height: 28px;
  border: 1px solid var(--d-border);
  border-radius: 7px;
  background: var(--d-input);
  color: var(--d-text);
  font: inherit;
  font-size: 11px;
  padding: 0 8px;
  pointer-events: auto;
  cursor: pointer;
}
.wf-mgr-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.wf-mgr-tabs button {
  appearance: none;
  border: 1px solid var(--d-border);
  background: var(--d-elev);
  color: var(--d-muted);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.wf-mgr-tabs button.active {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--d-soft);
}
.wf-mgr-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  gap: 0;
}
.wf-mgr-panel { display: none; flex-direction: column; gap: 0; }
.wf-mgr-panel.active { display: flex; }
.wf-mgr-rationale {
  font-size: 11px;
  line-height: 1.45;
  color: var(--d-muted);
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-elev);
  padding: 8px 10px;
  margin-bottom: 10px;
}
.wf-mgr-rationale strong { color: var(--d-text); }
.wf-mgr-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.wf-mgr-kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wf-mgr-kpi {
  position: relative;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-elev);
  padding: 10px 10px 10px 14px;
  overflow: hidden;
}
.wf-mgr-kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--d-accent);
}
.wf-mgr-kpi.band-red::before { background: #e11d48; }
.wf-mgr-kpi.band-orange::before { background: #ea580c; }
.wf-mgr-kpi.band-amber::before { background: #ca8a04; }
.wf-mgr-kpi.band-blue::before { background: #2563eb; }
.wf-mgr-kpi.band-green::before { background: #10b981; }
.wf-mgr-kpi em {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: var(--d-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.wf-mgr-kpi strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--d-text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.wf-mgr-kpi strong.sev-c { color: #fb7185; }
.wf-mgr-kpi strong.sev-h { color: #fb923c; }
.wf-mgr-kpi strong.sev-m { color: #fbbf24; }
.wf-mgr-kpi strong.sev-l { color: #60a5fa; }
.wf-mgr-kpi span {
  display: block;
  font-size: 10px;
  color: var(--d-muted);
  margin-top: 4px;
}
.wf-delta { font-weight: 700; }
.wf-delta.up { color: #fb7185; }
.wf-delta.down { color: #34d399; }
.wf-delta.flat { color: var(--d-muted); }
.sev-c { color: #fb7185 !important; }
.sev-h { color: #fb923c !important; }
.sev-m { color: #fbbf24 !important; }
.sev-l { color: #60a5fa !important; }
.wf-risk-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.wf-risk-pill.critical { color: #fecdd3; background: rgba(225, 29, 72, 0.18); border-color: rgba(225, 29, 72, 0.45); }
.wf-risk-pill.high { color: #ffedd5; background: rgba(234, 88, 12, 0.18); border-color: rgba(234, 88, 12, 0.45); }
.wf-risk-pill.medium { color: #fef08a; background: rgba(202, 138, 4, 0.16); border-color: rgba(202, 138, 4, 0.4); }
.wf-risk-pill.low { color: #bfdbfe; background: rgba(37, 99, 235, 0.14); border-color: rgba(37, 99, 235, 0.4); }
.wf-mgr-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
}
.wf-mgr-grid.three { grid-template-columns: 1.2fr 0.9fr 0.9fr; }
.wf-mgr-card {
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-elev);
  padding: 10px 12px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.wf-mgr-card-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.wf-mgr-card-h span { font-size: 12px; font-weight: 650; color: var(--d-text); }
.wf-mgr-card-h em { font-style: normal; font-size: 10px; color: var(--d-muted); }
.wf-mgr-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  margin-top: 4px;
  padding: 8px 4px 0;
  flex: 1;
}
.wf-mgr-chart.tall { height: 140px; }
.wf-mgr-chart i {
  position: relative;
  flex: 1;
  display: block;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #60a5fa, rgba(59, 130, 246, 0.3));
  min-height: 8px;
}
.wf-mgr-chart i.hist {
  background: linear-gradient(180deg, #34d399, rgba(16, 185, 129, 0.28));
}
.wf-mgr-chart i b {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  color: var(--d-muted);
  white-space: nowrap;
}
.wf-mgr-axis {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--d-muted);
  margin-top: 4px;
  padding: 0 2px;
}
.wf-sev-bars { display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: center; }
.wf-sev-bars.compact { gap: 7px; }
.wf-sev-bar {
  display: grid;
  grid-template-columns: 72px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--d-muted);
}
.wf-sev-bar i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #334155;
  min-width: 4px;
}
.wf-sev-bar b { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.wf-sev-bar.critical span, .wf-sev-bar.critical b { color: #fb7185; }
.wf-sev-bar.critical i { background: linear-gradient(90deg, #e11d48, #fb7185); }
.wf-sev-bar.high span, .wf-sev-bar.high b { color: #fb923c; }
.wf-sev-bar.high i { background: linear-gradient(90deg, #ea580c, #fb923c); }
.wf-sev-bar.medium span, .wf-sev-bar.medium b { color: #fbbf24; }
.wf-sev-bar.medium i { background: linear-gradient(90deg, #ca8a04, #fbbf24); }
.wf-sev-bar.low span, .wf-sev-bar.low b { color: #60a5fa; }
.wf-sev-bar.low i { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.wf-sev-bar.info span, .wf-sev-bar.info b { color: #94a3b8; }
.wf-sev-bar.info i { background: linear-gradient(90deg, #64748b, #94a3b8); }
.wf-heat { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.wf-heat-head, .wf-heat-row {
  display: grid;
  grid-template-columns: 72px repeat(4, 1fr);
  gap: 4px;
  align-items: center;
}
.wf-heat-head span { font-size: 10px; font-weight: 800; text-align: center; }
.wf-heat-row > span { font-size: 10px; color: var(--d-muted); }
.wf-heat-row i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(51, 65, 85, 0.55);
}
.wf-heat-row i.c1, .wf-heat-row i.h1, .wf-heat-row i.m1, .wf-heat-row i.l1 { opacity: 0.45; }
.wf-heat-row i.c2 { background: rgba(225, 29, 72, 0.45); }
.wf-heat-row i.c3 { background: rgba(225, 29, 72, 0.75); }
.wf-heat-row i.h2 { background: rgba(234, 88, 12, 0.4); }
.wf-heat-row i.h3 { background: rgba(234, 88, 12, 0.6); }
.wf-heat-row i.h4 { background: rgba(234, 88, 12, 0.85); }
.wf-heat-row i.m2 { background: rgba(202, 138, 4, 0.4); }
.wf-heat-row i.m3 { background: rgba(202, 138, 4, 0.6); }
.wf-heat-row i.m4 { background: rgba(202, 138, 4, 0.8); }
.wf-heat-row i.l2 { background: rgba(37, 99, 235, 0.45); }
.wf-heat-row i.l3 { background: rgba(37, 99, 235, 0.7); }
.wf-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1;
}
.wf-gauge-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, var(--d-elev) 58%, transparent 59%),
    conic-gradient(#e11d48 0 26%, #ea580c 26% 58%, #ca8a04 58% 82%, #2563eb 82% 100%);
  border: 1px solid var(--d-border);
}
.wf-gauge-ring strong { font-size: 28px; font-weight: 800; color: #fb923c; line-height: 1; }
.wf-gauge-ring em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: #fb923c; margin-top: 2px; }
.wf-gauge-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.wf-compare {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
}
.wf-compare-col {
  flex: 1;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: var(--d-chrome);
  padding: 10px;
}
.wf-compare-col em { display: block; font-style: normal; font-size: 10px; color: var(--d-muted); margin-bottom: 4px; }
.wf-compare-col strong { display: block; font-size: 24px; margin-bottom: 8px; }
.wf-compare-arrow { font-size: 18px; color: var(--d-muted); font-weight: 700; }

/* Settings sections (match app) */
.wf-settings-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 8px;
}
.wf-set-sec {
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-surf);
  overflow: hidden;
}
.wf-set-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--d-border);
  background: var(--d-elev);
}
.wf-set-head h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--d-text); }
.wf-set-head p { margin: 4px 0 0; font-size: 11px; color: var(--d-muted); line-height: 1.4; }
.wf-set-body { padding: 12px; }
.wf-purpose-row {
  border: 1px solid var(--d-border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--d-elev);
  margin-bottom: 8px;
}
.wf-purpose-row .lab { font-size: 12px; font-weight: 600; color: var(--d-text); margin-bottom: 6px; }
.wf-purpose-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wf-purpose-controls label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  color: var(--d-muted);
  margin: 0;
}
.wf-purpose-controls select {
  width: 100%;
  height: 30px;
  font-size: 11px;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .wf-mgr-kpis.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wf-mgr-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .wf-ast-hub { grid-template-columns: 1fr; }
  .wf-mgr-kpis,
  .wf-mgr-kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-mgr-grid { grid-template-columns: 1fr; }
}

/* LLM provider rows (Settings) */
.wf-prov {
  border: 1px solid var(--d-border);
  border-radius: 10px;
  padding: 10px;
  background: var(--d-elev);
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}
.wf-prov-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wf-prov-top label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  margin: 0;
  color: var(--d-text);
}
.wf-prov-top input[type="radio"] { accent-color: var(--d-accent); }
.wf-prov-top .name {
  flex: 1;
  min-width: 100px;
  border: 1px solid var(--d-border);
  border-radius: 6px;
  padding: 5px 8px;
  background: var(--d-input);
  color: var(--d-text);
  font-size: 11px;
  pointer-events: none;
}
.wf-prov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.wf-prov-grid input {
  border: 1px solid var(--d-border);
  border-radius: 6px;
  padding: 5px 8px;
  background: var(--d-input);
  color: var(--d-text);
  font-size: 11px;
  font-family: ui-monospace, Consolas, monospace;
  pointer-events: none;
  width: 100%;
}
.wf-prov-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.wf-prov-actions .wf-demo-btn { font-size: 10px; padding: 4px 8px; }

/* Proxy — match WikiFuzzer view-proxy */
.wf-proxy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  gap: 0;
}
.wf-proxy-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--d-border);
  background: var(--d-surf);
  flex-wrap: wrap;
  flex-shrink: 0;
}
.wf-proxy-toolbar h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.wf-proxy-toolbar .url {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--d-border);
  border-radius: 6px;
  padding: 6px 8px;
  background: var(--d-bg);
  color: var(--d-text);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  pointer-events: none;
}
.wf-proxy-toolbar .chk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--d-muted);
  white-space: nowrap;
}
.wf-proxy-toolbar .st {
  font-size: 11px;
  color: var(--d-ok);
  white-space: nowrap;
}
.wf-proxy-hint {
  padding: 6px 12px;
  font-size: 10.5px;
  color: var(--d-muted);
  border-bottom: 1px solid var(--d-border);
  background: var(--d-chrome);
  line-height: 1.4;
  flex-shrink: 0;
}
.wf-proxy-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.wf-proxy-left {
  width: 42%;
  min-width: 160px;
  max-width: 48%;
  display: flex;
  flex-direction: column;
  background: var(--d-bg);
  border-right: 1px solid var(--d-border);
  min-height: 0;
  overflow: hidden;
}
.wf-proxy-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.wf-proxy-sec {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--d-muted);
  background: var(--d-surf);
  border-bottom: 1px solid var(--d-border);
  display: flex;
  justify-content: space-between;
}
.wf-proxy-hist {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-bottom: 1px solid var(--d-border);
}
.wf-proxy-item {
  display: grid;
  grid-template-columns: 40px 36px 1fr;
  gap: 4px;
  padding: 4px 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10.5px;
  border-bottom: 1px solid rgba(36, 48, 68, 0.7);
  align-items: center;
  color: var(--d-text);
}
.wf-proxy-item.sel { background: rgba(59, 130, 246, 0.15); }
.wf-proxy-item .code { color: var(--d-ok); }
.wf-proxy-item .meth { color: #93c5fd; }
.wf-proxy-sites {
  max-height: 72px;
  overflow: auto;
  border-bottom: 1px solid var(--d-border);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10.5px;
  padding: 4px 10px;
  color: var(--d-muted);
}
.wf-proxy-pend {
  max-height: 56px;
  overflow: auto;
  border-bottom: 1px solid var(--d-border);
  font-size: 10.5px;
  font-family: Consolas, "Courier New", monospace;
  padding: 4px 10px;
  color: var(--d-warn);
}
.wf-proxy-cookies {
  max-height: 40px;
  overflow: auto;
  font-size: 10px;
  font-family: Consolas, "Courier New", monospace;
  padding: 4px 10px;
  color: var(--d-muted);
}
.wf-proxy-actions {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--d-border);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.wf-proxy-panes {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
}
.wf-proxy-panes .wf-pane {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--d-border);
  background: var(--d-bg);
}
.wf-proxy-panes .wf-pane header {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
}

/* Repeater — closer to real toolbar + split */
.wf-rep-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--d-border);
  margin-bottom: 2px;
}
.wf-rep-toolbar h3 { margin: 0; font-size: 13px; font-weight: 600; }
.wf-rep-target {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 180px;
  font-size: 11px;
  color: var(--d-muted);
}
.wf-rep-target select,
.wf-rep-target input {
  border: 1px solid var(--d-border);
  border-radius: 6px;
  padding: 4px 6px;
  background: var(--d-input);
  color: var(--d-text);
  font-size: 11px;
}
.wf-rep-target select {
  pointer-events: auto;
  cursor: pointer;
}
.wf-rep-target input {
  pointer-events: none;
}
.wf-rep-target input.host { flex: 1; min-width: 80px; font-family: Consolas, monospace; }
.wf-rep-conn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--d-muted);
  flex-shrink: 0;
}
.wf-rep-tabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.wf-rep-tabs span {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--d-border);
  border-bottom: 0;
  background: var(--d-elev);
  color: var(--d-muted);
}
.wf-rep-tabs span.on {
  background: var(--d-surf);
  color: #93c5fd;
}

.wf-tools-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex-shrink: 0;
}
.wf-tools-tabs button {
  appearance: none;
  border: 1px solid var(--d-border);
  background: var(--d-elev);
  color: var(--d-muted);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}
.wf-tools-tabs button.active {
  background: var(--d-soft);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.45);
}

.wf-http {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.wf-http .wf-pane { min-height: 180px; }

.hero-visual .wf-demo,
.gallery-viewport .wf-demo {
  border-radius: 0;
}
.gallery-viewport {
  line-height: normal;
  background: #0b1220;
  height: auto;
}
.hero-visual-wrap { max-width: none; }
.hero-grid-rival {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
}
.demo-note {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

@media (max-width: 1100px) {
  .hero-grid-rival { grid-template-columns: 1fr; }
  #hero-demo.demo-mount { height: 480px; }
}
@media (max-width: 900px) {
  .wf-demo { --d-nav: 96px; }
  .wf-demo-nav button { font-size: 11px; padding: 7px 6px; }
  .wf-split, .wf-http, .wf-demo-row { grid-template-columns: 1fr; }
  .wf-stats { grid-template-columns: 1fr 1fr; }
  #gallery-demo.demo-mount { height: 560px; }
  #how-demo.demo-mount { height: 520px; }
}
