  :root {
    --steel: #3B4F6B;
    --steel-light: #4E6585;
    --amber: #E8A838;
    --amber-dim: rgba(232,168,56,0.12);
    --red: #D14545;
    --red-dim: rgba(209,69,69,0.12);
    --green: #4A9B6E;
    --green-dim: rgba(74,155,110,0.12);
    --blue: #5B8EC9;
    --blue-dim: rgba(91,142,201,0.12);
    --cyan: #4BA8B5;
    --cyan-dim: rgba(75,168,181,0.12);
    --concrete: #E8E4DF;
    --concrete-dim: #9B978F;
    --slate: #1C2433;
    --slate-mid: #243044;
    --slate-light: #2D3B52;
    --border: #344257;
    --text: #D8D4CF;
    --text-bright: #F0EDE8;
    --text-dim: #7E8A9A;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: var(--sans); background: var(--slate); color: var(--text); font-size: 14px; line-height: 1.5; }

  /* Header */
  .header {
    background: var(--slate-mid);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .header-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-shrink: 0;
  }
  .header-title h1 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: -0.01em;
  }
  .header-title .subtitle {
    font-size: 12px;
    color: var(--text-dim);
  }
  .header-stats {
    display: flex;
    gap: 20px;
    margin-left: auto;
  }
  .hstat {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }
  .hstat-val {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 500;
  }
  .hstat-label { font-size: 12px; color: var(--text-dim); }

  /* Layout */
  .layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto 1fr;
    height: calc(100vh - 52px);
  }

  /* Pipeline schematic - spans full width */
  .pipeline-strip {
    grid-column: 1 / -1;
    background: var(--slate-mid);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 12px;
    position: relative;
  }
  .pipeline-strip .label {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 8px;
  }
  .pipeline-canvas { width: 100%; height: 64px; }

  /* Pipeline SVG styles */
  .seg-line { stroke: var(--steel); stroke-width: 8; stroke-linecap: round; }
  .seg-line-bg { stroke: var(--slate-light); stroke-width: 12; stroke-linecap: round; }
  .station-node { fill: var(--steel-light); stroke: var(--concrete-dim); stroke-width: 1.5; }
  .station-node:hover { fill: var(--blue); cursor: pointer; }
  .station-name { fill: var(--text-dim); font-family: var(--mono); font-size: 9px; text-anchor: middle; }
  .station-type { fill: var(--text-dim); font-size: 8px; text-anchor: middle; opacity: 0.6; }
  .event-marker-leak {
    fill: var(--red);
    animation: pulse-leak 2s ease-in-out infinite;
  }
  .event-marker-fp { fill: var(--amber); opacity: 0.5; }
  @keyframes pulse-leak {
    0%, 100% { opacity: 0.6; r: 5; }
    50% { opacity: 1; r: 7; }
  }

  /* Sidebar */
  .sidebar {
    background: var(--slate-mid);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .sidebar-head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar-head h2 { font-size: 13px; font-weight: 600; color: var(--text-bright); }
  .filter-pills { display: flex; gap: 3px; }
  .pill {
    padding: 3px 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--sans);
    cursor: pointer;
    transition: all 0.12s;
  }
  .pill:hover { border-color: var(--steel-light); color: var(--text); }
  .pill.active { background: var(--steel); color: var(--text-bright); border-color: var(--steel); }
  .event-list { flex: 1; overflow-y: auto; padding: 6px; }

  /* Event cards */
  .ecard {
    padding: 10px 12px;
    margin-bottom: 4px;
    background: var(--slate);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.1s;
  }
  .ecard:hover { background: var(--slate-light); border-color: var(--border); }
  .ecard.active { border-color: var(--blue); background: var(--slate-light); }
  .ecard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
  .ecard-id { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text-bright); }
  .tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .tag-leak { background: var(--red-dim); color: var(--red); }
  .tag-compressor { background: var(--amber-dim); color: var(--amber); }
  .tag-valve { background: var(--blue-dim); color: var(--blue); }
  .tag-temperature { background: var(--cyan-dim); color: var(--cyan); }
  .tag-seep { background: var(--red-dim); color: #e07070; }
  .tag-moderate { background: var(--red-dim); color: var(--red); }
  .tag-significant { background: var(--red-dim); color: #c03030; }
  .tag-near_rupture { background: rgba(180,30,30,0.2); color: #ff4444; }
  .ecard-time { font-family: var(--mono); font-size: 11px; color: var(--text-dim); margin-bottom: 2px; }
  .ecard-detail { font-size: 12px; color: var(--text-dim); line-height: 1.4; }

  /* Main panel */
  .main-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .panel-bar {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--slate-mid);
  }
  .ptab {
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 13px;
    font-family: var(--sans);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.12s;
  }
  .ptab:hover { color: var(--text); }
  .ptab.active { color: var(--text-bright); border-bottom-color: var(--blue); }
  .panel-body { flex: 1; overflow-y: auto; padding: 20px 24px; }

  /* Investigation chat */
  .chat-wrap { display: flex; flex-direction: column; height: 100%; }
  .chat-scroll { flex: 1; overflow-y: auto; padding-bottom: 12px; }
  .msg { margin-bottom: 16px; }
  .msg-user {
    background: var(--slate-light);
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
  }
  .msg-agent { padding: 10px 0; }
  .msg-who {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dim);
  }
  .msg-user .msg-who { color: var(--blue); }
  .msg-agent .msg-who { color: var(--green); }
  .msg-body {
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
    color: var(--text);
  }

  /* Welcome state */
  .welcome-state { padding: 48px 32px; text-align: center; }
  .welcome-state h2 { font-size: 17px; font-weight: 600; color: var(--text-bright); margin-bottom: 8px; }
  .welcome-state p { font-size: 13px; color: var(--text-dim); max-width: 480px; margin: 0 auto 20px; line-height: 1.6; }
  .prompts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
  .prompt-btn {
    padding: 7px 14px;
    background: var(--slate-light);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    font-size: 12px;
    font-family: var(--sans);
    cursor: pointer;
    transition: all 0.1s;
  }
  .prompt-btn:hover { border-color: var(--blue); color: var(--text-bright); }

  /* Input bar */
  .input-bar {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .chat-field {
    flex: 1;
    background: var(--slate-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--text-bright);
    font-size: 14px;
    font-family: var(--sans);
    outline: none;
  }
  .chat-field:focus { border-color: var(--blue); }
  .chat-field:disabled { opacity: 0.45; cursor: not-allowed; }
  .chat-field::placeholder { color: var(--text-dim); }

  /* Follow-up prompts */
  .follow-ups {
    margin: 12px 0 8px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--border);
  }
  .follow-ups-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
  }
  .follow-ups-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .follow-up-btn {
    padding: 6px 12px;
    background: var(--slate-mid);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    font-size: 12px;
    font-family: var(--sans);
    cursor: pointer;
    transition: all 0.12s;
  }
  .follow-up-btn:hover {
    border-color: var(--blue);
    color: var(--text-bright);
    background: var(--slate-light);
  }
  .send {
    background: var(--steel);
    border: none;
    border-radius: 6px;
    color: var(--text-bright);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    transition: background 0.12s;
  }
  .send:hover { background: var(--steel-light); }
  .send:disabled { opacity: 0.35; cursor: not-allowed; }

  /* Scan panel */
  .scan-header { margin-bottom: 16px; }
  .scan-header h2 { font-size: 15px; font-weight: 600; color: var(--text-bright); margin-bottom: 4px; }
  .scan-header p { font-size: 13px; color: var(--text-dim); }
  .scan-go {
    background: var(--steel);
    border: none;
    border-radius: 6px;
    color: var(--text-bright);
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    margin-bottom: 14px;
  }
  .scan-go:hover { background: var(--steel-light); }
  .scan-go:disabled { opacity: 0.35; cursor: not-allowed; }

  /* Status indicator */
  .status-ind {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 12px;
  }
  .status-ind.working {
    background: var(--blue-dim);
    color: var(--blue);
    border: 1px solid rgba(91,142,201,0.2);
  }
  .status-ind.done {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(74,155,110,0.2);
  }
  .dot-spin {
    width: 12px; height: 12px;
    border: 2px solid rgba(91,142,201,0.25);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .result-body {
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
  }

  /* Evidence chain formatting */
  .msg-body strong, .result-body strong { color: var(--text-bright); }
  .msg-body h4, .result-body h4 { font-size: 13px; margin: 6px 0 2px; color: var(--text-bright); }

  /* Citation highlights */
  .cite-row { color: var(--blue); font-family: var(--mono); font-weight: 500; font-size: 12px; }
  .cite-file { color: var(--blue); font-weight: 500; }
  .verdict-leak { color: var(--red); font-weight: 700; }
  .verdict-fp { color: var(--amber); font-weight: 700; }

  /* Markdown tables */
  .msg-body table, .result-body table {
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 13px;
    width: 100%;
  }
  .msg-body th, .result-body th {
    background: var(--slate-mid);
    color: var(--text-bright);
    padding: 6px 10px;
    text-align: left;
    border: 1px solid var(--border);
    font-weight: 600;
  }
  .msg-body td, .result-body td {
    padding: 5px 10px;
    border: 1px solid var(--border);
    color: var(--text);
  }
  .msg-body tr:nth-child(even), .result-body tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
  }
  .msg-body blockquote, .result-body blockquote {
    border-left: 3px solid var(--steel);
    padding: 4px 12px;
    margin: 8px 0;
    color: var(--text-dim);
  }
  .msg-body code, .result-body code {
    font-family: var(--mono);
    font-size: 12px;
    background: var(--slate-mid);
    padding: 1px 5px;
    border-radius: 3px;
  }
  .msg-body ul, .msg-body ol, .result-body ul, .result-body ol {
    padding-left: 18px;
    margin: 2px 0;
  }
  .msg-body li, .result-body li { margin-bottom: 1px; line-height: 1.5; }
  .msg-body p, .result-body p { margin: 4px 0; }
  .msg-body h1, .result-body h1 { font-size: 16px; margin: 10px 0 4px; color: var(--text-bright); }
  .msg-body h2, .result-body h2 { font-size: 14px; margin: 8px 0 3px; color: var(--text-bright); }
  .msg-body h3, .result-body h3 { font-size: 13px; margin: 6px 0 2px; color: var(--text-bright); }
  .msg-body hr, .result-body hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

  /* Dashboard */
  .dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-bottom: 20px;
  }
  .dash-wide { grid-column: 1 / -1; }
  .dash-card {
    background: var(--slate-mid);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
  }
  .dash-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
  }
  .dash-summary-row {
    display: flex;
    gap: 16px;
  }
  .dash-stat {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    background: var(--slate);
    border-radius: 6px;
  }
  .dash-stat-val {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
  }
  .dash-stat-label {
    font-size: 11px;
    color: var(--text-dim);
  }
  .dash-bar-chart { display: flex; flex-direction: column; gap: 10px; }
  .dash-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .dash-bar-label {
    font-size: 12px;
    color: var(--text);
    width: 140px;
    text-align: right;
    flex-shrink: 0;
  }
  .dash-bar-track {
    flex: 1;
    height: 24px;
    background: var(--slate);
    border-radius: 4px;
    overflow: hidden;
  }
  .dash-bar-fill {
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-bright);
    transition: width 0.6s ease;
  }
  .dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }
  .dash-table th {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-weight: 500;
    font-size: 11px;
  }
  .dash-table td {
    padding: 10px 10px;
    border-bottom: 1px solid rgba(52,66,87,0.4);
    color: var(--text);
  }
  .dash-table tr:hover td { background: rgba(255,255,255,0.02); }
  .dash-rate-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--slate);
    overflow: hidden;
    min-width: 80px;
  }
  .dash-rate-fill { height: 100%; border-radius: 3px; }
  .dash-risk-bars { display: flex; flex-direction: column; gap: 8px; }
  .dash-risk-row {
    display: grid;
    grid-template-columns: 70px 1fr 60px;
    align-items: center;
    gap: 12px;
  }
  .dash-risk-label {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
  }
  .dash-risk-track {
    height: 20px;
    background: var(--slate);
    border-radius: 4px;
    overflow: hidden;
  }
  .dash-risk-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
  }
  .dash-risk-score {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    text-align: right;
  }
  .dash-investigate-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--blue);
    font-size: 11px;
    font-family: var(--sans);
    padding: 3px 8px;
    cursor: pointer;
  }
  .dash-investigate-btn:hover { border-color: var(--blue); background: var(--blue-dim); }
  .dash-finding {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(52,66,87,0.3);
    font-size: 12px;
    align-items: flex-start;
  }
  .dash-finding:last-child { border-bottom: none; }
  .dash-sev {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    min-width: 70px;
    text-align: center;
  }
  .dash-sev-critical { background: var(--red-dim); color: var(--red); }
  .dash-sev-moderate { background: var(--amber-dim); color: var(--amber); }
  .dash-sev-info { background: var(--blue-dim); color: var(--blue); }
  .dash-finding-dataset {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    min-width: 140px;
    flex-shrink: 0;
  }
  .dash-finding-desc { color: var(--text); line-height: 1.4; }
  .dash-finding-fix { font-size: 11px; color: var(--green); margin-top: 2px; }
  .dash-loading {
    color: var(--text-dim);
    font-size: 12px;
    padding: 12px 0;
    animation: pulse-load 1.2s ease-in-out infinite;
  }
  @keyframes pulse-load { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

  /* Prediction cards */
  .pred-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
  }
  .pred-card {
    background: var(--slate);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 16px;
  }
  .pred-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  .pred-seg-id {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bright);
  }
  .pred-conf {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
  }
  .pred-conf-high { background: var(--green-dim); color: var(--green); }
  .pred-conf-medium { background: var(--amber-dim); color: var(--amber); }
  .pred-conf-low { background: var(--blue-dim); color: var(--blue); }
  .pred-metric {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(52,66,87,0.3);
  }
  .pred-metric:last-child { border-bottom: none; }
  .pred-metric-label { color: var(--text-dim); }
  .pred-metric-val { font-family: var(--mono); font-weight: 500; }
  .pred-wl-bar {
    height: 8px;
    background: var(--slate-mid);
    border-radius: 4px;
    margin: 8px 0 4px;
    overflow: hidden;
    position: relative;
  }
  .pred-wl-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
  .pred-wl-threshold {
    position: absolute;
    top: -2px;
    height: 12px;
    width: 2px;
    background: var(--red);
  }
  .pred-factors {
    margin-top: 8px;
    font-size: 11px;
    color: var(--amber);
    line-height: 1.4;
  }

  /* Sensitivity */
  .sensitivity-controls {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  .sens-sliders {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    flex: 1;
  }
  .sens-slider-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
  }
  .sens-slider-label {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
  }
  .sens-slider-val {
    font-family: var(--mono);
    font-weight: 500;
    color: var(--text-bright);
  }
  .sens-slider-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--slate);
    border-radius: 3px;
    outline: none;
  }
  .sens-slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--blue);
    cursor: pointer;
    border: 2px solid var(--slate-mid);
  }
  .sens-run {
    background: var(--steel);
    border: none;
    border-radius: 6px;
    color: var(--text-bright);
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .sens-run:hover { background: var(--steel-light); }
  .sens-run:disabled { opacity: 0.4; cursor: not-allowed; }
  .sens-section { margin-bottom: 20px; }
  .sens-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 10px;
  }
  .tornado-row {
    display: grid;
    grid-template-columns: 130px 1fr 60px;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
  }
  .tornado-label { color: var(--text); text-align: right; }
  .tornado-bar-container {
    position: relative;
    height: 22px;
    background: var(--slate);
    border-radius: 3px;
    overflow: hidden;
  }
  .tornado-bar {
    position: absolute;
    height: 100%;
    border-radius: 3px;
    transition: all 0.4s ease;
  }
  .tornado-center {
    position: absolute;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--text-dim);
    left: 50%;
  }
  .tornado-swing {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    text-align: right;
  }
  .iqr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  .iqr-box {
    background: var(--slate);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
  }
  .iqr-seg {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
  }
  .iqr-boxplot {
    position: relative;
    height: 60px;
    margin: 0 auto;
    width: 40px;
  }
  .iqr-whisker {
    position: absolute;
    left: 50%;
    width: 2px;
    background: var(--text-dim);
    transform: translateX(-50%);
  }
  .iqr-box-rect {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 3px;
    border: 1px solid;
  }
  .iqr-median {
    position: absolute;
    left: 2px;
    right: 2px;
    height: 2px;
  }
  .iqr-label {
    font-family: var(--mono);
    font-size: 11px;
    margin-top: 6px;
    color: var(--text);
  }
  .iqr-sublabel {
    font-size: 10px;
    color: var(--text-dim);
  }
  .wl-proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
  }
  .wl-proj-card {
    background: var(--slate);
    border-radius: 6px;
    padding: 12px 14px;
    border: 1px solid var(--border);
  }
  .wl-proj-head {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
  }
  .wl-proj-canvas {
    width: 100%;
    height: 80px;
  }
  .aws-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--cyan);
    background: var(--cyan-dim);
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
  }

  /* Benchmark */
  .bench-grade {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
  }
  .bench-grade-exceeds { color: var(--green); }
  .bench-grade-meets { color: var(--blue); }
  .bench-grade-below { color: var(--red); }
  .bench-summary {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 14px;
    line-height: 1.5;
  }
  .bench-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    margin: 12px 0 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(52,66,87,0.4);
  }
  .bench-metric {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 5px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(52,66,87,0.2);
  }
  .bench-icon {
    font-size: 14px;
    text-align: center;
  }
  .bench-metric-name { color: var(--text); }
  .bench-metric-val {
    font-family: var(--mono);
    font-weight: 500;
    text-align: right;
  }
  .bench-metric-detail {
    grid-column: 2 / -1;
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.4;
    padding-bottom: 2px;
  }
  .bench-phmsa {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
  }
  .bench-phmsa-card {
    background: var(--slate);
    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
  }
  .bench-phmsa-val {
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--green);
    line-height: 1;
    margin-bottom: 4px;
  }
  .bench-phmsa-label {
    font-size: 10px;
    color: var(--text-dim);
    line-height: 1.3;
  }
