:root {
  --bg: #edf2f7;
  --bg-soft: #ffffff;
  --bg-panel: #0f172a;
  --card: rgba(255, 255, 255, 0.96);
  --card-muted: #f8fafc;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #102033;
  --muted: #526277;
  --muted-strong: #314154;

  --cyan: #0f9db6;
  --blue: #295fd6;
  --purple: #5b58d6;
  --indigo: #384fc5;
  --amber: #c58817;
  --green: #128164;
  --red: #d64b4b;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 28px 60px rgba(15, 23, 42, 0.14);

  /* Status colors */
  --status-queued: #2563eb;
  --status-running: #06b6d4;
  --status-completed: #10b981;
  --status-failed: #ef4444;
  --status-cancelled: #64748b;
  --status-blocked: #ef4444;
  --status-review: #f59e0b;
  --status-picked-up: #7c3aed;
  --status-needs-review: #f59e0b;
  --status-completed-with-gaps: #0ea5e9;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(41, 95, 214, 0.08), transparent 34%),
    linear-gradient(180deg, #f7faff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: 'Manrope', 'Inter', system-ui, sans-serif;
}
body { min-height: 100vh; }
a { color: inherit; }

.app-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar {
  border-right: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 28%),
    linear-gradient(180deg, #111b2d 0%, #0f172a 100%);
  color: #e5eefc;
  padding: 26px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.04);
}
.brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.brand-badge {
  width: 44px; height: 44px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(86, 108, 255, 0.98), rgba(16, 185, 129, 0.8));
  box-shadow: 0 12px 28px rgba(3, 10, 24, 0.42);
  font-weight: 800;
}
.brand h1 { font-size: 1rem; margin: 0; color: #f8fbff; }
.brand p { margin: 2px 0 0; color: rgba(226, 232, 240, 0.74); font-size: 0.85rem; }

.nav-list { display: flex; flex-direction: column; gap: 10px; }
.nav-btn {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: #e2e8f0;
  padding: 13px 14px;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-btn:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
.nav-btn.active {
  background: linear-gradient(135deg, rgba(41,95,214,0.2), rgba(15,157,182,0.12));
  border-color: rgba(125, 164, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 10px 30px rgba(3, 10, 24, 0.24);
}
.nav-btn .title { font-weight: 600; display: block; }
.nav-btn .desc { font-size: 0.82rem; color: rgba(226, 232, 240, 0.64); display: block; margin-top: 2px; }

.sidebar-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.84rem;
}

.main { padding: 30px; }
.page { display: none; animation: fadeIn 0.24s ease; }
.page.active { display: block; }
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.page-header h2 { margin: 0; font-size: 1.9rem; letter-spacing: -0.02em; }
.page-header p { margin: 8px 0 0; color: var(--muted); max-width: 780px; line-height: 1.5; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08); color: var(--muted-strong);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  font-size: 0.85rem;
}
.dot { width: 9px; height: 9px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 4px rgba(18,129,100,0.12); }

/* Status pills */
.status-pill.status-queued .dot { background: var(--status-queued); }
.status-pill.status-running .dot { background: var(--status-running); }
.status-pill.status-picked_up .dot,
.status-pill.status-picked-up .dot { background: var(--status-picked-up); }
.status-pill.status-completed .dot { background: var(--status-completed); }
.status-pill.status-completed_with_gaps .dot,
.status-pill.status-completed-with-gaps .dot { background: var(--status-completed-with-gaps); }
.status-pill.status-failed .dot { background: var(--status-failed); }
.status-pill.status-cancelled .dot { background: var(--status-cancelled); }
.status-pill.status-review .dot,
.status-pill.status-needs_review .dot,
.status-pill.status-needs-review .dot { background: var(--status-needs-review); }
.status-pill.status-blocked .dot { background: var(--status-blocked); }
.status-pill.status-open .dot { background: var(--amber); }
.status-pill.status-resolved .dot,
.status-pill.status-closed .dot,
.status-pill.status-done .dot { background: var(--green); }

.grid { display: grid; gap: 18px; }
.grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.research-rule-preview {
  max-width: 42rem;
  max-height: 8rem;
  overflow: auto;
  margin: 8px 0 0;
  padding: 8px 10px;
  background: var(--surface-muted, rgba(0, 0, 0, 0.16));
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.metric-card {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0.95;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56,79,197,0.24);
  box-shadow: var(--shadow-strong);
}
.card h3, .card h4 { margin: 0 0 10px; }
.card-subtle { color: var(--muted); font-size: 0.9rem; }
.metric { font-size: 2.1rem; font-weight: 800; margin: 12px 0 4px; letter-spacing: -0.03em; }
.metric-label { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

/* Improve label/input spacing inside filter cards */
.card label span.small { display: block; margin-bottom: 10px; }
.card label input, .card label select { margin-top: 2px; }

.kv-list { display: grid; gap: 10px; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(15,23,42,0.06); padding-top: 10px; }
.kv-row:first-child { border-top: 0; padding-top: 0; }
.coverage-collector { border-top: 1px solid rgba(15,23,42,0.06); padding: 12px 0; }
.coverage-collector:first-child { border-top: 0; padding-top: 0; }
.kv-key { color: var(--muted); }
.kv-val { text-align: right; word-break: break-word; color: var(--muted-strong); font-weight: 600; }

.feed { display: grid; gap: 12px; }
.feed-item {
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(248,250,252,0.95), rgba(255,255,255,0.95));
}
.feed-item .meta { color: var(--muted); font-size: 0.84rem; margin-top: 6px; }

.role-group { margin-top: 26px; }
.role-group h3 { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; }
.role-card .role { font-weight: 700; }
.role-card .dept { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.role-card .mini { margin-top: 12px; display: grid; gap: 8px; font-size: 0.92rem; }
.role-card .mini span { color: var(--muted); }

.kanban { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.column {
  min-height: 420px; background: rgba(255,255,255,0.76);
  border: 1px solid rgba(15,23,42,0.08); border-radius: 22px; padding: 16px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
  box-shadow: 0 12px 26px rgba(15,23,42,0.05);
}
.column.drag-over {
  border-color: rgba(99,102,241,0.45);
  background: rgba(99,102,241,0.08);
  transform: translateY(-2px);
}
.column h3 { margin: 0 0 14px; font-size: 1rem; }
.task-list { display: grid; gap: 12px; min-height: 80px; }
.task-card {
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,0.98));
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}
.task-card.dragging {
  opacity: 0.7;
  border-color: rgba(6,182,212,0.5);
}
.task-card .title { font-weight: 700; margin-bottom: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badge {
  padding: 5px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600;
  border: 1px solid rgba(148,163,184,0.20);
  background: rgba(148,163,184,0.10);
  color: var(--text);
}

/* Domain badges */
.badge.domain-exec { border-color: rgba(34,211,238,0.35); background: rgba(34,211,238,0.12); }
.badge.domain-platform { border-color: rgba(96,165,250,0.35); background: rgba(96,165,250,0.12); }
.badge.domain-security { border-color: rgba(167,139,250,0.35); background: rgba(167,139,250,0.12); }
.badge.external { border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.12); }
.badge.review { border-color: rgba(251,113,133,0.35); background: rgba(251,113,133,0.12); }

/* Priority badges */
.badge.priority-urgent { border-color: rgba(251,113,133,0.45); background: rgba(251,113,133,0.14); }
.badge.priority-high { border-color: rgba(251,191,36,0.45); background: rgba(251,191,36,0.14); }
.badge.priority-normal { border-color: rgba(96,165,250,0.45); background: rgba(96,165,250,0.14); }
.badge.priority-low { border-color: rgba(52,211,153,0.45); background: rgba(52,211,153,0.14); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid rgba(15,23,42,0.06); }
th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
tr.artifact-row { cursor: pointer; transition: background 0.15s ease; }
tr.artifact-row:hover { background: rgba(15,23,42,0.02); }
.compact-header { margin-bottom: 16px; }
.checkbox-card { display: flex; align-items: center; }
.selected-row { background: rgba(37,99,235,0.08); }
.finding-row { cursor: pointer; }
.finding-row:hover { background: rgba(37,99,235,0.05); }
.finding-origin {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}
.finding-origin.core {
  color: #7ee7d8;
  border-color: rgba(53, 214, 196, 0.3);
  background: rgba(53, 214, 196, 0.08);
}
.finding-detail-header { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:14px; }
.finding-detail-header h4 { margin:0 0 6px; }
.detail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(41,95,214,0.08);
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.detail-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.finding-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}
.finding-meta-line span:not(:last-child)::after {
  content: "•";
  margin-left: 8px;
  color: rgba(15,23,42,0.28);
}
.native-close-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,0.08);
}
.native-close-grid {
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
}
.finding-detail-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
.finding-detail-card { padding:16px; }
.detail-summary {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15,23,42,0.03);
  border: 1px solid rgba(15,23,42,0.06);
  color: var(--text);
  line-height: 1.45;
}
.compact-feed-item {
  padding: 12px 13px;
}
.compact-empty {
  padding: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.action-cluster {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,0.08);
}
.action-cluster-label {
  font-weight: 700;
  color: var(--muted-strong);
}
.muted-inline { color: var(--muted); }

.empty {
  border: 1px dashed rgba(15,23,42,0.12);
  border-radius: 16px;
  padding: 20px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(248,250,252,0.92), rgba(255,255,255,0.92));
}
.small { font-size: 0.85rem; color: var(--muted); }
.error { color: #fca5a5; }
.good { color: #86efac; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
  .grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
}

.task-card { cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease; }
.task-card:hover { transform: translateY(-2px); border-color: rgba(56,79,197,0.22); box-shadow: var(--shadow-strong); }

.task-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.mini-btn {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.mini-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.10);
}

.modal.hidden { display: none; }
.modal {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; z-index: 1000; padding: 20px;
}
.modal-card {
  width: min(860px, 100%);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.22);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.icon-btn, .primary-btn, .secondary-btn, .danger-btn {
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  font: inherit;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.icon-btn { background: rgba(15,23,42,0.04); color: var(--text); width: 40px; height: 40px; }
.primary-btn { background: linear-gradient(135deg, #214cc8, #0f9db6); color: white; padding: 10px 15px; border: 0; box-shadow: 0 14px 28px rgba(41,95,214,0.2); }
.secondary-btn { background: rgba(255,255,255,0.88); color: var(--muted-strong); padding: 10px 14px; }
.danger-btn { background: rgba(239,68,68,0.10); color: var(--red); padding: 10px 14px; }
.icon-btn:hover, .primary-btn:hover, .secondary-btn:hover, .danger-btn:hover { transform: translateY(-1px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label { display: grid; gap: 7px; font-size: 0.9rem; color: var(--muted); }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  background: rgba(15,23,42,0.03);
  color: var(--text);
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none;
  border-color: rgba(37,99,235,0.35);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.checkbox-row { display: flex !important; align-items: center; gap: 10px; margin-top: 18px; }
.checkbox-row input { width: auto; }
.modal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.modal-actions-right { display: flex; gap: 10px; }
.integration-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

@media (max-width: 720px) {
  .main { padding: 18px; }
  .grid.cols-5, .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .finding-detail-grid { grid-template-columns: 1fr; }
  .finding-detail-header { flex-direction: column; }
  .detail-status-stack { align-items: flex-start; }
}

.prompt-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

.prompt-output {
  width: 100%;
  background: rgba(248,250,252,0.95);
  color: var(--text);
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 16px;
  padding: 14px;
  font: inherit;
  line-height: 1.45;
}

.task-card-actions { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.mini-btn {
  background: rgba(255,255,255,0.9);
  color: var(--muted-strong);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 999px;
  padding: 7px 11px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.mini-btn:hover { border-color: rgba(41,95,214,0.32); background: rgba(41,95,214,0.06); }


.run-requests-grid td { vertical-align: top; }
.rr-main { font-weight: 600; }
.rr-sub { margin-top: 4px; color: var(--muted); }
.rr-meta { margin-top: 8px; color: var(--muted); }
.rr-result { max-width: 340px; line-height: 1.45; color: var(--text); }
.rr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rr-proof-list { margin-top: 8px; display: grid; gap: 4px; color: var(--muted); line-height: 1.4; }
.rr-proof-list strong { color: var(--text); font-weight: 600; }


.primary-btn.is-loading, .secondary-btn.is-loading, .danger-btn.is-loading, .status-pill.is-loading {
  opacity: 0.8;
  cursor: wait !important;
}
.primary-btn:disabled, .secondary-btn:disabled, .danger-btn:disabled, .icon-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}


html, body { width: 100%; overflow-x: hidden; }
.main { min-width: 0; overflow-x: hidden; }
.page-header { flex-wrap: wrap; }
.page-header > div { min-width: 0; }
.grid { min-width: 0; }
.card { min-width: 0; }
input, select, textarea { width: 100%; max-width: 100%; }

#page-tasks .page-header {
  align-items: center;
}

#page-tasks .grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 1280px) {
  .app-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .main { padding: 22px; }
}

@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .grid.cols-5, .grid.cols-4, .grid.cols-3, .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* OKComputer_Sec reference skin.
   Translates the local/live Vite reference into this static dashboard without
   importing the Kimi runtime, external trackers, or generated React bundle. */
.okcomputer-skin {
  --void-black: #050507;
  --surface: #0d0d12;
  --surface-elevated: #14141a;
  --surface-soft: #191922;
  --border-color: #1e1e28;
  --border-active: #2a2a38;
  --teal-primary: #00d4c8;
  --teal-glow: rgba(0, 212, 200, 0.4);
  --teal-muted: #0a3d3a;
  --cyan: #38bdf8;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --emerald: #10b981;
  --violet: #8b5cf6;
  --text-primary: #f0f0f5;
  --text-secondary: #a2a2b7;
  --text-tertiary: #6b6b80;
  --text-inverse: #050507;
  --bg: var(--void-black);
  --bg-soft: var(--surface);
  --bg-panel: var(--surface);
  --card: var(--surface);
  --card-muted: var(--surface-elevated);
  --border: var(--border-color);
  --border-strong: var(--border-active);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --muted-strong: var(--text-primary);
  --blue: var(--cyan);
  --green: var(--emerald);
  --red: var(--rose);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.5);
  background: var(--void-black);
  color: var(--text-primary);
}

.okcomputer-skin,
.okcomputer-skin input,
.okcomputer-skin textarea,
.okcomputer-skin select,
.okcomputer-skin button {
  font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.okcomputer-skin code,
.okcomputer-skin pre,
.okcomputer-skin .font-mono-data,
.okcomputer-skin .brand-overline,
.okcomputer-skin .small,
.okcomputer-skin .metric-label,
.okcomputer-skin .kv-key,
.okcomputer-skin .top-strip,
.okcomputer-skin .status-pill,
.okcomputer-skin .badge,
.okcomputer-skin .triage-rec-pill,
.okcomputer-skin .blog-draft-meta,
.okcomputer-skin .campaign-table,
.okcomputer-skin .triage-cli-fallback {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

.okcomputer-skin::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 212, 200, 0.12), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.08), transparent 28%),
    linear-gradient(180deg, #050507 0%, #07070b 100%);
}

.okcomputer-skin * {
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}

.okcomputer-skin::-webkit-scrollbar,
.okcomputer-skin *::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.okcomputer-skin::-webkit-scrollbar-track,
.okcomputer-skin *::-webkit-scrollbar-track {
  background: transparent;
}

.okcomputer-skin::-webkit-scrollbar-thumb,
.okcomputer-skin *::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
}

.okcomputer-skin .app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--void-black);
}

.okcomputer-skin .sidebar {
  width: 260px;
  padding: 0;
  color: var(--text-primary);
  background: var(--void-black);
  border-right: 1px solid var(--border-color);
  box-shadow: none;
}

.okcomputer-skin .brand {
  min-height: 73px;
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.okcomputer-skin .brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--void-black);
  background: linear-gradient(135deg, var(--teal-primary), var(--cyan));
  box-shadow: 0 0 24px rgba(0, 212, 200, 0.28);
}

.okcomputer-skin .brand-badge svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.1;
}

.okcomputer-skin .brand-overline {
  color: var(--teal-primary);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.okcomputer-skin .brand h1 {
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.okcomputer-skin .brand p {
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.okcomputer-skin .nav-list {
  gap: 4px;
  padding: 12px 8px;
}

.okcomputer-skin .nav-btn {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 8px 10px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 10px;
  color: var(--text-secondary);
  background: transparent;
}

.okcomputer-skin .nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.035);
  border-left-color: rgba(255,255,255,0.08);
}

.okcomputer-skin .nav-btn.active {
  color: var(--teal-primary);
  background: rgba(0, 212, 200, 0.055);
  border-left-color: var(--teal-primary);
  box-shadow: none;
}

.okcomputer-skin .nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  background: var(--surface-elevated);
  border: 1px solid rgba(255,255,255,0.03);
}

.okcomputer-skin .nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.okcomputer-skin .nav-btn.active .nav-icon {
  color: var(--teal-primary);
  background: rgba(0, 212, 200, 0.14);
  border-color: rgba(0, 212, 200, 0.2);
}

.okcomputer-skin .nav-btn .title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.okcomputer-skin .nav-btn .desc {
  margin-top: 2px;
  color: var(--text-tertiary);
  font-size: 0.66rem;
  line-height: 1.25;
}

