*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      color-scheme: dark;
      --navy: #0a0f1e; --navy2: #0f1730; --navy3: #141e35; --navy4: #1a2340;
      --blue: #2563eb; --blue-l: #3b82f6; --blue-xl: #60a5fa;
      --cyan: #06b6d4; --green: #10b981; --red: #ef4444; --amber: #f59e0b;
      --surface: rgba(255,255,255,0.04); --surface2: rgba(255,255,255,0.07);
      --border: rgba(255,255,255,0.08); --border2: rgba(255,255,255,0.12);
      --text: #f1f5f9; --muted: #94a3b8; --dim: #64748b;
      --bg: #0a0f1e; --bg-soft: #0f1730; --bg-spot: rgba(37,99,235,0.18);
      --chart-grid: rgba(255,255,255,0.05); --chart-text: #64748b;
      --sidebar: 220px;
    }
    html[data-theme="light"] {
      color-scheme: light;
      --navy: #f4f7fb; --navy2: #ffffff; --navy3: #eef3fb; --navy4: #dbe7f8;
      --surface: rgba(15,23,42,0.04); --surface2: rgba(15,23,42,0.06);
      --border: rgba(15,23,42,0.08); --border2: rgba(15,23,42,0.14);
      --text: #0f172a; --muted: #475569; --dim: #64748b;
      --bg: #f4f7fb; --bg-soft: #e8eef8; --bg-spot: rgba(37,99,235,0.12);
      --chart-grid: rgba(15,23,42,0.08); --chart-text: #64748b;
    }
    html, body { height: 100%; }
    body {
      font-family: 'DM Sans', sans-serif;
      background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
      color: var(--text);
      display: flex; overflow: hidden;
      position: relative;
    }
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 12% 10%, var(--bg-spot), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(6,182,212,0.11), transparent 24%),
        radial-gradient(circle at 70% 92%, rgba(16,185,129,0.08), transparent 24%);
      opacity: 0.9;
    }

    /* ===== SIDEBAR ===== */
    .sidebar {
      width: var(--sidebar); min-width: var(--sidebar);
      background: var(--navy2);
      border-right: 1px solid var(--border);
      display: flex; flex-direction: column;
      height: 100vh; overflow-y: auto;
    }
    .sb-logo {
      padding: 24px 20px;
      display: flex; align-items: center; gap: 10px;
      border-bottom: 1px solid var(--border);
      font-family: 'Syne', sans-serif;
      font-size: 16px; font-weight: 700;
    }
    .sb-logo a { text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 10px; }
    .topbar-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .site-logo { width: 34px; height: 34px; object-fit: contain; display: block; image-rendering: auto; }
    .topbar-logo { width: 44px; height: 44px; object-fit: contain; display: block; image-rendering: auto; flex-shrink: 0; }
    .logo-icon {
      width: 30px; height: 30px;
      background: linear-gradient(135deg, #2563eb, #06b6d4);
      border-radius: 7px;
      display: flex; align-items: center; justify-content: center;
    }
    .logo-icon svg { width: 16px; height: 16px; }
    .sb-section { padding: 12px 0; }
    .sb-label {
      font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--dim);
      padding: 0 20px 8px;
    }
    .nav-item {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 20px; cursor: pointer;
      color: var(--muted); font-size: 14px;
      border-left: 2px solid transparent;
      transition: all 0.15s; user-select: none;
      border-radius: 0;
    }
    .nav-item:hover { color: var(--text); background: var(--surface); }
    .nav-item.active {
      color: var(--text); border-left-color: var(--blue);
      background: rgba(37,99,235,0.12);
    }
    .nav-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.8; }
    .nav-item .nav-badge {
      margin-left: auto; padding: 2px 7px; border-radius: 100px;
      font-size: 10px; font-weight: 600;
    }
    .sb-bottom {
      margin-top: auto;
      padding: 16px 20px;
      border-top: 1px solid var(--border);
      font-size: 12px;
    }
    .sb-user { display: flex; align-items: center; gap: 8px; }
    .sb-avatar {
      width: 30px; height: 30px; border-radius: 50%;
      background: rgba(37,99,235,0.3);
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 600; color: var(--blue-xl);
    }
    .sb-user-info { flex: 1; }
    .sb-user-name { font-size: 13px; font-weight: 500; }
    .sb-user-role { font-size: 11px; color: var(--dim); }

    /* ===== MAIN ===== */
    .main {
      flex: 1; display: flex; flex-direction: column;
      height: 100vh; overflow: hidden;
    }
    .topbar {
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 28px;
      height: 60px; min-height: 60px;
      border-bottom: 1px solid var(--border);
      background: var(--navy2);
    }
    .topbar-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 600; }
    .topbar-sub { font-size: 12px; color: var(--dim); margin-top: 1px; }
    .topbar-actions { display: flex; align-items: center; gap: 10px; }

    .btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; border: none; transition: all 0.15s; font-family: 'DM Sans', sans-serif; }
    .btn-primary { background: var(--blue); color: #fff; }
    .btn-primary:hover { background: var(--blue-l); }
    .btn-secondary { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
    .btn-secondary:hover { color: var(--text); border-color: var(--border2); }
    .btn-danger { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
    .btn-danger:hover { background: rgba(239,68,68,0.25); }
    .btn-green { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
    .btn-green:hover { background: rgba(16,185,129,0.25); }
    .btn svg { width: 13px; height: 13px; }
    .theme-toggle { min-width: 108px; justify-content: center; }

    .content { flex: 1; overflow-y: auto; padding: 24px 28px; }

    /* ===== VIEWS ===== */
    .view { display: none; }
    .view.active { display: block; }

    /* LANDING */
    .hero {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 16px;
      margin-bottom: 16px;
    }
    .hero-panel,
    .hero-copy,
    .feature-card,
    .landing-note,
    .landing-extended {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: 0 18px 42px rgba(0,0,0,0.14);
    }
    .hero-copy {
      padding: 28px;
      overflow: hidden;
      position: relative;
    }
    .hero-copy::after {
      content: '';
      position: absolute;
      inset: auto -40px -40px auto;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(37,99,235,0.22), transparent 65%);
      pointer-events: none;
    }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 5px 10px;
      border-radius: 999px;
      background: rgba(37,99,235,0.14);
      color: var(--blue-xl);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 14px;
    }
    .hero-title {
      font-family: 'Syne', sans-serif;
      font-size: clamp(28px, 3vw, 46px);
      line-height: 1.02;
      margin-bottom: 12px;
      letter-spacing: -0.03em;
    }
    .hero-copy p {
      color: var(--muted);
      font-size: 15px;
      line-height: 1.65;
      max-width: 62ch;
      margin-bottom: 18px;
    }
    .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
    .landing-metrics {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }
    .metric {
      padding: 14px 16px;
      border-radius: 12px;
      background: var(--surface2);
      border: 1px solid var(--border);
    }
    .metric-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 6px; }
    .metric-value { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 700; line-height: 1; }
    .metric-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
    .hero-panel { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
    .panel-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 10px; }
    .panel-card {
      padding: 16px;
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(37,99,235,0.12), rgba(37,99,235,0.04));
      border: 1px solid rgba(37,99,235,0.18);
      margin-bottom: 12px;
    }
    .panel-card h3 { font-family: 'Syne', sans-serif; font-size: 18px; margin-bottom: 8px; }
    .panel-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
    .landing-steps {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 16px;
    }
    .feature-card { padding: 18px; }
    .feature-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: rgba(37,99,235,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--blue-xl);
      margin-bottom: 14px;
    }
    .feature-card h4 { font-family: 'Syne', sans-serif; font-size: 15px; margin-bottom: 8px; }
    .feature-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
    .landing-note { padding: 20px; }
    .landing-note h3 { font-family: 'Syne', sans-serif; font-size: 18px; margin-bottom: 10px; }
    .pipeline { list-style: none; display: grid; gap: 10px; }
    .pipeline li {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      padding: 12px 14px;
      border-radius: 12px;
      background: var(--surface2);
      border: 1px solid var(--border);
    }
    .pipeline-step {
      width: 26px;
      height: 26px;
      border-radius: 999px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(37,99,235,0.14);
      color: var(--blue-xl);
      font-weight: 700;
      font-size: 12px;
      margin-top: 1px;
    }
    .pipeline strong { display: block; margin-bottom: 3px; }
    .pipeline span { color: var(--muted); font-size: 13px; line-height: 1.5; }
    .landing-extended { padding: 20px; }
    .landing-extended h3 { font-family: 'Syne', sans-serif; font-size: 18px; margin-bottom: 16px; }
    .landing-extended h4 { font-family: 'Syne', sans-serif; font-size: 15px; margin-top: 14px; margin-bottom: 10px; font-weight: 600; }
    .landing-extended p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
    .landing-extended ul, .landing-extended ol { margin-bottom: 14px; margin-left: 20px; }
    .landing-extended li { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 8px; }
    .landing-extended a { color: var(--blue-xl); text-decoration: none; }
    .landing-extended a:hover { text-decoration: underline; }

    /* UPLOAD CARD */
    .upload-card {
      border: 2px dashed var(--border2);
      border-radius: 14px;
      padding: 32px;
      text-align: center;
      margin-bottom: 24px;
      transition: border-color 0.2s, background 0.2s;
      cursor: pointer;
    }
    .upload-card:hover, .upload-card.drag { border-color: var(--blue); background: rgba(37,99,235,0.06); }
    .upload-card-icon {
      width: 48px; height: 48px;
      background: rgba(37,99,235,0.15);
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 14px;
    }
    .upload-card-icon svg { width: 22px; height: 22px; color: var(--blue-xl); }
    .upload-card h3 { font-family: 'Syne', sans-serif; font-size: 16px; margin-bottom: 6px; }
    .upload-card p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
    input[type=file] { display: none; }
    .filename-tag {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.2);
      color: var(--blue-xl); font-size: 12px; padding: 4px 12px; border-radius: 100px;
    }

    /* STAT GRID */
    .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
    .stat-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 18px 20px;
    }
    .stat-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
    .stat-card-label { font-size: 12px; color: var(--dim); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
    .stat-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
    .stat-icon svg { width: 15px; height: 15px; }
    .si-blue { background: rgba(37,99,235,0.15); color: var(--blue-xl); }
    .si-red { background: rgba(239,68,68,0.15); color: var(--red); }
    .si-amber { background: rgba(245,158,11,0.15); color: var(--amber); }
    .si-green { background: rgba(16,185,129,0.15); color: var(--green); }
    .stat-value { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700; line-height: 1; }
    .stat-sub { font-size: 11px; color: var(--dim); margin-top: 4px; }

    /* CHARTS */
    .chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
    }
    .card-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
    .chart-wrap { height: 200px; position: relative; }

    /* TABLE */
    .table-wrap { overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; font-size: 13px; }
    thead th {
      padding: 10px 14px; text-align: left;
      font-size: 11px; font-weight: 600;
      text-transform: uppercase; letter-spacing: 0.06em;
      color: var(--dim);
      border-bottom: 1px solid var(--border);
    }
    thead th.sortable { cursor: pointer; user-select: none; }
    thead th.sortable:hover { color: var(--muted); }
    tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; }
    tbody tr:last-child { border-bottom: none; }
    tbody tr:hover { background: var(--surface2); }
    tbody td { padding: 11px 14px; color: var(--muted); vertical-align: middle; }
    tbody td:first-child { color: var(--text); }

    /* BADGES */
    .badge { display: inline-block; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; }
    .badge-200, .badge-201 { background: rgba(16,185,129,0.15); color: #34d399; }
    .badge-301, .badge-302 { background: rgba(99,102,241,0.15); color: #a5b4fc; }
    .badge-400, .badge-401, .badge-403, .badge-404 { background: rgba(245,158,11,0.15); color: #fbbf24; }
    .badge-500, .badge-502, .badge-503 { background: rgba(239,68,68,0.15); color: #f87171; }
    .badge-low { background: rgba(16,185,129,0.15); color: #34d399; }
    .badge-medium { background: rgba(245,158,11,0.15); color: #fbbf24; }
    .badge-high { background: rgba(251,146,60,0.15); color: #fb923c; }
    .badge-critical { background: rgba(239,68,68,0.15); color: #f87171; }
    .badge-method-get { background: rgba(37,99,235,0.12); color: #60a5fa; }
    .badge-method-post { background: rgba(16,185,129,0.12); color: #34d399; }
    .badge-method-put { background: rgba(245,158,11,0.12); color: #fbbf24; }
    .badge-method-delete { background: rgba(239,68,68,0.12); color: #f87171; }
    .badge-open { background: rgba(239,68,68,0.15); color: #f87171; }
    .badge-investigating { background: rgba(245,158,11,0.15); color: #fbbf24; }
    .badge-resolved { background: rgba(16,185,129,0.15); color: #34d399; }
    .badge-dismissed { background: var(--surface2); color: var(--dim); }
    .badge-blocked { background: rgba(239,68,68,0.15); color: #f87171; }
    .badge-flagged { background: rgba(245,158,11,0.15); color: #fbbf24; }

    /* FILTERS */
    .filter-row {
      display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
      margin-bottom: 16px;
    }
    .filter-input {
      background: var(--surface2); border: 1px solid var(--border);
      color: var(--text); border-radius: 8px;
      padding: 8px 12px; font-size: 13px; font-family: 'DM Sans', sans-serif;
      flex: 1; min-width: 200px;
    }
    .filter-input:focus { outline: none; border-color: var(--blue); }
    .filter-select {
      background: var(--surface2); border: 1px solid var(--border);
      color: var(--muted); border-radius: 8px;
      padding: 8px 12px; font-size: 13px; font-family: 'DM Sans', sans-serif;
      cursor: pointer;
    }
    .filter-select:focus { outline: none; border-color: var(--blue); }

    /* ALERTS */
    .alert-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 12px;
      transition: border-color 0.2s;
    }
    .alert-card:hover { border-color: var(--border2); }
    .alert-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
    .alert-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .alert-icon svg { width: 16px; height: 16px; }
    .ai-critical { background: rgba(239,68,68,0.15); color: #f87171; }
    .ai-medium { background: rgba(245,158,11,0.15); color: #fbbf24; }
    .ai-low { background: rgba(16,185,129,0.15); color: #34d399; }
    .alert-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
    .alert-desc { font-size: 13px; color: var(--muted); }
    .alert-meta { font-size: 11px; color: var(--dim); margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; }
    .alert-actions { display: flex; gap: 8px; margin-top: 12px; }
    .alert-ip-link {
      color: var(--blue-xl);
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .alert-ip-link:hover { color: #93c5fd; }
    .ip-card-highlight {
      border-color: rgba(96,165,250,0.65);
      box-shadow: 0 0 0 1px rgba(96,165,250,0.25), 0 0 0 6px rgba(96,165,250,0.08);
    }

    /* IP CARDS */
    .ip-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 12px;
    }
    .ip-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
    .ip-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .ip-icon svg { width: 16px; height: 16px; }
    .ii-blocked { background: rgba(239,68,68,0.15); color: #f87171; }
    .ii-flagged { background: rgba(245,158,11,0.15); color: #fbbf24; }
    .ip-addr { font-size: 16px; font-weight: 600; font-family: 'Syne', sans-serif; }
    .ip-reason { font-size: 13px; color: var(--muted); }
    .ip-notes {
      background: var(--surface2); border-radius: 8px; padding: 10px 14px;
      font-size: 12px; color: var(--dim); margin-bottom: 10px;
      border-left: 2px solid var(--border2);
    }
    .ip-meta { font-size: 11px; color: var(--dim); display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

    /* COUNTRY */
    .country-row td { font-size: 13px; }
    .country-bar { height: 4px; border-radius: 2px; background: var(--blue); }

    /* TOAST */
    .toast {
      position: fixed; bottom: 24px; right: 24px;
      background: var(--navy3); border: 1px solid var(--border2);
      color: var(--text); font-size: 13px;
      padding: 12px 18px; border-radius: 10px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
      transform: translateY(100px); opacity: 0;
      transition: all 0.3s;
      z-index: 999;
    }
    .toast.show { transform: translateY(0); opacity: 1; }

    /* PAGINATION */
    .pagination { display: flex; align-items: center; gap: 8px; margin-top: 16px; justify-content: flex-end; }
    .page-info { font-size: 13px; color: var(--dim); margin-right: auto; }

    /* EMPTY STATE */
    .empty {
      text-align: center; padding: 60px 20px; color: var(--dim);
    }
    .empty svg { width: 40px; height: 40px; margin: 0 auto 16px; display: block; opacity: 0.4; }
    .empty h3 { font-size: 16px; margin-bottom: 6px; color: var(--muted); }
    .empty p { font-size: 13px; }

    /* MODAL ADD IP */
    .modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.6);
      z-index: 200; display: flex; align-items: center; justify-content: center;
      display: none;
    }
    .modal-overlay.open { display: flex; }
    .modal {
      background: var(--navy2); border: 1px solid var(--border2);
      border-radius: 16px; padding: 28px; width: 440px; max-width: 95vw;
    }
    .modal h2 { font-family: 'Syne', sans-serif; font-size: 18px; margin-bottom: 20px; }
    .form-group { margin-bottom: 14px; }
    .form-label { font-size: 12px; color: var(--dim); margin-bottom: 5px; display: block; }
    .form-input {
      width: 100%;
      background: var(--surface2); border: 1px solid var(--border);
      color: var(--text); border-radius: 8px;
      padding: 9px 12px; font-size: 13px; font-family: 'DM Sans', sans-serif;
    }
    .form-input:focus { outline: none; border-color: var(--blue); }
    .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

    /* SCROLLBAR */
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

    @media (max-width: 900px) {
      .sidebar { display: none; }
      .stat-grid { grid-template-columns: repeat(2, 1fr); }
      .chart-grid { grid-template-columns: 1fr; }
      .hero, .landing-steps { grid-template-columns: 1fr; }
    }

    /* Utility classes to replace inline styles and improve performance */
    .api-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); display: inline-block; margin-right: 8px; }
    .hidden { display: none !important; }
    .file-actions { margin-top: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
    .two-column-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .empty-pad { padding: 30px 10px; }
    .mb-12 { margin-bottom: 12px; }
    .mb-14 { margin-bottom: 14px; }
    .mb-8 { margin-bottom: 8px; }
    .mt-14 { margin-top: 14px; }
    .mt-12 { margin-top: 12px; }
    .muted-compact { margin: 0; color: var(--dim); }
    .stat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .stat-grid.cols-4-tight { grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
    .layout-main-side { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; align-items: start; }
    .report-notes { min-height: 180px; resize: vertical; line-height: 1.5; }
    .actions-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer and social links */
.site-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.site-footer-inner { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.site-footer a { color: var(--blue-xl); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.social-links { display:inline-flex; gap:10px; align-items:center; margin-left:12px; }
.social-link { display:inline-flex; width:32px; height:32px; align-items:center; justify-content:center; border-radius:8px; background:var(--surface2); color:var(--muted); text-decoration:none; }
.social-link svg { width:16px; height:16px; }
.social-link:hover { color:var(--text); background:var(--surface); }
.social-placeholder { color: var(--dim); margin-left:8px; font-size:12px; }
