
        :root {
            --ezsx-accent: #3680ED;
            --ezsx-accent-2: #2060C0;
            --ezsx-accent-3: #3680ED;
            --ezsx-accent-soft: #CFE0FA;
            --ezsx-accent-tint: #EAF2FD;
            --ezsx-ink: #0f172a;
            --ezsx-ink-2: #1e293b;
            --ezsx-mute: #64748b;
            --ezsx-mute-2: #94a3b8;
            --ezsx-line: #e5e7eb;
            --ezsx-line-2: #f1f5f9;
            --ezsx-bg: #ffffff;
            --ezsx-bg-2: #f8fafc;
            --ezsx-shadow: 0 32px 80px rgba(15, 23, 42, .28), 0 8px 24px rgba(15, 23, 42, .14);
            --ezsx-radius: 30px;
        }

        /* ---------- root + backdrop ---------- */
        /*  CRITICAL: the overlay is mounted on EVERY page so its fixed children
            must NOT capture pointer events when closed — otherwise the invisible
            backdrop covers the whole viewport and nothing on the site is clickable.
            Default state = invisible AND untouchable; .is-open re-enables both. */
        .ezsx { position: relative; z-index: 2147483000; }
        body.ezsx-open { overflow: hidden !important; }

        .ezsx-backdrop {
            position: fixed; inset: 0;
            background: rgba(0, 0, 0, .45);
            -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
            opacity: 0;
            pointer-events: none;    /* off by default → page underneath is clickable */
            transition: opacity .22s ease;
            z-index: 2147483001;
        }
        .ezsx.is-open .ezsx-backdrop {
            opacity: 1;
            pointer-events: auto;    /* click-to-close active only while open */
        }

        /* ---------- shell (modal card) ---------- */
        .ezsx-shell {
            position: fixed;
            top: 50%; left: 50%;
            transform: translate(-50%, -46%) scale(.98);
            width: min(1200px, 96vw);
            max-height: 90vh;
            background: var(--ezsx-bg);
            border-radius: var(--ezsx-radius);
            box-shadow: var(--ezsx-shadow);
            display: flex; flex-direction: column;
            overflow: hidden;
            opacity: 0;
            pointer-events: none;
            transition: opacity .22s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
            z-index: 2147483002;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
            color: var(--ezsx-ink);
        }
        .ezsx.is-open .ezsx-shell {
            opacity: 1;
            pointer-events: auto;
            transform: translate(-50%, -50%) scale(1);
        }

        /* ---------- header ---------- */
        .ezsx-head {
            display: flex; align-items: center; gap: 16px;
            padding: 22px 26px 18px;
            border-bottom: 1px solid var(--ezsx-line-2);
            background: linear-gradient(180deg, #fff 0%, #fdfdfd 100%);
        }
        .ezsx-brand {
            width: 46px; height: 46px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--ezsx-accent-3) 0%, var(--ezsx-accent-2) 100%);
            display: inline-flex; align-items: center; justify-content: center;
            box-shadow: 0 8px 20px rgba(54, 128, 237, .32);
            flex-shrink: 0;
        }
        .ezsx-brand svg { width: 24px; height: 24px; color: #fff; }
        /* When an admin-editable brand icon is present we switch to a soft white
           tile so the colorful logo reads faithfully instead of dying on red. */
        .ezsx-brand:has(.ezsx-brand-img) {
            background: #fff;
            box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
            border: 1px solid var(--ezsx-line);
        }
        .ezsx-brand-img { width: 32px; height: 32px; object-fit: contain; display: block; }
        .ezsx-brand-fallback { display: inline-flex; color: #fff; }

        .ezsx-input-wrap {
            position: relative; flex: 1;
            display: flex; align-items: center;
        }
        .ezsx-input-ico {
            position: absolute; left: 18px; top: 50%;
            transform: translateY(-50%);
            width: 20px; height: 20px;
            color: var(--ezsx-mute-2);
            pointer-events: none;
        }
        .ezsx-input {
            width: 100%;
            height: 54px;
            padding: 0 96px 0 50px;
            border: 1.5px solid var(--ezsx-line);
            border-radius: 16px;
            font-size: 17px;
            font-weight: 500;
            color: var(--ezsx-ink);
            background: var(--ezsx-bg-2);
            outline: none;
            transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
        }
        .ezsx-input::placeholder { color: var(--ezsx-mute-2); font-weight: 400; }
        .ezsx-input:focus {
            border-color: var(--ezsx-accent);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(54, 128, 237, .10);
        }

        .ezsx-kbd {
            position: absolute; right: 14px; top: 50%;
            transform: translateY(-50%);
            display: inline-flex; align-items: center; gap: 4px;
            padding: 6px 10px;
            background: #fff;
            border: 1px solid var(--ezsx-line);
            border-radius: 8px;
            font-size: 11px; font-weight: 600;
            color: var(--ezsx-mute);
            letter-spacing: .3px;
            box-shadow: 0 1px 0 var(--ezsx-line);
        }
        .ezsx-kbd kbd {
            font-family: inherit; font-size: 11px; font-weight: 700;
            color: var(--ezsx-ink-2);
            background: transparent; border: 0; padding: 0;
        }
        .ezsx-kbd-plus { color: var(--ezsx-mute-2); font-weight: 600; padding: 0 1px; }

        /* Kind pill on result cards (Tool / Blog / Page) */
        .ezsx-kind {
            display: inline-block; vertical-align: middle;
            margin-left: 6px;
            padding: 2px 7px; border-radius: 999px;
            background: var(--ezsx-accent-tint); color: var(--ezsx-accent-2);
            font-size: 10px; font-weight: 700; letter-spacing: .3px;
            text-transform: uppercase;
        }

        .ezsx-close {
            width: 44px; height: 44px;
            border: 0; padding: 0; cursor: pointer;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--ezsx-accent-3) 0%, var(--ezsx-accent-2) 100%);
            color: #fff;
            display: inline-flex; align-items: center; justify-content: center;
            box-shadow: 0 6px 16px rgba(54, 128, 237, .30);
            transition: transform .16s ease, box-shadow .16s ease;
            flex-shrink: 0;
        }
        .ezsx-close:hover { transform: rotate(90deg); box-shadow: 0 8px 22px rgba(54, 128, 237, .40); }
        .ezsx-close svg { width: 18px; height: 18px; }

        /* ---------- category strip ---------- */
        .ezsx-tabs {
            display: flex; flex-wrap: wrap; gap: 8px;
            padding: 14px 26px;
            border-bottom: 1px solid var(--ezsx-line-2);
            overflow-x: auto;
            scrollbar-width: none;
        }
        .ezsx-tabs::-webkit-scrollbar { display: none; }
        .ezsx-tab {
            border: 1px solid var(--ezsx-line);
            background: #fff;
            color: var(--ezsx-ink-2);
            padding: 8px 14px;
            border-radius: 999px;
            font-size: 13px; font-weight: 600;
            cursor: pointer; white-space: nowrap;
            display: inline-flex; align-items: center; gap: 6px;
            transition: all .16s ease;
        }
        .ezsx-tab:hover { border-color: var(--ezsx-accent-soft); background: var(--ezsx-accent-tint); color: var(--ezsx-accent-2); }
        .ezsx-tab.is-active {
            background: var(--ezsx-accent);
            color: #fff;
            border-color: var(--ezsx-accent);
            box-shadow: 0 4px 12px rgba(54, 128, 237, .28);
        }
        .ezsx-tab-ico {
            width: 16px; height: 16px;
            display: inline-flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            line-height: 1;
            color: currentColor;
        }
        .ezsx-tab-ico svg {
            width: 16px; height: 16px;
            display: block;
            stroke: currentColor;
            stroke-width: 2;
            fill: none;
        }
        .ezsx-tab.is-active .ezsx-tab-ico svg { stroke: #fff; }

        /* ---------- body ---------- */
        .ezsx-body {
            flex: 1;
            overflow-y: auto;
            padding: 24px 26px 20px;
        }
        .ezsx-body::-webkit-scrollbar { width: 8px; }
        .ezsx-body::-webkit-scrollbar-thumb { background: var(--ezsx-line); border-radius: 8px; }

        .ezsx-cols {
            display: grid;
            grid-template-columns: 1fr 1.35fr 1fr;
            gap: 22px;
        }
        @media (max-width: 960px) {
            .ezsx-cols { grid-template-columns: 1fr; }
        }

        .ezsx-col-title {
            display: flex; align-items: center; gap: 8px;
            font-size: 13px; font-weight: 700;
            color: var(--ezsx-ink);
            text-transform: uppercase; letter-spacing: .6px;
            margin: 0 0 14px 2px;
        }
        .ezsx-col-title svg { width: 16px; height: 16px; color: var(--ezsx-accent); }

        /* ---------- popular list ---------- */
        .ezsx-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
        .ezsx-list-btn {
            width: 100%;
            display: flex; align-items: center; gap: 10px;
            padding: 10px 12px;
            border: 1px solid transparent;
            background: transparent;
            border-radius: 12px;
            cursor: pointer;
            font-size: 14px; color: var(--ezsx-ink-2); font-weight: 500;
            text-align: left;
            transition: all .14s ease;
            text-decoration: none;
        }
        .ezsx-list-btn:hover {
            background: var(--ezsx-accent-tint);
            border-color: var(--ezsx-accent-soft);
            color: var(--ezsx-accent-2);
        }
        .ezsx-list-btn .ezsx-rank {
            display: inline-flex; align-items: center; justify-content: center;
            width: 22px; height: 22px;
            border-radius: 6px;
            background: var(--ezsx-bg-2);
            color: var(--ezsx-mute);
            font-size: 11px; font-weight: 700;
            flex-shrink: 0;
        }
        .ezsx-list-btn, .ezsx-list-btn * { text-decoration: none !important; }
        .ezsx-list-btn:hover .ezsx-rank { background: var(--ezsx-accent); color: #fff; }
        .ezsx-list-btn:hover .ezsx-label { color: var(--ezsx-accent-2); font-weight: 700; }
        .ezsx-list-btn .ezsx-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .ezsx-list-btn .ezsx-count { font-size: 11px; color: var(--ezsx-mute-2); font-weight: 600; }

        /* ---------- discover cards ---------- */
        .ezsx-cards { display: flex; flex-direction: column; gap: 10px; }
        .ezsx-card {
            display: flex; align-items: center; gap: 12px;
            padding: 12px;
            border: 1px solid var(--ezsx-line);
            border-radius: 14px;
            text-decoration: none;
            color: inherit;
            background: #fff;
            transition: all .16s ease;
            position: relative;
        }
        .ezsx-card, .ezsx-card * { text-decoration: none !important; }
        .ezsx-card:hover {
            border-color: var(--ezsx-accent-soft);
            background: linear-gradient(180deg, #fff 0%, var(--ezsx-accent-tint) 140%);
            transform: translateY(-1px);
            box-shadow: 0 10px 26px rgba(54, 128, 237, .12);
        }
        .ezsx-card:hover .ezsx-card-title { color: var(--ezsx-accent-2); }
        .ezsx-card:hover .ezsx-card-ico {
            transform: scale(1.06);
            border-color: var(--ezsx-accent);
            background: linear-gradient(135deg, #fff 0%, var(--ezsx-accent-tint) 100%);
        }
        .ezsx-card-ico { transition: transform .16s ease, background .16s ease, border-color .16s ease; }
        .ezsx-card-ico {
            width: 40px; height: 40px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--ezsx-accent-tint) 0%, #fff 100%);
            border: 1px solid var(--ezsx-accent-soft);
            color: var(--ezsx-accent);
            display: inline-flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .ezsx-card-ico svg { width: 20px; height: 20px; }
        .ezsx-card-body { flex: 1; min-width: 0; }
        .ezsx-card-title {
            display: block;
            font-size: 14px; font-weight: 700;
            color: var(--ezsx-ink);
            margin-bottom: 2px;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .ezsx-card-desc {
            display: block;
            font-size: 12px;
            color: var(--ezsx-mute);
            overflow: hidden; text-overflow: ellipsis;
            display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
        }
        .ezsx-badge {
            font-size: 10px; font-weight: 700;
            padding: 3px 8px;
            border-radius: 999px;
            letter-spacing: .3px;
            flex-shrink: 0;
        }
        .ezsx-badge--new      { background: #EAF2FD; color: #2060C0; }
        .ezsx-badge--popular  { background: var(--ezsx-accent-soft); color: var(--ezsx-accent-2); }
        .ezsx-badge--hot      { background: #FFF5E1; color: #B45309; }
        .ezsx-badge--trending { background: #E6FCF3; color: #087F5B; }

        /* ---------- trending numbered ---------- */
        .ezsx-trend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
        .ezsx-trend-item {
            display: flex; align-items: center; gap: 12px;
            padding: 10px 12px;
            border-radius: 12px;
            text-decoration: none;
            color: var(--ezsx-ink-2);
            transition: all .14s ease;
            font-size: 14px;
            font-weight: 500;
        }
        .ezsx-trend-item, .ezsx-trend-item * { text-decoration: none !important; }
        .ezsx-trend-item:hover {
            background: var(--ezsx-accent-tint);
            color: var(--ezsx-accent-2);
            padding-left: 16px;
        }
        .ezsx-trend-item { transition: all .18s ease; }
        .ezsx-trend-num {
            font-size: 11px; font-weight: 800;
            color: var(--ezsx-mute-2);
            width: 22px; flex-shrink: 0;
            font-variant-numeric: tabular-nums;
        }
        .ezsx-trend-item:hover .ezsx-trend-num { color: var(--ezsx-accent); }
        .ezsx-trend-ico {
            width: 24px; height: 24px;
            display: inline-flex; align-items: center; justify-content: center;
            color: var(--ezsx-mute-2);
            flex-shrink: 0;
        }
        .ezsx-trend-ico svg { width: 16px; height: 16px; }
        .ezsx-trend-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

        /* ---------- recent searches ---------- */
        .ezsx-recent {
            margin-top: 20px;
            padding: 16px 18px;
            background: var(--ezsx-bg-2);
            border-radius: 16px;
            border: 1px solid var(--ezsx-line-2);
        }
        .ezsx-recent-head {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 10px;
        }
        .ezsx-recent-head h4 {
            font-size: 12px; font-weight: 700;
            text-transform: uppercase; letter-spacing: .6px;
            color: var(--ezsx-ink);
            margin: 0;
            display: flex; align-items: center; gap: 6px;
        }
        .ezsx-recent-head h4 svg { width: 14px; height: 14px; color: var(--ezsx-mute); }
        .ezsx-clear {
            border: 0; background: transparent;
            color: var(--ezsx-accent);
            font-size: 12px; font-weight: 600;
            cursor: pointer; padding: 4px 6px;
            border-radius: 6px;
        }
        .ezsx-clear:hover { background: var(--ezsx-accent-tint); }
        .ezsx-recent-pills { display: flex; flex-wrap: wrap; gap: 6px; }
        .ezsx-rpill {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 6px 8px 6px 12px;
            background: #fff;
            border: 1px solid var(--ezsx-line);
            border-radius: 999px;
            font-size: 12px; font-weight: 500;
            color: var(--ezsx-ink-2);
        }
        .ezsx-rpill-txt {
            border: 0; background: transparent; padding: 0; cursor: pointer;
            font: inherit; color: inherit;
        }
        .ezsx-rpill:hover { border-color: var(--ezsx-accent-soft); background: var(--ezsx-accent-tint); }
        .ezsx-rpill-x {
            border: 0; background: transparent; cursor: pointer;
            width: 16px; height: 16px; border-radius: 50%;
            display: inline-flex; align-items: center; justify-content: center;
            color: var(--ezsx-mute); padding: 0;
        }
        .ezsx-rpill-x:hover { background: var(--ezsx-accent); color: #fff; }
        .ezsx-rpill-x svg { width: 10px; height: 10px; }

        /* ---------- results / empty ---------- */
        .ezsx-results-head {
            font-size: 13px; font-weight: 700;
            color: var(--ezsx-mute);
            text-transform: uppercase; letter-spacing: .6px;
            margin: 0 0 14px 2px;
        }
        .ezsx-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 10px;
        }
        .ezsx-grid .ezsx-card.is-active {
            border-color: var(--ezsx-accent);
            box-shadow: 0 0 0 3px rgba(54, 128, 237, .12);
        }
        .ezsx-empty {
            text-align: center;
            padding: 40px 20px;
        }
        .ezsx-empty-ico {
            width: 64px; height: 64px;
            border-radius: 20px;
            background: var(--ezsx-accent-tint);
            color: var(--ezsx-accent);
            display: inline-flex; align-items: center; justify-content: center;
            margin-bottom: 14px;
        }
        .ezsx-empty-ico svg { width: 28px; height: 28px; }
        .ezsx-empty h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: var(--ezsx-ink); }
        .ezsx-empty p { font-size: 14px; color: var(--ezsx-mute); margin: 0 0 16px; }
        .ezsx-empty p button {
            border: 0; background: transparent; padding: 0;
            color: var(--ezsx-accent); font-weight: 700; cursor: pointer;
            text-decoration: underline;
        }
        .ezsx-empty-suggest {
            display: inline-flex; flex-wrap: wrap; gap: 8px;
            justify-content: center;
        }
        .ezsx-empty-suggest a {
            padding: 8px 14px;
            border: 1px solid var(--ezsx-line);
            border-radius: 999px;
            text-decoration: none;
            color: var(--ezsx-ink-2);
            font-size: 13px; font-weight: 600;
            transition: all .14s ease;
        }
        .ezsx-empty-suggest a:hover {
            border-color: var(--ezsx-accent);
            background: var(--ezsx-accent-tint);
            color: var(--ezsx-accent-2);
        }

        /* ---------- "see all results" → /search ----------
           The overlay only ever searched the `pages` catalogue and had no way
           out to the full results page, so a visitor whose match lived in the
           directory, prompts or templates hit a dead end here. This is
           the hand-off to public.search, which searches everything. */
        .ezsx-results-row {
            display: flex; align-items: baseline; justify-content: space-between;
            gap: 12px; flex-wrap: wrap;
            /* Inherits the spacing .ezsx-results-head used to carry on its own,
               so the grid below keeps its gap. */
            margin: 0 0 14px 2px;
        }
        .ezsx-results-row .ezsx-results-head { margin: 0; }
        .ezsx-seeall {
            display: inline-flex; align-items: center; gap: 6px;
            font-size: 13px; font-weight: 700;
            color: var(--ezsx-accent);
            text-decoration: none;
            white-space: nowrap;
            transition: gap .14s ease, color .14s ease;
        }
        .ezsx-seeall:hover { gap: 9px; color: var(--ezsx-accent-2); }
        .ezsx-seeall svg { width: 12px; height: 12px; }
        .ezsx-seeall-block { margin-top: 18px; }

        /* ---------- footer helper strip ---------- */
        .ezsx-foot {
            display: flex; align-items: center; justify-content: space-between;
            gap: 12px;
            padding: 12px 26px;
            border-top: 1px solid var(--ezsx-line-2);
            background: var(--ezsx-bg-2);
            font-size: 12px;
            color: var(--ezsx-mute);
        }
        .ezsx-foot-left, .ezsx-foot-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
        .ezsx-chip {
            display: inline-flex; align-items: center; gap: 6px;
            font-size: 12px;
            color: var(--ezsx-ink-2);
            font-weight: 500;
        }
        .ezsx-chip kbd {
            display: inline-flex; align-items: center; justify-content: center;
            min-width: 22px; height: 22px;
            padding: 0 5px;
            background: #fff;
            border: 1px solid var(--ezsx-line);
            border-radius: 6px;
            font-family: inherit; font-size: 11px; font-weight: 700;
            color: var(--ezsx-ink);
            box-shadow: 0 1px 0 var(--ezsx-line);
        }
        .ezsx-foot-brand {
            display: inline-flex; align-items: center; gap: 6px;
            color: var(--ezsx-mute);
        }
        .ezsx-foot-brand strong { color: var(--ezsx-accent); font-weight: 700; }

        /* ---------- responsive ---------- */
        @media (max-width: 640px) {
            .ezsx-shell { width: 100vw; max-height: 100vh; border-radius: 0; top: 0; left: 0; transform: none; }
            .ezsx.is-open .ezsx-shell { transform: none; }
            .ezsx-head { padding: 14px 14px 12px; gap: 10px; }
            .ezsx-brand { width: 40px; height: 40px; border-radius: 12px; }
            .ezsx-input { height: 48px; font-size: 15px; padding-right: 16px; }
            .ezsx-kbd { display: none; }
            .ezsx-tabs { padding: 10px 14px; }
            .ezsx-body { padding: 16px 14px; }
            .ezsx-foot { padding: 10px 14px; flex-direction: column; align-items: flex-start; }
        }

        /* ============================================================
           Dark mode — design.md §2.2 canonical tokens
           Activator: body.theme-dark
        ============================================================ */
        body.theme-dark .ezsx-backdrop { background: rgba(0,0,0,.72); }

        /* Base surfaces */
        body.theme-dark .ezsx-shell,
        body.theme-dark .ezsx-panel,
        body.theme-dark .ezsx-body { background: #17171A; color: #F5F5F6; border-color: rgba(255,255,255,.09); }
        body.theme-dark .ezsx-shell { box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 8px 24px rgba(0,0,0,.5); }

        /* Header + footer + tab strip */
        body.theme-dark .ezsx-head { background: linear-gradient(180deg,#17171A 0%,#151517 100%); border-bottom-color: rgba(255,255,255,.06); color: #F5F5F6; }
        body.theme-dark .ezsx-tabs { background: #17171A; border-bottom-color: rgba(255,255,255,.06); }
        body.theme-dark .ezsx-foot { background: #1C1C1F; color: #A0A0A6; border-top-color: rgba(255,255,255,.06); }
        body.theme-dark .ezsx-foot-brand { color: #A0A0A6; }
        body.theme-dark .ezsx-foot-brand strong { color: #60A4F5; }

        /* Brand tile fallback when custom icon is used */
        body.theme-dark .ezsx-brand:has(.ezsx-brand-img) { background: #1C1C1F; border-color: rgba(255,255,255,.14); box-shadow: 0 6px 18px rgba(0,0,0,.5); }

        /* Search input */
        body.theme-dark .ezsx-input { background: #1C1C1F; color: #F5F5F6; border-color: rgba(255,255,255,.14); }
        body.theme-dark .ezsx-input::placeholder { color: #77777D; }
        body.theme-dark .ezsx-input:focus { background: #1C1C1F; border-color: #60A4F5; box-shadow: 0 0 0 3px rgba(96,164,245,.28); }
        body.theme-dark .ezsx-input-ico { color: #77777D; }

        /* Header keyboard shortcut chip */
        body.theme-dark .ezsx-kbd { background: rgba(255,255,255,.08); color: #C9C9CE; border-color: rgba(255,255,255,.14); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
        body.theme-dark .ezsx-kbd kbd { color: #F5F5F6; }
        body.theme-dark .ezsx-kbd-plus { color: #77777D; }

        /* Category tab pills */
        body.theme-dark .ezsx-tab { background: #1C1C1F; color: #C9C9CE; border-color: rgba(255,255,255,.14); }
        body.theme-dark .ezsx-tab:hover { background: rgba(54,128,237,.16); border-color: rgba(96,164,245,.28); color: #60A4F5; }
        body.theme-dark .ezsx-tab.is-active { background: #3680ED; color: #F5F5F6; border-color: #3680ED; box-shadow: 0 4px 12px rgba(54,128,237,.35); }
        body.theme-dark .ezsx-tab.is-active .ezsx-tab-ico svg { stroke: #F5F5F6; }

        /* Column titles + accent icons */
        body.theme-dark .ezsx-col-title { color: #F5F5F6; }
        body.theme-dark .ezsx-col-title svg { color: #60A4F5; }

        /* Popular list */
        body.theme-dark .ezsx-list-btn { color: #C9C9CE; }
        body.theme-dark .ezsx-list-btn:hover { background: rgba(54,128,237,.16); border-color: rgba(96,164,245,.28); color: #60A4F5; }
        body.theme-dark .ezsx-list-btn .ezsx-rank { background: rgba(255,255,255,.06); color: #A0A0A6; }
        body.theme-dark .ezsx-list-btn:hover .ezsx-rank { background: #3680ED; color: #F5F5F6; }
        body.theme-dark .ezsx-list-btn:hover .ezsx-label { color: #60A4F5; }
        body.theme-dark .ezsx-list-btn .ezsx-count { color: #77777D; }

        /* Discover cards */
        body.theme-dark .ezsx-card { background: #17171A; border-color: rgba(255,255,255,.09); color: #F5F5F6; }
        body.theme-dark .ezsx-card:hover { background: linear-gradient(180deg,#1C1C1F 0%,rgba(54,128,237,.16) 140%); border-color: rgba(96,164,245,.28); box-shadow: 0 10px 26px rgba(0,0,0,.5); }
        body.theme-dark .ezsx-card:hover .ezsx-card-title { color: #60A4F5; }
        body.theme-dark .ezsx-card-title { color: #F5F5F6; }
        body.theme-dark .ezsx-card-desc { color: #A0A0A6; }
        body.theme-dark .ezsx-card-ico { background: linear-gradient(135deg,rgba(54,128,237,.16) 0%,#17171A 100%); border-color: rgba(96,164,245,.28); color: #60A4F5; }
        body.theme-dark .ezsx-card:hover .ezsx-card-ico { background: linear-gradient(135deg,rgba(54,128,237,.22) 0%,#17171A 100%); border-color: #60A4F5; }
        body.theme-dark .ezsx-grid .ezsx-card.is-active { border-color: #60A4F5; box-shadow: 0 0 0 3px rgba(96,164,245,.28); }

        /* Discover badges (correct selectors) */
        body.theme-dark .ezsx-badge--new { background: rgba(54,128,237,.16); color: #60A4F5; }
        body.theme-dark .ezsx-badge--popular { background: rgba(54,128,237,.16); color: #60A4F5; }
        body.theme-dark .ezsx-badge--hot { background: rgba(217,119,6,.18); color: #F5C97A; }
        body.theme-dark .ezsx-badge--trending { background: rgba(12,166,120,.18); color: #63E0B4; }

        /* Kind pill on result cards */
        body.theme-dark .ezsx-kind { background: rgba(54,128,237,.16); color: #60A4F5; }

        /* Trending numbered list */
        body.theme-dark .ezsx-trend-item { color: #C9C9CE; }
        body.theme-dark .ezsx-trend-item:hover { background: rgba(54,128,237,.16); color: #60A4F5; }
        body.theme-dark .ezsx-trend-num { color: #77777D; }
        body.theme-dark .ezsx-trend-item:hover .ezsx-trend-num { color: #60A4F5; }
        body.theme-dark .ezsx-trend-ico { color: #77777D; }

        /* Recent searches panel + pills */
        body.theme-dark .ezsx-recent { background: #1C1C1F; border-color: rgba(255,255,255,.06); }
        body.theme-dark .ezsx-recent-head h4 { color: #F5F5F6; }
        body.theme-dark .ezsx-recent-head h4 svg { color: #A0A0A6; }
        body.theme-dark .ezsx-clear { color: #60A4F5; }
        body.theme-dark .ezsx-clear:hover { background: rgba(54,128,237,.16); }
        body.theme-dark .ezsx-rpill { background: #1C1C1F; border-color: rgba(255,255,255,.14); color: #C9C9CE; }
        body.theme-dark .ezsx-rpill:hover { background: rgba(54,128,237,.16); border-color: rgba(96,164,245,.28); }
        body.theme-dark .ezsx-rpill-x { color: #A0A0A6; }
        body.theme-dark .ezsx-rpill-x:hover { background: #3680ED; color: #F5F5F6; }

        /* Results header + empty state */
        body.theme-dark .ezsx-results-head { color: #A0A0A6; }
        body.theme-dark .ezsx-empty { color: #A0A0A6; }
        body.theme-dark .ezsx-empty-ico { background: rgba(54,128,237,.16); color: #60A4F5; }
        body.theme-dark .ezsx-empty h3 { color: #F5F5F6; }
        body.theme-dark .ezsx-empty p { color: #A0A0A6; }
        body.theme-dark .ezsx-empty p button { color: #60A4F5; }
        body.theme-dark .ezsx-empty-suggest a { background: #1C1C1F; border-color: rgba(255,255,255,.14); color: #C9C9CE; }
        body.theme-dark .ezsx-empty-suggest a:hover { background: rgba(54,128,237,.16); border-color: #60A4F5; color: #60A4F5; }

        /* "See all results" → /search. --ezsx-accent-2 (#2060C0) is too dim on
           the dark shell, so the pair lightens rather than darkens on hover. */
        body.theme-dark .ezsx-seeall { color: #60A4F5; }
        body.theme-dark .ezsx-seeall:hover { color: #8FC0F8; }

        /* Footer helper strip */
        body.theme-dark .ezsx-chip { color: #C9C9CE; }
        body.theme-dark .ezsx-chip kbd { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #F5F5F6; box-shadow: 0 1px 0 rgba(255,255,255,.14); }

        /* Scrollbar */
        body.theme-dark .ezsx-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); }

        /* Brand tile + close-button glows — override retired red rgba(224,49,49,X) with blue tint */
        body.theme-dark .ezsx-brand { box-shadow: 0 8px 20px rgba(54,128,237,.35); }
        body.theme-dark .ezsx-close { box-shadow: 0 6px 16px rgba(54,128,237,.35); }
        body.theme-dark .ezsx-close:hover { box-shadow: 0 8px 22px rgba(54,128,237,.45); }
    