.okcomputer-skin .sidebar-footer {
  margin: auto 12px 12px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--surface);
}

.okcomputer-skin .sidebar-footer-label {
  color: var(--text-tertiary);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.okcomputer-skin #global-status {
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.45;
}

.okcomputer-skin .main {
  min-width: 0;
  padding: 0;
  background: var(--void-black);
}

.okcomputer-skin .top-strip {
  height: 48px;
  padding: 0 20px;
  color: var(--text-secondary);
  background: var(--void-black);
  border-bottom: 1px solid var(--border-color);
  box-shadow: none;
  border-radius: 0;
}

.okcomputer-skin .top-strip-live {
  color: var(--teal-primary);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.okcomputer-skin .dot {
  width: 8px;
  height: 8px;
  background: var(--teal-primary);
  box-shadow: 0 0 0 5px rgba(0, 212, 200, 0.12), 0 0 18px rgba(0, 212, 200, 0.35);
}

.okcomputer-skin .top-strip-meta {
  color: var(--text-secondary);
  font-size: 0.74rem;
}

.okcomputer-skin #top-strip-time {
  color: var(--text-tertiary);
}

.okcomputer-skin .page {
  padding: 32px;
}

.okcomputer-skin .page.active {
  animation: okc-page-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes okc-page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.okcomputer-skin .page-header {
  margin-bottom: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.okcomputer-skin .page-header h2 {
  color: var(--text-primary);
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.okcomputer-skin .page-header p {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.okcomputer-skin .card,
.okcomputer-skin .column,
.okcomputer-skin .modal-card,
.okcomputer-skin .blog-auth-card,
.okcomputer-skin .triage-ops-auth-card,
.okcomputer-skin .campaign-research-card,
.okcomputer-skin .campaign-discovery-box,
.okcomputer-skin .campaign-result-section,
.okcomputer-skin .triage-review-section,
.okcomputer-skin .triage-campaign-dock {
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.okcomputer-skin .card h3,
.okcomputer-skin .card h4,
.okcomputer-skin .modal-card h3,
.okcomputer-skin .triage-review-panel h3,
.okcomputer-skin .campaign-result-section h4 {
  color: var(--text-primary);
  font-weight: 650;
}

.okcomputer-skin .small,
.okcomputer-skin .card-subtle,
.okcomputer-skin .metric-label,
.okcomputer-skin .feed-item .meta,
.okcomputer-skin .task-card-desc,
.okcomputer-skin .blog-draft-summary,
.okcomputer-skin .triage-rationale {
  color: var(--text-secondary);
}

.okcomputer-skin .metric-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-color: var(--border-color);
  background: var(--surface);
}

.okcomputer-skin .metric-card::before {
  inset: 16px auto 16px 0;
  width: 3px;
  height: auto;
  border-radius: 999px;
  background: var(--teal-primary);
}

.okcomputer-skin .metric-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-active);
  box-shadow: 0 0 24px rgba(0, 212, 200, 0.08), var(--shadow-soft);
}

.okcomputer-skin .metric {
  color: var(--text-primary);
  font-size: clamp(2rem, 3.2vw, 2.55rem);
  font-weight: 760;
}

.okcomputer-skin input,
.okcomputer-skin textarea,
.okcomputer-skin select {
  color: var(--text-primary);
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.okcomputer-skin input::placeholder,
.okcomputer-skin textarea::placeholder {
  color: var(--text-tertiary);
}

.okcomputer-skin input:focus,
.okcomputer-skin textarea:focus,
.okcomputer-skin select:focus,
.okcomputer-skin button:focus-visible,
.okcomputer-skin summary:focus-visible {
  outline: 0;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.14);
}

.okcomputer-skin .primary-btn {
  color: var(--void-black);
  background: var(--teal-primary);
  border: 1px solid rgba(0, 212, 200, 0.78);
  box-shadow: 0 0 20px rgba(0, 212, 200, 0.12);
}

.okcomputer-skin .primary-btn:hover {
  color: var(--void-black);
  background: #00e5d9;
  box-shadow: 0 0 24px rgba(0, 212, 200, 0.2);
}

.okcomputer-skin .secondary-btn,
.okcomputer-skin .mini-btn,
.okcomputer-skin .status-pill {
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.okcomputer-skin .secondary-btn:hover,
.okcomputer-skin .mini-btn:hover,
.okcomputer-skin .status-pill:hover {
  color: var(--teal-primary);
  border-color: var(--teal-primary);
  background: rgba(0, 212, 200, 0.05);
}

.okcomputer-skin .danger-btn {
  color: var(--rose);
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.28);
}

.okcomputer-skin .danger-btn:hover {
  color: #ff6b85;
  border-color: rgba(244, 63, 94, 0.46);
  background: rgba(244, 63, 94, 0.12);
}

.okcomputer-skin .badge,
.okcomputer-skin .triage-rec-pill,
.okcomputer-skin .blog-readiness-pill,
.okcomputer-skin .finding-status {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  color: var(--text-secondary);
}

.okcomputer-skin .badge.priority-urgent,
.okcomputer-skin .badge.status-critical,
.okcomputer-skin .triage-rec-pill.critical,
.okcomputer-skin .triage-rec-pill.false_positive,
.okcomputer-skin .triage-rec-pill.false-positive,
.okcomputer-skin .triage-rec-pill.failed {
  color: var(--rose);
  background: rgba(244, 63, 94, 0.09);
  border-color: rgba(244, 63, 94, 0.28);
}

.okcomputer-skin .badge.priority-high,
.okcomputer-skin .triage-rec-pill.open,
.okcomputer-skin .triage-rec-pill.high,
.okcomputer-skin .triage-rec-pill.needs_review,
.okcomputer-skin .triage-rec-pill.needs-review {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.22);
}

.okcomputer-skin .triage-rec-pill.expected_behavior,
.okcomputer-skin .triage-rec-pill.expected-behavior,
.okcomputer-skin .triage-rec-pill.completed,
.okcomputer-skin .badge.status-completed,
.okcomputer-skin .blog-readiness-pill.ready_to_review {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.24);
}

.okcomputer-skin .triage-rec-pill.not_applicable,
.okcomputer-skin .triage-rec-pill.not-applicable {
  color: var(--text-secondary);
  background: rgba(134, 142, 150, 0.1);
  border-color: rgba(134, 142, 150, 0.28);
}

.okcomputer-skin .kv-row,
.okcomputer-skin .feed-item,
.okcomputer-skin .blog-draft-item,
.okcomputer-skin .triage-alert-card,
.okcomputer-skin .campaign-package-row,
.okcomputer-skin .campaign-inline-row,
.okcomputer-skin .evidence-score-card,
.okcomputer-skin .blog-meta-grid > div,
.okcomputer-skin .blog-review-checklist,
.okcomputer-skin .finding-detail-card {
  color: var(--text-primary);
  background: var(--surface-elevated);
  border-color: var(--border-color);
}

.okcomputer-skin .feed-item {
  border-left-color: var(--teal-primary);
}

.okcomputer-skin .task-card {
  color: var(--text-primary);
  background: var(--surface-elevated);
  border-color: var(--border-color);
  box-shadow: var(--shadow-soft);
}

.okcomputer-skin .task-card:hover,
.okcomputer-skin .blog-draft-item:hover,
.okcomputer-skin .triage-alert-card:hover {
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.okcomputer-skin .task-card .title,
.okcomputer-skin .blog-draft-title,
.okcomputer-skin .triage-alert-title {
  color: var(--text-primary);
}

.okcomputer-skin .kv-key {
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.okcomputer-skin .kv-val {
  color: var(--text-secondary);
}

.okcomputer-skin table {
  color: var(--text-primary);
}

.okcomputer-skin th {
  color: var(--text-tertiary);
  background: var(--surface-elevated);
  border-color: var(--border-color);
}

.okcomputer-skin td {
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.okcomputer-skin tr:hover td {
  background: rgba(255,255,255,0.025);
  color: var(--text-primary);
}

.okcomputer-skin pre,
.okcomputer-skin .triage-cli-fallback,
.okcomputer-skin .campaign-cli-output pre,
.okcomputer-skin .blog-preview-body,
.okcomputer-skin .run-output,
.okcomputer-skin .prompt-output {
  color: var(--text-secondary);
  background: var(--void-black);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.okcomputer-skin .modal-backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.okcomputer-skin .modal-card {
  box-shadow: var(--shadow-strong);
}

.okcomputer-skin .empty-state {
  color: var(--text-secondary);
  background: var(--surface-elevated);
  border: 1px dashed var(--border-active);
  border-radius: 12px;
}

.okcomputer-skin .form-error,
.okcomputer-skin .error,
.okcomputer-skin .last-action-failed {
  color: var(--rose);
}

.okcomputer-skin .success,
.okcomputer-skin .ok,
.okcomputer-skin .approved {
  color: var(--emerald);
}

.okcomputer-skin #page-triage-ops {
  --triage-panel: var(--surface);
  --triage-panel-2: var(--surface-elevated);
  --triage-panel-3: var(--surface-soft);
  --triage-line: var(--border-color);
  --triage-line-strong: var(--border-active);
  --triage-text: var(--text-primary);
  --triage-muted: var(--text-secondary);
  --triage-subtle: var(--text-tertiary);
}

.okcomputer-skin .triage-alert-card.selected,
.okcomputer-skin .blog-draft-item.selected,
.okcomputer-skin .campaign-candidate-card.selected {
  border-color: rgba(0, 212, 200, 0.5);
  box-shadow: 0 0 24px rgba(0, 212, 200, 0.12);
}

.okcomputer-skin .triage-section-heading span,
.okcomputer-skin .campaign-list-head strong,
.okcomputer-skin .campaign-package-header h4 {
  color: var(--text-primary);
}

.okcomputer-skin .triage-section-heading small,
.okcomputer-skin .campaign-list-head small {
  color: var(--text-tertiary);
}

.okcomputer-skin .triage-filter-drawer,
.okcomputer-skin .triage-cli-drawer,
.okcomputer-skin .campaign-json-box {
  background: var(--surface-elevated);
  border-color: var(--border-color);
}

.okcomputer-skin .triage-campaign-dock > summary {
  color: var(--text-primary);
}

.okcomputer-skin .triage-campaign-dock > summary small {
  color: var(--text-secondary);
}

.okcomputer-skin .blog-review-note textarea,
.okcomputer-skin #campaign-json-input {
  min-height: 118px;
}

.okcomputer-skin .blog-preview-actions,
.okcomputer-skin .triage-ops-actions,
.okcomputer-skin .campaign-actions,
.okcomputer-skin .blog-actions {
  gap: 10px;
}

.okcomputer-skin .toast,
.okcomputer-skin .toast-container > * {
  background: var(--surface);
  border-color: var(--border-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-strong);
}

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

@media (max-width: 1024px) {
  .okcomputer-skin .app-shell {
    display: block;
  }

  .okcomputer-skin .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 80;
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .okcomputer-skin .brand {
    min-height: 64px;
  }

  .okcomputer-skin .mobile-menu-btn {
    display: inline-flex;
    border-color: var(--border-color);
    background: var(--surface-elevated);
  }

  .okcomputer-skin .mobile-menu-btn span:not(.sr-only) {
    background: var(--teal-primary);
  }

  .okcomputer-skin .nav-list {
    padding: 0 12px;
  }

  .okcomputer-skin.mobile-nav-open .nav-list {
    padding-bottom: 12px;
  }

  .okcomputer-skin .top-strip {
    top: 65px;
  }

  .okcomputer-skin .page {
    padding: 20px;
  }
}

@media (max-width: 720px) {
  .okcomputer-skin .page {
    padding: 12px;
  }

  .okcomputer-skin .page-header {
    padding: 18px;
  }

  .okcomputer-skin .nav-btn {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .okcomputer-skin .card,
  .okcomputer-skin .column,
  .okcomputer-skin .modal-card,
  .okcomputer-skin .page-header {
    border-radius: 14px;
  }

  .okcomputer-skin .top-strip {
    top: 62px;
  }
}

@media (max-width: 720px) {
  .main { padding: 16px; }
  .page-header h2 { font-size: 1.45rem; }
  .grid.cols-5, .grid.cols-4, .grid.cols-3, .grid.cols-2,
  #page-tasks .grid.cols-4,
  .finding-detail-grid {
    grid-template-columns: 1fr;
  }
  .status-pill { max-width: 100%; }
}


#page-tasks .kanban {
  align-items: start;
  scroll-padding-left: 8px;
}

#page-tasks .column {
  min-width: 260px;
}

#page-tasks .task-card {
  min-width: 0;
}

#page-tasks .task-card .title,
#page-tasks .task-card .small,
#page-tasks .task-card .meta,
#page-tasks .task-card .muted-inline {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1440px) {
  #page-tasks .kanban {
    grid-template-columns: repeat(6, minmax(260px, 1fr));
  }
}

@media (max-width: 980px) {
  #page-tasks .kanban {
    grid-template-columns: repeat(6, minmax(240px, 1fr));
  }
  #page-tasks .column {
    min-width: 240px;
  }
}

@media (max-width: 720px) {
  #page-tasks .kanban {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  #page-tasks .column {
    min-width: 0;
  }
}


.column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.column-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}
.column-head h3 {
  margin: 0;
}
.column-subtitle {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}
.column-count {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(79,70,229,0.10);
  color: var(--indigo);
  font-weight: 700;
}
.column-inbox { border-top: 3px solid rgba(37,99,235,0.55); }
.column-planned { border-top: 3px solid rgba(6,182,212,0.55); }
.column-in_progress { border-top: 3px solid rgba(124,58,237,0.55); }
.column-review { border-top: 3px solid rgba(245,158,11,0.55); }
.column-blocked { border-top: 3px solid rgba(239,68,68,0.55); }
.column-done { border-top: 3px solid rgba(16,185,129,0.55); }
.task-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.task-card-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}
.task-card-desc {
  line-height: 1.45;
  margin-top: 6px;
}
.task-list .empty {
  padding: 16px;
  font-size: 0.84rem;
}


#page-tasks .kanban {
  scroll-snap-type: x proximity;
}

#page-tasks .column {
  scroll-snap-align: start;
}

#page-tasks .column-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
}

.task-card.priority-urgent {
  border-color: rgba(239,68,68,0.28);
  box-shadow: 0 10px 24px rgba(239,68,68,0.08);
}
.task-card.priority-high {
  border-color: rgba(245,158,11,0.24);
}


.task-status-subtle > span {
  color: var(--muted);
}
.task-status-subtle select {
  border-color: rgba(15,23,42,0.08) !important;
  background: rgba(15,23,42,0.02) !important;
}
#task-status-help {
  margin-top: 8px;
}


.is-disabled-soft {
  opacity: 0.72;
}


.task-card-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.task-card-live {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid rgba(59,130,246,0.18);
  background: rgba(59,130,246,0.10);
  color: #1d4ed8;
  white-space: nowrap;
}
.task-card-live.queued,
.task-card-live.picked_up,
.task-card-live.running {
  background: rgba(6,182,212,0.10);
  border-color: rgba(6,182,212,0.20);
  color: #0f766e;
}
.task-card-live.needs_review,
.task-card-live.completed_with_gaps {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.22);
  color: #b45309;
}
.task-card-live.failed,
.task-card-live.cancelled {
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.18);
  color: #b91c1c;
}
.task-card-live.completed {
  background: rgba(16,185,129,0.10);
  border-color: rgba(16,185,129,0.20);
  color: #047857;
}

/* Paperclip-style Org Map */
.org-tree {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 0;
}

.org-executive {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.org-executive-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(79,70,229,0.1));
  border: 2px solid rgba(124,58,237,0.3);
  border-radius: 16px;
  padding: 20px 32px;
  text-align: center;
  min-width: 280px;
  box-shadow: 0 8px 32px rgba(124,58,237,0.15);
}

.org-executive-card .role-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 4px;
}

.org-executive-card .role-dept {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.org-departments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  position: relative;
}

.org-dept-column {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  position: relative;
}

.org-dept-column::before {
  content: '';
  position: absolute;
  top: -32px;
  left: 50%;
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  transform: translateX(-50%);
}

.org-dept-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.org-dept-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.org-dept-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.org-dept-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.org-role-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.org-role-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.org-role-item:hover {
  border-color: rgba(37,99,235,0.3);
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
  transform: translateY(-1px);
}

.org-role-item.active {
  border-color: var(--blue);
  background: rgba(37,99,235,0.05);
}

.org-role-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}

.org-role-info {
  flex: 1;
  min-width: 0;
}

.org-role-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.org-role-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  gap: 12px;
}

.org-role-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.org-role-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.org-role-status-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.org-role-status-dot.busy {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.org-role-status-dot.offline {
  background: var(--muted);
}

.org-role-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.org-role-item:hover .org-role-actions {
  opacity: 1;
}

/* Role Detail Panel */
.org-role-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}

.org-role-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.org-role-detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.org-role-detail-info h3 {
  margin: 0 0 4px 0;
  font-size: 1.3rem;
}

.org-role-detail-info p {
  margin: 0;
  color: var(--muted);
}

