
    :root {
      --bg: #f5f6f8;
      --surface: #ffffff;
      --surface-alt: #f9fafb;
      --border: #e5e7eb;
      --border-focus: #2563eb;
      --text: #111827;
      --text-2: #374151;
      --text-3: #6b7280;
      --text-4: #9ca3af;
      --accent: #2563eb;
      --accent-hover: #1d4ed8;
      --accent-bg: #eff6ff;
      --success: #059669;
      --success-bg: #ecfdf5;
      --warning: #d97706;
      --warning-bg: #fffbeb;
      --error: #dc2626;
      --error-bg: #fef2f2;
      --info: #0284c7;
      --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
      --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
      --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
      --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
      --r: 8px;
      --r-sm: 6px;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font);
      font-size: 14px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      min-height: 100vh;
    }

    /* ── TOPBAR ──────────────────────────────────────── */
    header {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 0 32px;
      height: 52px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 100;
      gap: 12px;
      flex-wrap: nowrap;
    }

    .brand-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      letter-spacing: -0.02em;
      white-space: nowrap;
    }

    .brand-tag {
      font-size: 9px;
      font-family: var(--mono);
      font-weight: 600;
      padding: 2px 6px;
      border-radius: 4px;
      background: var(--accent-bg);
      color: var(--accent);
      border: 1px solid #bfdbfe;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .brand-subtext,
    .brand-desc {
      display: none;
    }

    .header-device {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-family: var(--mono);
      color: var(--text-3);
      background: var(--surface-alt);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 4px 10px;
      white-space: nowrap;
    }

    .device-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--success);
    }

    /* ── LAYOUT ──────────────────────────────────────── */
    .container {
      max-width: 100%;
      margin: 0;
      padding: 0;
    }

    .page-body {
      display: grid;
      grid-template-columns: 320px 1fr;
      min-height: calc(100vh - 52px);
    }

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

      .sidebar {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
      }
    }

    /* ── SIDEBAR ─────────────────────────────────────── */
    .sidebar {
      background: var(--surface);
      border-right: 1px solid var(--border);
      padding: 24px 20px;
      overflow-y: auto;
      max-height: calc(100vh - 52px);
      position: sticky;
      top: 52px;
    }

    .sidebar-section {
      margin-bottom: 20px;
    }

    .sidebar-section:last-child {
      margin-bottom: 0;
    }

    .sidebar-label {
      font-size: 10px;
      font-weight: 600;
      color: var(--text-4);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 8px;
      display: block;
    }

    /* ── MAIN CONTENT ────────────────────────────────── */
    .main-content {
      padding: 28px 32px;
      overflow-y: auto;
    }

    /* ── CARD ─────────────────────────────────────────── */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r);
      padding: 0;
      margin-bottom: 0;
      box-shadow: none;
    }

    /* ── FORM ─────────────────────────────────────────── */
    .form-group {
      margin-bottom: 16px;
    }

    .form-group:last-child {
      margin-bottom: 0;
    }

    label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-3);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 6px;
    }

    input[type="text"] {
      width: 100%;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r-sm);
      padding: 8px 12px;
      color: var(--text);
      font-family: var(--mono);
      font-size: 12.5px;
      outline: none;
      transition: border-color 0.15s, box-shadow 0.15s;
    }

    input[type="text"]:focus {
      border-color: var(--border-focus);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    }

    input[type="text"]::placeholder {
      color: var(--text-4);
    }

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

    /* ── RADIOS / CHECKBOXES ─────────────────────────── */
    .segmented-group {
      display: flex;
      gap: 6px;
      align-items: center;
      flex-wrap: wrap;
    }

    .radio-option {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12.5px;
      color: var(--text-2);
      cursor: pointer;
      padding: 5px 12px;
      border-radius: var(--r-sm);
      background: var(--surface-alt);
      border: 1px solid var(--border);
      user-select: none;
      transition: all 0.1s;
    }

    .radio-option:hover {
      background: #eef2f7;
      border-color: #d1d5db;
    }

    .radio-option input[type="radio"] {
      accent-color: var(--accent);
    }

    .radio-option-secondary {
      opacity: 0.7;
      font-size: 12px;
    }

    .checkbox-row {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--text-2);
      cursor: pointer;
      user-select: none;
    }

    .checkbox-row input[type="checkbox"] {
      accent-color: var(--accent);
    }

    .presets-row {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 10px;
      margin-top: 8px;
      font-size: 11px;
      align-items: baseline;
    }

    .presets-label {
      color: var(--text-4);
      font-weight: 500;
    }

    .preset-link {
      color: var(--accent);
      cursor: pointer;
      text-decoration: none;
    }

    .preset-link:hover {
      text-decoration: underline;
    }

    .preset-link-warn {
      color: var(--warning);
    }

    /* ── BUTTONS ──────────────────────────────────────── */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font);
      font-weight: 600;
      font-size: 13px;
      padding: 8px 18px;
      border-radius: var(--r-sm);
      border: 1px solid transparent;
      cursor: pointer;
      transition: all 0.1s;
    }

    .btn-primary {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent-hover);
      width: 100%;
      margin-top: 0;
    }

    .btn-primary:hover:not(:disabled) {
      background: var(--accent-hover);
    }

    .btn-primary:disabled {
      background: #e5e7eb;
      color: #9ca3af;
      border-color: #d1d5db;
      cursor: not-allowed;
    }

    .btn-secondary {
      background: var(--surface);
      color: var(--text-2);
      border-color: var(--border);
      font-size: 12px;
      padding: 6px 12px;
      font-weight: 500;
    }

    .btn-secondary:hover:not(:disabled) {
      background: var(--surface-alt);
    }

    .btn-stop {
      background: var(--error-bg);
      color: var(--error);
      border: 1px solid #fecaca;
      font-weight: 500;
      padding: 8px 18px;
    }

    .btn-stop:hover {
      background: #fee2e2;
    }

    /* ── BANNERS ──────────────────────────────────────── */
    .banner {
      display: none;
      align-items: center;
      gap: 10px;
      padding: 10px 16px;
      border-radius: var(--r-sm);
      margin-bottom: 20px;
      font-size: 13px;
    }

    .banner-success {
      background: var(--success-bg);
      border: 1px solid #a7f3d0;
      color: var(--success);
    }

    .banner-error {
      background: var(--error-bg);
      border: 1px solid #fecaca;
      color: var(--error);
    }

    .notice-box {
      background: var(--accent-bg);
      border: 1px solid #bfdbfe;
      border-radius: var(--r-sm);
      padding: 10px 14px;
      font-size: 12px;
      color: var(--text-2);
    }

    .notice-info {
      font-size: 12px;
      color: var(--text-3);
      padding: 4px 0;
      line-height: 1.5;
    }

    /* ── PIPELINE STAGES ─────────────────────────────── */
    .stages-grid {
      display: flex;
      gap: 0;
      margin-bottom: 24px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r);
      overflow: hidden;
    }

    .stage-card {
      flex: 1 1 0;
      min-width: 0;
      background: transparent;
      border: none;
      border-right: 1px solid var(--border);
      border-radius: 0;
      padding: 16px 18px;
      display: flex;
      flex-direction: column;
      min-height: 100px;
      box-shadow: none;
      transition: background 0.1s;
    }

    .stage-card:last-child {
      border-right: none;
    }

    .stage-card:hover {
      background: var(--surface-alt);
    }

    @media (max-width: 900px) {
      .stages-grid {
        flex-direction: column;
      }

      .stage-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

      .stage-card:last-child {
        border-bottom: none;
      }
    }

    .stage-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }

    .stage-title {
      font-size: 12px;
      font-weight: 600;
      color: var(--text);
    }

    .stage-message {
      font-size: 11.5px;
      color: var(--text-3);
      margin-bottom: 4px;
      flex: 1;
    }

    .stage-header {
      gap: 8px;
      flex-wrap: wrap;
    }

    .stage-details .kv-row {
      display: block;
    }

    .stage-details .kv-key,
    .stage-details .kv-val {
      display: block;
      text-align: left;
      white-space: normal;
      word-break: normal;
      overflow-wrap: anywhere;
    }

    .stage-details .kv-val {
      margin-top: 3px;
    }

    .stage-details {
      font-size: 11px;
      border-top: 1px solid var(--border);
      padding-top: 6px;
      margin-top: 4px;
      color: var(--text-2);
      font-family: var(--mono);
    }

    /* ── BADGES ───────────────────────────────────────── */
    .badge {
      display: inline-block;
      font-size: 10px;
      font-weight: 600;
      font-family: var(--mono);
      text-transform: uppercase;
      padding: 2px 8px;
      border-radius: 999px;
      letter-spacing: 0.03em;
    }

    .badge-pending {
      background: #f3f4f6;
      color: #9ca3af;
      border: 1px solid #e5e7eb;
    }

    .badge-running {
      background: var(--accent-bg);
      color: var(--accent);
      border: 1px solid #bfdbfe;
    }

    .badge-success,
    .badge-completed {
      background: var(--success-bg);
      color: var(--success);
      border: 1px solid #a7f3d0;
    }

    .badge-warning,
    .badge-partial {
      background: var(--warning-bg);
      color: var(--warning);
      border: 1px solid #fde68a;
    }

    .badge-failed {
      background: var(--error-bg);
      color: var(--error);
      border: 1px solid #fecaca;
    }

    .badge-skipped,
    .badge-not_available,
    .badge-not_run {
      background: #f1f5f9;
      color: #475569;
      border: 1px solid #cbd5e1;
    }

    .badge-waiting,
    .badge-waiting_for_installation {
      background: #f0f9ff;
      color: var(--info);
      border: 1px solid #bae6fd;
    }

    .tag {
      display: inline-block;
      font-size: 11px;
      font-family: var(--mono);
      padding: 2px 8px;
      border-radius: 4px;
      background: var(--surface-alt);
      border: 1px solid var(--border);
      color: var(--text-3);
    }

    /* ── KEY-VALUE ────────────────────────────────────── */
    .kv-row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding: 7px 0;
      border-bottom: 1px solid #f3f4f6;
      gap: 16px;
    }

    .kv-row:last-child {
      border-bottom: none;
    }

    .kv-key {
      color: var(--text-3);
      font-size: 13px;
      font-weight: 500;
      white-space: nowrap;
    }

    .kv-val {
      color: var(--text);
      font-family: var(--mono);
      font-size: 12.5px;
      text-align: right;
      word-break: break-all;
    }

    /* ── PROBE ────────────────────────────────────────── */
    .probe-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r);
      padding: 18px 22px;
      margin-bottom: 20px;
    }

    .probe-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .probe-disclaimer {
      font-size: 11px;
      color: var(--text-4);
      margin-top: 8px;
    }

    /* ── ANALYSIS SECTION ────────────────────────────── */
    .analysis-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r);
      padding: 0;
      margin-bottom: 24px;
      overflow: hidden;
    }

    .analysis-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 18px 24px;
      border-bottom: 1px solid var(--border);
      background: var(--surface-alt);
      margin-bottom: 0;
    }

    /* ── TABS ─────────────────────────────────────────── */
    .tabs-nav {
      display: flex;
      gap: 0;
      border-bottom: 1px solid var(--border);
      background: var(--surface);
      padding: 0 24px;
      overflow-x: auto;
      flex-wrap: nowrap;
      margin-bottom: 0;
    }

    .tab-btn {
      background: transparent;
      border: none;
      border-bottom: 2px solid transparent;
      color: var(--text-3);
      font-family: var(--font);
      font-size: 13px;
      font-weight: 500;
      padding: 12px 16px;
      margin-bottom: -1px;
      cursor: pointer;
      transition: color 0.1s;
      border-radius: 0;
      white-space: nowrap;
    }

    .tab-btn:hover {
      color: var(--text-2);
    }

    .tab-btn.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
      font-weight: 600;
    }

    .tab-pane {
      display: none;
      padding: 20px 24px;
    }

    .tab-pane.active {
      display: block;
    }

    .section-subtitle {
      font-weight: 600;
      font-size: 11px;
      color: var(--text-3);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 10px;
    }

    /* ── SCROLL CONTAINERS ────────────────────────────── */
    .scroll-container {
      max-height: 220px;
      overflow-y: auto;
      background: var(--surface-alt);
      border: 1px solid var(--border);
      border-radius: var(--r-sm);
      padding: 2px 0;
    }

    .scroll-list-item {
      padding: 5px 14px;
      font-size: 12px;
      font-family: var(--mono);
      color: var(--text-2);
      border-bottom: 1px solid #f3f4f6;
    }

    .scroll-list-item:hover {
      background: #f1f5f9;
    }

    .scroll-list-item:last-child {
      border-bottom: none;
    }

    /* ── TABLES ───────────────────────────────────────── */
    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
      margin: 8px 0;
    }

    th {
      background: var(--surface-alt);
      color: var(--text-3);
      text-align: left;
      font-weight: 600;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 9px 14px;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 2;
    }

    td {
      padding: 8px 14px;
      border-bottom: 1px solid #f3f4f6;
      color: var(--text);
    }

    tr:last-child td {
      border-bottom: none;
    }

    tr:hover td {
      background: #f9fafb;
    }

    /* ── FILTERS ──────────────────────────────────────── */
    .filter-bar {
      display: flex;
      gap: 8px;
      margin: 10px 0;
      align-items: center;
      flex-wrap: wrap;
    }

    .filter-input {
      flex: 1;
      min-width: 200px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r-sm);
      padding: 7px 12px;
      font-size: 12px;
      color: var(--text);
      font-family: var(--mono);
      outline: none;
    }

    .filter-input:focus {
      border-color: var(--accent);
    }

    .filter-select {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r-sm);
      padding: 7px 10px;
      font-size: 12px;
      color: var(--text);
      outline: none;
    }

    .category-tabs {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .cat-btn {
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-3);
      font-size: 12px;
      padding: 4px 12px;
      border-radius: 999px;
      cursor: pointer;
      font-family: var(--font);
    }

    .cat-btn.active {
      background: var(--accent-bg);
      border-color: #bfdbfe;
      color: var(--accent);
      font-weight: 600;
    }

    .pagination-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;
      font-size: 12px;
      color: var(--text-3);
    }

    .pagination-btn {
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-2);
      padding: 4px 12px;
      border-radius: var(--r-sm);
      cursor: pointer;
      font-size: 12px;
      font-family: var(--font);
    }

    .pagination-btn:disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }

    /* ── NOTES LIST ───────────────────────────────────── */
    .analysis-notes-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .analysis-notes-list li {
      padding: 7px 0;
      border-bottom: 1px solid #f3f4f6;
      font-size: 13px;
      color: var(--text-2);
      display: flex;
      align-items: baseline;
      gap: 10px;
    }

    .analysis-notes-list li:last-child {
      border-bottom: none;
    }

    .analysis-notes-list li::before {
      content: "";
      display: inline-block;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--text-4);
      flex-shrink: 0;
      margin-top: 7px;
    }

    /* ── REPORT ACTIONS ──────────────────────────────── */
    .report-actions {
      display: flex;
      gap: 10px;
      margin-top: 16px;
      flex-wrap: wrap;
    }

    .btn-action {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-2);
      padding: 8px 14px;
      border-radius: var(--r-sm);
      font-size: 12px;
      text-decoration: none;
      font-family: var(--font);
      transition: all 0.1s;
    }

    .btn-action:hover {
      background: var(--surface-alt);
      border-color: #d1d5db;
      text-decoration: none;
    }

    .comp-card {
      background: var(--surface-alt);
      border: 1px solid var(--border);
      border-radius: var(--r-sm);
      padding: 12px 16px;
      margin-bottom: 10px;
    }

    /* ── SCROLLBAR ────────────────────────────────────── */
    ::-webkit-scrollbar {
      width: 5px;
      height: 5px;
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    ::-webkit-scrollbar-thumb {
      background: #d1d5db;
      border-radius: 999px;
    }

    ::selection {
      background: rgba(37, 99, 235, 0.12);
    }

    /* ── MINIMAL PRODUCT SHELL ───────────────────────── */
    :root {
      --bg: #070707;
      --surface: #0d0d0d;
      --surface-alt: #121212;
      --border: #272727;
      --border-focus: #747474;
      --text: #f4f4f4;
      --text-2: #d0d0d0;
      --text-3: #a3a3a3;
      --text-4: #6d6d6d;
      --accent: #f4f4f4;
      --accent-hover: #fff;
      --accent-bg: #191919;
      --success: #b8e5c2;
      --success-bg: #112015;
      --warning: #f0cf7d;
      --warning-bg: #251e0f;
      --error: #f0a3ad;
      --error-bg: #281317;
      --info: #b6ccea;
      --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
      --r: 12px;
      --r-sm: 8px;
      --shadow: none;
    }

    body {
      background: var(--bg);
    }

    header {
      height: 56px;
      padding: 0 32px;
      background: rgba(7, 7, 7, .92);
      backdrop-filter: blur(14px);
      border-color: var(--border);
    }

    .page-body {
      min-height: calc(100vh - 56px);
      grid-template-columns: 304px 1fr;
    }

    .sidebar {
      top: 56px;
      max-height: calc(100vh - 56px);
      background: #090909;
      padding: 24px 20px;
    }

    .main-content {
      padding: 42px 42px 64px;
      max-width: 1420px;
      width: 100%;
    }

    .brand-title {
      font-size: 16px;
      letter-spacing: -.025em;
    }

    .brand-title svg {
      color: #bcbcbc;
    }

    .brand-tag {
      background: #151515;
      border-color: #2b2b2b;
      color: #aaa;
    }

    .header-device {
      border-color: #2b2b2b;
      background: #101010;
      color: #aaa;
      border-radius: 999px;
    }

    .device-dot {
      background: #b8e5c2;
    }

    .sidebar-label {
      color: #858585;
    }

    .radio-option,
    input[type="text"],
    .filter-input,
    .filter-select {
      background: #101010;
      border-color: #2b2b2b;
      color: var(--text);
    }

    .radio-option:hover,
    .btn-secondary:hover:not(:disabled),
    .btn-action:hover {
      background: #181818;
      border-color: #424242;
    }

    .btn-primary {
      color: #101010;
      background: #f1f1f1;
      border-color: #f1f1f1;
      box-shadow: none;
    }

    .btn-primary:hover:not(:disabled) {
      color: #080808;
      background: #fff;
    }

    .card,
    .analysis-card,
    .probe-card,
    .stages-grid {
      background: #0d0d0d;
      border-color: #292929;
      box-shadow: none;
    }

    .stage-card {
      padding: 16px;
    }

    .stage-card:hover {
      background: #121212;
    }

    .analysis-header,
    .tabs-nav,
    th {
      background: #101010;
      border-color: #292929;
    }

    td,
    .kv-row,
    .scroll-list-item,
    .analysis-notes-list li {
      border-color: #222;
    }

    tr:hover td,
    .scroll-list-item:hover {
      background: #151515;
    }

    .scroll-container,
    .comp-card {
      background: #0a0a0a;
      border-color: #252525;
    }

    .hero {
      display: block;
      padding: 0 0 20px;
      margin-bottom: 20px;
      background: none;
      border: none;
      border-bottom: 1px solid #dfe3e8;
    }

    .hero-eyebrow {
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #64748b;
      font: 600 11px var(--mono);
      letter-spacing: .08em;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .hero h1 {
      font-size: 26px;
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -.03em;
      margin: 0 0 6px;
      color: #0f172a;
    }

    .hero p {
      max-width: 760px;
      color: #475467;
      font-size: 14px;
      line-height: 1.55;
    }

    .evidence-legend {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-start;
      margin-top: 14px;
    }

    .evidence-pill {
      padding: 4px 10px;
      border: 1px solid #d0d5dd;
      border-radius: 4px;
      background: #f8fafc;
      color: #475467;
      font: 500 11px var(--mono);
      letter-spacing: .02em;
    }

    .evidence-pill strong {
      color: #0f172a;
      font-weight: 600;
      margin-right: 4px;
    }

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

      .sidebar {
        position: relative;
        top: 0;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

      .hero {
        grid-template-columns: 1fr;
      }

      .evidence-legend {
        justify-content: flex-start;
      }

      .main-content {
        padding: 28px 20px 44px;
      }
    }

    /* ── READABLE WORKSPACE ──────────────────────────── */
    :root {
      --bg: #f5f6f8;
      --surface: #fff;
      --surface-alt: #f8fafc;
      --border: #dfe3e8;
      --border-focus: #2563eb;
      --text: #172033;
      --text-2: #344054;
      --text-3: #667085;
      --text-4: #98a2b3;
      --accent: #2563eb;
      --accent-hover: #1d4ed8;
      --accent-bg: #eff6ff;
      --success: #067647;
      --success-bg: #ecfdf3;
      --warning: #b54708;
      --warning-bg: #fffaeb;
      --error: #b42318;
      --error-bg: #fef3f2;
      --info: #175cd3;
      --r: 10px;
      --r-sm: 7px;
    }

    body {
      background: var(--bg);
      color: var(--text);
    }

    header {
      height: 58px;
      background: #fff;
      border-color: var(--border);
      box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    }

    .page-body {
      min-height: calc(100vh - 58px);
      grid-template-columns: 300px 1fr;
    }

    .sidebar {
      top: 58px;
      max-height: calc(100vh - 58px);
      background: #fff;
      padding: 24px 20px;
    }

    .main-content {
      padding: 30px 34px 52px;
      max-width: 1440px;
    }

    .brand-title {
      font-size: 16px;
      color: #101828;
    }

    .brand-title svg {
      color: #2563eb;
    }

    .brand-tag {
      background: #eff6ff;
      border-color: #bfdbfe;
      color: #1d4ed8;
    }

    .header-device {
      color: #475467;
      background: #f8fafc;
      border: 1px solid #d0d5dd;
      border-radius: 999px;
      padding: 4px 12px;
      font-size: 11px;
      font-family: var(--mono);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .device-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
    }

    .device-dot-neutral {
      background: #94a3b8;
    }

    .device-dot-connected {
      background: #12b76a;
    }

    .sidebar-group-title {
      font-size: 10px;
      font-weight: 700;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 8px;
      padding-bottom: 4px;
      border-bottom: 1px solid #f1f5f9;
    }

    .sidebar-label {
      color: #667085;
    }

    .radio-option,
    input[type="text"],
    .filter-input,
    .filter-select {
      background: #fff;
      border-color: #d0d5dd;
      color: var(--text);
    }

    .radio-option:hover,
    .btn-secondary:hover:not(:disabled),
    .btn-action:hover {
      background: #f9fafb;
      border-color: #98a2b3;
    }

    .btn-primary {
      color: #fff;
      background: #2563eb;
      border-color: #2563eb;
    }

    .btn-primary:hover:not(:disabled) {
      color: #fff;
      background: #1d4ed8;
    }

    .btn-stop {
      border: 1px solid #fecaca;
      background: #fff5f4;
      color: #b42318;
      font-weight: 500;
      font-size: 12px;
      padding: 6px 14px;
      border-radius: var(--r-sm);
      cursor: pointer;
    }

    .btn-stop:hover {
      background: #fee2e2;
    }

    .card,
    .analysis-card,
    .probe-card,
    .stages-grid {
      background: #fff;
      border-color: #dfe3e8;
      box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    }

    .stage-card {
      padding: 18px;
      transition: all 0.15s;
      border-left: 3px solid transparent;
    }

    .stage-card:hover {
      background: #f8fafc;
    }

    .stage-card.stage-running {
      background: #f0f7ff;
      border-left-color: #2563eb;
    }

    .stage-card.stage-completed,
    .stage-card.stage-success {
      background: #f0fdf4;
      border-left-color: #16a34a;
    }

    .stage-card.stage-skipped,
    .stage-card.stage-not_available,
    .stage-card.stage-not_run {
      background: #f8fafc;
      border-left-color: #94a3b8;
    }

    .stage-card.stage-failed {
      background: #fef2f2;
      border-left-color: #dc2626;
    }

    .stage-card.stage-warning,
    .stage-card.stage-partial {
      background: #fffbeb;
      border-left-color: #d97706;
    }

    .quick-targets-panel {
      margin-top: 14px;
      padding: 12px;
      border: 1px solid #93c5fd;
      border-radius: 10px;
      background: #eff6ff;
    }

    .quick-targets-heading {
      color: #1d4ed8;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .02em;
    }

    .quick-targets-hint {
      color: #475569;
      font-size: 11px;
      margin-top: 3px;
      line-height: 1.4;
    }

    .preset-chips-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      margin-top: 10px;
    }

    .preset-chip {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 3px;
      width: 100%;
      padding: 10px 12px;
      background: #fff;
      border: 1px solid #bfdbfe;
      border-radius: 8px;
      color: #0f172a;
      font-family: var(--font);
      text-align: left;
      cursor: pointer;
      box-shadow: 0 1px 3px rgba(37, 99, 235, .08);
      transition: border-color .15s, box-shadow .15s, transform .15s;
    }

    .preset-chip strong {
      font-size: 12px;
      font-weight: 700;
    }

    .preset-chip span {
      color: #64748b;
      font-size: 10.5px;
      line-height: 1.35;
    }

    .preset-chip:hover {
      border-color: #2563eb;
      box-shadow: 0 3px 9px rgba(37, 99, 235, .16);
      transform: translateY(-1px);
    }

    .preset-chip:focus-visible {
      outline: 2px solid #2563eb;
      outline-offset: 2px;
    }

    .candidate-val {
      font-family: var(--mono);
      font-size: 12px;
      overflow-wrap: anywhere;
      word-break: normal;
      line-height: 1.45;
    }

    .analysis-header,
    .tabs-nav,
    th {
      background: #f8fafc;
      border-color: #dfe3e8;
    }

    td,
    .kv-row,
    .scroll-list-item,
    .analysis-notes-list li {
      border-color: #eaecf0;
    }

    tr:hover td,
    .scroll-list-item:hover {
      background: #f9fafb;
    }

    .scroll-container,
    .comp-card {
      background: #f8fafc;
      border-color: #eaecf0;
    }

    /* ── DEMO 3 TECHNICAL PRESENTATION STYLES ──────── */
    .scan-summary-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
      gap: 12px;
      margin-bottom: 22px;
      padding: 14px 16px;
      background: #f8fafc;
      border: 1px solid #dfe3e8;
      border-radius: var(--r-sm);
    }

    .summary-cell {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .summary-label {
      font-size: 11px;
      font-weight: 700;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .summary-value {
      font-size: 13.5px;
      font-weight: 600;
      color: #0f172a;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .inventory-split-container {
      display: grid;
      grid-template-columns: 1fr 430px;
      gap: 16px;
      align-items: start;
    }

    @media (max-width: 1200px) {
      .inventory-split-container {
        grid-template-columns: 1fr;
      }
    }

    .inventory-table-container {
      border: 1px solid #dfe3e8;
      border-radius: var(--r-sm);
      background: #fff;
      overflow: hidden;
    }

    .inventory-filter-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 14px;
      background: #f8fafc;
      border-bottom: 1px solid #dfe3e8;
      gap: 10px;
      flex-wrap: wrap;
    }

    .filter-chips {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .filter-chip {
      background: #fff;
      border: 1px solid #cbd5e1;
      border-radius: 4px;
      padding: 4px 10px;
      font-size: 11.5px;
      font-weight: 600;
      color: #334155;
      cursor: pointer;
      transition: all 0.15s;
    }

    .filter-chip:hover {
      border-color: #64748b;
    }

    .filter-chip.active {
      background: #0284c7;
      color: #fff;
      border-color: #0284c7;
    }

    .candidate-row {
      cursor: pointer;
      transition: background 0.1s;
    }

    .candidate-row:hover td {
      background: #f1f5f9;
    }

    .candidate-row.selected td {
      background: #e0f2fe;
      color: #0369a1;
      font-weight: 600;
    }

    .candidate-detail-card {
      border: 1px solid #dfe3e8;
      border-radius: var(--r-sm);
      background: #fff;
      padding: 18px;
      position: sticky;
      top: 72px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .detail-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding-bottom: 12px;
      margin-bottom: 14px;
      border-bottom: 1px solid #e2e8f0;
    }

    .detail-section {
      margin-bottom: 14px;
    }

    .detail-section:last-child {
      margin-bottom: 0;
    }

    .detail-label {
      font-size: 11px;
      font-weight: 700;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 6px;
    }

    .detail-value-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      background: #f8fafc;
      border: 1px solid #cbd5e1;
      border-radius: 4px;
      padding: 8px 10px;
    }

    .selectable-mono {
      font-family: var(--mono);
      font-size: 12px;
      color: #0f172a;
      word-break: break-all;
    }

    .btn-copy-small {
      background: #fff;
      border: 1px solid #cbd5e1;
      border-radius: 4px;
      padding: 3px 8px;
      font-size: 11px;
      font-weight: 600;
      color: #334155;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.1s;
    }

    .btn-copy-small:hover {
      background: #f1f5f9;
      border-color: #94a3b8;
    }

    .occurrences-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
      max-height: 200px;
      overflow-y: auto;
    }

    .occurrence-item {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 4px;
      padding: 6px 10px;
      font-size: 11.5px;
    }

    .occurrence-source {
      font-family: var(--mono);
      font-weight: 600;
      color: #0f172a;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .occurrence-rule {
      font-size: 10px;
      color: #64748b;
      margin-top: 2px;
    }

    .evidence-code-block {
      background: #0f172a;
      color: #38bdf8;
      font-family: var(--mono);
      font-size: 11.5px;
      padding: 10px 12px;
      border-radius: 4px;
      overflow-x: auto;
      white-space: pre-wrap;
      word-break: break-all;
      line-height: 1.5;
      max-height: 180px;
    }

    .components-kv-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 6px;
      font-size: 11.5px;
    }

    .component-tag {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      padding: 4px 8px;
      border-radius: 4px;
      font-family: var(--mono);
      color: #334155;
    }

    .raw-json-viewer {
      background: #0f172a;
      color: #e2e8f0;
      font-family: var(--mono);
      font-size: 12px;
      line-height: 1.55;
      padding: 16px;
      border-radius: var(--r-sm);
      max-height: 600px;
      overflow: auto;
      border: 1px solid #1e293b;
    }

    /* ── ADVANCED OPTIONS ──────────────────────────────── */
    .advanced-options-card {
      border: 1px solid var(--border);
      border-radius: var(--r-sm);
      background: var(--surface-alt);
      margin-top: 14px;
      margin-bottom: 16px;
      overflow: hidden;
      transition: border-color 0.15s ease;
    }

    .advanced-options-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-2);
      cursor: pointer;
      user-select: none;
      list-style: none;
    }

    .advanced-options-summary::-webkit-details-marker {
      display: none;
    }

    .advanced-options-summary:hover {
      color: var(--text);
      background: #f1f5f9;
    }

    .advanced-options-summary-icon {
      font-size: 11px;
      color: var(--text-4);
      transition: transform 0.15s ease;
    }

    .advanced-options-card[open] {
      border-color: #cbd5e1;
      background: var(--surface);
    }

    .advanced-options-card[open] .advanced-options-summary {
      border-bottom: 1px solid var(--border);
      background: var(--surface-alt);
    }

    .advanced-options-card[open] .advanced-options-summary-icon {
      transform: rotate(90deg);
    }

    .advanced-options-content {
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      background: var(--surface);
    }

    .advanced-subgroup {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .advanced-subgroup-title {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-4);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 2px;
    }

    .advanced-hint {
      font-size: 10.5px;
      color: var(--text-4);
      line-height: 1.35;
      margin-top: 2px;
    }
  