        /* iSee — operator console design tokens.
           Surfaces are slightly cool. Single accent: warning amber.
           Severity tiers share chroma 0.16, vary hue: crit 25 → high 50 → med 90 → low 220 → info 260. */
        :root {
            --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
            --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

            /* dark palette */
            --d-bg:        oklch(0.16 0.012 250);
            --d-bg-2:      oklch(0.20 0.012 250);
            --d-bg-3:      oklch(0.235 0.012 250);
            --d-bg-4:      oklch(0.27 0.012 250);
            --d-line:      oklch(0.30 0.012 250);
            --d-line-2:    oklch(0.36 0.012 250);
            --d-fg:        oklch(0.96 0.005 250);
            --d-fg-2:      oklch(0.78 0.008 250);
            --d-fg-3:      oklch(0.58 0.010 250);
            --d-accent:    oklch(0.78 0.18 75);
            --d-accent-d:  oklch(0.55 0.16 75);

            /* light palette */
            --l-bg:        oklch(0.985 0.003 250);
            --l-bg-2:      oklch(0.965 0.004 250);
            --l-bg-3:      oklch(0.945 0.005 250);
            --l-bg-4:      oklch(0.920 0.005 250);
            --l-line:      oklch(0.90 0.006 250);
            --l-line-2:    oklch(0.83 0.008 250);
            --l-fg:        oklch(0.18 0.010 250);
            --l-fg-2:      oklch(0.40 0.010 250);
            --l-fg-3:      oklch(0.55 0.010 250);
            --l-accent:    oklch(0.60 0.18 50);
            --l-accent-d:  oklch(0.50 0.16 50);

            /* severity hues */
            --sev-crit-h: 25;
            --sev-high-h: 50;
            --sev-med-h:  90;
            --sev-low-h:  220;
            --sev-info-h: 260;
            --sev-ok-h:   145;

            /* radii — sharp, operator console */
            --radius-lg: 6px;
            --radius-md: 5px;
            --radius-sm: 4px;
        }

        /* dark theme is the default operator console look */
        :root,
        html[data-theme="dark"] {
            --bg:           var(--d-bg);
            --bg-2:         var(--d-bg-2);
            --bg-3:         var(--d-bg-3);
            --bg-4:         var(--d-bg-4);
            --line:         var(--d-line);
            --line-2:       var(--d-line-2);
            --fg:           var(--d-fg);
            --fg-2:         var(--d-fg-2);
            --fg-3:         var(--d-fg-3);
            --accent:       var(--d-accent);
            --accent-d:     var(--d-accent-d);
            --accent-soft:  oklch(0.78 0.18 75 / .14);
            --accent-on:    oklch(0.18 0.01 250);
            --sev-l:        0.72;
            --sev-c:        0.16;

            /* aliases — maps existing template variable names to new tokens */
            --bg-soft:                var(--bg);
            --surface:                var(--bg-2);
            --surface-strong:         var(--bg-2);
            --surface-muted:          var(--bg-2);
            --surface-1:              var(--bg-2);
            --surface-2:              var(--bg-3);
            --surface-3:              var(--bg-3);
            --surface-3-hover:        var(--bg-4);
            --sidebar-bg:             var(--bg);
            --thead-bg:               var(--bg-2);
            --hover-tint:             var(--bg-3);
            --scroll-track:           var(--bg);
            --scroll-thumb:           var(--line-2);
            --slider-bg:              var(--line-2);
            --border:                 var(--line);
            --border-strong:          var(--line-2);
            --divider:                var(--line);
            --text:                   var(--fg);
            --text-strong:            var(--fg);
            --text-muted:             var(--fg-2);
            --text-tertiary:          var(--fg-3);
            --text-soft:              var(--fg);
            --input-hover-border:     var(--line-2);
            --on-primary:             var(--accent-on);
            --primary:                var(--accent);
            --primary-strong:         var(--accent-d);
            --primary-soft:           var(--accent-soft);
            --accent-soft-alias:      var(--accent-soft);
            --violet:                 var(--accent);
            --violet-strong:          var(--accent-d);
            --rose:                   oklch(var(--sev-l) var(--sev-c) var(--sev-crit-h));
            --ring:                   oklch(0.78 0.18 75 / .25);
            --ring-strong:            oklch(0.78 0.18 75 / .55);
            --shadow-color:           rgba(0, 0, 0, 0.45);
            --shadow-color-md:        rgba(0, 0, 0, 0.55);
            --shadow-color-lg:        rgba(0, 0, 0, 0.7);
            --shadow:                 0 1px 2px var(--shadow-color);
            --shadow-glow:            none;
            --modal-overlay:          rgba(0, 0, 0, 0.7);
            --preview-pill-bg:        var(--bg-3);
            --badge-success-bg:       oklch(var(--sev-l) var(--sev-c) var(--sev-ok-h) / .18);
            --badge-success-fg:       oklch(var(--sev-l) var(--sev-c) var(--sev-ok-h));
            --badge-success-bg-hover: oklch(var(--sev-l) var(--sev-c) var(--sev-ok-h) / .28);
            --badge-success-fg-hover: oklch(0.85 var(--sev-c) var(--sev-ok-h));
            --badge-info-bg:          oklch(var(--sev-l) var(--sev-c) var(--sev-low-h) / .18);
            --badge-info-fg:          oklch(var(--sev-l) var(--sev-c) var(--sev-low-h));
            --badge-info-bg-hover:    oklch(var(--sev-l) var(--sev-c) var(--sev-low-h) / .28);
            --badge-info-fg-hover:    oklch(0.85 var(--sev-c) var(--sev-low-h));
            --badge-warn-bg:          oklch(var(--sev-l) var(--sev-c) var(--sev-high-h) / .18);
            --badge-warn-fg:          oklch(var(--sev-l) var(--sev-c) var(--sev-high-h));
            --badge-warn-bg-hover:    oklch(var(--sev-l) var(--sev-c) var(--sev-high-h) / .28);
            --badge-warn-fg-hover:    oklch(0.85 var(--sev-c) var(--sev-high-h));
            --badge-danger-bg:        oklch(var(--sev-l) var(--sev-c) var(--sev-crit-h) / .18);
            --badge-danger-fg:        oklch(var(--sev-l) var(--sev-c) var(--sev-crit-h));
            --badge-danger-bg-hover:  oklch(var(--sev-l) var(--sev-c) var(--sev-crit-h) / .28);
            --badge-danger-fg-hover:  oklch(0.85 var(--sev-c) var(--sev-crit-h));
            --flash-success-bg:       oklch(var(--sev-l) var(--sev-c) var(--sev-ok-h) / .12);
            --flash-success-border:   oklch(var(--sev-l) var(--sev-c) var(--sev-ok-h) / .35);
            --flash-success-fg:       oklch(var(--sev-l) var(--sev-c) var(--sev-ok-h));
            --flash-error-bg:         oklch(var(--sev-l) var(--sev-c) var(--sev-crit-h) / .12);
            --flash-error-border:     oklch(var(--sev-l) var(--sev-c) var(--sev-crit-h) / .35);
            --flash-error-fg:         oklch(var(--sev-l) var(--sev-c) var(--sev-crit-h));
        }

        html[data-theme="light"] {
            --bg:           var(--l-bg);
            --bg-2:         var(--l-bg-2);
            --bg-3:         var(--l-bg-3);
            --bg-4:         var(--l-bg-4);
            --line:         var(--l-line);
            --line-2:       var(--l-line-2);
            --fg:           var(--l-fg);
            --fg-2:         var(--l-fg-2);
            --fg-3:         var(--l-fg-3);
            --accent:       var(--l-accent);
            --accent-d:     var(--l-accent-d);
            --accent-soft:  oklch(0.60 0.18 50 / .12);
            --accent-on:    oklch(0.985 0.003 250);
            --sev-l:        0.55;
            --sev-c:        0.16;

            --shadow-color:    rgba(15, 23, 42, 0.06);
            --shadow-color-md: rgba(15, 23, 42, 0.10);
            --shadow-color-lg: rgba(15, 23, 42, 0.20);
            --modal-overlay:   rgba(15, 23, 42, 0.5);
            --ring:            oklch(0.60 0.18 50 / .20);
            --ring-strong:     oklch(0.60 0.18 50 / .50);
        }

        html {
            scroll-behavior: smooth;
            color-scheme: dark;
        }

        html[data-theme="light"] {
            color-scheme: light;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(8px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-4px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        @keyframes modalIn {
            from { opacity: 0; transform: scale(0.98) translateY(6px); }
            to   { opacity: 1; transform: scale(1) translateY(0); }
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50%      { opacity: .35; transform: scale(0.85); }
        }

        * { box-sizing: border-box; }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: var(--font-ui);
            font-size: 13.5px;
            line-height: 1.55;
            color: var(--fg);
            background: var(--bg);
            overflow-x: hidden;
            font-feature-settings: "ss01", "cv11";
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body.modal-open { overflow: hidden; }

        .bg-orbs, .bg-orb { display: none; }

        .reveal {
            opacity: 0;
            transform: translateY(8px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        .reveal.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        a {
            color: var(--accent);
            text-decoration: none;
            transition: color 0.15s ease;
            word-break: break-word;
        }
        a:hover { color: var(--accent-d); }

        img { display: block; max-width: 100%; }

        /* ---------- Utility primitives (from design system) ---------- */

        .mono {
            font-family: var(--font-mono);
            font-feature-settings: "zero", "ss01";
        }

        .tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 2px 7px;
            border-radius: 3px;
            font: 500 10.5px/1 var(--font-mono);
            letter-spacing: .04em;
            text-transform: uppercase;
            background: var(--bg-3);
            color: var(--fg-2);
            border: 1px solid var(--line);
        }

        .kbd {
            font: 500 10px/1 var(--font-mono);
            padding: 3px 5px;
            border-radius: 3px;
            background: var(--bg-3);
            color: var(--fg-2);
            border: 1px solid var(--line);
            border-bottom-width: 2px;
        }

        .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            display: inline-block;
        }

        .pulse {
            animation: pulse 1.6s ease-in-out infinite;
        }

        .hline { height: 1px; background: var(--line); }
        .vline { width:  1px; background: var(--line); }

        .sev-crit { color: oklch(var(--sev-l) var(--sev-c) var(--sev-crit-h)); }
        .sev-high { color: oklch(var(--sev-l) var(--sev-c) var(--sev-high-h)); }
        .sev-med  { color: oklch(var(--sev-l) var(--sev-c) var(--sev-med-h));  }
        .sev-low  { color: oklch(var(--sev-l) var(--sev-c) var(--sev-low-h));  }
        .sev-info { color: oklch(var(--sev-l) var(--sev-c) var(--sev-info-h)); }
        .sev-ok   { color: oklch(var(--sev-l) var(--sev-c) var(--sev-ok-h));   }

        .bg-sev-crit { background: oklch(var(--sev-l) var(--sev-c) var(--sev-crit-h) / .18); color: oklch(var(--sev-l) var(--sev-c) var(--sev-crit-h)); border: 1px solid oklch(var(--sev-l) var(--sev-c) var(--sev-crit-h) / .35); }
        .bg-sev-high { background: oklch(var(--sev-l) var(--sev-c) var(--sev-high-h) / .18); color: oklch(var(--sev-l) var(--sev-c) var(--sev-high-h)); border: 1px solid oklch(var(--sev-l) var(--sev-c) var(--sev-high-h) / .35); }
        .bg-sev-med  { background: oklch(var(--sev-l) var(--sev-c) var(--sev-med-h)  / .18); color: oklch(var(--sev-l) var(--sev-c) var(--sev-med-h));  border: 1px solid oklch(var(--sev-l) var(--sev-c) var(--sev-med-h)  / .35); }
        .bg-sev-low  { background: oklch(var(--sev-l) var(--sev-c) var(--sev-low-h)  / .18); color: oklch(var(--sev-l) var(--sev-c) var(--sev-low-h));  border: 1px solid oklch(var(--sev-l) var(--sev-c) var(--sev-low-h)  / .35); }
        .bg-sev-info { background: oklch(var(--sev-l) var(--sev-c) var(--sev-info-h) / .18); color: oklch(var(--sev-l) var(--sev-c) var(--sev-info-h)); border: 1px solid oklch(var(--sev-l) var(--sev-c) var(--sev-info-h) / .35); }
        .bg-sev-ok   { background: oklch(var(--sev-l) var(--sev-c) var(--sev-ok-h)   / .18); color: oklch(var(--sev-l) var(--sev-c) var(--sev-ok-h));   border: 1px solid oklch(var(--sev-l) var(--sev-c) var(--sev-ok-h)   / .35); }

        /* ---------- Page shell ---------- */

        .page-shell {
            position: relative;
            z-index: 1;
            width: min(1400px, calc(100% - 32px));
            margin: 0 auto;
            padding: 24px 0 40px;
        }

        .topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 20px;
            animation: fadeInUp 0.4s ease both;
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
            font: 500 10.5px var(--font-mono);
            letter-spacing: .08em;
            text-transform: uppercase;
            color: var(--fg-3);
        }

        .eyebrow::before {
            content: '';
            width: 18px;
            height: 1px;
            background: var(--line);
        }

        /* ---------- Brand pill (used by some headers) ---------- */

        .brand {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            background: var(--bg-2);
            transition: border-color 0.15s ease, background 0.15s ease;
        }
        .brand:hover {
            border-color: var(--line-2);
            background: var(--bg-3);
        }

        .brand-mark {
            width: 30px;
            height: 30px;
            border-radius: 6px;
            display: grid;
            place-items: center;
            background: var(--accent-soft);
            color: var(--accent);
        }
        .brand-mark svg { width: 16px; height: 16px; }

        .brand-copy { display: flex; flex-direction: column; gap: 2px; }
        .brand-copy strong {
            font-size: 0.94rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--fg);
        }
        .brand-copy span {
            color: var(--fg-3);
            font: 500 10px var(--font-mono);
            letter-spacing: .06em;
            text-transform: uppercase;
        }

        /* ---------- Hero ---------- */

        .hero-panel {
            padding: 22px 24px;
            margin-bottom: 20px;
            overflow: hidden;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
            gap: 22px;
            align-items: stretch;
        }

        .hero-copy h1 {
            margin: 0;
            font-size: clamp(1.4rem, 2.4vw, 1.9rem);
            line-height: 1.18;
            letter-spacing: -0.02em;
            color: var(--fg);
            font-weight: 600;
            max-width: 22ch;
        }

        .hero-copy p {
            margin: 12px 0 0;
            max-width: 64ch;
            color: var(--fg-2);
            font-size: 0.9rem;
            line-height: 1.6;
        }

        .hero-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 18px;
        }

        .quick-link,
        .toolbar-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-height: 32px;
            padding: 0 11px;
            border-radius: var(--radius-md);
            border: 1px solid var(--line-2);
            background: var(--bg-3);
            color: var(--fg);
            font-size: 0.82rem;
            font-weight: 500;
            transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
        }

        .quick-link:hover,
        .toolbar-button:hover {
            background: var(--bg-2);
            border-color: var(--fg-3);
            color: var(--fg);
        }

        .hero-hint {
            display: inline-flex;
            align-items: center;
            padding: 0 10px;
            min-height: 26px;
            border-radius: 3px;
            background: var(--accent-soft);
            color: var(--accent);
            font: 500 10.5px var(--font-mono);
            letter-spacing: .04em;
            text-transform: uppercase;
        }

        /* ---------- Filter / panels ---------- */

        .top-filter-panel { margin-bottom: 18px; padding: 18px; }

        .filter-panel-shell { margin-bottom: 18px; }
        .filter-panel-shell summary { list-style: none; cursor: pointer; }
        .filter-panel-shell summary::-webkit-details-marker { display: none; }
        .filter-panel-shell .panel-heading { margin-bottom: 0; }

        .filter-panel-summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .filter-panel-summary:focus-visible {
            outline: 2px solid var(--ring-strong);
            outline-offset: 4px;
            border-radius: 6px;
        }

        .filter-panel-toggle {
            width: 28px;
            height: 28px;
            flex-shrink: 0;
            display: grid;
            place-items: center;
            border-radius: 5px;
            color: var(--fg-3);
            background: var(--bg-3);
            transition: transform 0.2s ease, color 0.15s ease, background 0.15s ease;
        }
        .filter-panel-toggle svg { width: 14px; height: 14px; }
        .filter-panel-shell[open] .filter-panel-toggle {
            transform: rotate(180deg);
            color: var(--accent);
            background: var(--accent-soft);
        }

        .filter-panel-body {
            margin-top: 16px;
            animation: slideDown 0.2s ease both;
        }

        .content-grid {
            display: grid;
            gap: 18px;
            margin-top: 18px;
            align-items: start;
        }

        .panel {
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            background-color: var(--bg-2);
            box-shadow: var(--shadow);
            transition: border-color 0.15s ease;
        }
        .panel:hover { border-color: var(--line-2); }

        .filter-panel { padding: 18px; }

        .panel-heading {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 16px;
        }

        .panel-heading h2,
        .asset-panel h2 {
            margin: 0;
            font: 500 10.5px/1.2 var(--font-mono);
            letter-spacing: .08em;
            text-transform: uppercase;
            color: var(--fg-2);
        }

        .panel-heading p,
        .asset-panel > p {
            margin: 6px 0 0;
            color: var(--fg-3);
            font-size: 0.8rem;
            line-height: 1.55;
        }

        .filter-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
        }

        .field,
        .field-wide {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .field-wide { grid-column: 1 / -1; }

        .collapsible-field {
            grid-column: 1 / -1;
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            background: var(--bg-2);
            overflow: hidden;
            transition: border-color 0.15s ease, background 0.15s ease;
        }
        .collapsible-field:hover { border-color: var(--line-2); }
        .collapsible-field[open] {
            border-color: var(--line-2);
            background: var(--bg-3);
        }

        .collapsible-field summary { list-style: none; }
        .collapsible-field summary::-webkit-details-marker { display: none; }

        .collapsible-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 12px 14px;
            cursor: pointer;
            user-select: none;
        }
        .collapsible-trigger:focus-visible {
            outline: 2px solid var(--ring-strong);
            outline-offset: -2px;
        }

        .collapsible-copy {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .collapsible-copy strong {
            font-size: 0.84rem;
            font-weight: 600;
            color: var(--fg);
        }
        .collapsible-copy span {
            color: var(--fg-3);
            font-size: 0.78rem;
            line-height: 1.5;
        }

        .collapsible-chevron {
            width: 26px;
            height: 26px;
            flex-shrink: 0;
            display: grid;
            place-items: center;
            border-radius: 5px;
            background: var(--bg-3);
            color: var(--fg-3);
            transition: transform 0.2s ease, color 0.15s ease, background 0.15s ease;
        }
        .collapsible-chevron svg { width: 14px; height: 14px; }
        .collapsible-field[open] .collapsible-chevron {
            transform: rotate(180deg);
            color: var(--accent);
            background: var(--accent-soft);
        }

        .collapsible-body {
            padding: 0 14px 14px;
            animation: slideDown 0.2s ease both;
        }
        .collapsible-body .field { gap: 6px; }

        label {
            font: 500 9.5px var(--font-mono);
            color: var(--fg-3);
            text-transform: uppercase;
            letter-spacing: .1em;
        }

        .hint {
            color: var(--fg-3);
            font-size: 0.76rem;
            line-height: 1.5;
        }

        /* ---------- Inputs ---------- */

        input,
        select,
        textarea {
            width: 100%;
            border: 1px solid var(--line);
            outline: none;
            border-radius: var(--radius-sm);
            background: var(--bg);
            color: var(--fg);
            padding: 7px 10px;
            font: 400 12.5px var(--font-ui);
            transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
        }

        input::placeholder,
        textarea::placeholder { color: var(--fg-3); }

        input:hover,
        select:hover,
        textarea:hover { border-color: var(--line-2); }

        input:focus,
        select:focus,
        textarea:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--ring);
        }

        /* ---------- Custom select (single) ---------- */

        select:not([multiple]) {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            cursor: pointer;
            padding: 8px 32px 8px 11px;
            background-color: var(--bg);
            background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5 L6 8 L9 4.5' stroke='%237a7d85' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 12px 12px;
            font: 500 12.5px var(--font-ui);
        }

        select:not([multiple]):hover {
            background-color: var(--bg-2);
            background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5 L6 8 L9 4.5' stroke='%23b3b6bd' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        }

        select:not([multiple]):focus {
            background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5 L6 8 L9 4.5' stroke='%23d99a3d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        }

        html[data-theme="light"] select:not([multiple]) {
            background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5 L6 8 L9 4.5' stroke='%237a7986' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        }

        html[data-theme="light"] select:not([multiple]):hover {
            background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5 L6 8 L9 4.5' stroke='%2335384a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        }

        html[data-theme="light"] select:not([multiple]):focus {
            background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5 L6 8 L9 4.5' stroke='%23a26418' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        }

        select:not([multiple])::-ms-expand { display: none; }

        select:not([multiple]) option {
            padding: 8px 10px;
            background: var(--bg);
            color: var(--fg);
            font: 500 12.5px var(--font-ui);
        }

        select:not([multiple]):disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* ---------- Custom select (multi) ---------- */

        select[multiple] {
            min-height: 144px;
            padding: 4px;
            background: var(--bg);
            border-radius: var(--radius-md);
            scrollbar-width: thin;
            scrollbar-color: var(--line-2) transparent;
        }

        select[multiple]:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--ring);
        }

        select[multiple]::-webkit-scrollbar { width: 8px; }
        select[multiple]::-webkit-scrollbar-track { background: transparent; }
        select[multiple]::-webkit-scrollbar-thumb {
            background: var(--line-2);
            border-radius: 999px;
            border: 2px solid transparent;
            background-clip: padding-box;
        }
        select[multiple]::-webkit-scrollbar-thumb:hover { background: var(--fg-3); background-clip: padding-box; }

        select[multiple] option {
            padding: 7px 10px;
            border-radius: 3px;
            margin-bottom: 1px;
            font: 500 12px var(--font-mono);
            color: var(--fg-2);
            background: transparent;
            transition: background 0.1s ease, color 0.1s ease;
        }

        select[multiple] option:hover {
            background: var(--bg-3);
            color: var(--fg);
        }

        select[multiple] option:checked {
            background: var(--accent-soft);
            color: var(--accent);
            box-shadow: inset 2px 0 0 var(--accent);
        }

        select[multiple] option:checked::before {
            content: "✓ ";
            color: var(--accent);
            font-weight: 600;
            margin-right: 4px;
        }

        /* ---------- Form-fancy select wrapper (optional, for richer chrome) ---------- */

        .select-wrap {
            position: relative;
            display: block;
        }

        .select-wrap::after {
            content: "";
            position: absolute;
            right: 11px;
            top: 50%;
            width: 12px;
            height: 12px;
            margin-top: -6px;
            pointer-events: none;
            background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5 L6 8 L9 4.5' stroke='%237a7d85' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-size: 12px 12px;
        }

        .multiselect-toolbar {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 6px;
            font: 500 9.5px var(--font-mono);
            letter-spacing: .08em;
            color: var(--fg-3);
            text-transform: uppercase;
        }

        .multiselect-toolbar .kbd { font-size: 9px; }

        /* ---------- Custom listbox (replaces native single-select popup) ---------- */

        .cselect {
            position: relative;
            width: 100%;
        }

        .cselect-native {
            position: absolute !important;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
            opacity: 0;
            pointer-events: none;
        }

        .cselect-trigger {
            appearance: none;
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 8px 11px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: var(--bg);
            color: var(--fg);
            font: 500 12.5px var(--font-ui);
            cursor: pointer;
            text-align: left;
            transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
        }

        .cselect-trigger:hover {
            border-color: var(--line-2);
            background: var(--bg-2);
        }

        .cselect-trigger:focus-visible {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--ring);
        }

        .cselect[data-open="true"] > .cselect-trigger {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--ring);
            background: var(--bg-2);
        }

        .cselect-value {
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .cselect-value.is-placeholder {
            color: var(--fg-3);
        }

        .cselect-chevron {
            display: inline-flex;
            color: var(--fg-3);
            transition: transform 0.15s ease, color 0.15s ease;
        }

        .cselect-chevron svg {
            width: 12px;
            height: 12px;
            display: block;
        }

        .cselect[data-open="true"] > .cselect-trigger .cselect-chevron {
            color: var(--accent);
            transform: rotate(180deg);
        }

        .cselect-popup {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            right: 0;
            min-width: 100%;
            max-height: 280px;
            overflow-y: auto;
            padding: 4px;
            border: 1px solid var(--line-2);
            border-radius: var(--radius-md);
            background: var(--bg-2);
            box-shadow:
                0 12px 28px -8px var(--shadow-color-lg),
                0 4px 10px -4px var(--shadow-color-md);
            z-index: 100;
            scrollbar-width: thin;
            scrollbar-color: var(--line-2) transparent;
            animation: cselectIn 0.12s ease both;
        }

        @keyframes cselectIn {
            from { opacity: 0; transform: translateY(-4px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .cselect-popup[hidden] { display: none; }

        .cselect-popup::-webkit-scrollbar { width: 8px; }
        .cselect-popup::-webkit-scrollbar-track { background: transparent; }
        .cselect-popup::-webkit-scrollbar-thumb {
            background: var(--line-2);
            border-radius: 999px;
            border: 2px solid transparent;
            background-clip: padding-box;
        }
        .cselect-popup::-webkit-scrollbar-thumb:hover { background: var(--fg-3); background-clip: padding-box; }

        .cselect-popup[data-flip="up"] {
            top: auto;
            bottom: calc(100% + 4px);
            animation: cselectInUp 0.12s ease both;
        }

        @keyframes cselectInUp {
            from { opacity: 0; transform: translateY(4px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .cselect-search {
            padding: 6px 8px;
            margin: -4px -4px 4px;
            border-bottom: 1px solid var(--line);
            background: var(--bg-2);
            position: sticky;
            top: -4px;
            z-index: 1;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .cselect-search input {
            border: 0;
            background: transparent;
            padding: 4px 0;
            color: var(--fg);
            font: 500 12px var(--font-mono);
            box-shadow: none;
        }
        .cselect-search input:focus {
            box-shadow: none;
            border: 0;
        }
        .cselect-search-icon {
            color: var(--fg-3);
            width: 12px;
            height: 12px;
            display: inline-flex;
        }

        .cselect-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 7px 10px;
            border-radius: 4px;
            color: var(--fg-2);
            font: 500 12px var(--font-mono);
            cursor: pointer;
            user-select: none;
            transition: background 0.1s ease, color 0.1s ease;
        }

        .cselect-option-check {
            width: 12px;
            height: 12px;
            display: inline-flex;
            color: var(--accent);
            opacity: 0;
            flex-shrink: 0;
        }

        .cselect-option-label {
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .cselect-option:hover,
        .cselect-option[data-active="true"] {
            background: var(--bg-3);
            color: var(--fg);
        }

        .cselect-option[aria-selected="true"] {
            background: var(--accent-soft);
            color: var(--accent);
            box-shadow: inset 2px 0 0 var(--accent);
        }

        .cselect-option[aria-selected="true"] .cselect-option-check {
            opacity: 1;
        }

        .cselect-option[aria-selected="true"][data-active="true"] {
            background: oklch(from var(--accent) l c h / .22);
        }

        .cselect-empty {
            padding: 10px 12px;
            font: 500 11px var(--font-mono);
            color: var(--fg-3);
            text-align: center;
            letter-spacing: .04em;
            text-transform: uppercase;
        }

        .cselect-group-label {
            padding: 8px 10px 4px;
            font: 500 9.5px var(--font-mono);
            letter-spacing: .1em;
            color: var(--fg-3);
            text-transform: uppercase;
        }

        /* ---------- Toggle row ---------- */

        .toggle-row {
            grid-column: 1 / -1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 12px 14px;
            border-radius: var(--radius-md);
            border: 1px solid var(--line);
            background: var(--bg-2);
            transition: border-color 0.15s ease, background 0.15s ease;
        }

        .toggle-row-pair {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }
        .toggle-row-pair .toggle-row {
            grid-column: auto;
            margin: 0;
        }

        .toggle-row:hover {
            border-color: var(--line-2);
            background: var(--bg-3);
        }

        .toggle-copy { display: flex; flex-direction: column; gap: 4px; }
        .toggle-copy strong {
            font-size: 0.86rem;
            font-weight: 600;
            color: var(--fg);
        }
        .toggle-copy span {
            color: var(--fg-3);
            font-size: 0.78rem;
        }

        .switch {
            position: relative;
            width: 38px;
            height: 22px;
            flex-shrink: 0;
        }
        .switch input {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
            margin: 0;
            z-index: 2;
        }
        .slider {
            position: absolute;
            inset: 0;
            border-radius: 999px;
            background: var(--line-2);
            transition: background 0.15s ease;
        }
        .slider::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--fg);
            box-shadow: 0 1px 2px var(--shadow-color-lg);
            transition: transform 0.15s ease;
        }
        .switch input:checked + .slider { background: var(--accent); }
        .switch input:checked + .slider::after {
            background: var(--accent-on);
            transform: translateX(16px);
        }

        /* ---------- Buttons ---------- */

        .actions {
            grid-column: 1 / -1;
            display: flex;
            gap: 8px;
            margin-top: 6px;
        }

        .button {
            appearance: none;
            border: 0;
            border-radius: var(--radius-sm);
            padding: 8px 14px;
            font: 500 12.5px var(--font-ui);
            cursor: pointer;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        }

        .button-primary {
            color: var(--accent-on);
            background: var(--accent);
            border: 1px solid var(--accent);
        }
        .button-primary:hover {
            background: var(--accent-d);
            border-color: var(--accent-d);
        }

        .button-secondary {
            color: var(--fg);
            background: var(--bg-3);
            border: 1px solid var(--line-2);
        }
        .button-secondary:hover {
            background: var(--bg-2);
            border-color: var(--fg-3);
            color: var(--fg);
        }

        /* ---------- Asset/results panel ---------- */

        .asset-panel { padding: 18px; }

        .results-toolbar {
            position: sticky;
            top: 12px;
            z-index: 20;
            margin-top: 16px;
            padding: 12px;
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            background: var(--bg-2);
        }

        .toolbar-main {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
        }

        .toolbar-copy strong {
            display: block;
            font-size: 0.88rem;
            color: var(--fg);
            font-weight: 600;
        }

        .toolbar-copy p {
            margin: 4px 0 0;
            color: var(--fg-3);
            font-size: 0.78rem;
            line-height: 1.55;
        }

        .toolbar-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
        }

        .toolbar-search {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: min(100%, 280px);
            padding: 0 10px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: var(--bg);
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        .toolbar-search:focus-within {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--ring);
        }
        .toolbar-search svg {
            width: 14px;
            height: 14px;
            color: var(--fg-3);
            flex-shrink: 0;
        }
        .toolbar-search input {
            border: 0;
            padding-left: 0;
            padding-right: 0;
            background: transparent;
            box-shadow: none;
        }
        .toolbar-search input:focus {
            box-shadow: none;
            background: transparent;
        }

        .toolbar-button {
            appearance: none;
            cursor: pointer;
        }

        .toolbar-button--primary {
            color: var(--accent-on);
            background: var(--accent);
            border-color: var(--accent);
        }
        .toolbar-button--primary:hover {
            background: var(--accent-d);
            border-color: var(--accent-d);
            color: var(--accent-on);
        }

        .search-empty-state { margin-top: 14px; }

        .asset-list {
            display: grid;
            gap: 14px;
            margin-top: 18px;
        }

        .asset-panel-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 16px;
        }

        /* ---------- Pagination ---------- */

        .pagination {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 5px;
            margin-top: 20px;
        }

        .pagination-summary {
            width: 100%;
            text-align: center;
            color: var(--fg-3);
            font: 500 10.5px var(--font-mono);
            letter-spacing: .04em;
            text-transform: uppercase;
            margin-bottom: 4px;
        }

        .pagination-link {
            min-width: 30px;
            height: 30px;
            padding: 0 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-sm);
            border: 1px solid var(--line);
            background: var(--bg-2);
            color: var(--fg-2);
            font: 500 12px var(--font-mono);
            text-decoration: none;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        }
        .pagination-link:hover {
            background: var(--bg-3);
            border-color: var(--line-2);
            color: var(--fg);
        }
        .pagination-link.is-active {
            border-color: var(--accent);
            background: var(--accent);
            color: var(--accent-on);
        }
        .pagination-link.is-disabled {
            opacity: 0.45;
            pointer-events: none;
            cursor: not-allowed;
        }
        .pagination-ellipsis {
            min-width: 22px;
            text-align: center;
            color: var(--fg-3);
            user-select: none;
        }

        /* ---------- Scope card (asset list grouping) ---------- */

        .scope-card {
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            background: var(--bg-2);
            overflow: hidden;
            contain: layout paint style;
            transition: border-color 0.15s ease;
        }

        .scope-card[data-reveal="pending"] {
            opacity: 0;
            transform: translateY(8px);
        }
        .scope-card[data-reveal="visible"] {
            opacity: 1;
            transform: translateY(0);
            transition:
                opacity 0.3s ease,
                transform 0.3s ease,
                border-color 0.15s ease;
            transition-delay: var(--stagger-delay, 0ms);
        }

        .scope-card:hover { border-color: var(--line-2); }

        .scope-header {
            width: 100%;
            border: 0;
            background: var(--bg-2);
            color: inherit;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 14px 16px;
            cursor: pointer;
            text-align: left;
            font: inherit;
            transition: background 0.15s ease;
        }
        .scope-header:hover { background: var(--bg-3); }

        .scope-header-main {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .scope-icon {
            width: 32px;
            height: 32px;
            flex-shrink: 0;
            display: grid;
            place-items: center;
            border-radius: 6px;
            color: var(--accent);
            background: var(--accent-soft);
        }

        .scope-icon svg,
        .scope-chevron svg {
            width: 16px;
            height: 16px;
        }

        .scope-title { min-width: 0; }
        .scope-title-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .scope-title strong {
            display: block;
            font: 500 0.92rem/1.2 var(--font-mono);
            color: var(--fg);
            letter-spacing: -0.005em;
            word-break: break-word;
        }

        .scope-count {
            display: inline-flex;
            align-items: center;
            padding: 2px 7px;
            border-radius: 3px;
            background: var(--accent-soft);
            color: var(--accent);
            font: 500 10px var(--font-mono);
            letter-spacing: .04em;
            text-transform: uppercase;
            line-height: 1.4;
        }

        .scope-title span {
            display: block;
            margin-top: 2px;
            color: var(--fg-3);
            font-size: 0.78rem;
        }

        .scope-chevron {
            width: 26px;
            height: 26px;
            flex-shrink: 0;
            display: grid;
            place-items: center;
            border-radius: 5px;
            color: var(--fg-3);
            background: var(--bg-3);
            transition: transform 0.2s ease, color 0.15s ease, background 0.15s ease;
        }

        .scope-header[aria-expanded="true"] .scope-chevron {
            transform: rotate(180deg);
            color: var(--accent);
            background: var(--accent-soft);
        }

        .scope-content { padding: 0 16px 16px; }
        .scope-content[hidden] { display: none; }
        .scope-content:not([hidden]) {
            animation: slideDown 0.2s ease both;
        }

        /* ---------- Tables ---------- */

        .table-shell {
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            background: var(--bg-2);
        }
        .table-scroll { overflow-x: auto; }
        .table-scroll::-webkit-scrollbar { height: 8px; }
        .table-scroll::-webkit-scrollbar-track { background: var(--bg); }
        .table-scroll::-webkit-scrollbar-thumb {
            border-radius: 999px;
            background: var(--line-2);
            border: 2px solid transparent;
            background-clip: padding-box;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            min-width: 720px;
        }

        thead { background: var(--bg-2); }

        thead th {
            position: sticky;
            top: 0;
            z-index: 1;
            background: var(--bg-2);
            border-bottom: 1px solid var(--line);
        }

        th, td {
            padding: 10px 14px;
            border-bottom: 1px solid var(--line);
            text-align: left;
            vertical-align: middle;
            font: 400 12.5px var(--font-ui);
        }

        th {
            font: 500 10.5px var(--font-mono);
            color: var(--fg-3);
            text-transform: uppercase;
            letter-spacing: .06em;
        }

        tbody tr {
            transition: background 0.12s ease;
        }
        tbody tr:hover { background: var(--bg-3); }
        tbody tr:last-child td { border-bottom: 0; }

        td.title {
            width: 22%;
            color: var(--fg);
            font-size: 0.86rem;
            line-height: 1.55;
        }
        td.technologies { width: 24%; }

        .url-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font: 500 0.86rem var(--font-mono);
            color: var(--accent);
        }
        .url-link svg {
            width: 12px;
            height: 12px;
            flex-shrink: 0;
            transition: transform 0.15s ease;
        }
        .url-link:hover { color: var(--accent-d); }
        .url-link:hover svg { transform: translate(1px, -1px); }

        /* ---------- Badges ---------- */

        .badge-list {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            border-radius: 3px;
            background: var(--bg-3);
            color: var(--fg-2);
            font: 500 11px var(--font-mono);
            letter-spacing: .02em;
            line-height: 1.5;
            cursor: default;
            border: 1px solid var(--line);
            transition: background 0.15s ease, color 0.15s ease;
        }
        .badge:hover {
            background: var(--bg-4);
            color: var(--fg);
        }

        .badge--success {
            background: var(--badge-success-bg);
            color: var(--badge-success-fg);
            border-color: oklch(var(--sev-l) var(--sev-c) var(--sev-ok-h) / .35);
        }
        .badge--success:hover {
            background: var(--badge-success-bg-hover);
            color: var(--badge-success-fg-hover);
        }

        .badge--info {
            background: var(--badge-info-bg);
            color: var(--badge-info-fg);
            border-color: oklch(var(--sev-l) var(--sev-c) var(--sev-low-h) / .35);
        }
        .badge--info:hover {
            background: var(--badge-info-bg-hover);
            color: var(--badge-info-fg-hover);
        }

        .badge--warn {
            background: var(--badge-warn-bg);
            color: var(--badge-warn-fg);
            border-color: oklch(var(--sev-l) var(--sev-c) var(--sev-high-h) / .35);
        }
        .badge--warn:hover {
            background: var(--badge-warn-bg-hover);
            color: var(--badge-warn-fg-hover);
        }

        .badge--danger {
            background: var(--badge-danger-bg);
            color: var(--badge-danger-fg);
            border-color: oklch(var(--sev-l) var(--sev-c) var(--sev-crit-h) / .35);
        }
        .badge--danger:hover {
            background: var(--badge-danger-bg-hover);
            color: var(--badge-danger-fg-hover);
        }

        .badge--muted {
            background: var(--bg-3);
            color: var(--fg-3);
        }
        .badge--muted:hover {
            background: var(--bg-4);
            color: var(--fg-2);
        }

        .badge--mono {
            font-family: var(--font-mono);
            font-size: 0.78rem;
        }

        /* ---------- Screenshot button (asset list) ---------- */

        .screenshot-button {
            appearance: none;
            width: 100%;
            min-width: 220px;
            height: 150px;
            padding: 0;
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            background: var(--bg-3);
            overflow: hidden;
            cursor: pointer;
            position: relative;
            transition: border-color 0.15s ease, transform 0.15s ease;
        }
        .screenshot-button:hover {
            transform: translateY(-1px);
            border-color: var(--accent);
        }
        .screenshot-button img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.25s ease;
        }
        .screenshot-button:hover img { transform: scale(1.02); }

        .screenshot-button::after {
            content: 'Preview';
            position: absolute;
            right: 8px;
            bottom: 8px;
            padding: 3px 8px;
            border-radius: 3px;
            background: var(--bg-2);
            border: 1px solid var(--line);
            color: var(--fg-2);
            font: 500 10px var(--font-mono);
            letter-spacing: .04em;
            text-transform: uppercase;
            opacity: 0;
            transform: translateY(4px);
            transition: opacity 0.15s ease, transform 0.15s ease;
        }
        .screenshot-button:hover::after {
            opacity: 1;
            transform: translateY(0);
        }

        /* ---------- Empty state ---------- */

        .empty-state {
            display: grid;
            place-items: center;
            gap: 8px;
            min-height: 200px;
            border: 1px dashed var(--line-2);
            border-radius: var(--radius-md);
            color: var(--fg-3);
            text-align: center;
            padding: 22px;
            background: var(--bg-2);
        }
        .empty-state svg {
            width: 26px;
            height: 26px;
            color: var(--fg-3);
        }
        .empty-state strong {
            display: block;
            font-size: 0.9rem;
            color: var(--fg);
            font-weight: 600;
        }
        .empty-state p {
            margin: 4px 0 0;
            line-height: 1.55;
            font-size: 0.82rem;
        }

        /* ---------- Modal ---------- */

        .modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: var(--modal-overlay);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        .modal.is-visible {
            display: flex;
            opacity: 1;
        }
        .modal-dialog {
            width: min(1100px, 100%);
            max-height: calc(100vh - 48px);
            position: relative;
            animation: modalIn 0.25s ease both;
        }
        .modal-content {
            position: relative;
            padding: 10px;
            border-radius: var(--radius-lg);
            border: 1px solid var(--line-2);
            background: var(--bg-2);
            box-shadow: 0 10px 30px var(--shadow-color-lg);
        }
        .modal-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 1px solid var(--line-2);
            background: var(--bg-2);
            color: var(--fg-2);
            display: grid;
            place-items: center;
            cursor: pointer;
            z-index: 2;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        }
        .modal-close:hover {
            background: var(--bg-3);
            border-color: var(--accent);
            color: var(--fg);
        }
        .modal-close svg { width: 14px; height: 14px; }
        .modal-img {
            width: 100%;
            max-height: calc(100vh - 120px);
            object-fit: contain;
            border-radius: var(--radius-md);
        }

        /* ---------- Back to top ---------- */

        .back-to-top {
            position: fixed;
            right: 22px;
            bottom: 22px;
            width: 40px;
            height: 40px;
            border: 1px solid var(--line-2);
            border-radius: 50%;
            display: inline-grid;
            place-items: center;
            color: var(--fg-2);
            background: var(--bg-2);
            box-shadow: 0 2px 6px var(--shadow-color-md);
            cursor: pointer;
            opacity: 0;
            pointer-events: none;
            transform: translateY(8px);
            transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
            z-index: 30;
        }
        .back-to-top.is-visible {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }
        .back-to-top:hover {
            background: var(--bg-3);
            color: var(--fg);
            border-color: var(--accent);
        }
        .back-to-top svg { width: 16px; height: 16px; }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* ---------- Responsive ---------- */

        @media (max-width: 1120px) {
            .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }

        @media (max-width: 860px) {
            .page-shell {
                width: min(100% - 20px, 1400px);
                padding-top: 18px;
            }
            .topbar { margin-bottom: 16px; }
            .filter-grid { grid-template-columns: 1fr; }
            .hero-grid { grid-template-columns: 1fr; }
            .hero-copy h1 { max-width: none; }
            .hero-stat-grid { grid-template-columns: 1fr; }
            .results-toolbar { position: static; }
            .toolbar-main, .toolbar-actions { align-items: stretch; }
            .toolbar-actions { width: 100%; justify-content: stretch; }
            .toolbar-search { min-width: 100%; }
            .toolbar-button { flex: 1 1 160px; }
            .actions { flex-direction: column; }
            .toggle-row-pair { grid-template-columns: 1fr; }
            .button-secondary, .button-primary { width: 100%; }
        }

        @media (max-width: 640px) {
            .brand { width: 100%; }
            .hero-panel { padding: 16px; }
            .asset-panel,
            .filter-panel,
            .top-filter-panel { padding: 14px; }
            .results-toolbar { padding: 10px; }
            .scope-header,
            .scope-content { padding-left: 12px; padding-right: 12px; }
            th, td { padding: 9px 11px; }
            .screenshot-button { min-width: 180px; height: 132px; }
            .modal { padding: 12px; }
            .modal-content { padding: 8px; border-radius: var(--radius-md); }
            .back-to-top { right: 14px; bottom: 14px; }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            .reveal { opacity: 1; transform: none; }
        }

        /* ---------- App shell (sidebar + main) ---------- */

        .app-shell {
            display: grid;
            grid-template-columns: 200px minmax(0, 1fr);
            min-height: 100vh;
            position: relative;
            z-index: 1;
        }

        .sidebar {
            position: sticky;
            top: 0;
            height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 14px 10px 12px;
            border-right: 1px solid var(--line);
            background: var(--bg);
            z-index: 10;
        }

        .sidebar-inner {
            flex: 1;
            min-height: 0;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .sidebar-brand {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 4px 6px 12px;
        }

        .sidebar-brand-mark {
            width: 22px;
            height: 22px;
            flex-shrink: 0;
            display: grid;
            place-items: center;
            color: var(--accent);
        }
        .sidebar-brand-mark svg {
            width: 20px;
            height: 20px;
            overflow: visible;
        }
        .sidebar-brand-mark .radar-sweep {
            transform-origin: 10px 10px;
            transform-box: view-box;
            animation: iseeRadarSweep 3.2s linear infinite;
            will-change: transform;
        }
        .sidebar-brand-mark .radar-core {
            transform-origin: 10px 10px;
            transform-box: view-box;
            animation: iseeRadarPulse 2.4s ease-in-out infinite;
        }
        @keyframes iseeRadarSweep {
            from { transform: rotate(0deg); }
            to   { transform: rotate(360deg); }
        }
        @keyframes iseeRadarPulse {
            0%, 100% { opacity: 1; }
            50%      { opacity: 0.5; }
        }
        @media (prefers-reduced-motion: reduce) {
            .sidebar-brand-mark .radar-sweep,
            .sidebar-brand-mark .radar-core { animation: none; }
        }

        .sidebar-brand-copy {
            display: flex;
            align-items: baseline;
            gap: 6px;
            min-width: 0;
            flex: 1;
        }

        .sidebar-brand-copy strong {
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--fg);
        }

        .sidebar-brand-copy span {
            margin-left: auto;
            color: var(--fg-3);
            font: 500 9.5px var(--font-mono);
            letter-spacing: .04em;
            white-space: nowrap;
        }

        .sidebar-section {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }

        .sidebar-section-label {
            margin: 6px 8px 4px;
            font: 500 9.5px var(--font-mono);
            letter-spacing: .1em;
            text-transform: uppercase;
            color: var(--fg-3);
        }

        .sidebar-link {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 7px 10px;
            border-radius: 5px;
            color: var(--fg-2);
            font-size: 12.5px;
            font-weight: 500;
            text-decoration: none;
            transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
        }

        .sidebar-link:hover {
            background: var(--bg-2);
            color: var(--fg);
        }

        .sidebar-link:focus-visible {
            outline: 2px solid var(--ring-strong);
            outline-offset: 2px;
        }

        .sidebar-link.is-active {
            background: var(--bg-3);
            color: var(--fg);
            box-shadow: inset 2px 0 0 var(--accent);
        }

        .sidebar-link-icon {
            width: 22px;
            height: 22px;
            flex-shrink: 0;
            display: grid;
            place-items: center;
            border-radius: 4px;
            color: var(--fg-3);
            transition: color 0.12s ease;
        }

        .sidebar-link:hover .sidebar-link-icon { color: var(--fg); }
        .sidebar-link.is-active .sidebar-link-icon { color: var(--accent); }

        .sidebar-link-icon svg {
            width: 14px;
            height: 14px;
        }

        .sidebar-link-label {
            flex: 1;
            min-width: 0;
        }

        .sidebar-engagement {
            margin-top: auto;
            padding: 10px;
            border: 1px solid var(--line);
            border-radius: 5px;
            background: var(--bg-2);
        }

        .sidebar-engagement-label {
            font: 500 9.5px var(--font-mono);
            color: var(--fg-3);
            letter-spacing: .08em;
            text-transform: uppercase;
            margin-bottom: 6px;
        }

        .sidebar-engagement-name {
            font-size: 12px;
            font-weight: 500;
            color: var(--fg);
        }

        .sidebar-engagement-meta {
            font: 500 10px var(--font-mono);
            color: var(--fg-3);
            margin-top: 2px;
        }

        .sidebar-footer {
            padding: 10px 8px 0;
            border-top: 1px solid var(--line);
            color: var(--fg-3);
            font: 500 10px var(--font-mono);
            letter-spacing: .04em;
            line-height: 1.5;
            margin-top: 8px;
        }

        .app-main {
            position: relative;
            min-width: 0;
            background: var(--bg);
        }

        .app-main .page-shell {
            width: min(1280px, calc(100% - 32px));
            padding-top: 22px;
        }

        @media (max-width: 960px) {
            .app-shell { grid-template-columns: 1fr; }
            .sidebar {
                position: static;
                height: auto;
                padding: 12px 14px;
                border-right: 0;
                border-bottom: 1px solid var(--line);
            }
            .sidebar-inner {
                flex-direction: row;
                align-items: center;
                gap: 12px;
                flex-wrap: wrap;
            }
            .sidebar-brand { padding: 0; }
            .sidebar-section {
                flex-direction: row;
                gap: 4px;
                margin-left: auto;
            }
            .sidebar-section-label { display: none; }
            .sidebar-link { padding: 6px 10px; }
            .sidebar-engagement { display: none; }
            .sidebar-footer { display: none; }
        }

        @media (max-width: 520px) {
            .sidebar-inner { gap: 10px; }
            .sidebar-section {
                margin-left: 0;
                width: 100%;
                justify-content: flex-start;
                flex-wrap: wrap;
            }
            .sidebar-link-label { font-size: 12px; }
        }

        /* ---------- Theme toggle ---------- */

        .theme-toggle {
            appearance: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 5px 8px;
            border: 1px solid var(--line);
            border-radius: 4px;
            background: transparent;
            color: var(--fg-2);
            font: 500 10.5px var(--font-mono);
            letter-spacing: .06em;
            text-transform: uppercase;
            cursor: pointer;
            text-align: left;
            transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
        }

        .theme-toggle:hover {
            background: var(--bg-2);
            border-color: var(--line-2);
            color: var(--fg);
        }

        .theme-toggle:focus-visible {
            outline: 2px solid var(--ring-strong);
            outline-offset: 2px;
        }

        .theme-toggle-icon {
            width: 14px;
            height: 14px;
            flex-shrink: 0;
            display: grid;
            place-items: center;
            color: var(--fg-2);
            transition: color 0.12s ease;
        }

        .theme-toggle:hover .theme-toggle-icon { color: var(--accent); }

        .theme-toggle-icon svg {
            width: 14px;
            height: 14px;
        }

        .theme-toggle-icon-sun,
        .theme-toggle-label-light {
            display: none;
        }

        .theme-toggle-icon-moon,
        .theme-toggle-label-dark {
            display: inline-flex;
        }

        html[data-theme="light"] .theme-toggle-icon-sun,
        html[data-theme="light"] .theme-toggle-label-light {
            display: inline-flex;
        }

        html[data-theme="light"] .theme-toggle-icon-moon,
        html[data-theme="light"] .theme-toggle-label-dark {
            display: none;
        }

        .theme-toggle-label {
            min-width: 0;
        }

        .sidebar-controls {
            display: flex;
            gap: 6px;
            margin-top: 10px;
        }

        .sidebar-controls .theme-toggle {
            width: 100%;
            justify-content: center;
        }

        @media (max-width: 960px) {
            .sidebar-controls {
                margin-top: 0;
                margin-left: auto;
            }
            .sidebar-controls .theme-toggle {
                width: auto;
            }
        }