.org-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.org-stat-card {
  background: rgba(148,163,184,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.org-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.org-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tactical redesign overrides */

html,
body {
  background:
    radial-gradient(circle at top, rgba(0, 217, 255, 0.1), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(91, 88, 214, 0.14), transparent 34%),
    linear-gradient(180deg, #05070a 0%, #030508 100%);
  color: #e1e3e6;
  font-family: "Inter", system-ui, sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(rgba(74, 78, 85, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 78, 85, 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 50% 14%, black 18%, transparent 74%);
  opacity: 0.18;
}

body::after {
  background:
    radial-gradient(circle at 50% 16%, rgba(0, 217, 255, 0.1), transparent 24%),
    url("./radar-texture.png") center top / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.08;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(8, 11, 15, 0.94), rgba(5, 7, 10, 0.98)),
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.12), transparent 28%);
  border-right: 1px solid rgba(74, 78, 85, 0.28);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.brand {
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.95), rgba(91, 88, 214, 0.68));
  color: #030508;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.brand-badge svg {
  width: 22px;
  height: 22px;
}

.brand-copy {
  min-width: 0;
}

.brand-overline {
  color: #00d9ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}

.brand h1 {
  color: #f8fbff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.brand p {
  color: rgba(225, 227, 230, 0.72);
}

.nav-list {
  gap: 8px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  background: rgba(11, 13, 16, 0.2);
}

.nav-btn:hover,
.nav-btn.active {
  background: rgba(17, 19, 24, 0.92);
  border-color: rgba(36, 40, 48, 0.96);
}

.nav-btn.active {
  border-left-color: #00d9ff;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(36, 40, 48, 0.96);
  background: rgba(11, 13, 16, 0.95);
  color: #00d9ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-copy {
  display: block;
  flex: 1;
  min-width: 0;
}

.nav-btn .title {
  color: inherit;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-btn .desc {
  margin-top: 4px;
  color: rgba(225, 227, 230, 0.62);
  font-size: 0.75rem;
  line-height: 1.35;
}

.sidebar-footer-label {
  color: rgba(139, 143, 150, 0.64);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.main {
  background: rgba(11, 13, 16, 0.76);
}

.top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(74, 78, 85, 0.28);
  border-radius: 8px;
  background: rgba(11, 13, 16, 0.84);
}

.top-strip-live,
.top-strip-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-strip-live {
  color: #00d9ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.top-strip-meta {
  color: #8b8f96;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

#top-strip-time {
  color: #e1e3e6;
}

.card,
.column,
.modal-card,
.feed-item,
.empty {
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.96), rgba(17, 19, 24, 0.94));
  border-color: rgba(36, 40, 48, 0.96);
  color: #e1e3e6;
}

.metric-card {
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.4), transparent 68%);
}

.metric,
.card h3,
.card h4,
.page-header h2 {
  color: #f8fbff;
}

.page-header h2 {
  font-family: "Space Grotesk", sans-serif;
}

.small,
.metric-label,
.status-pill,
.top-strip,
#global-status,
th {
  font-family: "JetBrains Mono", monospace;
}

table,
td,
.kv-val {
  color: #e1e3e6;
}

th,
.metric-label,
.small,
.kv-key {
  color: #8b8f96;
}

.status-pill,
.mini-btn,
.secondary-btn,
.icon-btn {
  background: rgba(17, 19, 24, 0.96);
  border-color: rgba(36, 40, 48, 0.96);
  color: #e1e3e6;
}

.primary-btn {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.92), rgba(91, 88, 214, 0.72));
  color: #030508;
}

@media (max-width: 720px) {
  .top-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* High-contrast readability pass for the hosted dark dashboard. */
.brand-overline,
.top-strip-live,
.nav-icon {
  color: #67e8f9;
}

.brand h1,
.nav-btn,
.nav-btn .title,
.sidebar-footer-label,
.page-header h2,
.card h3,
.card h4,
.column h3,
.metric,
#top-strip-time {
  color: #f8fafc;
}

.brand p,
.nav-btn .desc,
.page-header p,
.top-strip-meta,
.metric-label,
.card .small,
.column .small,
.feed-item .meta,
.kv-key,
.muted-inline,
.column-subtitle,
th,
.rr-sub,
.rr-meta,
.rr-proof-list,
.org-role-meta,
.org-role-detail-info p,
.org-dept-subtitle,
.org-stat-label {
  color: #dbeafe;
}

.nav-btn {
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(148, 163, 184, 0.18);
}

.nav-btn:hover,
.nav-btn.active {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(103, 232, 249, 0.42);
}

.sidebar-footer-label {
  font-weight: 800;
  opacity: 1;
}

#global-status {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.top-strip {
  color: #e0f2fe;
}

.status-pill,
.mini-btn,
.secondary-btn,
.icon-btn {
  color: #f8fafc;
}

input,
select,
textarea,
.form-grid input,
.form-grid select,
.form-grid textarea,
.prompt-output {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.9);
}

input::placeholder,
textarea::placeholder {
  color: #475569;
  opacity: 1;
}

label,
.form-grid label,
.card label span.small,
.checkbox-row span {
  color: #e0f2fe;
}

.task-card {
  color: #0f172a;
}

.task-card .title,
.task-card .small,
.task-card .meta,
.task-card .muted-inline,
.task-card-status,
.task-card-desc {
  color: #334155;
}

.task-card .title {
  color: #0f172a;
}

.empty {
  color: #e0f2fe;
  border-color: rgba(148, 163, 184, 0.36);
}

.task-list .empty {
  background: rgba(15, 23, 42, 0.72);
  color: #e0f2fe;
}

.column-count {
  background: rgba(103, 232, 249, 0.16);
  color: #a5f3fc;
}

/* SecOps Command upgrade: stronger hierarchy, denser analyst panels, clearer data surfaces. */
:root {
  --command-canvas: #030508;
  --command-panel: #0b0d10;
  --command-panel-2: #111827;
  --command-line: rgba(100, 116, 139, 0.36);
  --command-line-strong: rgba(103, 232, 249, 0.38);
  --command-text: #f8fafc;
  --command-subtext: #dbeafe;
  --command-muted: #a8b3c7;
  --command-cyan: #67e8f9;
  --command-amber: #fbbf24;
  --command-red: #fb7185;
  --command-green: #34d399;
}

html,
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.16), transparent 34%),
    radial-gradient(circle at 96% 18%, rgba(251, 191, 36, 0.09), transparent 26%),
    linear-gradient(135deg, #030508 0%, #08111f 44%, #030508 100%);
  color: var(--command-text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.72), rgba(0,0,0,0.16));
}

.app-shell {
  position: relative;
  z-index: 1;
  grid-template-columns: 312px minmax(0, 1fr);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.98), rgba(11, 13, 16, 0.96)),
    radial-gradient(circle at top right, rgba(103, 232, 249, 0.14), transparent 32%);
  border-right: 1px solid var(--command-line);
  padding: 24px 18px;
}

.brand {
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.42));
}

.brand-badge {
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 1), rgba(34, 211, 238, 0.58)),
    #67e8f9;
  color: #020617;
}

.brand-overline {
  color: var(--command-cyan);
  text-shadow: 0 0 18px rgba(103, 232, 249, 0.28);
}

.nav-list {
  gap: 9px;
}

.nav-btn {
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(100, 116, 139, 0.22);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.52));
  color: var(--command-text);
}

.nav-btn:hover,
.nav-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(15, 23, 42, 0.94));
  border-color: var(--command-line-strong);
  box-shadow: 0 12px 36px rgba(8, 47, 73, 0.34), inset 0 0 0 1px rgba(103, 232, 249, 0.08);
}

.nav-btn .title {
  font-size: 0.82rem;
  color: #ffffff;
}

.nav-btn .desc {
  color: #dbeafe;
  font-size: 0.77rem;
}

.nav-icon {
  border-color: rgba(103, 232, 249, 0.3);
  background: rgba(8, 47, 73, 0.42);
  color: var(--command-cyan);
}

.sidebar-footer {
  border-top-color: rgba(100, 116, 139, 0.3);
}

.main {
  padding: 24px;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.72), rgba(2, 6, 23, 0.86));
}

.top-strip {
  min-height: 44px;
  border-color: rgba(103, 232, 249, 0.24);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.28));
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.24);
}

.top-strip-meta,
.page-header p,
.small,
.metric-label,
.column-subtitle,
.kv-key,
.muted-inline {
  color: var(--command-subtext);
}

.page-header {
  padding: 18px 18px 20px;
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 13, 24, 0.74)),
    radial-gradient(circle at top right, rgba(103, 232, 249, 0.09), transparent 35%);
}

.page-header h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  letter-spacing: -0.04em;
}

.status-pill,
.mini-btn,
.secondary-btn,
.icon-btn {
  border-color: rgba(103, 232, 249, 0.22);
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
}

.status-pill:hover,
.mini-btn:hover {
  border-color: rgba(103, 232, 249, 0.48);
  background: rgba(8, 47, 73, 0.5);
}

.card,
.column,
.modal-card,
.feed-item,
.empty {
  border-radius: 14px;
  border-color: rgba(100, 116, 139, 0.3);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
}

.card h3,
.card h4,
.column h3 {
  letter-spacing: 0.01em;
}

.grid.cols-5,
.grid.cols-4 {
  gap: 14px;
}

.metric-card {
  min-height: 118px;
  border-color: rgba(103, 232, 249, 0.18);
}

.metric-card::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.88), rgba(251, 191, 36, 0.5), transparent);
}

.metric {
  color: var(--command-text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

#finding-summary {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}

#finding-summary .card {
  padding: 16px 18px;
  min-height: 112px;
}

#page-findings > .grid.cols-2 {
  grid-template-columns: minmax(680px, 1.35fr) minmax(420px, 0.75fr);
  align-items: start;
}

#page-findings > .grid.cols-2 > .card {
  min-height: 640px;
}

#findings-table .table-wrap {
  max-height: min(76vh, 860px);
  overflow: auto;
  border: 1px solid rgba(100, 116, 139, 0.32);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.82);
}

#findings-table table {
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
}

#findings-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(103, 232, 249, 0.22);
  background: rgba(3, 7, 18, 0.98);
  color: #bae6fd;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

#findings-table tbody tr {
  background: rgba(15, 23, 42, 0.64);
}

#findings-table tbody tr:nth-child(even) {
  background: rgba(8, 13, 24, 0.74);
}

#findings-table tbody tr:hover,
#findings-table tbody tr.selected-row {
  background: rgba(8, 47, 73, 0.66);
}

#findings-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.22);
  color: #f8fafc;
  vertical-align: top;
}

#findings-table td strong {
  color: #ffffff;
  font-size: 0.95rem;
}

#findings-table td .small {
  color: #cbd5e1;
  line-height: 1.5;
}

#findings-table td:nth-child(1) {
  min-width: 280px;
}

#findings-table td:nth-child(4),
#findings-table td:nth-child(5) {
  min-width: 210px;
}

#findings-table td:nth-child(6) {
  min-width: 180px;
}

.badge,
.task-card-status,
.task-card-live,
.status-pill {
  font-family: "JetBrains Mono", monospace;
}

.badge {
  border-color: rgba(103, 232, 249, 0.28);
  background: rgba(8, 47, 73, 0.34);
  color: #e0f2fe;
}

.badge.priority-urgent,
.badge.priority-critical {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.52);
  background: rgba(127, 29, 29, 0.36);
}

.badge.priority-high {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(120, 53, 15, 0.36);
}

.badge.priority-normal,
.badge.priority-low {
  color: #bae6fd;
  border-color: rgba(103, 232, 249, 0.38);
  background: rgba(8, 47, 73, 0.36);
}

.finding-detail-header,
.finding-detail-card,
.action-cluster,
.native-close-panel {
  border-color: rgba(100, 116, 139, 0.26);
}

.detail-summary {
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(100, 116, 139, 0.28);
  color: #f8fafc;
}

input,
select,
textarea,
.form-grid input,
.form-grid select,
.form-grid textarea,
.prompt-output {
  background: rgba(2, 6, 23, 0.86);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.5);
}

input::placeholder,
textarea::placeholder {
  color: #cbd5e1;
}

select option {
  background: #020617;
  color: #f8fafc;
}

.checkbox-row {
  color: #e0f2fe;
}

.task-card {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  color: #0f172a;
}

.task-card:hover {
  border-color: rgba(103, 232, 249, 0.58);
  box-shadow: 0 22px 42px rgba(8, 47, 73, 0.24);
}

.column-head {
  border-bottom-color: rgba(103, 232, 249, 0.18);
  background: rgba(15, 23, 42, 0.96);
}

.column-count {
  background: rgba(103, 232, 249, 0.2);
  color: #e0f2fe;
}

@media (max-width: 1320px) {
  #page-findings > .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  #page-findings > .grid.cols-2 > .card {
    min-height: 0;
  }
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    position: static;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .main {
    padding: 14px;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  #finding-summary {
    grid-template-columns: 1fr;
  }
}

/* Tasks board refinement: consistent, readable command cards. */
#page-tasks .kanban {
  gap: 18px;
  padding: 4px 4px 18px;
}

#page-tasks .column {
  min-width: 292px;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.88));
  border-color: rgba(100, 116, 139, 0.34);
}

#page-tasks .column-head {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: -2px -2px 0;
  padding: 12px 12px 14px;
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.58), rgba(15, 23, 42, 0.98));
}

#page-tasks .column-head h3 {
  color: #ffffff;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#page-tasks .column-subtitle {
  color: #cbd5e1;
  font-size: 0.76rem;
  line-height: 1.35;
}

#page-tasks .column-count {
  min-width: 36px;
  height: 36px;
  border: 1px solid rgba(103, 232, 249, 0.34);
  background: rgba(8, 47, 73, 0.74);
  color: #ffffff;
}

#page-tasks .task-list {
  gap: 14px;
  align-content: start;
}

#page-tasks .task-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 232px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-left: 4px solid rgba(103, 232, 249, 0.72);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.96));
  color: #0f172a;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

#page-tasks .task-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.92), rgba(103, 232, 249, 0.24));
}

#page-tasks .task-card:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 232, 249, 0.68);
  box-shadow: 0 24px 52px rgba(8, 47, 73, 0.38);
}

#page-tasks .task-card.priority-urgent {
  border-left-color: #fb7185;
}

#page-tasks .task-card.priority-urgent::before {
  background: linear-gradient(90deg, #fb7185, rgba(251, 113, 133, 0.18));
}

#page-tasks .task-card.priority-high {
  border-left-color: #fbbf24;
}

#page-tasks .task-card.priority-high::before {
  background: linear-gradient(90deg, #fbbf24, rgba(251, 191, 36, 0.18));
}

#page-tasks .task-card.priority-low {
  border-left-color: #34d399;
}

#page-tasks .task-card.priority-low::before {
  background: linear-gradient(90deg, #34d399, rgba(52, 211, 153, 0.18));
}

#page-tasks .task-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px 16px 10px;
  align-items: start;
}

#page-tasks .task-card .title {
  margin: 0;
  color: #0f172a;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

#page-tasks .task-card-top-right {
  align-items: flex-end;
  max-width: 112px;
}

#page-tasks .task-card-status,
#page-tasks .task-card-live {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#page-tasks .task-card-desc {
  min-height: 58px;
  margin: 0;
  padding: 0 16px;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#page-tasks .badges {
  min-height: 58px;
  margin: 12px 0 0;
  padding: 0 16px;
  align-content: flex-start;
}

#page-tasks .badge {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.07);
  color: #1e293b;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.025em;
}

#page-tasks .badge.domain-exec,
#page-tasks .badge.domain-platform,
#page-tasks .badge.domain-security {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.22);
  color: #075985;
}

#page-tasks .badge.priority-urgent {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.28);
  color: #9f1239;
}

#page-tasks .badge.priority-high {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.34);
  color: #92400e;
}

#page-tasks .badge.priority-normal {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.26);
  color: #1d4ed8;
}

#page-tasks .badge.priority-low {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
  color: #047857;
}

#page-tasks .task-card > .small:not(.task-card-desc) {
  margin-top: auto;
  padding: 12px 16px 0;
  color: #475569;
  font-size: 0.76rem;
}

#page-tasks .task-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.035);
}

#page-tasks .task-card-actions .mini-btn {
  justify-content: center;
  min-height: 34px;
  padding: 7px 8px;
  border-color: rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: #0f172a;
  font-size: 0.69rem;
  line-height: 1.15;
  white-space: normal;
}

#page-tasks .task-card-actions .mini-btn:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

#page-tasks .task-card-actions .mini-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #f8fafc;
}

#page-tasks .task-list .empty {
  min-height: 128px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-style: solid;
  color: #dbeafe;
  text-align: center;
}

@media (max-width: 980px) {
  #page-tasks .column {
    min-width: 270px;
  }

  #page-tasks .task-card {
    min-height: 210px;
  }
}

/* Kimi-inspired task-card palette correction: no washed-out cards, only signal colors. */
#page-tasks .column {
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.98), rgba(5, 7, 10, 0.96));
  border-color: rgba(36, 40, 48, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 44px rgba(0, 0, 0, 0.32);
}

#page-tasks .column-head {
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.98), rgba(11, 13, 16, 0.96));
  border-color: rgba(74, 78, 85, 0.58);
}

#page-tasks .column-inbox .column-head,
#page-tasks .column-planned .column-head,
#page-tasks .column-in_progress .column-head {
  box-shadow: inset 3px 0 0 #00d9ff;
}

