:root {
  --bg: #090b12;
  --surface: #10131c;
  --surface-2: #171b27;
  --surface-3: #202536;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f4f6fb;
  --muted: #8d94a7;
  --faint: #5f6678;
  --accent: #8b7cff;
  --accent-2: #55e6bd;
  --danger: #ff7a90;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

.skip-link { position: fixed; z-index: 1000; transform: translateY(-140%); left: 18px; top: 12px; padding: 10px 14px; border-radius: 9px; background: var(--accent); color: white; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.depth-0 { z-index: 0; }.depth-1 { z-index: 1; }.depth-2 { z-index: 2; }.depth-3 { position: relative; z-index: 3; }.depth-4 { position: relative; z-index: 4; }.depth-5 { z-index: 5; }

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { color: inherit; font: inherit; }
button { cursor: pointer; margin: 0; appearance: none; line-height: 1.2; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { cursor: default; opacity: 0.32; }
[hidden] { display: none !important; }

.app { display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--bg); }
.page-warp { position: fixed; z-index: 500; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; clip-path: circle(0 at 50% 50%); background: radial-gradient(circle, #8b7cff 0, #29204f 28%, #090b12 70%); }
.page-warp span { display: inline-flex; align-items: center; justify-content: center; transform: scale(.75); }
.loading-spinner { width: 74px; height: 74px; gap: 7px; }
.loading-spinner i { display:block; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #9b7cff, #54e6c1); box-shadow: 0 0 18px #8075ff; animation: loading-bounce .9s ease-in-out infinite; }
.loading-spinner i:nth-child(2) { animation-delay: .14s; }
.loading-spinner i:nth-child(3) { animation-delay: .28s; }
@keyframes loading-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-16px); opacity: 1; } }
.page-warp.active { animation: warp-screen .72s cubic-bezier(.7,0,.2,1); }
.page-warp.active span { animation: warp-mark .72s cubic-bezier(.2,.8,.2,1); }
.topbar {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 48px;
  padding-left: 84px;
  background: #0c0e15;
  border-bottom: 1px solid var(--line);
  -webkit-app-region: drag;
  user-select: none;
}
.drag-space { width: 0; }
.tabs {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  height: 100%;
  gap: 4px;
  padding-top: 8px;
  overflow: hidden;
  -webkit-app-region: no-drag;
}
.tab {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 110px;
  max-width: 220px;
  flex: 1 1 180px;
  height: 36px;
  gap: 9px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.tab:hover { background: rgba(255,255,255,.04); }
.tab.active { background: var(--surface-2); color: var(--text); }
.tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.tab.private { color: #c4bcff; }
.tab-favicon { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 5px; background: #2a3041; color: #cbd0dd; font-size: 9px; flex: 0 0 auto; overflow: hidden; }
.tab-favicon img { width: 100%; height: 100%; object-fit: cover; }
.tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; flex: 1; }
.tab-close { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: var(--faint); font-size: 15px; }
.tab-close:hover { background: rgba(255,255,255,.09); color: var(--text); }
.tab-add { width: 38px; height: 36px; margin: 0 6px; border: 0; background: transparent; color: var(--muted); font-size: 21px; -webkit-app-region: no-drag; }
.tab-add:hover { color: var(--text); }
.window-controls { display: flex; align-self: stretch; margin-left: auto; -webkit-app-region: no-drag; }
.window-controls button { width: 46px; border: 0; background: transparent; color: var(--muted); }
.window-controls button:hover { background: rgba(255,255,255,.08); color: var(--text); }
.window-controls button:last-child:hover { background: #d94b5e; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 62px;
  padding: 0 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.brand { width: 36px; height: 36px; border: 0; background: transparent; display: grid; place-items: center; }
.brand-mark, .large-mark {
  display: grid;
  place-items: center;
  color: #0b0c12;
  background: linear-gradient(145deg, #a397ff, #6e5cf1 60%, #55e6bd);
  font-weight: 900;
  clip-path: polygon(50% 0, 92% 18%, 82% 78%, 50% 100%, 18% 78%, 8% 18%);
}
.brand-mark { width: 24px; height: 29px; font-size: 12px; }
.nav-buttons { display: flex; gap: 2px; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 17px; }
.icon-button:hover:not(:disabled) { background: rgba(255,255,255,.07); color: var(--text); }
.icon-button.protected { color: var(--accent-2); }
.omnibox {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  min-width: 160px;
  flex: 1;
  margin: 0 5px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0d1018;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.omnibox:focus-within { border-color: rgba(139,124,255,.65); box-shadow: 0 0 0 3px rgba(139,124,255,.11); }
.omnibox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.omnibox input::placeholder { color: #666d7d; }
.site-state { color: var(--accent-2); font-size: 17px; }
.engine-pill { padding: 4px 7px; border: 1px solid rgba(139,124,255,.2); border-radius: 7px; background: rgba(139,124,255,.08); color: #aaa1ff; font-size: 9px; font-weight: 800; letter-spacing: .05em; }

.bookmarks-bar { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 3px 16px; background: #121620; border-bottom: 1px solid var(--line); overflow: hidden; }
.import-link, .bookmark-chip { height: 26px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; white-space: nowrap; }
.import-link:hover, .bookmark-chip:hover { background: rgba(255,255,255,.06); color: var(--text); }
.import-link { color: #a8a0f3; }
.bookmark-shortcuts { display: flex; min-width: 0; gap: 3px; overflow: hidden; }
.bookmark-chip span { color: var(--accent-2); margin-right: 6px; }

.content { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.home-page, .results-page, .webviews, .spectre-page { position: absolute; inset: 0; }
.home-page { display: flex; flex-direction: column; overflow: hidden; isolation: isolate; background: #071012; }
.river-backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: #071012 url("./assets/river-poster.jpg") center / cover no-repeat; }
.river-backdrop video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.015); filter: saturate(.72) contrast(1.08) brightness(.56); }
.river-scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 36%, rgba(8,11,20,.16), rgba(5,8,14,.56) 64%, rgba(4,6,11,.8) 100%), linear-gradient(180deg, rgba(7,9,16,.24), rgba(7,9,16,.64)); }
.home-content { display: flex; flex: 1; flex-direction: column; justify-content: center; width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0; }
.identity { display: flex; align-items: center; justify-content: center; gap: 20px; }
.large-mark { width: 62px; height: 74px; font-size: 30px; filter: drop-shadow(0 12px 28px rgba(108,91,241,.33)); }
.identity .large-mark { animation: logo-glow 5.5s ease-in-out infinite; }
.identity h1 { animation: title-glow 5.5s ease-in-out infinite; text-shadow: 0 0 35px rgba(139,124,255,.05); }
.identity h1 { margin: 0; font-size: clamp(50px, 7vw, 76px); line-height: .86; letter-spacing: -.07em; }
.identity p { margin: 12px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.hero-search { display: flex; align-items: center; height: 64px; margin-top: 42px; padding: 0 10px 0 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(19,22,34,.88); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(20px); }
.hero-search:focus-within { border-color: rgba(139,124,255,.75); box-shadow: 0 22px 70px rgba(0,0,0,.45), 0 0 0 4px rgba(139,124,255,.1); }
.search-icon { color: var(--accent-2); font-size: 25px; }
.hero-search input { flex: 1; min-width: 0; height: 100%; padding: 0 15px; border: 0; outline: 0; background: transparent; font-size: 15px; }
.hero-search input::placeholder { color: #73798a; }
.hero-search button, .results-search button { height: 42px; padding: 0 19px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #9588ff, #7160ee); color: white; font-weight: 750; font-size: 12px; box-shadow: 0 8px 24px rgba(113,96,238,.25); }
.source-line { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 15px; color: var(--muted); font-size: 10px; }
.source-line span { display: flex; align-items: center; gap: 5px; }
.source-line b { color: var(--faint); }
.source-dot { width: 6px; height: 6px; border-radius: 50%; }
.source-dot.google { background: #66a3ff; }.source-dot.duck { background: #ff9b62; }
.source-dot.veil { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.source-line .private-note { margin-left: 9px; color: var(--faint); }
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; margin-top: 44px; }
.quick-grid button { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: 1fr 1fr; align-items: center; min-width: 0; min-height: 74px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(19,22,32,.72); text-align: left; transition: transform .18s, border-color .18s, background .18s; }
.quick-grid button:hover { transform: translateY(-4px); border-color: rgba(139,124,255,.36); background: rgba(28,31,45,.9); }
.quick-grid button { animation: card-arrive .65s backwards cubic-bezier(.2,.9,.2,1); }.quick-grid button:nth-child(2) { animation-delay: .07s; }.quick-grid button:nth-child(3) { animation-delay: .14s; }.quick-grid button:nth-child(4) { animation-delay: .21s; }.quick-grid button:nth-child(5) { animation-delay: .28s; }
.scene-switcher { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 24px; color: rgba(255,255,255,.52); font-size: 10px; }
.scene-switcher button { padding: 6px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(8,12,18,.5); color: rgba(255,255,255,.62); font-size: 10px; transition: background .18s, border-color .18s, color .18s; }
.scene-switcher button:hover, .scene-switcher button[aria-pressed="true"] { border-color: rgba(85,230,189,.6); background: rgba(85,230,189,.13); color: #b8ffe8; }
.quick-grid button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(139,124,255,.12); color: #aaa1ff; }
.quick-grid b { overflow: hidden; text-overflow: ellipsis; font-size: 11px; }.quick-grid small { color: var(--faint); font-size: 9px; }
.home-footer { display: flex; flex-shrink: 0; justify-content: center; gap: 28px; padding: 14px 20px 22px; color: var(--faint); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.home-footer span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--accent-2); }

.results-page { overflow: auto; background: #0b0e15; }
.results-page.page-enter, .home-page.page-enter { animation: iris-enter .55s cubic-bezier(.2,.8,.2,1); }
.results-shell { width: min(1100px, calc(100% - 56px)); margin: 0 auto; padding: 38px 0 70px; }
.results-head { display: flex; align-items: center; gap: 30px; }
.results-logo { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; font-size: 15px; }
.results-search { display: flex; flex: 1; max-width: 680px; height: 46px; padding: 3px 4px 3px 16px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface); }
.results-search:focus-within { border-color: rgba(139,124,255,.6); }
.results-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.results-search button { height: 38px; }
.results-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.image-block { margin-top: 22px; }
.image-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.image-block-head b { font-size: 13px; }
.image-block-head button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 10px; }
.image-block-head button:hover { border-color: rgba(139,124,255,.45); color: var(--text); }
.image-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; overflow: hidden; }
.image-strip.collapsed { display: none; }
.image-card { position: relative; height: 126px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.image-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .22s; }
.image-card:hover img { transform: scale(1.045); }
.image-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.78)); pointer-events: none; }
.image-card span { position: absolute; z-index: 2; left: 9px; right: 9px; bottom: 8px; overflow: hidden; color: white; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.filter-tabs { display: flex; gap: 7px; }
.filter-tabs button { padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; }
.filter-tabs button:hover { background: rgba(255,255,255,.04); }.filter-tabs button.active { background: rgba(139,124,255,.12); color: #b8b0ff; }
.results-layout { display: grid; grid-template-columns: minmax(0, 730px); gap: 0; padding-top: 25px; }
.results-list { min-width: 0; }
.result-card { display: block; width: 100%; padding: 17px 4px 19px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; animation: result-rise .5s backwards cubic-bezier(.2,.85,.25,1); }
.result-card:nth-child(2) { animation-delay: .05s; }.result-card:nth-child(3) { animation-delay: .1s; }.result-card:nth-child(4) { animation-delay: .15s; }.result-card:nth-child(n+5) { animation-delay: .2s; }
.result-card:hover h3 { text-decoration: underline; text-decoration-color: rgba(139,124,255,.6); text-underline-offset: 3px; }
.result-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.result-icon { width: 18px; height: 18px; border-radius: 5px; background: #202536; object-fit: contain; }
.result-host { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-card h3 { margin: 8px 0 7px; color: #d9d5ff; font-size: 17px; font-weight: 650; }
.result-card p { margin: 0; color: #9aa1b2; font-size: 12px; line-height: 1.58; }
.empty-results { padding: 65px 10px; color: var(--muted); text-align: center; }
.empty-results b { display: block; margin-bottom: 8px; color: var(--text); font-size: 16px; }
.skeleton { position: relative; height: 92px; margin-bottom: 14px; overflow: hidden; border-radius: 12px; background: var(--surface); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--surface-2), transparent); transform: translateX(-100%); animation: shimmer 1.25s infinite; }
.search-info { align-self: start; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, rgba(139,124,255,.1), rgba(16,19,28,.7)); }
.info-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 17px; border-radius: 10px; background: rgba(85,230,189,.12); color: var(--accent-2); }
.search-info b { font-size: 13px; }.search-info p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.search-info div { display: flex; align-items: center; gap: 8px; margin-top: 15px; color: var(--faint); font-size: 9px; }
.search-info i { flex: 1; height: 1px; background: linear-gradient(90deg, #66a3ff, #ff9b62); }

.webviews { background: white; }
.webview-host, webview { width: 100%; height: 100%; }
.spectre-page { display: grid; place-items: center; overflow: auto; background: #07090f; }.spectre-card { width: min(760px, calc(100% - 48px)); min-height: 430px; padding: 34px; border: 1px solid rgba(139,124,255,.25); border-radius: 26px; background: linear-gradient(145deg,rgba(24,25,48,.94),rgba(8,15,23,.96)); box-shadow: 0 30px 100px rgba(0,0,0,.5); }.spectre-brand { display:flex; align-items:center; gap:12px; font-size:18px; }.spectre-brand .brand-mark { width:32px; height:38px; font-size:17px; }.spectre-hero { display:grid; justify-items:center; margin-top:80px; text-align:center; }.spectre-icon { display:grid; place-items:center; width:74px; height:74px; border-radius:22px; background:linear-gradient(145deg,#ff3b7b,#17192b 70%); color:white; font-size:42px; }.spectre-hero h1 { margin:24px 0 9px; font-size:clamp(36px,6vw,64px); }.spectre-hero p,.spectre-note { color:var(--muted); font-size:14px; }.spectre-note { margin-top:88px; text-align:center; }
webview { position: absolute; inset: 0; display: flex; }
.load-progress { position: absolute; z-index: 20; top: 0; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent); transition: width .22s; }
.page-error { position: absolute; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; background: #0b0e15; text-align: center; }
.page-error > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: rgba(255,122,144,.1); color: var(--danger); font-size: 24px; font-weight: 800; }
.page-error h2 { margin: 20px 0 7px; }.page-error p { margin: 0; color: var(--muted); font-size: 12px; }.page-error button { margin-top: 20px; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); }

.side-panel { position: fixed; z-index: 200; top: 0; right: 0; width: min(390px, 100%); height: 100%; padding: 26px; background: rgba(15,18,27,.97); border-left: 1px solid var(--line-strong); box-shadow: -30px 0 90px rgba(0,0,0,.45); backdrop-filter: blur(28px); animation: panel-in .2s ease-out; }
.side-panel header { display: flex; justify-content: space-between; align-items: flex-start; }
.side-panel header span { color: var(--accent-2); font-size: 9px; font-weight: 800; letter-spacing: .14em; }.side-panel h2 { margin: 6px 0 0; font-size: 23px; }
.side-panel header button { border: 0; background: transparent; color: var(--muted); font-size: 26px; }.panel-body { margin-top: 28px; overflow: auto; max-height: calc(100vh - 105px); }
.panel-section-title { margin: 24px 0 8px; color: var(--faint); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.panel-action, .panel-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 5px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.panel-action:hover { color: #bcb6ff; }.panel-action > span:first-child { width: 24px; color: var(--accent); font-size: 17px; }
.panel-row .row-copy { flex: 1; }.panel-row b, .panel-row small { display: block; }.panel-row b { font-size: 12px; }.panel-row small { margin-top: 4px; color: var(--faint); font-size: 9px; }
.setting-choice { display: flex; gap: 5px; padding: 4px; border-radius: 10px; background: #0b0e16; }
.setting-choice button { padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--faint); font-size: 9px; }.setting-choice button.on { background: rgba(139,124,255,.18); color: #c2bcff; }
.setting-number { min-width: 52px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #0b0e16; color: var(--muted); font-size: 10px; text-align: center; }
.settings-note { margin: 14px 0 0; color: var(--faint); font-size: 10px; line-height: 1.5; }
.toggle { position: relative; width: 38px; height: 22px; border: 0; border-radius: 12px; background: #2b3040; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #777e8f; transition: transform .18s; }.toggle.on { background: rgba(85,230,189,.21); }.toggle.on::after { transform: translateX(16px); background: var(--accent-2); }
.history-link { min-width: 0; }.history-link b, .history-link small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.danger-action { margin-top: 20px; padding: 12px; border: 1px solid rgba(255,122,144,.22); border-radius: 10px; background: rgba(255,122,144,.06); color: #ff9aac; }
.panel-backdrop { position: fixed; z-index: 190; inset: 0; background: rgba(0,0,0,.28); }
.suggestions { position: fixed; z-index: 300; max-height: 320px; overflow: auto; padding: 6px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(18,21,31,.98); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.suggestion { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 12px; }.suggestion:hover, .suggestion.active { background: rgba(139,124,255,.11); }.suggestion span:first-child { color: var(--accent-2); }.suggestion small { margin-left: auto; color: var(--faint); }
.toast { position: fixed; z-index: 400; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 11px 15px; border: 1px solid var(--line-strong); border-radius: 11px; background: #1a1e2a; box-shadow: var(--shadow); font-size: 11px; animation: toast-in .18s ease-out; }
.image-viewer { position: fixed; z-index: 600; inset: 0; display: grid; place-items: center; padding: 48px; background: rgba(3,5,10,.9); backdrop-filter: blur(18px); }
.image-viewer figure { display: grid; max-width: min(1100px, 92vw); max-height: 88vh; margin: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: #0d1018; box-shadow: 0 35px 120px rgba(0,0,0,.7); }
.image-viewer img { display: block; max-width: 100%; max-height: calc(88vh - 58px); margin: auto; object-fit: contain; }
.image-viewer figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; padding: 10px 14px 10px 18px; }
.image-viewer figcaption span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.image-viewer figcaption button { flex: 0 0 auto; padding: 9px 12px; border: 0; border-radius: 9px; background: rgba(139,124,255,.16); color: #c8c2ff; font-size: 10px; }
.image-viewer-close { position: fixed; top: 24px; right: 28px; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(20,23,34,.9); color: white; font-size: 24px; }

@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes panel-in { from { transform: translateX(25px); opacity: 0; } }
@keyframes toast-in { from { transform: translate(-50%, 8px); opacity: 0; } }
@keyframes logo-glow { 0%,100% { filter: drop-shadow(0 12px 28px rgba(108,91,241,.28)); } 50% { filter: drop-shadow(0 12px 34px rgba(85,230,189,.4)); } }
@keyframes title-glow { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }
@keyframes card-arrive { from { opacity: 0; transform: translate3d(0,28px,0) rotateX(18deg) scale(.88); filter: blur(8px); } }
@keyframes result-rise { from { opacity: 0; transform: translate3d(-22px,18px,0) skewX(-2deg); filter: blur(7px); } }
@keyframes iris-enter { from { opacity: 0; clip-path: circle(0 at 50% 28%); filter: blur(12px); transform: scale(1.035); } to { opacity: 1; clip-path: circle(120% at 50% 28%); filter: blur(0); transform: scale(1); } }
@keyframes warp-screen { 0%,100% { opacity: 0; clip-path: circle(0 at 50% 50%); } 35%,65% { opacity: 1; clip-path: circle(125% at 50% 50%); } }
@keyframes warp-mark { 0% { transform: scale(.2) rotate(-35deg); opacity: 0; } 50% { transform: scale(1.25) rotate(5deg); opacity: 1; } 100% { transform: scale(3) rotate(18deg); opacity: 0; } }
.no-motion .identity .large-mark, .no-motion .identity h1, .no-motion .quick-grid button { animation: none !important; }
.no-motion .river-backdrop video { visibility: hidden; }
.compact .toolbar { height: 50px; }.compact .bookmarks-bar { min-height: 29px; }.compact .topbar { height: 42px; }.compact .tab { height: 31px; }
.hide-bookmarks .bookmarks-bar { display: none; }
@media (max-width: 1040px) { .quick-grid { grid-template-columns: repeat(3, 1fr); }.results-layout { grid-template-columns: 1fr; }.search-info { display: none; }.image-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .topbar { padding-left: 70px; }.window-controls { display: none; }.toolbar { padding: 0 8px; }.brand { display: none; }.nav-buttons .icon-button { width: 31px; }.engine-pill, .bookmarks-bar { display: none; }.home-content { width: calc(100% - 28px); }.quick-grid { grid-template-columns: repeat(2, 1fr); }.results-shell { width: calc(100% - 28px); }.results-head { gap: 10px; }.results-logo b { display: none; }.filter-tabs { overflow-x: auto; }.source-line .private-note { display: none; }.image-strip { grid-template-columns: repeat(2, 1fr); }.image-card { height: 115px; } }
@media (max-height: 680px) and (min-width: 761px) { .home-page { overflow: auto; }.home-content { justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }.river-backdrop video { visibility:hidden !important; }.depth-0,.depth-1,.depth-2,.depth-3,.depth-4,.depth-5 { transform:none !important; } }
