.page { padding: 24px 32px; max-width: 1400px; margin: 0 auto; }

.header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.title { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; margin: 0; }
.subtitle { margin: 6px 0 0; opacity: 0.7; font-size: 14px; }
.discovered { font-weight: 600; opacity: 0.9; }
.backBtn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; border: 1px solid rgba(128,128,128,0.4); background: transparent; color: inherit; border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.backBtn:hover { background: rgba(128,128,128,0.12); }
.headerActions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* "Show findings" — jumps to the Red Zone AI Attack Vulnerabilities table */
.showFindings { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; border: 1px solid rgba(34,197,94,0.5); background: rgba(34,197,94,0.1); color: inherit; border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.showFindings:hover { background: rgba(34,197,94,0.2); border-color: rgba(34,197,94,0.7); }
.findingsCta { margin-top: 16px; }

.filterBar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filterLabel { font-size: 13px; opacity: 0.6; margin-right: 4px; }
.filterChip { background: transparent; border: 1px solid; border-radius: 5px; padding: 3px 12px; font-size: 12px; cursor: pointer; opacity: 0.55; transition: opacity 0.12s; }
.filterChip:hover { opacity: 0.85; }
.filterChipActive { opacity: 1; font-weight: 700; background: rgba(59,130,246,0.12); }
.filterClear { background: transparent; border: 1px solid rgba(128,128,128,0.4); border-radius: 5px; padding: 3px 12px; font-size: 12px; color: inherit; opacity: 0.7; cursor: pointer; }
.filterClear:hover { opacity: 1; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 28px; align-items: stretch; }
.card {
  position: relative;
  border: 1px solid rgba(128,128,128,0.22);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: linear-gradient(160deg, rgba(128,128,128,0.07), rgba(128,128,128,0.02));
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #f59e0b);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(220,38,38,0.45); box-shadow: 0 10px 26px rgba(0,0,0,0.20); }
.card:hover::before { opacity: 1; }
.cardGreyed { opacity: 0.45; }
.cardGreyed:hover { transform: none; border-color: rgba(128,128,128,0.22); box-shadow: none; }
.cardGreyed:hover::before { opacity: 0; }

/* Other tools, locked while a scan runs (one scan at a time) */
.cardLocked { opacity: 0.5; }
.cardLocked:hover { transform: none; border-color: rgba(128,128,128,0.22); box-shadow: none; }
.cardLocked:hover::before { opacity: 0; }

/* The tool whose scan is currently running */
.cardRunning { border-color: rgba(59,130,246,0.55); box-shadow: 0 0 0 1px rgba(59,130,246,0.30); }
.cardRunning::before { opacity: 1; background: linear-gradient(90deg, #3b82f6, #22c55e); }
.cardNameText { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cardNameText :global(svg) { color: #3b82f6; flex-shrink: 0; }

/* Badges sit at the bottom of the card */
.cardFooter { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.cardChips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { border: 1px solid; border-radius: 5px; padding: 2px 8px; font-size: 11px; font-weight: 500; white-space: nowrap; }

.cardName { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--color-green-300); }
/* Deeper green on light backgrounds for AA contrast; light green on dark */
:global([data-theme='light']) .cardName { color: var(--color-green-600); }
@media (prefers-color-scheme: light) {
  :global(:root:not([data-theme='dark'])) .cardName { color: var(--color-green-600); }
}
.cardStyle { font-size: 11px; font-weight: 500; flex-shrink: 0; color: var(--text-tertiary); }
.cardPurpose { font-size: 13px; opacity: 0.75; line-height: 1.45; }
.cardMeta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; opacity: 0.6; margin-top: 2px; }
.cardActions { display: flex; justify-content: flex-end; align-items: center; }
.soon { font-size: 11px; opacity: 0.5; font-style: italic; margin-right: auto; }
.launchBtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(220,38,38,0.5); background: rgba(220,38,38,0.1); color: inherit; border-radius: 6px; padding: 6px 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.14s ease, border-color 0.14s ease, transform 0.1s ease; }
.launchBtn:hover:not(:disabled) { background: rgba(220,38,38,0.2); border-color: rgba(220,38,38,0.7); }
.launchBtn:active:not(:disabled) { transform: scale(0.97); }
.launchBtn:disabled { cursor: not-allowed; opacity: 0.5; }
.launchBtnOpen { background: rgba(128,128,128,0.08); border-color: rgba(128,128,128,0.4); }
.launchBtnOpen:hover:not(:disabled) { background: rgba(128,128,128,0.16); border-color: rgba(128,128,128,0.55); }

.detail { border: 1px solid rgba(128,128,128,0.25); border-radius: 12px; padding: 20px; margin-bottom: 28px; }
.detailTitle { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.block { padding: 12px 0; border-top: 1px solid rgba(128,128,128,0.15); }
.block:first-of-type { border-top: none; }
.blockTitle { font-size: 14px; font-weight: 600; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.muted { opacity: 0.55; font-size: 13px; }
.hint { opacity: 0.5; font-size: 12px; margin: 6px 0 0; }

.row { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; cursor: pointer; }
.rowMain { font-family: monospace; }
.rowCtx { opacity: 0.55; font-size: 12px; margin-left: auto; }

.probeRow { display: flex; flex-wrap: wrap; gap: 14px; }
.probe { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }

/* Probe selection grid (name + description per family) */
.probeToolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.probeCount { font-size: 12px; opacity: 0.7; margin-right: auto; }
.probeToolBtn { font-size: 12px; padding: 3px 10px; border: 1px solid rgba(128,128,128,0.4); border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.probeToolBtn:hover { background: rgba(128,128,128,0.12); }
.probeGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.probeCard { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid rgba(128,128,128,0.2); border-radius: 8px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.probeCard:hover { border-color: rgba(128,128,128,0.45); }
.probeCardOn { border-color: rgba(59,130,246,0.6); background: rgba(59,130,246,0.06); }
.probeCardOff { opacity: 0.5; cursor: not-allowed; }
.probeCardOff input { cursor: not-allowed; }
.probeBadge { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  color: #b45309; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.35);
  border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.probeCard input { margin-top: 3px; flex-shrink: 0; }
.probeBody { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; align-self: stretch; }
.probeName { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
/* GPU-recommended warning: red alert icon, message on hover (title tooltip) */
.probeWarn { display: inline-flex; align-items: center; color: #ef4444; cursor: help; }
.probeDesc { font-size: 12px; opacity: 0.6; line-height: 1.35; }
.probeChip { margin-top: auto; padding-top: 6px; display: flex; justify-content: flex-start; }

/* Custom (off-graph) target form */
.customTag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; border: 1px solid rgba(168,85,247,0.6); color: #a855f7; border-radius: 4px; padding: 0 5px; }
.iconBtn { background: transparent; border: none; color: inherit; opacity: 0.5; cursor: pointer; margin-left: auto; }
.iconBtn:hover { opacity: 1; color: #ef4444; }
.customForm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(128,128,128,0.2); }
.customFormLabel { font-size: 12px; opacity: 0.6; width: 100%; }
.customForm input, .customForm select { padding: 5px 8px; border: 1px solid rgba(128,128,128,0.35); border-radius: 6px; background: transparent; color: inherit; font-size: 13px; }
.customUrl { flex: 1; min-width: 240px; }
.customModel { width: 140px; }
.addBtn { display: flex; align-items: center; gap: 4px; border: 1px solid rgba(128,128,128,0.4); background: transparent; color: inherit; border-radius: 6px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.addBtn:hover { background: rgba(128,128,128,0.12); }

/* Target authentication */
.authBlock { margin: 12px 0; padding: 12px; border: 1px solid rgba(128,128,128,0.2); border-radius: 8px; }
.authTitle { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.authModes { display: flex; gap: 16px; margin: 10px 0; }
.authMode { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.authInput { width: 100%; padding: 6px 8px; border: 1px solid rgba(128,128,128,0.35); border-radius: 6px; background: transparent; color: inherit; }
.authCustom { display: flex; gap: 8px; flex-wrap: wrap; }
.authCustom input { padding: 6px 8px; border: 1px solid rgba(128,128,128,0.35); border-radius: 6px; background: transparent; color: inherit; flex: 1; min-width: 160px; }

.boundsRow { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.boundsRow label { display: flex; flex-direction: column; font-size: 12px; opacity: 0.8; gap: 4px; }
.boundsRow input { width: 110px; padding: 5px 8px; border: 1px solid rgba(128,128,128,0.35); border-radius: 6px; background: transparent; color: inherit; }
.purposeLabel { display: flex; flex-direction: column; gap: 4px; font-size: 12px; opacity: 0.85; margin: 4px 0 10px; }
.purposeLabel em { opacity: 0.6; font-style: italic; }
.purposeInput { width: 100%; padding: 6px 8px; border: 1px solid rgba(128,128,128,0.35); border-radius: 6px; background: transparent; color: inherit; font: inherit; resize: vertical; }
.strategyRow { display: flex; flex-wrap: wrap; gap: 6px; }
.strategyChip { font-size: 12px; padding: 4px 10px; border: 1px solid rgba(128,128,128,0.35); border-radius: 5px; background: transparent; color: inherit; cursor: pointer; }
.strategyChipOn { border-color: rgba(59,130,246,0.6); background: rgba(59,130,246,0.12); font-weight: 600; }
.roe { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 8px 0; }

.launchRow { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.primary { display: flex; align-items: center; gap: 6px; background: #dc2626; color: #fff; border: none; border-radius: 8px; padding: 8px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.primary:disabled { opacity: 0.45; cursor: not-allowed; }
.stop { display: flex; align-items: center; gap: 6px; background: transparent; border: 1px solid rgba(128,128,128,0.4); color: inherit; border-radius: 8px; padding: 8px 16px; cursor: pointer; }
.err { color: #ef4444; font-size: 13px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* "scanning" indicator on the Output header (all tools) */
.scanning { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 12px; font-weight: 600; color: #4ade80; }
.scanBar { position: relative; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(74,222,128,0.15); margin: 4px 0 10px; }
.scanBar::before { content: ''; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, #4ade80, transparent); animation: scanSlide 1.1s ease-in-out infinite; }
@keyframes scanSlide { 0% { left: -40%; } 100% { left: 100%; } }

.status { font-size: 13px; margin-bottom: 10px; }
.logs { background: #0a0a0a; color: #e5e7eb; border-radius: 8px; padding: 12px; font-size: 12px; max-height: 320px; overflow: auto; font-family: monospace; }
.log_info { opacity: 0.85; }
.log_error { color: #f87171; }
.log_success { color: #4ade80; }
.log_action { color: #60a5fa; }

.findings { margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(128,128,128,0.15); }
.table th { font-weight: 600; opacity: 0.7; font-size: 12px; }
.tgt { font-family: monospace; font-size: 12px; }
.ev { font-family: monospace; font-size: 11px; opacity: 0.7; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sevDot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