#page-tasks .column-review .column-head {
  box-shadow: inset 3px 0 0 #ffb627;
}

#page-tasks .column-blocked .column-head {
  box-shadow: inset 3px 0 0 #ff2a2a;
}

#page-tasks .column-done .column-head {
  box-shadow: inset 3px 0 0 #36b37e;
}

#page-tasks .task-card {
  min-height: 224px;
  border: 1px solid rgba(36, 40, 48, 0.96);
  border-left: 3px solid #00d9ff;
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.99), rgba(11, 13, 16, 0.98));
  color: #e1e3e6;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

#page-tasks .task-card::before {
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.62), rgba(0, 217, 255, 0.08), transparent);
}

#page-tasks .task-card:hover {
  background:
    linear-gradient(180deg, rgba(26, 29, 35, 0.99), rgba(11, 13, 16, 0.98));
  border-color: rgba(0, 217, 255, 0.48);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(0, 217, 255, 0.08);
}

#page-tasks .task-card.priority-urgent {
  border-left-color: #ff2a2a;
}

#page-tasks .task-card.priority-urgent::before {
  background: linear-gradient(90deg, rgba(255, 42, 42, 0.72), rgba(255, 42, 42, 0.1), transparent);
}

#page-tasks .task-card.priority-high {
  border-left-color: #ffb627;
}

#page-tasks .task-card.priority-high::before {
  background: linear-gradient(90deg, rgba(255, 182, 39, 0.72), rgba(255, 182, 39, 0.1), transparent);
}

#page-tasks .task-card.priority-low {
  border-left-color: #36b37e;
}

#page-tasks .task-card.priority-low::before {
  background: linear-gradient(90deg, rgba(54, 179, 126, 0.72), rgba(54, 179, 126, 0.1), transparent);
}

#page-tasks .task-card .title {
  color: #f8fbff;
}

#page-tasks .task-card-desc,
#page-tasks .task-card .small,
#page-tasks .task-card .meta,
#page-tasks .task-card .muted-inline {
  color: #b8c2d6;
}

#page-tasks .task-card > .small:not(.task-card-desc) {
  color: #8b8f96;
}

#page-tasks .task-card-status,
#page-tasks .task-card-live {
  border-color: rgba(74, 78, 85, 0.72);
  background: rgba(3, 5, 8, 0.72);
  color: #e1e3e6;
}

#page-tasks .task-card-live.queued,
#page-tasks .task-card-live.picked_up,
#page-tasks .task-card-live.running {
  border-color: rgba(0, 217, 255, 0.38);
  background: rgba(0, 217, 255, 0.12);
  color: #7ee9ff;
}

#page-tasks .task-card-live.needs_review,
#page-tasks .task-card-live.completed_with_gaps {
  border-color: rgba(255, 182, 39, 0.42);
  background: rgba(255, 182, 39, 0.12);
  color: #ffd166;
}

#page-tasks .task-card-live.failed,
#page-tasks .task-card-live.cancelled {
  border-color: rgba(255, 42, 42, 0.42);
  background: rgba(255, 42, 42, 0.12);
  color: #ff8a8a;
}

#page-tasks .task-card-live.completed {
  border-color: rgba(54, 179, 126, 0.42);
  background: rgba(54, 179, 126, 0.12);
  color: #8df0c1;
}

#page-tasks .badge {
  border-color: rgba(74, 78, 85, 0.76);
  background: rgba(5, 7, 10, 0.72);
  color: #cbd5e1;
}

#page-tasks .badge.domain-exec,
#page-tasks .badge.domain-platform,
#page-tasks .badge.domain-security {
  border-color: rgba(0, 217, 255, 0.32);
  background: rgba(0, 217, 255, 0.1);
  color: #9ff2ff;
}

#page-tasks .badge.external,
#page-tasks .badge.priority-high {
  border-color: rgba(255, 182, 39, 0.38);
  background: rgba(255, 182, 39, 0.12);
  color: #ffd166;
}

#page-tasks .badge.review,
#page-tasks .badge.priority-urgent {
  border-color: rgba(255, 42, 42, 0.38);
  background: rgba(255, 42, 42, 0.12);
  color: #ff9a9a;
}

#page-tasks .badge.priority-normal {
  border-color: rgba(0, 217, 255, 0.32);
  background: rgba(0, 217, 255, 0.1);
  color: #9ff2ff;
}

#page-tasks .badge.priority-low {
  border-color: rgba(54, 179, 126, 0.38);
  background: rgba(54, 179, 126, 0.12);
  color: #9af2ca;
}

#page-tasks .task-card-actions {
  border-top-color: rgba(74, 78, 85, 0.42);
  background: rgba(3, 5, 8, 0.34);
}

#page-tasks .task-card-actions .mini-btn {
  border-color: rgba(74, 78, 85, 0.86);
  background: rgba(11, 13, 16, 0.94);
  color: #e1e3e6;
}

#page-tasks .task-card-actions .mini-btn:hover {
  border-color: rgba(0, 217, 255, 0.6);
  background: rgba(0, 217, 255, 0.12);
  color: #ffffff;
}

/* Full-dashboard command surface pass: apply the same readable SecOps Command style everywhere. */
:root {
  --signal-canvas: #030508;
  --signal-panel: #0b0d10;
  --signal-panel-2: #111318;
  --signal-panel-3: #1a1d23;
  --signal-panel-4: #242830;
  --signal-line: rgba(74, 78, 85, 0.72);
  --signal-line-soft: rgba(74, 78, 85, 0.42);
  --signal-line-bright: rgba(0, 217, 255, 0.42);
  --signal-text: #e1e3e6;
  --signal-text-strong: #f8fbff;
  --signal-muted: #b8c2d6;
  --signal-muted-2: #8b8f96;
  --signal-cyan: #00d9ff;
  --signal-cyan-soft: rgba(0, 217, 255, 0.12);
  --signal-amber: #ffb627;
  --signal-amber-soft: rgba(255, 182, 39, 0.14);
  --signal-red: #ff2a2a;
  --signal-red-soft: rgba(255, 42, 42, 0.14);
  --signal-green: #36b37e;
  --signal-green-soft: rgba(54, 179, 126, 0.14);
}

html,
body {
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 217, 255, 0.14), transparent 28%),
    radial-gradient(circle at 96% 12%, rgba(255, 182, 39, 0.1), transparent 24%),
    radial-gradient(circle at 58% 100%, rgba(54, 179, 126, 0.08), transparent 26%),
    linear-gradient(135deg, var(--signal-canvas) 0%, #070b10 46%, var(--signal-canvas) 100%);
  color: var(--signal-text);
}

body::before {
  background:
    linear-gradient(rgba(0, 217, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 8%, rgba(0, 217, 255, 0.08), transparent 24%);
  background-size: 48px 48px, 48px 48px, auto;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
  opacity: 1;
}

body::after {
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 217, 255, 0.08), transparent 24%),
    radial-gradient(circle at 100% 18%, rgba(255, 182, 39, 0.05), transparent 22%);
  mix-blend-mode: screen;
  opacity: 1;
}

.app-shell {
  grid-template-columns: 312px minmax(0, 1fr);
}

.main {
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.78), rgba(3, 5, 8, 0.92));
}

.sidebar {
  background:
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.99), rgba(11, 13, 16, 0.98));
  border-right-color: rgba(74, 78, 85, 0.62);
}

.brand {
  border-color: rgba(0, 217, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(17, 19, 24, 0.96), rgba(11, 13, 16, 0.78)),
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.12), transparent 36%);
}

.brand-badge {
  background:
    linear-gradient(135deg, rgba(0, 217, 255, 0.98), rgba(54, 179, 126, 0.72));
  color: #030508;
}

.brand-overline,
.top-strip-live,
.nav-icon,
.detail-eyebrow {
  color: var(--signal-cyan);
}

.nav-btn {
  border-color: rgba(74, 78, 85, 0.44);
  background:
    linear-gradient(135deg, rgba(17, 19, 24, 0.9), rgba(11, 13, 16, 0.68));
}

.nav-btn:hover,
.nav-btn.active {
  border-color: rgba(0, 217, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(0, 217, 255, 0.14), rgba(17, 19, 24, 0.98));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32), inset 2px 0 0 var(--signal-cyan);
}

.nav-btn .title,
.brand h1,
.page-header h2,
.card h3,
.card h4,
.column h3,
.metric,
table strong,
.feed-item strong,
.action-cluster-label,
.kv-val,
.rr-proof-list strong,
label,
.form-grid label {
  color: var(--signal-text-strong);
}

.brand p,
.nav-btn .desc,
.page-header p,
.small,
.metric-label,
.feed-item .meta,
.kv-key,
.muted-inline,
.column-subtitle,
.rr-sub,
.rr-meta,
.rr-proof-list,
.org-role-meta,
.org-role-detail-info p,
.org-dept-subtitle,
.org-stat-label,
th {
  color: var(--signal-muted);
}

.top-strip,
.page-header,
.card,
.column,
.modal-card,
.feed-item,
.empty,
.table-wrap,
.detail-summary,
.status-pill,
.mini-btn,
.secondary-btn,
.icon-btn,
.prompt-output {
  border-color: var(--signal-line-soft);
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.98), rgba(11, 13, 16, 0.96));
  color: var(--signal-text);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
}

.page-header {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(17, 19, 24, 0.98), rgba(5, 7, 10, 0.9)),
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.12), transparent 36%);
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.72), rgba(255, 182, 39, 0.34), transparent);
}

.top-strip {
  border-color: rgba(0, 217, 255, 0.24);
  background:
    linear-gradient(90deg, rgba(17, 19, 24, 0.96), rgba(0, 217, 255, 0.08), rgba(17, 19, 24, 0.9));
}

.top-strip-meta,
#global-status {
  color: var(--signal-text);
}

#global-status {
  border-color: rgba(0, 217, 255, 0.26);
  background: rgba(3, 5, 8, 0.72);
}

.dot {
  background: var(--signal-green);
  box-shadow: 0 0 0 4px rgba(54, 179, 126, 0.14), 0 0 18px rgba(54, 179, 126, 0.32);
}

.status-pill {
  min-height: 38px;
  border-color: rgba(0, 217, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.98), rgba(3, 5, 8, 0.82));
}

.status-pill:hover,
.mini-btn:hover,
.secondary-btn:hover,
.icon-btn:hover {
  border-color: rgba(0, 217, 255, 0.58);
  background: rgba(0, 217, 255, 0.12);
  color: #ffffff;
}

.primary-btn {
  border: 1px solid rgba(0, 217, 255, 0.55);
  background: linear-gradient(135deg, var(--signal-cyan), rgba(54, 179, 126, 0.86));
  color: #030508;
  font-weight: 800;
  box-shadow: 0 18px 42px rgba(0, 217, 255, 0.16);
}

.danger-btn {
  border-color: rgba(255, 42, 42, 0.46);
  background: rgba(255, 42, 42, 0.12);
  color: #ff9a9a;
}

.mini-btn {
  border-color: rgba(74, 78, 85, 0.86);
  background: rgba(11, 13, 16, 0.94);
  color: var(--signal-text);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.01em;
}

.card {
  position: relative;
  overflow: hidden;
}

.card::before,
.feed-item::before,
.modal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.36), rgba(0, 217, 255, 0.06), transparent);
  pointer-events: none;
}

.metric-card,
#mission-stats .card,
#finding-summary .card,
#integration-summary .card {
  min-height: 126px;
  border-color: rgba(0, 217, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.99), rgba(11, 13, 16, 0.96));
}

.metric-card:hover,
#mission-stats .card:hover,
#finding-summary .card:hover,
#integration-summary .card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 217, 255, 0.46);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 217, 255, 0.08);
}

.metric-card::before,
#mission-stats .card::before,
#finding-summary .card::before,
#integration-summary .card::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.82), rgba(255, 182, 39, 0.42), transparent);
}

.metric {
  color: var(--signal-text-strong);
  text-shadow: 0 0 24px rgba(0, 217, 255, 0.12);
}

#mission-overview {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#mission-events,
#mission-runs {
  max-height: 560px;
  overflow: auto;
  padding-right: 2px;
}

.feed-item {
  position: relative;
  border-left-color: var(--signal-cyan);
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.98), rgba(17, 19, 24, 0.94));
}

.compact-feed-item {
  border-radius: 12px;
  margin-bottom: 10px;
}

.empty,
.compact-empty {
  border-style: dashed;
  border-color: rgba(0, 217, 255, 0.22);
  background:
    repeating-linear-gradient(135deg, rgba(0, 217, 255, 0.035) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, rgba(11, 13, 16, 0.94), rgba(17, 19, 24, 0.9));
  color: var(--signal-muted);
}

.kv-list {
  gap: 8px;
}

.kv-row {
  align-items: flex-start;
  border-top-color: rgba(74, 78, 85, 0.34);
  padding: 10px 0 0;
}

.kv-key {
  flex: 0 0 auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.kv-val {
  min-width: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
}

.detail-eyebrow {
  border: 1px solid rgba(0, 217, 255, 0.26);
  background: rgba(0, 217, 255, 0.1);
  font-family: "JetBrains Mono", monospace;
}

.finding-detail-header {
  padding: 14px;
  border: 1px solid rgba(74, 78, 85, 0.38);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(17, 19, 24, 0.96), rgba(3, 5, 8, 0.8));
}

.finding-meta-line {
  color: var(--signal-muted);
}

.finding-meta-line span:not(:last-child)::after {
  color: rgba(0, 217, 255, 0.34);
}

.detail-status-stack {
  min-width: 160px;
}

.finding-detail-grid {
  gap: 14px;
}

.finding-detail-card {
  border-color: rgba(74, 78, 85, 0.42);
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.98), rgba(11, 13, 16, 0.96));
}

.detail-summary {
  border-color: rgba(0, 217, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.86), rgba(11, 13, 16, 0.72));
  color: var(--signal-text);
}

.action-cluster,
.native-close-panel {
  border-top-color: rgba(0, 217, 255, 0.18);
}

.native-close-grid {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

#finding-summary,
#integration-summary,
#mission-stats {
  grid-template-columns: repeat(auto-fit, minmax(174px, 1fr));
}

#page-findings > .grid.cols-2 {
  grid-template-columns: minmax(680px, 1.25fr) minmax(430px, 0.75fr);
  align-items: start;
}

#page-findings > .grid.cols-2 > .card,
#page-integrations > .card,
#mission-overview > .card,
#page-mission-control > .grid.cols-2 > .card {
  border-color: rgba(74, 78, 85, 0.48);
}

#page-findings > .grid.cols-2 > .card > h3,
#page-integrations > .card h3,
#mission-overview > .card h3,
#page-mission-control > .grid.cols-2 > .card h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

#page-findings > .grid.cols-2 > .card > h3::before,
#page-integrations > .card h3::before,
#mission-overview > .card h3::before,
#page-mission-control > .grid.cols-2 > .card h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--signal-cyan);
  box-shadow: 0 0 16px rgba(0, 217, 255, 0.48);
}

.table-wrap,
#findings-table .table-wrap,
#run-requests-table .table-wrap,
#native-sessions-table .table-wrap,
#routes-table .table-wrap {
  overflow: auto;
  border: 1px solid rgba(74, 78, 85, 0.54);
  border-radius: 14px;
  background: rgba(3, 5, 8, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 46px rgba(0, 0, 0, 0.28);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
  background: rgba(3, 5, 8, 0.98);
  color: #9ff2ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

td {
  border-bottom-color: rgba(74, 78, 85, 0.28);
  color: var(--signal-text);
  vertical-align: top;
}

tbody tr {
  background: rgba(17, 19, 24, 0.68);
}

tbody tr:nth-child(even) {
  background: rgba(11, 13, 16, 0.82);
}

tbody tr:hover,
.finding-row:hover,
.selected-row {
  background: rgba(0, 217, 255, 0.1);
}

td .small,
td .muted-inline,
.rr-result {
  color: var(--signal-muted);
  line-height: 1.5;
}

#findings-table table,
#run-requests-table table,
#native-sessions-table table,
#routes-table table {
  min-width: 940px;
}

#findings-table .task-card-actions,
#run-requests-table .task-card-actions,
#native-sessions-table .task-card-actions,
#native-session-detail .task-card-actions,
#intel-summary .task-card-actions {
  gap: 7px;
  align-items: center;
}

#findings-table .mini-btn,
#run-requests-table .mini-btn,
#native-sessions-table .mini-btn,
#native-session-detail .mini-btn,
#intel-summary .mini-btn {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 9px;
  white-space: normal;
}

#integration-summary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

#integration-summary .card:nth-child(3),
#integration-summary .card:nth-child(6) {
  border-color: rgba(255, 182, 39, 0.28);
}

#integration-summary .card:nth-child(3)::before,
#integration-summary .card:nth-child(6)::before {
  background: linear-gradient(90deg, rgba(255, 182, 39, 0.76), rgba(255, 182, 39, 0.08), transparent);
}

#integration-config {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

#integration-config .card {
  min-height: 278px;
}

#native-session-detail > .finding-detail-card {
  padding: 0;
}

#native-session-detail > .finding-detail-card > .finding-detail-header {
  margin-bottom: 14px;
}

