  :root {
    --bg-deep: #f5f3ef;
    --bg-surface: #ffffff;
    --bg-raised: #f9f8f6;
    --bg-hover: #f0ede8;
    --border: #e2ddd5;
    --border-light: #d4cfc6;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #8a8580;
    --accent: #b8860b;
    --accent-dim: #9a7209;
    --accent-glow: rgba(184,134,11,0.1);
    --red: #c0392b;
    --red-dim: rgba(192,57,43,0.08);
    --orange: #d68910;
    --orange-dim: rgba(214,137,16,0.08);
    --green: #27ae60;
    --green-dim: rgba(39,174,96,0.08);
    --blue: #2c6fbb;
    --blue-dim: rgba(44,111,187,0.08);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --radius: 6px;
    --radius-lg: 10px;
  }

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

  body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  /* Subtle texture */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
    pointer-events: none;
    z-index: 9999;
  }

  /* Entrance animations */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes slideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  .animate-up   { animation: fadeUp 0.5s ease-out both; }
  .animate-fade { animation: fadeIn 0.4s ease-out both; }

  /* Header */
  header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 28px 40px 24px;
    position: relative;
    overflow: hidden;
  }
  header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
  }
  .header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    gap: 20px;
  }
  header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
  }
  header h1 span {
    color: var(--accent);
  }
  .header-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
  }
  #header-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
  }

  /* Tabs */
  .tabs {
    background: var(--bg-surface);
    display: flex;
    gap: 0;
    padding: 0 40px;
    max-width: 1480px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
  }
  .tab {
    padding: 14px 22px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
    color: var(--text-muted);
    position: relative;
  }
  .tab:hover { color: var(--text-secondary); }
  .tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }

  /* Footer */
  .site-footer {
    text-align: center;
    padding: 24px 40px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 32px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
  .site-footer a { color: var(--accent); text-decoration: none; }
  .site-footer a:hover { text-decoration: underline; }

  /* Search stats */
  .search-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
  }
  .search-stat-item { text-align: center; padding: 10px 8px; }
  .search-stat-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
  }
  .search-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
  }

  /* Main layout */
  .container { max-width: 1400px; margin: 0 auto; padding: 28px 40px; }
  .panel { display: none; }
  .panel.active { display: block; animation: fadeIn 0.3s ease-out; }

  /* Search bar */
  .search-bar { display: flex; gap: 12px; margin-bottom: 18px; }
  .search-bar input {
    flex: 1;
    padding: 12px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .search-bar input::placeholder { color: var(--text-muted); }
  .search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
  }
  .search-bar button {
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.1s;
  }
  .search-bar button:hover { background: var(--accent-dim); }
  .search-bar button:active { transform: scale(0.98); }
  .search-bar .reset-btn {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
  }
  .search-bar .reset-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

  /* Filters */
  .filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
  .filters select {
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-family: var(--font-body);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238b949e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
  }
  .filters select:focus { outline: none; border-color: var(--accent); }

  .result-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
  }

  /* Result cards */
  .results { display: flex; flex-direction: column; gap: 8px; }
  .result-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    border-left: 3px solid var(--border);
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    position: relative;
  }
  .result-card:hover {
    background: var(--bg-hover);
    transform: translateX(2px);
  }
  .result-card.high   { border-left-color: var(--red); }
  .result-card.medium { border-left-color: var(--orange); }
  .result-card.low    { border-left-color: var(--green); }

  .card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
  .card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
    line-height: 1.35;
  }
  .card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s;
  }
  .card-title a:hover { color: var(--accent); }

  /* Badges */
  .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
  .badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: opacity 0.15s, transform 0.1s;
  }
  .badge.clickable { cursor: pointer; }
  .badge.clickable:hover { opacity: 0.75; transform: scale(1.05); }
  .badge-sector   { background: var(--blue-dim); color: var(--blue); }
  .badge-category { background: var(--green-dim); color: var(--green); }
  .badge-year     { background: var(--accent-glow); color: var(--accent); }
  .badge-action-tilbakekall { background: var(--red-dim); color: var(--red); }
  .badge-action-gebyr       { background: var(--orange-dim); color: var(--orange); }
  .badge-action-pålegg      { background: var(--red-dim); color: var(--red); }
  .badge-action-merknad     { background: rgba(139,148,158,0.12); color: var(--text-secondary); }
  .badge-sev-high   { background: var(--red-dim); color: var(--red); }
  .badge-sev-medium { background: var(--orange-dim); color: var(--orange); }
  .badge-sev-low    { background: var(--green-dim); color: var(--green); }

  .card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
  }
  .card-meta {
    display: flex;
    gap: 18px;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
  }
  .card-meta span { display: flex; align-items: center; gap: 5px; }

  .card-content {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    display: none;
  }
  .card-content.open { display: block; animation: fadeIn 0.25s ease-out; }

  .expand-btn {
    font-size: 0.76rem;
    color: var(--accent);
    cursor: pointer;
    border: none;
    background: none;
    padding: 4px 0;
    margin-top: 8px;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    transition: opacity 0.15s;
  }
  .expand-btn:hover { opacity: 0.7; }

  .pdf-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
  .pdf-link {
    font-size: 0.74rem;
    color: #fff;
    background: var(--red);
    padding: 4px 12px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: opacity 0.15s;
  }
  .pdf-link:hover { opacity: 0.85; }

  .load-more { text-align: center; margin-top: 24px; }
  .load-more button {
    padding: 10px 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    transition: border-color 0.2s, color 0.2s;
  }
  .load-more button:hover { border-color: var(--accent); color: var(--accent); }

  /* KPI / Summary */
  .kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
  }
  .kpi-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 22px 22px 18px;
    border-top: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
  }
  .kpi-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    opacity: 0;
  }
  .kpi-card.green  { border-top-color: var(--green); }
  .kpi-card.orange { border-top-color: var(--orange); }
  .kpi-card.red    { border-top-color: var(--red); }
  .kpi-card.clickable { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
  .kpi-card.clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
  .kpi-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
  }
  .kpi-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
  }

  /* Charts */
  .charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }
  .charts-grid.full { grid-template-columns: 1fr; }
  .chart-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    border: 1px solid var(--border);
  }
  .chart-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
  }
  .chart-wrap { position: relative; }
  .chart-wrap canvas { cursor: pointer; }
  @media (max-width: 800px) {
    .charts-grid { grid-template-columns: 1fr; }
    .kpi-row { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 480px) {
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
  }

  /* Firms table */
  .firm-filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
  .firm-filters select, .firm-filters input {
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-family: var(--font-body);
    color: var(--text-secondary);
  }
  .firm-filters select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238b949e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
  }
  .firm-filters input { width: 150px; color: var(--text-primary); }
  .chip-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
  .chip-group-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-right: 4px; white-space: nowrap; }
  .filter-chip {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    user-select: none;
  }
  .filter-chip:hover { background: var(--bg-raised); border-color: var(--text-muted); }
  .filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }

  .firms-table {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
  }
  .firms-table table { width: 100%; border-collapse: collapse; }
  .firms-table th {
    background: var(--bg-raised);
    color: var(--accent);
    padding: 13px 18px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
  }
  .firms-table th.sortable { cursor: pointer; user-select: none; transition: color 0.15s; }
  .firms-table th.sortable:hover { color: var(--text-primary); }
  .firms-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.84rem;
    vertical-align: middle;
    color: var(--text-secondary);
  }
  .firms-table tr:last-child td { border-bottom: none; }
  .firms-table tr:hover td { background: var(--bg-hover); }

  .revoked { color: var(--red); font-weight: 600; }
  .firm-row-active td { background: var(--accent-glow) !important; }
  .firm-detail-row td { background: var(--bg-raised); padding: 16px 18px !important; }

  /* Licenses */
  .license-grid { display: flex; flex-direction: column; gap: 10px; }
  .license-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    border-left: 3px solid var(--border);
    transition: background 0.15s;
  }
  .license-card:hover { background: var(--bg-hover); }
  .license-card.tilbakekall { border-left-color: var(--red); }
  .license-card.gebyr       { border-left-color: var(--orange); }
  .license-card.pålegg      { border-left-color: var(--red); }
  .lc-header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
  .lc-firm {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
    color: var(--text-primary);
  }
  .lc-desc { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.5; }
  .lc-link {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    margin-top: 6px;
    display: inline-block;
    transition: opacity 0.15s;
  }
  .lc-link:hover { opacity: 0.7; }

  /* Modal */
  .modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 16px;
    overflow-y: auto;
  }
  .modal-overlay.hidden { display: none; }
  .modal {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 880px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.18);
    border: 1px solid var(--border);
    animation: fadeUp 0.3s ease-out;
  }
  .modal-header {
    background: var(--bg-raised);
    padding: 20px 26px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
  }
  .modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    flex: 1;
    font-weight: 600;
  }
  .modal-header button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
  }
  .modal-header button:hover { color: var(--text-primary); }
  .modal-body { padding: 22px 26px; max-height: 70vh; overflow-y: auto; }
  .modal-body .results { gap: 10px; display: flex; flex-direction: column; }

  .firm-link {
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s;
  }
  .firm-link:hover { opacity: 0.7; }

  /* Spinner */
  .spinner {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
  }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: var(--bg-raised); }
  ::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

  @media (max-width: 640px) {
    .container { padding: 16px; }
    header { padding: 20px 16px; }
    .tabs { padding: 0 16px; }
    .header-inner { flex-wrap: wrap; }
    .firm-filters { flex-direction: column; }
    .tab { padding: 12px 14px; font-size: 0.75rem; }
  }


  /* ── Export button ──────────────────────────────────────────────────────── */
  .export-btn {
    padding: 7px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-family: var(--font-body);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
  }
  .export-btn:hover { border-color: var(--accent); color: var(--accent); }

  /* ── Firm Timeline ──────────────────────────────────────────────────────── */
  .firm-timeline { padding: 4px 0 8px; }
  .timeline-year-group { margin-bottom: 14px; }
  .timeline-year-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  .timeline-year-badge {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(184,134,11,0.2);
    border-radius: 4px;
    padding: 2px 10px;
    white-space: nowrap;
  }
  .timeline-year-line {
    flex: 1;
    height: 1px;
    background: var(--border);
  }
  .timeline-event {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 2px;
  }
  .timeline-dot-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5px;
    flex-shrink: 0;
  }
  .timeline-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--bg-raised);
    box-shadow: 0 0 0 1px var(--border);
  }
  .timeline-dot-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin-top: 4px;
    min-height: 10px;
  }
  .timeline-event:last-child .timeline-dot-line { display: none; }
  .timeline-dot.gebyr       { background: #d97706; }
  .timeline-dot.p-leg      { background: #dc2626; }
  .timeline-dot.tilbakekall { background: #7b0000; }
  .timeline-dot.merknad     { background: #2563eb; }
  .timeline-dot.rapport     { background: #8b949e; }
  .timeline-body {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 13px;
    min-width: 0;
  }
  .timeline-summary {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
  }
  .timeline-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.35;
    text-decoration: none;
    min-width: 0;
    transition: color 0.15s;
  }
  .timeline-title:hover { color: var(--accent); }
  .timeline-expand-btn {
    font-size: 0.73rem;
    color: var(--accent);
    cursor: pointer;
    border: none;
    background: none;
    padding: 4px 0 0;
    font-family: var(--font-body);
    display: block;
    opacity: 0.8;
    transition: opacity 0.15s;
  }
  .timeline-expand-btn:hover { opacity: 1; }
  .timeline-full-card {
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    display: none;
  }
  .timeline-full-card.open { display: block; }

  /* ── Mobile: firms table scroll ─────────────────────────────────────────── */
  .firms-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .firms-table table th:first-child,
  .firms-table table td:first-child {
    position: sticky;
    left: 0;
    background: inherit;
    z-index: 1;
  }
  .firms-table table tr:hover td:first-child { background: var(--bg-hover, #f5f3ef); }
  .firms-table table thead tr th:first-child { background: var(--bg-raised); }
  @media (max-width: 768px) {
    .firms-table table { min-width: 680px; }
    .firm-filters { flex-direction: column; }
    .firm-filters select, .firm-filters input { width: 100%; box-sizing: border-box; }
  }


  /* Findings */
  #findings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Sector landing grid */
  .sector-landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  .sector-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
  }
  .sector-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
  }
  .sector-card-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
  }
  .sector-card-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .sector-card-stat {
    font-size: 0.82rem;
    color: var(--text-secondary);
  }
  .sector-card-stat strong {
    font-size: 1.1rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
  }

  .sector-back-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: background 0.15s;
  }
  .sector-back-btn:hover {
    background: var(--bg-hover);
  }

  #sector-reports-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
