/* SearchEnginely — Signal Clarity Theme */
.se-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border-radius:999px;border:1px solid var(--line);color:var(--fg-soft);font-size:.74rem;text-transform:uppercase;letter-spacing:.1em}
.se-kicker-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);animation:se-pulse 2s ease-in-out infinite}
@keyframes se-pulse{0%,100%{box-shadow:0 0 0 0 rgba(88,230,211,.5)}50%{box-shadow:0 0 0 8px rgba(88,230,211,0)}}
.se-title{margin:16px 0 8px;font-family:'Sora',sans-serif;font-size:clamp(1.8rem,4vw,2.8rem);letter-spacing:-.03em;line-height:1.05}
.se-sub{margin:0 0 20px;color:var(--fg-soft);max-width:52ch}
.se-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:10px;border-radius:18px;border:1px solid var(--line);background:rgba(255,255,255,.04);position:relative;overflow:visible}
.se-form::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(88,230,211,.08),transparent);animation:se-scan 4s linear infinite;pointer-events:none}
@keyframes se-scan{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.se-form input{border:none;outline:none;border-radius:12px;padding:13px 14px;background:rgba(255,255,255,.06);color:var(--fg);font:600 1rem 'IBM Plex Sans',sans-serif;position:relative;z-index:1}
.se-form button{border:none;border-radius:12px;padding:13px 20px;cursor:pointer;font:800 .78rem 'Sora',sans-serif;letter-spacing:.08em;text-transform:uppercase;background:linear-gradient(128deg,var(--accent),#89f1e4 42%,var(--accent-2));color:#07252d;position:relative;z-index:1;transition:transform .15s}
.se-form button:hover{transform:scale(1.02)}
.se-meta{margin:18px 0 12px;color:var(--fg-soft);font-size:.88rem;display:flex;align-items:center;gap:10px}
.se-meta-bar{flex:1;height:3px;border-radius:2px;background:linear-gradient(90deg,var(--accent),var(--accent-2));opacity:.4}
.se-list{display:grid;gap:14px;margin-top:8px}
.se-card{border:1px solid var(--line);border-radius:20px;padding:18px 20px;background:rgba(255,255,255,.04);position:relative;overflow:hidden;animation:se-fadeUp .45s ease both;transition:transform .2s,border-color .2s}
.se-card:nth-child(1){animation-delay:.04s}.se-card:nth-child(2){animation-delay:.1s}.se-card:nth-child(3){animation-delay:.16s}
.se-card:nth-child(4){animation-delay:.22s}.se-card:nth-child(5){animation-delay:.28s}
.se-card:hover{transform:translateX(4px);border-color:var(--accent)}
.se-card::after{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,var(--accent),var(--accent-2));opacity:0;transition:opacity .2s}
.se-card:hover::after{opacity:1}
.se-signal{display:flex;align-items:flex-end;gap:3px;height:18px;margin-bottom:10px}
.se-signal span{display:block;width:4px;border-radius:2px;background:var(--accent);animation:se-bar 1.2s ease-in-out infinite}
.se-signal span:nth-child(1){height:6px;animation-delay:0s}.se-signal span:nth-child(2){height:12px;animation-delay:.1s}
.se-signal span:nth-child(3){height:8px;animation-delay:.2s}.se-signal span:nth-child(4){height:16px;animation-delay:.3s}
.se-signal span:nth-child(5){height:10px;animation-delay:.4s}
@keyframes se-bar{0%,100%{opacity:.4}50%{opacity:1}}
.se-card a{font-family:'Sora',sans-serif;font-weight:700;font-size:1.05rem;color:var(--fg);text-decoration:none;transition:color .15s}
.se-card a:hover{color:var(--accent)}
.se-card p{margin:8px 0 6px;color:var(--fg-soft);line-height:1.58;font-size:.92rem}
.se-card small{display:inline-flex;align-items:center;gap:6px;color:var(--accent);font-size:.78rem;font-weight:600}
.se-card small::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--accent-2)}
.se-empty,.se-error{margin-top:16px;padding:16px 18px;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.04)}
.se-error{border-color:rgba(255,110,110,.4);color:#ff8a8a}
.se-pages{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.se-pages a,.se-pages span{padding:7px 14px;border-radius:999px;border:1px solid var(--line);text-decoration:none;color:var(--fg-soft);font-size:.85rem;transition:all .15s}
.se-pages a:hover{border-color:var(--accent);color:var(--fg)}
.se-pages span{background:var(--accent);color:#062025;border-color:transparent;font-weight:700}
@keyframes se-fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:768px){.se-form input,.se-form button{padding:11px 14px;font-size:.9rem}}
@media(max-width:660px){.se-form{grid-template-columns:1fr}.se-form button{width:100%}}

/* AI Overview — SearchEnginely: dark text by default (light glass card; beats a{color:inherit}) */
.ai-overview-card .ai-overview-title{color:#0f172a !important}
.ai-overview-card .ai-overview-summary,
.ai-overview-card .ai-overview-summary p,
.ai-overview-card .ai-overview-bullets,
.ai-overview-card .ai-overview-bullets li,
.ai-overview-card .ai-overview-paragraph,
.ai-overview-card .ai-overview-closing{color:#334155 !important}
.ai-overview-card .ai-overview-section-title{color:#1e293b !important}
.ai-overview-card .ai-overview-kicker{color:#475569 !important}
.ai-overview-card .ai-overview-references-label,
.ai-overview-card .ai-overview-sources-label{color:#64748b !important}
.ai-overview-card .ai-overview-reference-links li{color:#334155 !important}
.ai-overview-card .ai-overview-closing a,
.ai-overview-card .ai-overview-reference-links a{color:#2563eb !important}
.ai-overview-card .ai-overview-closing a:hover,
.ai-overview-card .ai-overview-reference-links a:hover{color:#1d4ed8 !important}
.ai-overview-card .ai-overview-source-chip{color:#1e293b !important}
.ai-overview-card .ai-overview-code-pre,
.ai-overview-card .ai-overview-code-pre code{color:#111 !important}
.ai-overview-card .ai-overview-code-lang{color:#334155 !important}
.ai-overview-card .ai-overview-code-disclaimer{color:#475569 !important}
.ai-overview-card .ai-overview-intro,
.ai-overview-card .ai-overview-intro p{color:#1a1a1a !important}

/* Light card on dark theme — keep dark readable text */
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-title{color:#111 !important}
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-summary,
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-summary p,
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-intro,
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-intro p,
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-bullets,
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-bullets li,
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-paragraph,
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-closing,
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-section-title,
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-reference-links li,
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-code-pre,
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-code-pre code{color:#1a1a1a !important}
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-kicker{color:#475569 !important}
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-references-label,
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-sources-label{color:#64748b !important}
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-closing a,
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-reference-links a{color:#2563eb !important}
html[data-theme="dark"] .ai-overview-card.ai-overview-card--light .ai-overview-source-chip{color:#111 !important}

/* Dark theme toggle — restore light text on dark glass card */
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-title{color:#f8fafc !important}
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-summary,
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-summary p,
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-bullets,
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-bullets li,
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-paragraph,
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-closing{color:rgba(226,232,240,.88) !important}
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-section-title{color:#e2e8f0 !important}
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-kicker{color:rgba(226,232,255,.82) !important}
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-references-label,
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-sources-label{color:rgba(191,219,254,.75) !important}
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-reference-links li{color:rgba(226,232,240,.88) !important}
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-closing a,
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-reference-links a{color:#bfdbfe !important}
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-closing a:hover,
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-reference-links a:hover{color:#e0f2fe !important}
html[data-theme="dark"] .ai-overview-card:not(.ai-overview-card--light) .ai-overview-source-chip{color:#e2e8f0 !important}