#native-session-detail .finding-detail-grid,
#intel-summary .finding-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#intel-summary > .finding-detail-header {
  margin-bottom: 14px;
}

#intel-summary .card[style],
#native-session-detail .card[style] {
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.99), rgba(11, 13, 16, 0.96)) !important;
  border-color: rgba(74, 78, 85, 0.46) !important;
}

.badge {
  border-color: rgba(0, 217, 255, 0.28);
  background: rgba(0, 217, 255, 0.1);
  color: #9ff2ff;
  font-family: "JetBrains Mono", monospace;
}

.badge.priority-urgent,
.badge.priority-critical,
.status-pill.status-failed,
.status-pill.status-blocked {
  border-color: rgba(255, 42, 42, 0.42);
  background: var(--signal-red-soft);
  color: #ff9a9a;
}

.badge.priority-high,
.status-pill.status-review,
.status-pill.status-needs_review,
.status-pill.status-needs-review,
.status-pill.status-open {
  border-color: rgba(255, 182, 39, 0.42);
  background: var(--signal-amber-soft);
  color: #ffd166;
}

.status-pill.status-completed,
.status-pill.status-completed_with_gaps,
.status-pill.status-completed-with-gaps,
.status-pill.status-resolved,
.status-pill.status-closed,
.status-pill.status-done {
  border-color: rgba(54, 179, 126, 0.42);
  background: var(--signal-green-soft);
  color: #9af2ca;
}

.status-pill.status-queued,
.status-pill.status-running,
.status-pill.status-picked_up,
.status-pill.status-picked-up,
.badge.priority-normal,
.badge.priority-low {
  border-color: rgba(0, 217, 255, 0.36);
  background: var(--signal-cyan-soft);
  color: #9ff2ff;
}

input,
select,
textarea,
.form-grid input,
.form-grid select,
.form-grid textarea,
.prompt-output {
  border-color: rgba(74, 78, 85, 0.86);
  background: rgba(3, 5, 8, 0.86);
  color: var(--signal-text-strong);
  caret-color: var(--signal-cyan);
}

input:focus,
select:focus,
textarea:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.prompt-output:focus {
  outline: none;
  border-color: rgba(0, 217, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--signal-muted-2);
}

select option {
  background: #030508;
  color: var(--signal-text-strong);
}

label span,
.form-grid label span,
.card label span.small,
.checkbox-row span {
  color: var(--signal-muted);
}

.modal {
  background:
    radial-gradient(circle at top, rgba(0, 217, 255, 0.14), transparent 36%),
    rgba(3, 5, 8, 0.76);
}

.modal-card {
  position: relative;
  border-color: rgba(0, 217, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.99), rgba(5, 7, 10, 0.98));
}

.modal-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(74, 78, 85, 0.38);
}

.modal-head h3 {
  color: var(--signal-text-strong);
}

.form-grid {
  gap: 16px;
}

.modal-actions {
  padding-top: 16px;
  border-top: 1px solid rgba(74, 78, 85, 0.32);
}

.prompt-output {
  min-height: 260px;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.55;
}

.checkbox-row input {
  accent-color: var(--signal-cyan);
}

#page-tasks .grid.cols-4 .card,
#page-tasks .small + .grid.cols-4 .card {
  min-height: 108px;
}

#page-tasks > .small,
#page-tasks .small[style*="margin-top:14px"] {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(0, 217, 255, 0.18);
  border-radius: 12px;
  background: rgba(3, 5, 8, 0.42);
  color: var(--signal-muted);
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: rgba(3, 5, 8, 0.86);
}

::-webkit-scrollbar-thumb {
  border: 3px solid rgba(3, 5, 8, 0.86);
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.38);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 217, 255, 0.62);
}

@media (max-width: 1320px) {
  #page-findings > .grid.cols-2,
  #native-session-detail .finding-detail-grid,
  #intel-summary .finding-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .main {
    padding: 14px;
  }

  .page-header {
    padding: 16px;
  }

  .nav-list,
  #finding-summary,
  #integration-summary,
  #mission-stats,
  #integration-config,
  .native-close-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap,
  #findings-table .table-wrap,
  #run-requests-table .table-wrap,
  #native-sessions-table .table-wrap,
  #routes-table .table-wrap {
    max-width: calc(100vw - 28px);
  }

  .modal-actions,
  .modal-actions-right {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Blog Ops control plane */
.blog-auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 18px;
  align-items: center;
}
.blog-auth-controls,
.blog-actions,
.blog-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.blog-actions label {
  width: 110px;
  display: grid;
  gap: 8px;
}
.blog-filter-label {
  min-width: 180px;
  display: grid;
  gap: 8px;
}
.blog-draft-list {
  display: grid;
  gap: 12px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}
.blog-draft-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.94));
  padding: 16px;
  cursor: pointer;
  color: var(--text);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.blog-draft-card:hover,
.blog-draft-card.selected-row {
  transform: translateY(-1px);
  border-color: rgba(15,157,182,0.32);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
}
.blog-draft-card h4 {
  margin: 12px 0 8px;
  font-size: 1rem;
}
.blog-draft-card p {
  margin: 0;
  color: #334155;
  line-height: 1.5;
}
.blog-draft-topline,
.blog-draft-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #475569;
  font-size: 0.82rem;
}
.blog-draft-meta {
  margin-top: 12px;
  justify-content: space-between;
}
.readiness-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #164e63;
  background: rgba(236, 254, 255, 0.95);
}
.readiness-pill.blocked {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.95);
  border-color: rgba(248, 113, 113, 0.38);
}
.readiness-pill.needs-edits {
  color: #92400e;
  background: rgba(254, 243, 199, 0.95);
  border-color: rgba(245, 158, 11, 0.35);
}
.readiness-pill.ready-to-review {
  color: #065f46;
  background: rgba(209, 250, 229, 0.95);
  border-color: rgba(16, 185, 129, 0.35);
}
.readiness-pill.not-scored {
  color: #475569;
  background: rgba(241, 245, 249, 0.98);
  border-color: rgba(100, 116, 139, 0.32);
}
.blog-preview-status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.blog-extracted-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.blog-extracted-grid > div {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.9);
  color: var(--text);
}
.blog-field-label {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-empty-value {
  display: inline-flex;
  margin-top: 2px;
  border: 1px dashed rgba(100, 116, 139, 0.38);
  border-radius: 10px;
  padding: 7px 9px;
  background: rgba(248, 250, 252, 0.92);
  color: #334155;
  font-size: 0.84rem;
  font-weight: 800;
}
.blog-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.mini-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
}
.blog-blocker-list,
.blog-checklist {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text);
}
.blog-checklist li {
  margin: 6px 0;
}
.blog-checklist em {
  margin-left: 8px;
  color: #475569;
  font-style: normal;
  font-size: 0.78rem;
}
.blog-reference-list {
  display: grid;
  gap: 8px;
  word-break: break-word;
}
.blog-reference-list a {
  color: #0369a1;
  font-size: 0.88rem;
  font-weight: 750;
}
.blog-source-media-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
}
.blog-media-attached,
.blog-source-media-candidates {
  display: grid;
  gap: 8px;
}
.blog-source-media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.blog-source-media-url {
  color: #334155;
  font-size: 0.82rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.blog-source-media-custom {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) auto;
  gap: 10px;
  align-items: center;
}
.blog-preview-body {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 420px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.08);
  background: #0f172a;
  color: #dbeafe;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}
.blog-review-note {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.blog-publish-ready-callout {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(248, 250, 252, 0.9);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.blog-publish-ready-callout.ready {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(236, 253, 245, 0.92);
  color: #047857;
}
.campaign-action-hint {
  margin: -2px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.research-recommendation {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(14, 116, 144, 0.32);
  border-radius: 16px;
  background: rgba(240, 249, 255, 0.72);
}
.research-recommendation.dismissed {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-style: dashed;
  opacity: 0.88;
}
.research-recommendation-header,
.research-recommendation-draft,
.research-recommendation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.research-recommendation-header h4 {
  margin: 3px 0 5px;
}
.research-recommendation-header > div:first-child {
  min-width: min(100%, 520px);
  flex: 1 1 480px;
}
.research-recommendation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.research-recommendation-summary > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}
.research-recommendation-summary strong {
  overflow-wrap: anywhere;
}
.research-recommendation-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.research-recommendation-columns > div {
  min-width: 0;
}
.research-recommendation-columns h5 {
  margin: 0 0 7px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.research-recommendation-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.research-recommendation-draft {
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid rgba(14, 116, 144, 0.18);
}
.research-recommendation-draft > div:first-child {
  min-width: min(100%, 360px);
  flex: 1 1 420px;
}
.research-recommendation-draft strong,
.research-recommendation-draft p {
  display: block;
  overflow-wrap: anywhere;
}
.research-recommendation-actions {
  justify-content: flex-start;
}
.research-recommendation-link-select {
  display: grid;
  gap: 5px;
  min-width: min(100%, 250px);
}
.research-recommendation-link-select select {
  max-width: 360px;
}
.research-recommendation-safety {
  margin: 0;
  color: var(--muted);
}
.research-recommendation.create_draft_case {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(236, 253, 245, 0.76);
}
.research-recommendation.needs_human_review {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(255, 251, 235, 0.78);
}
.research-recommendation.keep_in_triage {
  border-color: rgba(100, 116, 139, 0.34);
}
@media (max-width: 760px) {
  .research-recommendation-summary,
  .research-recommendation-columns {
    grid-template-columns: 1fr;
  }
  .research-recommendation.dismissed {
    grid-template-columns: 1fr;
  }
}
.blog-edit-modal-card {
  max-width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.blog-edit-body {
  min-height: 360px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1.55;
}
.blog-metric-card .metric {
  font-size: 1.6rem;
}
.empty-state {
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255,255,255,0.68);
}

/* Triage Ops supply-chain control plane */
#page-triage-ops {
  --triage-panel: rgba(11, 13, 16, 0.97);
  --triage-panel-2: rgba(17, 19, 24, 0.96);
  --triage-panel-3: rgba(26, 29, 35, 0.92);
  --triage-line: rgba(97, 112, 132, 0.46);
  --triage-line-strong: rgba(0, 217, 255, 0.42);
  --triage-text: #edf7ff;
  --triage-muted: #b9c7d9;
  --triage-subtle: #93a4b8;
}

#page-triage-ops .page-header,
#page-triage-ops .card,
#page-triage-ops .campaign-research-card,
#page-triage-ops .campaign-list-field,
#page-triage-ops .campaign-json-box,
#page-triage-ops .campaign-discovery-box,
#page-triage-ops .campaign-result-section,
#page-triage-ops .campaign-package-row,
#page-triage-ops .campaign-candidate-card,
#page-triage-ops .research-recommendation,
#page-triage-ops .research-recommendation-summary > div,
#page-triage-ops .triage-output,
#page-triage-ops .evidence-score-card,
#page-triage-ops .evidence-row,
#page-triage-ops .score-breakdown-row {
  border-color: var(--triage-line);
  background:
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.08), transparent 34%),
    linear-gradient(180deg, var(--triage-panel-2), var(--triage-panel));
  color: var(--triage-text);
}

#page-triage-ops .small,
#page-triage-ops .metric-label,
#page-triage-ops .triage-rationale,
#page-triage-ops .research-recommendation-safety,
#page-triage-ops .research-recommendation-list,
#page-triage-ops .kv-key,
#page-triage-ops .campaign-result-section p,
#page-triage-ops .evidence-score-card span,
#page-triage-ops .score-breakdown-row p,
#page-triage-ops .campaign-candidate-card .small {
  color: var(--triage-muted);
}

#page-triage-ops h3,
#page-triage-ops h4,
#page-triage-ops h5,
#page-triage-ops strong,
#page-triage-ops label,
#page-triage-ops .metric,
#page-triage-ops .kv-val,
#page-triage-ops .campaign-table th,
#page-triage-ops .campaign-table td,
#page-triage-ops .evidence-score-card strong,
#page-triage-ops .evidence-row strong,
#page-triage-ops .score-breakdown-row strong {
  color: var(--triage-text);
}

#page-triage-ops input,
#page-triage-ops select,
#page-triage-ops textarea {
  border-color: rgba(97, 112, 132, 0.72);
  background: rgba(3, 5, 8, 0.88);
  color: var(--triage-text);
}

#page-triage-ops input::placeholder,
#page-triage-ops textarea::placeholder {
  color: var(--triage-subtle);
}

#page-triage-ops .campaign-table {
  background: rgba(11, 13, 16, 0.94);
}

#page-triage-ops .campaign-table th,
#page-triage-ops .campaign-table td {
  border-bottom-color: rgba(97, 112, 132, 0.32);
}

.triage-ops-stats-grid {
  margin-top: 18px;
}

.triage-ops-layout {
  margin-top: 18px;
  grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
  align-items: start;
}

.triage-alerts-panel,
.triage-review-panel {
  min-width: 0;
}

.triage-ops-auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 18px;
  align-items: center;
}

.triage-ops-auth-controls,
.triage-ops-filters,
.triage-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.triage-ops-filters label {
  min-width: 180px;
  display: grid;
  gap: 8px;
}

.triage-filter-drawer,
.triage-cli-drawer,
.triage-campaign-dock {
  border: 1px solid var(--triage-line);
  border-radius: 18px;
  background: rgba(3, 5, 8, 0.28);
}

.triage-filter-drawer {
  margin: 12px 0 14px;
  padding: 10px;
}

.triage-filter-drawer summary,
.triage-cli-drawer summary,
.triage-campaign-dock > summary {
  cursor: pointer;
  color: var(--triage-text);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.triage-filter-drawer summary {
  margin-bottom: 10px;
}

.triage-filter-drawer:not([open]) summary {
  margin-bottom: 0;
}

.triage-campaign-dock {
  margin-top: 18px;
}

.triage-campaign-dock > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}

.triage-campaign-dock > summary::-webkit-details-marker {
  display: none;
}

.triage-campaign-dock > summary::after {
  content: "Expand";
  flex: 0 0 auto;
  border: 1px solid var(--triage-line-strong);
  border-radius: 999px;
  color: #9ff2ff;
  background: rgba(0, 217, 255, 0.1);
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.triage-campaign-dock[open] > summary::after {
  content: "Collapse";
}

.triage-campaign-dock small {
  display: block;
  margin-top: 4px;
  color: var(--triage-muted);
  font-weight: 750;
}

.triage-campaign-dock #triage-ops-campaign-research {
  margin-top: 16px;
}

.triage-alert-list {
  display: grid;
  gap: 12px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.triage-alert-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--triage-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.98), rgba(11, 13, 16, 0.96));
  padding: 16px;
  color: var(--triage-text);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  overflow-wrap: anywhere;
}

.triage-alert-card:hover,
.triage-alert-card.selected-row {
  transform: translateY(-1px);
  border-color: var(--triage-line-strong);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24), inset 3px 0 0 var(--signal-cyan);
}

.triage-alert-card h4 {
  margin: 12px 0 8px;
  font-size: 1rem;
  color: var(--triage-text);
}

.triage-alert-card p,
.triage-rationale {
  margin: 0;
  line-height: 1.55;
}

.triage-alert-topline,
.triage-alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.triage-alert-meta {
  margin-top: 12px;
  justify-content: space-between;
  color: var(--triage-muted);
  font-size: 0.82rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.triage-rec-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #164e63;
  background: rgba(236, 254, 255, 0.96);
}

.triage-rec-pill.false-positive,
.triage-rec-pill.expected-behavior {
  color: #065f46;
  background: rgba(209, 250, 229, 0.96);
  border-color: rgba(16, 185, 129, 0.35);
}

.triage-rec-pill.not-applicable,
.triage-rec-pill.not_applicable {
  color: #4b5563;
  background: rgba(243, 244, 246, 0.96);
  border-color: rgba(156, 163, 175, 0.35);
}

.triage-rec-pill.true-positive {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.96);
  border-color: rgba(248, 113, 113, 0.42);
}

.triage-rec-pill.needs-review {
  color: #92400e;
  background: rgba(254, 243, 199, 0.96);
  border-color: rgba(245, 158, 11, 0.38);
}

#page-triage-ops .status-pill,
#page-triage-ops .triage-rec-pill,
#page-triage-ops .triage-rec-pill.needs_review {
  color: #dff7ff;
  background: rgba(0, 217, 255, 0.12);
  border-color: rgba(0, 217, 255, 0.36);
  box-shadow: none;
}

#page-triage-ops .status-pill.status-critical,
#page-triage-ops .status-pill.status-failed,
#page-triage-ops .status-pill.status-blocked,
#page-triage-ops .triage-rec-pill.true-positive {
  color: #ffd6d6;
  background: rgba(255, 42, 42, 0.16);
  border-color: rgba(255, 42, 42, 0.42);
}

#page-triage-ops .status-pill.status-open,
#page-triage-ops .status-pill.status-high,
#page-triage-ops .triage-rec-pill.needs-review,
#page-triage-ops .triage-rec-pill.needs_review {
  color: #ffe8a8;
  background: rgba(255, 182, 39, 0.16);
  border-color: rgba(255, 182, 39, 0.42);
}

#page-triage-ops .status-pill.status-closed,
#page-triage-ops .status-pill.status-done,
#page-triage-ops .triage-rec-pill.false-positive,
#page-triage-ops .triage-rec-pill.expected-behavior {
  color: #bff7dc;
  background: rgba(54, 179, 126, 0.15);
  border-color: rgba(54, 179, 126, 0.42);
}

