﻿    :root {
      --bg-main: #0b0f19;
      --bg-card: #111827;
      --bg-card-alt: #151d2e;
      --border-color: rgba(255, 255, 255, 0.08);
      --border-focus: #06b6d4;
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --accent-cyan: #06b6d4;
      --accent-blue: #3b82f6;
      --accent-green: #10b981;
      --accent-amber: #f59e0b;
      --accent-rose: #f43f5e;
      --accent-purple: #8b5cf6;
    }

    body {
      background-color: var(--bg-main);
      color: var(--text-main);
      font-family: 'Inter', sans-serif;
      margin: 0;
      padding: 0;
      min-height: 100vh;
      font-size: 12.5px;
    }

    .page-container {
      max-width: 100%;
      margin: 0;
      padding: 8px 12px 30px;
    }

    /* Top Action Bar - Compact 1-line */
    .top-action-bar {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.08));
      border: 1px solid rgba(139, 92, 246, 0.25);
      border-radius: 8px;
      padding: 8px 12px;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
    }

    .top-title-group {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .top-title-group h1 {
      margin: 0;
      font-size: 15px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 6px;
      color: #fff;
    }

    .top-title-group p {
      margin: 0;
      font-size: 11.5px;
      color: var(--text-muted);
    }

    .btn-action {
      background: linear-gradient(135deg, #06b6d4, #3b82f6);
      color: #fff;
      border: none;
      padding: 5px 10px;
      border-radius: 6px;
      font-weight: 600;
      font-size: 11.5px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all 0.15s ease;
      box-shadow: 0 2px 6px rgba(6, 182, 212, 0.2);
    }

    .btn-action:hover {
      opacity: 0.92;
      transform: translateY(-1px);
    }

    .btn-purple {
      background: linear-gradient(135deg, #8b5cf6, #6366f1);
      box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      box-shadow: none;
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.12);
    }

    /* High-Density Mini KPI Strip */
    .kpi-strip {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
      margin-bottom: 8px;
    }

    .kpi-chip {
      background: rgba(17, 24, 39, 0.8);
      border: 1px solid var(--border-color);
      border-radius: 6px;
      padding: 5px 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .kpi-chip-icon {
      width: 26px;
      height: 26px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(6, 182, 212, 0.12);
      color: var(--accent-cyan);
      flex-shrink: 0;
    }
    .kpi-chip-icon .material-symbols-outlined { font-size: 16px; }

    .kpi-chip-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      font-weight: 700;
      color: #fff;
      line-height: 1.1;
    }

    .kpi-chip-lbl {
      font-size: 10px;
      color: var(--text-muted);
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    /* Dual Column Split-Screen Layout */
    .split-screen-grid {
      display: grid;
      grid-template-columns: 53% 47%;
      gap: 8px;
      align-items: start;
    }

    @media (max-width: 1180px) {
      .split-screen-grid {
        grid-template-columns: 1fr;
      }
    }

    .split-col {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .sticky-col {
      position: sticky;
      top: 50px;
      max-height: calc(100vh - 58px);
      overflow-y: auto;
    }

    .sticky-col::-webkit-scrollbar {
      width: 4px;
    }
    .sticky-col::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 4px;
    }

    /* Compact Section Cards */
    .section-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 10px 12px;
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 6px;
    }

    .section-title {
      font-size: 13px;
      font-weight: 700;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .section-title .material-symbols-outlined { font-size: 16px; }

    /* High-Density Data Tables */
    .data-table-container {
      overflow-x: auto;
    }

    table.styled-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11.5px;
      text-align: left;
    }

    table.styled-table th {
      background: rgba(255, 255, 255, 0.03);
      color: var(--text-muted);
      font-weight: 600;
      padding: 5px 8px;
      border-bottom: 1px solid var(--border-color);
      white-space: nowrap;
      font-size: 10.5px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    table.styled-table td {
      padding: 5.5px 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
      color: #e2e8f0;
      vertical-align: middle;
    }

    table.styled-table tr:hover td {
      background: rgba(255, 255, 255, 0.03);
    }

    .mono {
      font-family: 'JetBrains Mono', monospace;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 600;
    }

    .badge-green { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
    .badge-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.3); font-weight: 700; }
    .badge-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
    .badge-purple { background: rgba(139, 92, 246, 0.15); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.3); }
    .badge-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
    .badge-gray { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }

    /* Compact 3x3 Persona Grid */
    .persona-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
    }

    @media (max-width: 1400px) {
      .persona-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .persona-card {
      background: var(--bg-card-alt);
      border: 1px solid var(--border-color);
      border-radius: 6px;
      padding: 6px 8px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: border 0.15s;
    }

    .persona-card:hover {
      border-color: rgba(6, 182, 212, 0.4);
    }

    .persona-top {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 4px;
    }

    .persona-avatar {
      width: 24px;
      height: 24px;
      border-radius: 4px;
      background: linear-gradient(135deg, #1e293b, #0f172a);
      border: 1px solid rgba(255, 255, 255, 0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: var(--accent-cyan);
      font-size: 11px;
      flex-shrink: 0;
    }

    .persona-info h3 {
      margin: 0;
      font-size: 12px;
      font-weight: 700;
      color: #fff;
      line-height: 1.1;
    }

    .persona-info .role {
      font-size: 10px;
      color: var(--accent-cyan);
      font-weight: 500;
    }

    .persona-model-box {
      background: rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 4px;
      padding: 4px 6px;
      margin-bottom: 4px;
    }

    .persona-model-box .label {
      font-size: 9.5px;
      color: var(--text-muted);
      margin-bottom: 1px;
    }

    .persona-model-box .value {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px;
      color: #38bdf8;
      word-break: break-all;
    }

    .persona-duties {
      font-size: 10px;
      color: var(--text-muted);
      line-height: 1.3;
      margin-bottom: 6px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .persona-actions {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding-top: 4px;
    }

    /* DHS Agentic War Room Compact Styles */
    .dhs-sample-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 6px;
      margin-bottom: 8px;
    }
    .dhs-sample-card {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 6px;
      padding: 6px 8px;
      cursor: pointer;
      transition: all 0.15s;
    }
    .dhs-sample-card:hover {
      border-color: #8b5cf6;
      background: rgba(139, 92, 246, 0.08);
    }
    .dhs-sample-card.active {
      border-color: #a855f7;
      background: rgba(168, 85, 247, 0.12);
      box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
    }
    .dhs-timeline {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 8px;
    }
    .dhs-step-card {
      background: rgba(15, 23, 42, 0.8);
      border: 1px solid rgba(139, 92, 246, 0.3);
      border-left: 3px solid #8b5cf6;
      border-radius: 6px;
      padding: 8px 10px;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .dhs-cot-box {
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 4px;
      padding: 5px 8px;
      font-size: 11px;
      color: #cbd5e1;
      line-height: 1.4;
    }
    .dhs-tool-box {
      background: rgba(6, 182, 212, 0.08);
      border: 1px solid rgba(6, 182, 212, 0.25);
      border-radius: 4px;
      padding: 4px 8px;
      font-size: 11px;
      color: #38bdf8;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 4px;
    }
    .dhs-report-container {
      background: #050811;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 6px;
      padding: 10px;
      margin-top: 8px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11.5px;
      color: #e2e8f0;
      white-space: pre-wrap;
      max-height: 300px;
      overflow-y: auto;
    }

    /* Modal */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(4px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 999;
    }

    .modal-content {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      width: 100%;
      max-width: 560px;
      padding: 16px;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    }

    .form-group {
      margin-bottom: 8px;
    }

    .form-group label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-muted);
      margin-bottom: 3px;
    }

    .form-control {
      width: 100%;
      background: var(--bg-main);
      border: 1px solid var(--border-color);
      border-radius: 6px;
      padding: 5px 8px;
      color: #fff;
      font-size: 11.5px;
      box-sizing: border-box;
      outline: none;
    }

    .form-control:focus {
      border-color: var(--border-focus);
    }

    textarea.form-control {
      resize: vertical;
      min-height: 50px;
      font-family: 'Inter', sans-serif;
    }