#page-triage-ops .triage-rec-pill.not-applicable,
#page-triage-ops .triage-rec-pill.not_applicable {
  color: #868e96;
  background: rgba(134, 142, 150, 0.15);
  border-color: rgba(134, 142, 150, 0.42);
}

#page-triage-ops .triage-rec-pill.actionability-actionable {
  color: #b8f7ff;
  background: rgba(0, 217, 255, 0.16);
  border-color: rgba(0, 217, 255, 0.42);
}

#page-triage-ops .triage-rec-pill.actionability-no_local_impact,
#page-triage-ops .triage-rec-pill.actionability-review_only,
#page-triage-ops .triage-rec-pill.scanner-severity {
  color: #b9c0c8;
  background: rgba(134, 142, 150, 0.12);
  border-color: rgba(134, 142, 150, 0.28);
}

.triage-actionability-no_local_impact,
.triage-actionability-review_only {
  opacity: 0.82;
}

.triage-actionability-callout {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 14px;
  color: #d1d5db;
  border: 1px solid rgba(134, 142, 150, 0.35);
  background: rgba(17, 24, 39, 0.72);
  line-height: 1.5;
  font-size: 0.88rem;
}

.triage-review-section {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--triage-line);
  border-radius: 18px;
  background: rgba(3, 5, 8, 0.28);
}

.triage-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.triage-section-heading span {
  color: var(--triage-text);
  font-weight: 950;
}

.triage-section-heading small {
  color: var(--triage-subtle);
  font-weight: 750;
  text-align: right;
}

.triage-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.triage-kv-grid .kv-row {
  min-width: 0;
  border: 1px solid rgba(97, 112, 132, 0.28);
  border-radius: 14px;
  background: rgba(17, 19, 24, 0.74);
  padding: 10px;
  overflow-wrap: anywhere;
}

.triage-output {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
}

.triage-output-compact {
  display: grid;
  gap: 12px;
}

.triage-output-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.triage-output-summary span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: var(--triage-text);
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.triage-raw-drawer {
  border: 1px solid var(--triage-line);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.38);
  overflow: hidden;
}

.triage-raw-drawer summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--triage-muted);
  font-weight: 800;
}

.triage-raw-drawer pre {
  margin: 0;
  border-radius: 0;
  max-height: 260px;
}

.triage-output.error {
  border-color: rgba(239,68,68,0.38);
  background: rgba(80, 16, 16, 0.42);
  color: #ffd6d6;
}

.triage-output pre,
.triage-cli-fallback {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 360px;
  padding: 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #dbeafe;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}

.campaign-research-card {
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242,250,247,0.96));
}

.campaign-fixture-actions,
.campaign-actions,
.campaign-list-head,
.campaign-inline-row,
.campaign-package-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.campaign-fixture-actions {
  justify-content: flex-end;
}

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

.campaign-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.campaign-wide,
.campaign-json-box,
.campaign-result-host {
  grid-column: 1 / -1;
}

.campaign-list-field,
.campaign-json-box,
.campaign-review-drawer,
.campaign-discovery-box,
.campaign-result-section {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  padding: 12px;
}

.campaign-list-head {
  justify-content: space-between;
  margin-bottom: 8px;
}

.campaign-inline-row {
  margin-top: 8px;
}

.campaign-inline-row input {
  min-width: min(100%, 280px);
  flex: 1;
}

.campaign-package-header {
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.campaign-package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.campaign-package-header h4,
.campaign-result-host h4,
.campaign-result-section h4 {
  margin: 0 0 8px;
}

.campaign-packages {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.campaign-package-row {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1fr) minmax(130px, 0.65fr) minmax(160px, 0.75fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(13, 148, 136, 0.16);
  border-radius: 16px;
  background: rgba(240,253,250,0.62);
}

.campaign-package-row.campaign-package-noise {
  border-color: rgba(245, 158, 11, 0.42);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 52%),
    rgba(255, 251, 235, 0.72);
}

.campaign-noise-note,
.campaign-noise-summary {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.11);
  color: #92400e;
  font-size: 0.78rem;
  line-height: 1.25;
}

.campaign-noise-note {
  grid-column: 1 / -1;
}

.campaign-package-notes textarea {
  min-height: 44px;
}

.campaign-json-box {
  margin-top: 14px;
}

.campaign-review-drawer {
  margin-top: 14px;
}

.campaign-review-drawer summary {
  cursor: pointer;
  color: var(--triage-text);
  font-weight: 900;
}

.campaign-discovery-box {
  margin-top: 14px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.11), transparent 32%),
    rgba(255,255,255,0.82);
}

.campaign-watchlist-row {
  display: grid;
  grid-template-columns: 160px minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.campaign-watchlist-suggestions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(13, 148, 136, 0.16);
  border-radius: 16px;
  background: rgba(240, 253, 250, 0.62);
}

.campaign-orchestrator-review {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 34%),
    rgba(248, 250, 252, 0.88);
}

.campaign-suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.campaign-candidate-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.campaign-candidate-card {
  width: 100%;
  display: grid;
  gap: 5px;
  text-align: left;
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 15px;
  background: rgba(240, 253, 250, 0.7);
  color: var(--text);
  padding: 11px 12px;
  cursor: pointer;
}

.campaign-candidate-card.selected,
.campaign-candidate-card:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.35);
  border-color: rgba(13, 148, 136, 0.58);
  background: rgba(204, 251, 241, 0.82);
}

.campaign-json-box textarea {
  min-height: 180px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
}

.campaign-actions {
  margin-top: 14px;
}

.campaign-result-host {
  margin-top: 16px;
}

.campaign-result-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.campaign-result-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

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

.campaign-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(255,255,255,0.92);
}

.campaign-table th,
.campaign-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--text);
  font-size: 0.86rem;
}

.campaign-table th {
  color: #0f766e;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.campaign-cli-output {
  margin-top: 12px;
}

.campaign-cli-output pre {
  white-space: pre-wrap;
  max-height: 280px;
  overflow: auto;
  background: #0f172a;
  color: #dbeafe;
  border-radius: 14px;
  padding: 12px;
}

.evidence-verdict-panel {
  background: linear-gradient(180deg, rgba(240,253,250,0.98), rgba(248,250,252,0.98));
}

.evidence-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.evidence-score-card {
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  padding: 12px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.evidence-score-card span {
  display: block;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.evidence-score-card strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 1rem;
}

.evidence-notice {
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-radius: 14px;
  background: rgba(255, 251, 235, 0.96);
  color: #78350f;
  padding: 11px 12px;
  font-weight: 800;
}

.evidence-section {
  margin-top: 16px;
}

.evidence-section h4 {
  margin: 0 0 8px;
}

.evidence-list,
.score-breakdown-list {
  display: grid;
  gap: 8px;
}

.evidence-row,
.score-breakdown-row {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.86);
  padding: 10px 12px;
  color: #334155;
}

.evidence-row strong,
.score-breakdown-row strong {
  color: #0f172a;
}

.score-breakdown-row {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
}

.score-breakdown-row p {
  margin: 2px 0 0;
  color: #475569;
}

.score-plus,
.score-minus {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 6px;
  font-weight: 950;
}

.score-plus {
  color: #065f46;
  background: rgba(209, 250, 229, 0.96);
}

.score-minus {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.96);
}

.triage-ops-actions {
  margin-top: 16px;
}

.triage-ops-actions.grouped {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.triage-cli-drawer {
  margin-top: 16px;
  padding: 12px;
}

.triage-cli-drawer .mini-btn {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .blog-auth-card { grid-template-columns: 1fr; }
  .triage-ops-auth-card { grid-template-columns: 1fr; }
  .blog-actions label { width: 100%; }
  .triage-ops-filters label { width: 100%; }
  .blog-extracted-grid { grid-template-columns: 1fr; }
  .evidence-score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile navigation and responsive dashboard polish */
.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;
}

.mobile-menu-btn {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 14px;
  background: rgba(11, 13, 16, 0.86);
  color: #e1e3e6;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.mobile-menu-btn span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #67e8f9;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.mobile-nav-open .mobile-menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-open .mobile-menu-btn span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-open .mobile-menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .brand {
    margin-bottom: 0;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transform: translateY(-6px);
    transition: max-height 0.22s ease, opacity 0.18s ease, margin-top 0.18s ease, transform 0.18s ease;
  }

  .mobile-nav-open .nav-list {
    max-height: 520px;
    opacity: 1;
    margin-top: 14px;
    transform: translateY(0);
  }

  .sidebar-footer {
    display: none;
  }

  .main {
    padding: 16px;
  }

  .top-strip {
    position: sticky;
    top: 82px;
    z-index: 30;
    backdrop-filter: blur(12px);
  }

  .grid.cols-5,
  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2,
  #page-blog-ops > .grid.cols-2,
  #page-triage-ops > .grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }

  .kanban {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 720px) {
  .sidebar {
    padding: 12px;
  }

  .brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand h1 {
    font-size: 0.96rem;
  }

  .brand p,
  .brand-overline {
    font-size: 0.68rem;
  }

  .main {
    padding: 12px;
  }

  .okcomputer-skin .top-strip {
    position: static;
    top: auto;
    gap: 8px;
    padding: 10px;
    height: auto;
    min-height: 48px;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
  }

  .okcomputer-skin .top-strip-live,
  .okcomputer-skin .top-strip-meta {
    width: auto;
    justify-content: space-between;
  }

  .okcomputer-skin .top-strip-live {
    flex: 0 0 auto;
  }

  .okcomputer-skin .top-strip-meta {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  #top-strip-context {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #top-strip-time {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .page-header {
    display: grid;
    gap: 14px;
    padding: 16px;
    margin-bottom: 16px;
  }

  .page-header h2 {
    font-size: 1.45rem;
  }

  .grid.cols-5,
  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2,
  #page-blog-ops > .grid.cols-2,
  #page-triage-ops > .grid.cols-2,
  #finding-summary,
  #integration-summary,
  #mission-stats,
  #integration-config,
  .native-close-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .column,
  .modal-card {
    border-radius: 18px;
    padding: 16px;
  }

  .metric {
    font-size: 1.55rem;
  }

  .kanban {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .blog-auth-controls,
  .blog-actions,
  .blog-preview-actions,
  .triage-ops-auth-controls,
  .triage-ops-filters,
  .triage-ops-actions,
  .campaign-actions,
  .campaign-fixture-actions,
  .campaign-inline-row,
  .task-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-actions label,
  .blog-filter-label,
  .blog-auth-controls input,
  .blog-auth-controls button,
  .blog-preview-actions button,
  .triage-ops-auth-controls input,
  .triage-ops-auth-controls button,
  .triage-ops-filters label,
  .triage-ops-actions button,
  .campaign-actions button,
  .campaign-fixture-actions select,
  .campaign-fixture-actions button,
  .campaign-inline-row input,
  .campaign-inline-row button,
  .task-card-actions button,
  .status-pill,
  .primary-btn,
  .secondary-btn,
  .danger-btn,
  .mini-btn {
    width: 100%;
  }

  .blog-draft-list {
    max-height: none;
  }

  .blog-draft-meta,
  .finding-detail-header,
  .kv-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .kv-val {
    text-align: left;
  }

  .blog-preview-body {
    max-height: 320px;
    font-size: 0.78rem;
  }

  .campaign-form-grid,
  .campaign-list-grid,
  .campaign-result-grid,
  .campaign-result-columns,
  .campaign-watchlist-row,
  .triage-kv-grid,
  .triage-ops-actions.grouped {
    grid-template-columns: 1fr;
  }

  .triage-section-heading {
    display: grid;
  }

  .triage-section-heading small {
    text-align: left;
  }

  .campaign-package-row {
    grid-template-columns: 1fr;
  }

  .table-wrap,
  #findings-table .table-wrap,
  #run-requests-table .table-wrap,
  #native-sessions-table .table-wrap,
  #routes-table .table-wrap,
  #blog-workflow-runs .table-wrap,
  .campaign-table-wrap {
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* OKComputer final pass.
   This sits at the true end of the bundle so older section-specific rules cannot
   reintroduce low-contrast cards, fields, or action groups. */
.okcomputer-skin {
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 212, 200, 0.1), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(139, 92, 246, 0.1), transparent 30rem),
    var(--void-black);
  color: var(--text-primary);
}

.okcomputer-skin .app-shell,
.okcomputer-skin .page,
.okcomputer-skin .page.active {
  background: transparent;
  color: var(--text-primary);
}

.okcomputer-skin .sidebar {
  background: rgba(5, 5, 7, 0.97);
  border-right: 1px solid var(--border-color);
}

.okcomputer-skin .card,
.okcomputer-skin .column,
.okcomputer-skin .modal-card,
.okcomputer-skin .blog-draft-card,
.okcomputer-skin .triage-alert-card,
.okcomputer-skin .campaign-panel,
.okcomputer-skin .campaign-result-panel,
.okcomputer-skin .task-card,
.okcomputer-skin .toast {
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.96), rgba(13, 13, 18, 0.98));
  border: 1px solid var(--border-color);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  color: var(--text-primary);
}

.okcomputer-skin .top-strip,
.okcomputer-skin .page-header {
  background: rgba(5, 5, 7, 0.78);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.okcomputer-skin h1,
.okcomputer-skin h2,
.okcomputer-skin h3,
.okcomputer-skin h4,
.okcomputer-skin .card-title,
.okcomputer-skin .column-title,
.okcomputer-skin .metric,
.okcomputer-skin .task-title,
.okcomputer-skin .finding-title,
.okcomputer-skin .blog-draft-title,
.okcomputer-skin .triage-alert-title,
.okcomputer-skin .triage-detail-title,
.okcomputer-skin .campaign-title {
  color: var(--text-primary);
}

.okcomputer-skin p,
.okcomputer-skin label,
.okcomputer-skin .muted,
.okcomputer-skin .small,
.okcomputer-skin .hint,
.okcomputer-skin .task-meta,
.okcomputer-skin .finding-meta,
.okcomputer-skin .blog-draft-meta,
.okcomputer-skin .triage-alert-summary,
.okcomputer-skin .triage-detail-copy,
.okcomputer-skin .campaign-help,
.okcomputer-skin .campaign-empty,
.okcomputer-skin .section-subtitle {
  color: var(--text-secondary);
}

.okcomputer-skin input,
.okcomputer-skin select,
.okcomputer-skin textarea {
  background: rgba(5, 5, 7, 0.78);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.okcomputer-skin input::placeholder,
.okcomputer-skin textarea::placeholder {
  color: var(--text-tertiary);
}

.okcomputer-skin input:focus,
.okcomputer-skin select:focus,
.okcomputer-skin textarea:focus,
.okcomputer-skin button:focus-visible,
.okcomputer-skin a:focus-visible,
.okcomputer-skin .nav-btn:focus-visible {
  border-color: rgba(0, 212, 200, 0.72);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.17);
  outline: none;
}

.okcomputer-skin .primary-btn,
.okcomputer-skin button.primary-btn {
  background: var(--teal-primary);
  border-color: transparent;
  color: #041011;
}

.okcomputer-skin .secondary-btn,
.okcomputer-skin .mini-btn,
.okcomputer-skin button.secondary-btn,
.okcomputer-skin button.mini-btn {
  background: rgba(20, 20, 26, 0.95);
  border-color: var(--border-active);
  color: var(--text-primary);
}

.okcomputer-skin .danger-btn,
.okcomputer-skin button.danger-btn {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.36);
  color: #fecdd3;
}

.okcomputer-skin .status-pill,
.okcomputer-skin .badge,
.okcomputer-skin .pill,
.okcomputer-skin .severity-pill,
.okcomputer-skin .triage-status-pill,
.okcomputer-skin .blog-status-pill {
  background: rgba(20, 20, 26, 0.95);
  border: 1px solid var(--border-active);
  color: var(--text-secondary);
}

.okcomputer-skin .status-pill.critical,
.okcomputer-skin .severity-critical,
.okcomputer-skin .badge.critical {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.36);
  color: #fecdd3;
}

.okcomputer-skin .status-pill.open,
.okcomputer-skin .badge.open,
.okcomputer-skin .badge.needs_review {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.36);
  color: #fde68a;
}

.okcomputer-skin .status-pill.success,
.okcomputer-skin .badge.success,
.okcomputer-skin .badge.approved {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.36);
  color: #a7f3d0;
}

.okcomputer-skin pre,
.okcomputer-skin code,
.okcomputer-skin .cli-block,
.okcomputer-skin .output-block,
.okcomputer-skin .json-output {
  background: rgba(5, 5, 7, 0.86);
  border-color: var(--border-color);
  color: #d8fff9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.okcomputer-skin .nav-btn {
  color: var(--text-secondary);
}

.okcomputer-skin .nav-btn:hover,
.okcomputer-skin .nav-btn.active {
  background: rgba(0, 212, 200, 0.1);
  border-color: rgba(0, 212, 200, 0.2);
  color: var(--text-primary);
}

.okcomputer-skin .nav-btn.active .nav-icon {
  background: rgba(0, 212, 200, 0.18);
  color: var(--teal-primary);
}

/* Operator guide */
.guide-start-pill {
  text-decoration: none;
}

.guide-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-toc h3 {
  margin: 0 0 8px;
}

.guide-toc a {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary, rgba(226, 232, 240, 0.78));
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.guide-toc a:hover,
.guide-toc a:focus-visible {
  background: rgba(0, 212, 200, 0.1);
  border-color: rgba(0, 212, 200, 0.32);
  color: var(--text-primary, #f8fafc);
}

.guide-main {
  display: grid;
  gap: 18px;
}

.guide-section {
  scroll-margin-top: 90px;
}

.guide-section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.guide-section-head h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
}

.guide-section-head p {
  margin: 0;
  max-width: 78ch;
}

.guide-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 212, 200, 0.28);
  border-radius: 999px;
  background: rgba(0, 212, 200, 0.1);
  color: #98fff6;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-steps {
  display: grid;
  gap: 10px;
}

.guide-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.guide-step > span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(0, 212, 200, 0.14);
  border: 1px solid rgba(0, 212, 200, 0.26);
  color: #98fff6;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.guide-step p {
  margin: 2px 0 0;
  color: var(--text-secondary, rgba(226, 232, 240, 0.78));
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.guide-step strong {
  color: var(--text-primary, #f8fafc);
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.guide-mini-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(0, 212, 200, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 212, 200, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.035);
}

.guide-mini-card .guide-automation-btn {
  width: fit-content;
  margin-top: 8px;
}

.guide-mini-card strong {
  color: var(--text-primary, #f8fafc);
}

.guide-mini-card span {
  color: var(--text-secondary, rgba(226, 232, 240, 0.78));
  line-height: 1.5;
}

.guide-callout {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(0, 212, 200, 0.2);
  border-radius: 16px;
  background: rgba(0, 212, 200, 0.08);
  color: #d8fff9;
  line-height: 1.55;
}

.guide-callout.guide-good {
  border-color: rgba(16, 185, 129, 0.32);
  background: rgba(16, 185, 129, 0.1);
  color: #d1fae5;
}

.guide-callout.guide-warning {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
}

.guide-callout.guide-danger {
  border-color: rgba(244, 63, 94, 0.36);
  background: rgba(244, 63, 94, 0.1);
  color: #fecdd3;
}

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

  .guide-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-toc h3 {
    grid-column: 1 / -1;
  }

  .guide-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .guide-header-actions {
    justify-content: stretch;
  }

  .guide-header-actions > * {
    width: 100%;
    justify-content: center;
  }

  .guide-toc {
    grid-template-columns: 1fr;
  }

  .guide-step {
    grid-template-columns: 1fr;
  }

  .guide-step > span {
    width: 32px;
    height: 32px;
  }
}
#page-edge .page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

#page-edge .edge-health .kv-val .status-pill {
  display: inline-flex;
}

#page-edge .edge-table table {
  min-width: 680px;
}

#page-edge #edge-findings table {
  min-width: 760px;
}

#page-edge code {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  #page-edge .page-actions,
  #page-edge .page-actions > * {
    width: 100%;
  }
}

.research-page-actions,
.research-form-actions,
.research-detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.research-auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: center;
}

.research-auth-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.research-create-panel {
  margin-top: 18px;
}

.research-watchlist-panel {
  margin-top: 18px;
}

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

.research-watchlist-controls {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: end;
  margin-top: 16px;
}

.research-watchlist-controls label {
  display: grid;
  gap: 7px;
}

.research-watchlist-controls label > span,
.research-watchlist-all span {
  color: var(--signal-muted, #9ca3af);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.research-watchlist-controls select {
  min-height: 130px;
}

.research-watchlist-all {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.research-watchlist-all input {
  width: auto;
}

.research-watchlist-result {
  margin-top: 14px;
  min-height: 22px;
}

.research-watchlist-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--signal-muted, #9ca3af);
}

.research-watchlist-summary strong {
  color: var(--signal-text-strong, #f8fafc);
}

.research-create-panel > summary,
.research-action-drawer > summary {
  cursor: pointer;
  color: var(--signal-text-strong, #f8fafc);
  font-weight: 800;
}

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

.research-form-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.research-form-grid label > span {
  color: var(--signal-muted, #9ca3af);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.research-span-2 {
  grid-column: 1 / -1;
}

.research-form-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.research-case-layout {
  align-items: start;
  margin-top: 18px;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.45fr) !important;
}

.research-case-list-panel,
.research-case-detail-panel {
  min-width: 0;
}

.research-case-filters {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  gap: 8px;
  margin: 14px 0;
}

.research-case-list {
  display: grid;
  gap: 8px;
  max-height: 780px;
  overflow: auto;
}

.research-case-row {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--signal-line-soft, rgba(74, 78, 85, 0.45));
  border-radius: 8px;
  background: rgba(3, 5, 8, 0.5);
  color: var(--signal-text, #e5e7eb);
  text-align: left;
  cursor: pointer;
}

.research-case-row:hover,
.research-case-row.selected {
  border-color: rgba(0, 217, 255, 0.55);
  background: rgba(0, 217, 255, 0.08);
}

.research-case-row-head,
.research-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.research-detail-head h3 {
  margin: 5px 0;
}

.research-readiness {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
}

.research-readiness.ready {
  border-color: rgba(16, 185, 129, 0.38);
  background: rgba(16, 185, 129, 0.08);
}

.research-readiness ul {
  margin-bottom: 0;
}

.research-detail-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--signal-line-soft, rgba(74, 78, 85, 0.45));
}

.research-detail-section h4 {
  margin: 0 0 10px;
}

.research-pipeline-panel {
  margin: 14px 0 22px;
  padding: 16px;
  border: 1px solid rgba(20, 207, 199, 0.34);
  border-left: 3px solid var(--accent, #14cfc7);
  background: rgba(20, 207, 199, 0.035);
}

.research-pipeline-heading,
.research-pipeline-summary,
.research-review-head,
.research-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.research-pipeline-heading h5,
.research-list-head h5 {
  margin: 4px 0 5px;
  font-size: 1rem;
}

.research-pipeline-summary {
  align-items: center;
  margin-top: 14px;
  padding: 10px 12px;
  border-top: 1px solid var(--signal-line-soft, rgba(74, 78, 85, 0.45));
  border-bottom: 1px solid var(--signal-line-soft, rgba(74, 78, 85, 0.45));
}

.research-pipeline-summary span,
.research-pipeline-boundary {
  color: var(--signal-muted, #9ca3af);
}

.research-pipeline-targets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.research-pipeline-notice {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--warning, #f59e0b);
  background: rgba(245, 158, 11, 0.08);
  color: var(--signal-text, #e5e7eb);
}

.research-pipeline-steps {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--signal-line-soft, rgba(74, 78, 85, 0.45));
}

.research-pipeline-step {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 9px 4px;
  border-bottom: 1px solid var(--signal-line-soft, rgba(74, 78, 85, 0.35));
}

.research-pipeline-step > small {
  grid-column: 1 / -1;
  color: var(--signal-muted, #9ca3af);
}

.research-review-list {
  margin-top: 18px;
}

.research-review-item {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--signal-line-soft, rgba(74, 78, 85, 0.45));
  background: rgba(3, 5, 8, 0.3);
}

.research-review-item.accepted {
  border-left: 3px solid var(--success, #10b981);
}

.research-review-item.rejected {
  opacity: 0.72;
  border-left: 3px solid var(--signal-muted, #9ca3af);
}

.research-review-head code {
  display: block;
  margin-top: 4px;
}

.research-review-item textarea {
  width: 100%;
  margin: 10px 0 7px;
  resize: vertical;
}

.research-review-item textarea[readonly] {
  color: var(--signal-muted, #9ca3af);
  background: rgba(3, 5, 8, 0.55);
}

.research-pipeline-boundary {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--signal-line-soft, rgba(74, 78, 85, 0.45));
}

.research-automation-status {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--signal-line-soft, rgba(74, 78, 85, 0.45));
  border-radius: 8px;
  background: rgba(3, 5, 8, 0.32);
}

.research-automation-status .feed-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--signal-line-soft, rgba(74, 78, 85, 0.3));
}

.research-table table {
  min-width: 640px;
}

.research-action-drawer {
  margin-top: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--signal-line-soft, rgba(74, 78, 85, 0.45));
}

.research-row-retracted {
  opacity: 0.58;
}

.research-row-retracted td {
  text-decoration: line-through;
  text-decoration-color: rgba(156, 163, 175, 0.45);
}

.research-retract-modal-card {
  width: min(560px, calc(100vw - 28px));
}

.research-retract-modal-card label {
  display: grid;
  gap: 8px;
}

@media (max-width: 1100px) {
  .research-auth-card,
  .research-case-layout,
  .research-watchlist-controls {
    grid-template-columns: 1fr !important;
  }

  .research-pipeline-targets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .research-page-actions,
  .research-page-actions > *,
  .research-form-actions,
  .research-form-actions > *,
  .research-watchlist-head > * {
    width: 100%;
  }

  .research-auth-controls,
  .research-form-grid,
  .research-case-filters {
    grid-template-columns: 1fr;
  }

  .research-span-2 {
    grid-column: auto;
  }

  .research-case-row-head,
  .research-detail-head,
  .research-pipeline-heading,
  .research-pipeline-summary,
  .research-review-head,
  .research-list-head {
    display: grid;
  }

  .research-pipeline-targets,
  .research-pipeline-step {
    grid-template-columns: 1fr;
  }

  .research-pipeline-step > small {
    grid-column: auto;
  }
}
/* Authenticated operator boundary */
.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: #050507;
  color: #f5f7fa;
}

.auth-gate.hidden,
.auth-form.hidden {
  display: none;
}

.app-shell.auth-pending {
  display: none;
}

.auth-panel {
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #0d0e12;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.auth-brand {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #041311;
  border-radius: 8px;
  background: #35d6c4;
}

.auth-brand svg {
  width: 23px;
  height: 23px;
}

.auth-heading {
  margin: 20px 0 24px;
}

.auth-heading h1 {
  margin: 7px 0 8px;
  color: #f5f7fa;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.auth-heading p,
.auth-boundary {
  margin: 0;
  color: #a7adb8;
  font-size: 14px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  margin-top: 4px;
  color: #d8dce3;
  font-size: 13px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #f5f7fa;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 6px;
  outline: none;
  background: #08090c;
}

.auth-form input:focus {
  border-color: #35d6c4;
  box-shadow: 0 0 0 3px rgba(53, 214, 196, 0.14);
}

.auth-primary {
  margin-top: 8px;
}

.auth-form button {
  min-height: 42px;
}

.auth-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-message {
  min-height: 22px;
  margin: 4px 0 0;
  color: #a7adb8;
  font-size: 13px;
  line-height: 1.45;
}

.auth-message.error {
  color: #ff8f9b;
}

.auth-locked-message {
  padding: 14px;
  color: #ffd6da;
  border: 1px solid rgba(255, 93, 113, 0.34);
  border-radius: 6px;
  background: rgba(255, 93, 113, 0.08);
  font-size: 13px;
  line-height: 1.5;
}

.auth-boundary {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.operator-identity {
  max-width: 240px;
  overflow: hidden;
  color: #c7cbd3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-strip-action {
  padding: 3px 8px;
  color: #d8dce3;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.top-strip-action:hover,
.top-strip-action:focus-visible {
  color: #ffffff;
  border-color: #35d6c4;
}

@media (max-width: 520px) {
  .auth-gate {
    align-items: start;
    padding: 20px 14px;
  }

  .auth-panel {
    padding: 22px 18px;
  }

  .operator-identity {
    max-width: 132px;
  }
}

/* Professional console layer. This is intentionally scoped so the legacy
   renderers can be migrated screen by screen without changing API contracts. */
body.professional-ui {
  background: #0f141a;
  color: #e7edf3;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.professional-ui::before {
  display: none;
}

.professional-ui .app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  background: #0f141a;
}

.professional-ui .sidebar {
  position: sticky;
  width: auto;
  padding: 18px 12px;
  background: #0b1015;
  border-right: 1px solid #26313c;
  box-shadow: none;
}

.professional-ui .brand {
  margin: 0 4px 24px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}

.professional-ui .brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #35d6c4;
  box-shadow: none;
}

.professional-ui .brand h1 {
  font-size: 15px;
  letter-spacing: 0;
}

.professional-ui .brand p {
  color: #91a0af;
  font-size: 11px;
}

.professional-ui .brand-overline {
  color: #7de2d4;
  font-size: 9px;
  letter-spacing: 0;
}

.professional-ui .nav-list {
  gap: 3px;
}

.professional-ui .nav-group-label {
  margin: 18px 10px 6px;
  color: #788695;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.professional-ui .nav-group-label:first-child {
  margin-top: 0;
}

.professional-ui .nav-btn {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}

.professional-ui .nav-btn:hover {
  background: #141d25;
  border-color: #2a3945;
}

.professional-ui .nav-btn.active {
  background: #17252a;
  border-color: #2e5d5a;
  box-shadow: inset 3px 0 0 #35d6c4;
}

.professional-ui .nav-btn .title {
  color: #e7edf3;
  font-size: 13px;
  font-weight: 600;
}

.professional-ui .nav-btn .desc {
  display: none;
}

.professional-ui .nav-icon {
  width: 18px;
  height: 18px;
  color: #91a0af;
}

.professional-ui .nav-btn.active .nav-icon {
  color: #7de2d4;
}

.professional-ui .sidebar-footer {
  margin: 22px 6px 0;
  padding: 14px 10px 0;
  border-top-color: #26313c;
  color: #91a0af;
}

.professional-ui .main {
  min-width: 0;
  padding: 0;
  background: #11171d;
  overflow-x: hidden;
}

.professional-ui .top-strip {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  padding: 0 32px;
  background: #11171d;
  border-bottom: 1px solid #26313c;
  box-shadow: none;
}

.professional-ui .topbar-primary,
.professional-ui .topbar-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
}

.professional-ui .topbar-secondary {
  min-height: 38px;
  justify-content: flex-start;
  color: #8d9baa;
  font-size: 12px;
}

.professional-ui .workspace-context,
.professional-ui .topbar-actions,
.professional-ui .top-strip-live,
.professional-ui .context-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.professional-ui .top-strip-live {
  color: #9aa8b7;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.professional-ui .workspace-switcher,
.professional-ui .topbar-action,
.professional-ui .top-strip-action {
  min-height: 32px;
  padding: 6px 9px;
  color: #dce5ec;
  border: 1px solid #2a3743;
  border-radius: 6px;
  background: #151d25;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.professional-ui .workspace-switcher:hover,
.professional-ui .topbar-action:hover,
.professional-ui .top-strip-action:hover,
.professional-ui .workspace-switcher:focus-visible,
.professional-ui .topbar-action:focus-visible,
.professional-ui .top-strip-action:focus-visible {
  border-color: #35d6c4;
  outline: 0;
}

.professional-ui .topbar-action {
  color: #aebbc7;
  background: transparent;
  border-color: transparent;
}

.professional-ui .topbar-action kbd,
.professional-ui .command-palette-foot kbd {
  margin-left: 5px;
  padding: 2px 5px;
  color: #8998a7;
  border: 1px solid #354451;
  border-radius: 4px;
  background: #0c1217;
  font: 11px JetBrains Mono, monospace;
}

.professional-ui .health-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d6c4;
}

.professional-ui .context-nav {
  margin-left: 8px;
  overflow-x: auto;
}

.professional-ui .context-nav-btn {
  padding: 4px 8px;
  color: #8d9baa;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
}

.professional-ui .context-nav-btn:hover,
.professional-ui .context-nav-btn.active {
  color: #dce5ec;
  border-bottom-color: #35d6c4;
}

.professional-ui #top-strip-time {
  margin-left: auto;
  color: #6e7d8a;
  font: 11px JetBrains Mono, monospace;
  white-space: nowrap;
}

.professional-ui .page {
  padding: 32px;
}

.professional-ui .page-header {
  margin-bottom: 22px;
}

.professional-ui .page-toolbar {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid #293642;
  border-radius: 8px;
  background: #141c23;
}

.professional-ui .page-toolbar label {
  min-width: 150px;
}

.professional-ui .page-toolbar .toolbar-search {
  flex: 1 1 280px;
}

.professional-ui .page-toolbar input,
.professional-ui .page-toolbar select {
  width: 100%;
}

.professional-ui .page-actions,
.professional-ui .view-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.professional-ui .view-switcher {
  gap: 0;
  padding: 2px;
  border: 1px solid #344452;
  border-radius: 6px;
  background: #0f151b;
}

.professional-ui .view-switch-btn {
  min-height: 29px;
  padding: 5px 9px;
  color: #91a0af;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.professional-ui .view-switch-btn.active,
.professional-ui .view-switch-btn:hover {
  color: #e7edf3;
  background: #24343b;
}

.professional-ui .page-header h2 {
  color: #f1f5f8;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0;
}

.professional-ui .page-header p,
.professional-ui .small,
.professional-ui .metric-label,
.professional-ui .meta,
.professional-ui .muted-inline {
  color: #9aa8b7;
}

.professional-ui .card,
.professional-ui .metric-card,
.professional-ui .empty-state {
  border: 1px solid #293642;
  border-radius: 8px;
  background: #171f27;
  box-shadow: none;
}

.professional-ui .card h3,
.professional-ui .card h4,
.professional-ui .card h5 {
  color: #edf3f7;
  letter-spacing: 0;
}

.professional-ui input,
.professional-ui select,
.professional-ui textarea {
  min-height: 38px;
  color: #e7edf3;
  border: 1px solid #344452;
  border-radius: 6px;
  background: #0f151b;
}

.professional-ui input:focus,
.professional-ui select:focus,
.professional-ui textarea:focus,
.professional-ui button:focus-visible,
.professional-ui a:focus-visible {
  border-color: #35d6c4;
  outline: 3px solid rgba(53, 214, 196, 0.2);
  outline-offset: 1px;
}

.professional-ui .primary-btn,
.professional-ui .secondary-btn,
.professional-ui .mini-btn,
.professional-ui .danger-btn {
  min-height: 34px;
  border-radius: 6px;
  box-shadow: none;
  font-size: 12px;
}

.professional-ui .primary-btn {
  color: #06211e;
  background: #35d6c4;
  border-color: #35d6c4;
}

.professional-ui .secondary-btn,
.professional-ui .mini-btn {
  color: #dce5ec;
  background: #1b2730;
  border-color: #344452;
}

.professional-ui .danger-btn {
  color: #ffd9de;
  background: #3a1d24;
  border-color: #87414e;
}

.professional-ui .status-pill {
  min-height: 30px;
  padding: 6px 9px;
  color: #c4d0da;
  border: 1px solid #344452;
  border-radius: 6px;
  background: #151d25;
  box-shadow: none;
}

.professional-ui table th {
  color: #9eacb8;
  background: #121920;
  border-bottom-color: #344452;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.professional-ui table td {
  color: #dce5ec;
  border-bottom-color: #293642;
}

.professional-ui tr:hover td,
.professional-ui .finding-row.selected-row td {
  background: #1c2931;
}

.professional-ui .operations-cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
  gap: 12px;
  margin-bottom: 16px;
}

.professional-ui .cockpit-panel {
  min-width: 0;
  padding: 16px;
}

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

.professional-ui .cockpit-panel h3 {
  margin: 4px 0 0;
  font-size: 15px;
}

.professional-ui .cockpit-items {
  display: grid;
  gap: 6px;
}

.professional-ui .cockpit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 11px;
  color: #dce5ec;
  border: 1px solid #2e3d49;
  border-left: 3px solid #6e7d8a;
  border-radius: 6px;
  background: #141c23;
  text-align: left;
  cursor: pointer;
}

.professional-ui .cockpit-item:hover { background: #1b2a31; border-color: #47616c; }
.professional-ui .cockpit-item strong,
.professional-ui .cockpit-item small { display: block; }
.professional-ui .cockpit-item strong { font-size: 12px; }
.professional-ui .cockpit-item small { margin-top: 3px; color: #9aa8b7; font-size: 11px; }
.professional-ui .cockpit-item.tone-critical { border-left-color: #f06c79; }
.professional-ui .cockpit-item.tone-high { border-left-color: #f0a84f; }
.professional-ui .cockpit-item.tone-medium { border-left-color: #dfc05d; }
.professional-ui .cockpit-item.tone-info { border-left-color: #62b8cf; }

.professional-ui .cockpit-clear {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: #b9c7d2;
  border: 1px dashed #36505a;
  border-radius: 6px;
  background: #121b21;
  font-size: 12px;
}

.professional-ui .cockpit-clear span { color: #91a0af; }
.professional-ui .cockpit-summary { display: grid; align-content: start; }
.professional-ui .cockpit-summary h3 { margin-bottom: 18px; }
.professional-ui .cockpit-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.professional-ui .cockpit-facts span { display: grid; gap: 3px; min-width: 0; }
.professional-ui .cockpit-facts strong { color: #dce5ec; font-size: 12px; }
.professional-ui .cockpit-facts small { color: #91a0af; font-size: 10px; }

.professional-ui .work-table-wrap { margin-top: 0; }
.professional-ui .table-link {
  padding: 0;
  color: #9cece1;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  text-align: left;
}
.professional-ui .table-link:hover { text-decoration: underline; }
.professional-ui .severity-label { text-transform: capitalize; }
.professional-ui .severity-urgent,
.professional-ui .severity-critical { color: #ff8f9b; }
.professional-ui .severity-high { color: #f4b96d; }
.professional-ui .severity-normal { color: #a8c4d4; }
.professional-ui .severity-low { color: #93c6e4; }

.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  color: #e7edf3;
  border: 1px solid #344452;
  border-radius: 8px;
  background: #18222a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  font-size: 12px;
}

.toast button {
  margin-left: auto;
  color: #91a0af;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.toast-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 50%;
  background: #2b7470;
  color: #d9fffa;
  font-weight: 700;
}

.toast-error { border-color: #87414e; }
.toast-error .toast-icon { background: #873a49; }
.toast-success { border-color: #2f7067; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: start center;
  padding: 12vh 20px 20px;
  background: rgba(4, 7, 10, 0.72);
}
.professional-ui .overlay.hidden { display: none; }

.command-palette-card {
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid #415361;
  border-radius: 8px;
  background: #151d25;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.command-palette-head,
.help-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #293642;
}

.command-palette-head h2,
.help-drawer-head h2 {
  margin: 4px 0 0;
  color: #f1f5f8;
  font-size: 18px;
  letter-spacing: 0;
}

.eyebrow {
  color: #7de2d4;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.command-search-label {
  display: block;
  padding: 14px 20px;
}

.command-search-label input {
  width: 100%;
  min-height: 42px;
  font-size: 14px;
}

.command-palette-list {
  max-height: min(440px, 52vh);
  overflow-y: auto;
  padding: 0 10px 10px;
}

.command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 10px;
  color: #dce5ec;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.command-item:hover,
.command-item.selected {
  border-color: #315a59;
  background: #1b2d32;
}

.command-item strong,
.command-item small {
  display: block;
}

.command-item strong { font-size: 13px; }
.command-item small { margin-top: 3px; color: #91a0af; font-size: 11px; }
.command-item kbd { color: #8d9baa; }
.command-empty { padding: 22px 12px; color: #91a0af; text-align: center; }

.command-palette-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  color: #788695;
  border-top: 1px solid #293642;
  font-size: 11px;
}

.help-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 85;
  width: min(420px, 100vw);
  height: 100vh;
  color: #dce5ec;
  border-left: 1px solid #415361;
  background: #151d25;
  box-shadow: -18px 0 46px rgba(0, 0, 0, 0.38);
}

.help-drawer-body {
  padding: 20px;
  color: #aebbc7;
  font-size: 13px;
  line-height: 1.65;
}

.help-drawer-links {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.help-drawer-links a {
  padding: 10px 12px;
  color: #7de2d4;
  border: 1px solid #344452;
  border-radius: 6px;
  text-decoration: none;
}

.help-drawer-links a:hover { background: #1b2d32; }

body.professional-ui.modal-open { overflow: hidden; }
.professional-ui .confirm-dialog-card { width: min(520px, calc(100vw - 32px)); }
.professional-ui .confirm-dialog-message { margin: 0; color: #e4ebf0; font-size: 15px; line-height: 1.55; }
.professional-ui .confirm-dialog-context { margin-top: 14px; padding: 11px 12px; color: #aebbc7; border-left: 3px solid #62b8cf; background: #1b252d; font-size: 12px; line-height: 1.55; }
.professional-ui .confirm-dialog-card .danger-btn { background: #9f3d4d; border-color: #c15c6c; color: #fff7f8; }
.professional-ui .confirm-dialog-card .danger-btn:hover { background: #b24758; }

@media (max-width: 1024px) {
  .professional-ui .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .professional-ui .page { padding: 24px; }
  .professional-ui .top-strip { padding: 0 24px; }
  .professional-ui .operations-cockpit { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .professional-ui .app-shell { display: block; }
  .professional-ui .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 280px; transform: translateX(-100%); transition: transform 160ms ease; }
  .professional-ui.mobile-nav-open .sidebar { transform: translateX(0); }
  .professional-ui .main { min-height: 100vh; }
  .professional-ui .top-strip { padding: 0 16px; }
  .professional-ui .topbar-primary { min-height: 52px; }
  .professional-ui .topbar-secondary { min-height: 36px; }
  .professional-ui .topbar-actions .topbar-action:not(#top-help-btn) { display: none; }
  .professional-ui .page { padding: 20px 16px 32px; }
  .professional-ui .page-header { display: block; }
  .professional-ui .page-header .page-actions,
  .professional-ui .page-header > .status-pill { margin-top: 14px; }
  .professional-ui .context-nav { max-width: calc(100vw - 100px); }
  .professional-ui #top-strip-time { display: none; }
  .professional-ui .grid.cols-2,
  .professional-ui .grid.cols-3,
  .professional-ui .grid.cols-4,
  .professional-ui .grid.cols-5 { grid-template-columns: 1fr; }
  .professional-ui .table-wrap { overflow-x: hidden; }
  .professional-ui table thead { display: none; }
  .professional-ui table,
  .professional-ui table tbody,
  .professional-ui table tr,
  .professional-ui table td { display: block; width: 100%; }
  .professional-ui table tr { padding: 10px 0; border-bottom: 1px solid #293642; }
  .professional-ui table td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 10px; border: 0; }
  .professional-ui table td:first-child { display: block; }
  .professional-ui .kanban { overflow-x: auto; }
  .professional-ui .topbar-primary .workspace-context { min-width: 0; }
  .professional-ui .workspace-switcher { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .professional-ui * { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ══════════════════════════════════════════════════════════════
   ASD S1000D CONSOLE THEME
   Technical-publication operator console: flat paper, 1px rules,
   squared corners, monospace identifiers, color for meaning only.
   This layer intentionally overrides the decorative theme above.
   ══════════════════════════════════════════════════════════════ */
:root {
  --bg: #FBFAF6;
  --bg-soft: #FFFFFF;
  --bg-panel: #FFFFFF;
  --card: #FFFFFF;
  --card-muted: #FBFAF6;
  --border: #C9CDD2;
  --border-strong: #9BA2AA;
  --text: #16191D;
  --muted: #67707B;
  --muted-strong: #3E4650;

  --cyan: #0F4C81;
  --blue: #0F4C81;
  --purple: #3E4650;
  --indigo: #0F4C81;
  --amber: #8A5A00;
  --green: #1E6B3A;
  --red: #9E1B1B;
  --shadow-soft: none;
  --shadow-strong: none;

  --status-queued: #0F4C81;
  --status-running: #0F4C81;
  --status-completed: #1E6B3A;
  --status-failed: #9E1B1B;
  --status-cancelled: #67707B;
  --status-blocked: #9E1B1B;
  --status-review: #8A5A00;
  --status-picked-up: #3E4650;
  --status-needs-review: #8A5A00;
  --status-completed-with-gaps: #8A5A00;

  --asd-note: #0F4C81;
  --asd-note-bg: #EDF3F9;
  --asd-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

body {
  background: var(--bg);
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Sidebar: light data-module rail ─────────────────────── */
.sidebar {
  background: #FFFFFF;
  color: var(--text);
  border-right: 1px solid var(--border-strong);
  box-shadow: none;
}
.brand-badge {
  border-radius: 2px;
  background: #16191D;
  box-shadow: none;
  font-family: var(--asd-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.brand h1 { color: var(--text); font-family: var(--asd-mono); letter-spacing: 0.1em; font-size: 0.95rem; }
.brand p { color: var(--muted); font-family: var(--asd-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }

.nav-list { gap: 4px; }
.nav-btn {
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--text);
  text-align: left;
}
.nav-btn:hover { background: var(--asd-note-bg); border-color: transparent; }
.nav-btn.active {
  background: #16191D;
  border-color: #16191D;
  box-shadow: none;
  color: #FBFAF6;
}
.nav-btn.active .title { color: #FBFAF6; }
.nav-btn.active .desc { color: rgba(251, 250, 246, 0.72); }
.nav-btn .title { font-weight: 600; }
.nav-btn .desc { color: var(--muted); }

.sidebar-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--asd-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

/* ── Page chrome ─────────────────────────────────────────── */
.main { background: var(--bg); }
.page-header h2 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 8px;
  width: 100%;
}
.page-header p { font-size: 0.9rem; }
.page { animation: none; }

/* ── Cards: flat ruled panels ────────────────────────────── */
.card,
.metric-card,
.panel,
.triage-ops-auth-card {
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--card);
  box-shadow: none;
}
.card:hover { box-shadow: none; }
.metric-card .metric { color: var(--text); }
.metric-card .metric-label {
  font-family: var(--asd-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Buttons: squared functional controls ────────────────── */
.primary-btn,
.secondary-btn,
.mini-btn,
button {
  border-radius: 2px;
  font-family: var(--asd-mono);
  letter-spacing: 0.06em;
}
.primary-btn {
  background: #16191D;
  border: 1px solid #16191D;
  color: #FBFAF6;
  box-shadow: none;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.primary-btn:hover { background: var(--asd-note); border-color: var(--asd-note); box-shadow: none; }
.secondary-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  box-shadow: none;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.secondary-btn:hover { background: var(--asd-note-bg); border-color: var(--asd-note); color: var(--asd-note); box-shadow: none; }
.mini-btn {
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--muted-strong);
  font-size: 0.68rem;
  box-shadow: none;
}
.mini-btn:hover { background: var(--asd-note-bg); color: var(--asd-note); border-color: var(--asd-note); }

/* ── Status pills: squared semantic tags ─────────────────── */
.status-pill {
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: none;
  font-family: var(--asd-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
}
.dot { border-radius: 0; box-shadow: none; width: 8px; height: 8px; }

/* ── Forms ───────────────────────────────────────────────── */
input, select, textarea {
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--card);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--asd-note-bg);
  border-color: var(--asd-note);
}
label .small, .small { color: var(--muted); }

/* ── Tables ──────────────────────────────────────────────── */
table { font-size: 0.85rem; }
thead th {
  font-family: var(--asd-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1.5px solid var(--text);
  background: var(--card-muted);
}
td { border-bottom: 1px solid var(--border); }

/* ── Top strip / context nav / drawers ───────────────────── */
.top-strip,
.topbar-primary {
  background: #FFFFFF;
  border-bottom: 2px solid var(--text);
  box-shadow: none;
}
.context-nav-btn {
  border-radius: 2px;
  font-family: var(--asd-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-strong);
}
.context-nav-btn.active, .context-nav-btn:hover {
  background: #16191D;
  color: #FBFAF6;
  border-color: #16191D;
}
.help-drawer, .command-palette, .modal, .confirm-dialog {
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  box-shadow: none;
  background: var(--card);
}
.kbd, kbd {
  font-family: var(--asd-mono);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--card-muted);
  box-shadow: none;
}
code, pre, .mono {
  font-family: var(--asd-mono);
}
pre {
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--card-muted);
}

/* Intelligence integrations: one operator surface for the local bridge and hosted MCP app. */
.intelligence-console {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--text);
  background: var(--card);
}

.intelligence-console-head,
.intelligence-module .module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.intelligence-console-head h3,
.intelligence-module h4 {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
}

.intelligence-console-head p,
.intelligence-module .module-head p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.section-kicker {
  margin-bottom: 7px;
  color: var(--asd-note);
  font: 700 0.62rem var(--asd-mono);
  letter-spacing: 0.12em;
}

.intelligence-summary {
  margin-top: 18px;
}

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

.intelligence-module {
  min-width: 0;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border-strong);
  background: var(--card-muted);
}

.intelligence-grid .intelligence-module {
  margin-top: 0;
}

.intelligence-module .kv-list {
  margin-top: 14px;
}

.intelligence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.intelligence-request-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.3fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 16px;
}

.intelligence-request-grid label {
  min-width: 0;
}

.intelligence-request-grid label > span,
.intelligence-credential-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-strong);
  font: 600 0.68rem var(--asd-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.intelligence-credential-field {
  display: block;
  margin-top: 15px;
}

.intelligence-credential-field input {
  width: 100%;
}

.intelligence-request-grid input,
.intelligence-request-grid select {
  width: 100%;
}

.intelligence-log {
  max-height: 260px;
  margin-top: 14px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.intelligence-job-result {
  max-width: 640px;
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .intelligence-request-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .intelligence-console {
    padding: 14px;
  }

  .intelligence-console-head,
  .intelligence-module .module-head {
    flex-direction: column;
    gap: 10px;
  }

  .intelligence-grid,
  .intelligence-request-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .intelligence-actions > *,
  .intelligence-request-grid > button {
    width: 100%;
    justify-content: center;
  }
}

/* ── Notices → S1000D callouts ───────────────────────────── */
.error, .notice-error {
  border: 1px solid var(--red);
  border-left-width: 3px;
  border-radius: 2px;
  background: #FAECEC;
  color: var(--red);
}
.empty-state, .empty-state.compact {
  border: 1px dashed var(--border-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
}

/* ── Scrollbars & misc ───────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 0; }
::-webkit-scrollbar-track { background: transparent; }

a { color: var(--asd-note); }
a:hover { text-decoration: underline; }

/* Severity accents stay semantic */
.severity-critical, .critical { color: #7A1010; }
.severity-high, .high { color: var(--red); }
.severity-medium, .medium { color: var(--amber); }
.severity-low, .low, .info { color: var(--asd-note); }
