:root {
  color-scheme: dark;
  --page: #0b1020;
  --glow-a: rgba(62, 101, 208, .16);
  --glow-b: rgba(54, 220, 203, .09);
  --panel: rgba(21, 30, 53, .92);
  --panel-end: rgba(14, 21, 39, .96);
  --hero-a: rgba(19, 31, 60, .96);
  --hero-b: rgba(16, 26, 48, .92);
  --surface: #141c30;
  --surface-2: #0d1426;
  --surface-3: rgba(255, 255, 255, .045);
  --overlay: rgba(8, 14, 26, .78);
  --line: rgba(166, 184, 225, .13);
  --line-strong: rgba(166, 184, 225, .24);
  --text: #f3f5ff;
  --soft: #c4cbe0;
  --muted: #8a95b0;
  --faint: #66728d;
  --accent: #43e6d2;
  --accent-text: #43e6d2;
  --accent-soft: rgba(67, 230, 210, .08);
  --accent-line: rgba(67, 230, 210, .4);
  --on-accent: #07131b;
  --gradient: linear-gradient(115deg, #51e6d0, #79aaff 68%, #a890ff);
  --gradient-hover: linear-gradient(115deg, #70f1db, #91baff 68%, #baa5ff);
  --violet: #a98bff;
  --good: #66e3b0;
  --warn: #ffc979;
  --bad: #ff8095;
  --bad-soft: rgba(255, 128, 149, .08);
  --star: #ffd178;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .3);
  --shadow-sm: 0 14px 40px rgba(0, 0, 0, .16);
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --series-7: #9085e9;
  --series-other: #6b7590;
  --grid-line: rgba(166, 184, 225, .12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --page: #f3f5fa;
    --glow-a: rgba(62, 101, 208, .10);
    --glow-b: rgba(20, 184, 166, .08);
    --panel: #ffffff;
    --panel-end: #fbfcfe;
    --hero-a: #ffffff;
    --hero-b: #f6f9ff;
    --surface: #ffffff;
    --surface-2: #f4f6fb;
    --surface-3: rgba(15, 23, 42, .045);
    --overlay: rgba(255, 255, 255, .88);
    --line: rgba(15, 23, 42, .09);
    --line-strong: rgba(15, 23, 42, .17);
    --text: #0d1526;
    --soft: #334155;
    --muted: #5d6a82;
    --faint: #8792a8;
    --accent: #14b8a6;
    --accent-text: #0b7f72;
    --accent-soft: rgba(20, 184, 166, .09);
    --accent-line: rgba(13, 148, 136, .45);
    --violet: #6d4fe0;
    --good: #0a8754;
    --warn: #a86300;
    --bad: #c8334f;
    --bad-soft: rgba(200, 51, 79, .07);
    --star: #d18a00;
    --shadow: 0 20px 50px rgba(15, 23, 42, .09);
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, .06);
    --series-1: #2a78d6;
    --series-2: #eb6834;
    --series-3: #1baf7a;
    --series-4: #eda100;
    --series-5: #e87ba4;
    --series-6: #008300;
    --series-7: #4a3aa7;
    --series-other: #a3abbb;
    --grid-line: rgba(15, 23, 42, .08);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #f3f5fa;
  --glow-a: rgba(62, 101, 208, .10);
  --glow-b: rgba(20, 184, 166, .08);
  --panel: #ffffff;
  --panel-end: #fbfcfe;
  --hero-a: #ffffff;
  --hero-b: #f6f9ff;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: rgba(15, 23, 42, .045);
  --overlay: rgba(255, 255, 255, .88);
  --line: rgba(15, 23, 42, .09);
  --line-strong: rgba(15, 23, 42, .17);
  --text: #0d1526;
  --soft: #334155;
  --muted: #5d6a82;
  --faint: #8792a8;
  --accent: #14b8a6;
  --accent-text: #0b7f72;
  --accent-soft: rgba(20, 184, 166, .09);
  --accent-line: rgba(13, 148, 136, .45);
  --violet: #6d4fe0;
  --good: #0a8754;
  --warn: #a86300;
  --bad: #c8334f;
  --bad-soft: rgba(200, 51, 79, .07);
  --star: #d18a00;
  --shadow: 0 20px 50px rgba(15, 23, 42, .09);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, .06);
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #4a3aa7;
  --series-other: #a3abbb;
  --grid-line: rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 15% 0%, var(--glow-a), transparent 33rem),
    radial-gradient(ellipse at 88% 8%, var(--glow-b), transparent 29rem),
    var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
code { padding: 1px 5px; border-radius: 5px; background: var(--surface-3); font-size: 12px; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: absolute; z-index: 50; top: -60px; left: 16px; padding: 9px 13px; border-radius: 9px; background: var(--gradient); color: var(--on-accent); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }

.shell { width: min(1520px, 100%); margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 10;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: auto; height: 34px; }
.brand-tagline { color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .19em; white-space: nowrap; }
/* Show the light wordmark on light theme, the white-"Stock" wordmark on dark theme. */
.brand-logo-light, .footer-logo-light { display: block; }
.brand-logo-dark, .footer-logo-dark { display: none; }
:root[data-theme="dark"] .brand-logo-light, :root[data-theme="dark"] .footer-logo-light { display: none; }
:root[data-theme="dark"] .brand-logo-dark, :root[data-theme="dark"] .footer-logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-light, :root:not([data-theme="light"]) .footer-logo-light { display: none; }
  :root:not([data-theme="light"]) .brand-logo-dark, :root:not([data-theme="light"]) .footer-logo-dark { display: block; }
}
.header-tools { display: flex; align-items: center; gap: 10px; }
.service-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: var(--surface-3);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px currentColor; }
.service-state.is-ready .state-dot { background: var(--good); }
.service-state.is-error .state-dot { background: var(--bad); }
.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--soft);
}
.icon-button:hover { border-color: var(--accent-line); color: var(--accent-text); }
.icon-button svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .icon-moon { display: block; }
}

.account { position: relative; display: flex; align-items: center; gap: 8px; }
.account-skeleton { width: 128px; height: 36px; border-radius: 999px; background: linear-gradient(90deg, var(--surface-3), var(--line), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.account-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text);
  font-weight: 750;
}
.account-button:hover { border-color: var(--accent-line); }
.account-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--gradient); color: var(--on-accent); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.account-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.account-plan { padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 850; letter-spacing: .03em; }
.account-plan.is-free { background: var(--surface-3); color: var(--muted); }
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.account-menu-head { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.account-menu-head .account-avatar { width: 40px; height: 40px; font-size: 16px; }
.account-menu-head strong { display: block; font-size: 14px; }
.account-menu-head span { color: var(--muted); font-size: 12px; }
.meter { margin-top: 13px; }
.meter-label { display: flex; justify-content: space-between; gap: 10px; color: var(--soft); font-size: 12px; font-weight: 700; }
.meter-label span:last-child { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter-track { height: 6px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.meter-track span { display: block; height: 100%; border-radius: inherit; background: var(--gradient); }
.meter-track.is-low span { background: var(--warn); }
.meter-track.is-empty span { background: var(--bad); }
.meter-note { margin-top: 4px; color: var(--faint); font-size: 11px; }
.account-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.account-menu-actions .button { width: 100%; text-decoration: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease, color .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.button:disabled { cursor: not-allowed; opacity: .46; }
.button-primary { border-color: transparent; background: var(--gradient); color: var(--on-accent); box-shadow: 0 7px 22px rgba(79, 200, 218, .16); }
.button-primary:hover:not(:disabled) { border-color: transparent; background: var(--gradient-hover); color: var(--on-accent); }
.button-quiet { min-height: 33px; padding: 6px 10px; font-size: 12px; }
.button-danger { border-color: color-mix(in srgb, var(--bad) 35%, transparent); color: var(--bad); background: var(--bad-soft); }
.button-danger:hover:not(:disabled) { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.text-button { padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
.text-button:hover { color: var(--accent-text); }
.count-badge { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin: 24px 0 18px;
  padding: 38px 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(112deg, var(--hero-a), var(--hero-b));
  box-shadow: var(--shadow);
}
.hero::before {
  position: absolute;
  inset: -180px auto auto -150px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 66%);
  content: "";
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; width: min(820px, 100%); }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .17em;
}
.eyebrow { padding: 7px 10px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { margin: 16px 0 9px; font-size: clamp(31px, 3.8vw, 48px); line-height: 1.06; letter-spacing: -.05em; }
.hero h1 span { color: transparent; background: linear-gradient(100deg, #2fd4c0, #6fa6ff 55%, #a98bff); -webkit-background-clip: text; background-clip: text; }
.hero p { max-width: 640px; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

.mode-switch { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.mode-switch button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; white-space: nowrap; }
.mode-switch button svg { width: 16px; height: 16px; }
.mode-switch button:hover { color: var(--text); }
.mode-switch button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-strong); }
.mode-switch button[aria-selected="true"] svg { color: var(--accent-text); }

.hero-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--surface-2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
}
.hero-search:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-field { position: relative; min-width: 0; height: 44px; display: flex; align-items: center; flex: 1; gap: 9px; padding: 0 10px; border-radius: 10px; }
.creator-field { flex: 0 1 290px; border-right: 1px solid var(--line); border-radius: 10px 0 0 10px; }
.field-icon { width: 19px; height: 19px; flex: 0 0 19px; color: var(--accent-text); }
.search-field input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.search-field input::placeholder { color: var(--faint); }
.search-field input:focus-visible { outline: 0; }
.kbd-hint { padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--faint); font-family: inherit; font-size: 11px; }
.search-submit { height: 44px; padding: 0 18px; }
.quick-searches { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 13px; color: var(--muted); font-size: 12px; }
.query-chip { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-3); color: var(--soft); font-size: 12px; }
.query-chip:hover { border-color: var(--accent-line); color: var(--accent-text); }
.mode-help { margin-top: 13px !important; font-size: 12.5px !important; }

.usage-card {
  position: relative;
  z-index: 1;
  width: 290px;
  flex: 0 0 290px;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-3);
  text-align: center;
}
.usage-ring { position: relative; width: 132px; height: 132px; }
.usage-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { stroke: var(--line-strong); stroke-width: 9; }
.ring-value { stroke: var(--accent); stroke-width: 9; transition: stroke-dasharray .6s ease; }
.usage-card.is-low .ring-value { stroke: var(--warn); }
.usage-card.is-empty .ring-value { opacity: 0; }
.usage-card.is-empty .ring-track { stroke: color-mix(in srgb, var(--bad) 45%, transparent); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; }
.ring-center strong { font-size: 32px; line-height: 1; letter-spacing: -.04em; }
.ring-center span { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.usage-copy { display: grid; justify-items: center; gap: 8px; }
.plan-pill { padding: 4px 10px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.usage-copy p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.usage-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }

/* ── Notice ─────────────────────────────────────────────────────────────── */
.notice { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--warn) 9%, transparent); }
.notice.is-error { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: var(--bad-soft); }
.notice-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: var(--warn); color: #1d1300; font-weight: 950; }
.notice.is-error .notice-icon { background: var(--bad); color: #fff; }
.notice-copy { display: grid; flex: 1; gap: 1px; }
.notice-copy strong { font-size: 13.5px; }
.notice-copy span { color: var(--soft); font-size: 12.5px; }
.notice-actions { display: flex; gap: 7px; }
.notice-close { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 19px; }
.notice-close:hover { background: var(--surface-3); color: var(--text); }

/* ── Workspace ──────────────────────────────────────────────────────────── */
.workspace { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; gap: 16px; }
.filter-panel, .results-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--panel), var(--panel-end));
  box-shadow: var(--shadow-sm);
}
.filter-panel { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow: auto; padding: 20px 18px; scrollbar-width: thin; }
.panel-heading, .results-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading h2, .results-heading h2 { margin: 3px 0 0; font-size: 17px; line-height: 1.25; letter-spacing: -.035em; }
.filter-group { display: grid; gap: 6px; margin-top: 15px; }
.filter-group label { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--soft); font-size: 12.5px; font-weight: 750; }
.optional { color: var(--faint); font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.filter-group select, .filter-group input, .sort-control select {
  width: 100%;
  min-width: 0;
  height: 37px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
}
.filter-group input::placeholder { color: var(--faint); }
.filter-group select:focus, .filter-group input:focus, .sort-control select:focus, .result-search:focus-within {
  border-color: var(--accent-line);
  outline: 0;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.filter-row .filter-group { min-width: 0; }
.color-input { display: flex; gap: 7px; }
.color-input input[type="color"] { width: 40px; flex: 0 0 40px; padding: 3px; cursor: pointer; }
.more-filters { margin-top: 17px; border-top: 1px solid var(--line); }
.more-filters summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 2px; cursor: pointer; list-style: none; }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary > span:first-child { display: grid; gap: 2px; }
.more-filters summary strong { font-size: 14px; }
.chevron { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.more-filters[open] .chevron { transform: rotate(225deg); }
.toggle-list { display: grid; gap: 2px; margin-top: 14px; }
.toggle-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; border-top: 1px solid var(--line); cursor: pointer; }
.toggle-row:first-child { border-top: 0; }
.toggle-row > span:first-child { display: grid; gap: 1px; }
.toggle-row strong { color: var(--soft); font-size: 12px; font-weight: 750; }
.toggle-row small { color: var(--faint); font-size: 11px; }
.toggle-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-ui { position: relative; width: 32px; height: 18px; flex: 0 0 32px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-3); transition: background .18s ease; }
.toggle-ui::after { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); content: ""; transition: transform .18s ease, background .18s ease; }
.toggle-input:checked + .toggle-ui { border-color: transparent; background: var(--gradient); }
.toggle-input:checked + .toggle-ui::after { background: var(--on-accent); transform: translateX(14px); }
.toggle-input:focus-visible + .toggle-ui { outline: 2px solid var(--accent); outline-offset: 3px; }
.full-button { width: 100%; margin-top: 17px; }
.panel-footnote { margin: 12px 0 0; color: var(--faint); font-size: 11px; line-height: 1.6; }

.history-card { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.compact-heading h3 { margin: 3px 0 0; font-size: 14px; }
.history-list { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.history-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 9px; width: 100%; padding: 7px 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; }
.history-item:hover { border-color: var(--line); background: var(--surface-3); }
.history-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-3); color: var(--accent-text); }
.history-icon svg { width: 14px; height: 14px; }
.history-text { min-width: 0; display: grid; }
.history-text strong { overflow: hidden; color: var(--soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.history-text span { color: var(--faint); font-size: 10.5px; }

/* ── Results panel ──────────────────────────────────────────────────────── */
.results-panel { min-height: 540px; padding: 22px; }
.results-heading { align-items: flex-start; }
.results-heading h2 { font-size: 19px; }
.results-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.results-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.progress-card { margin-top: 18px; padding: 13px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-soft); }
.progress-heading, .progress-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress-heading strong { font-size: 13px; }
.progress-heading span, .progress-foot { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.progress-track { height: 5px; margin: 9px 0 7px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gradient); transition: width .35s ease; }

/* ── Insights ───────────────────────────────────────────────────────────── */
.insights { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-3); }
.insights-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.insights-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 14px; background: var(--gradient); color: var(--on-accent); font-size: 18px; font-weight: 900; text-transform: uppercase; }
.insights-identity h3 { margin: 2px 0 0; overflow: hidden; font-size: 18px; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.insights-identity p { margin: 1px 0 0; color: var(--muted); font-size: 12.5px; }
.insights-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.kpi { min-width: 0; padding: 13px 13px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.kpi span { display: block; overflow: hidden; color: var(--muted); font-size: 11.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.kpi strong { display: block; margin-top: 5px; font-size: 22px; line-height: 1.1; letter-spacing: -.035em; }
.kpi small { display: block; margin-top: 4px; overflow: hidden; color: var(--faint); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.insights-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.insight-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.insight-block { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow-x: clip; }
.block-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.block-heading h4 { margin: 0; font-size: 13px; }
.block-heading > span { color: var(--faint); font-size: 11.5px; }
.mix-bar { display: flex; gap: 2px; height: 14px; overflow: hidden; border-radius: 4px; }
.mix-bar span { min-width: 3px; height: 100%; }
.mix-bar span:first-child { border-radius: 4px 0 0 4px; }
.mix-bar span:last-child { border-radius: 0 4px 4px 0; }
.mix-bar span:only-child { border-radius: 4px; }
.mix-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 13px 0 0; padding: 0; list-style: none; }
.mix-legend li { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--soft); font-size: 12px; }
.mix-legend i { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 3px; }
.mix-legend b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.mix-legend em { color: var(--faint); font-style: normal; font-variant-numeric: tabular-nums; }
.timeline { position: relative; height: 112px; display: flex; align-items: flex-end; gap: 3px; padding-bottom: 18px; border-bottom: 1px solid var(--grid-line); }
.timeline-bar { position: relative; height: 100%; display: flex; align-items: flex-end; flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; cursor: default; }
.timeline-bar span { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--series-1); transition: opacity .15s ease; }
.timeline:hover .timeline-bar span { opacity: .55; }
.timeline .timeline-bar:hover span, .timeline .timeline-bar:focus-visible span { opacity: 1; }
.timeline-bar small { position: absolute; bottom: -18px; left: 50%; color: var(--faint); font-size: 10px; white-space: nowrap; transform: translateX(-50%); }
.chart-tip { font-style: normal; position: absolute; z-index: 3; bottom: calc(100% + 6px); left: 50%; max-width: 92vw; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); font-size: 11px; white-space: nowrap; transform: translateX(-50%); pointer-events: none; opacity: 0; }
.timeline-bar:first-child .chart-tip { left: 0; transform: none; }
.timeline-bar:last-child .chart-tip { left: auto; right: 0; transform: none; }
.timeline-bar:hover .chart-tip, .timeline-bar:focus-visible .chart-tip { opacity: 1; }
.timeline-empty { align-self: center; width: 100%; color: var(--faint); font-size: 12px; text-align: center; }
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 6px; max-height: 172px; overflow: auto; }
.keyword-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-3); color: var(--soft); font-size: 12px; }
.keyword-chip:hover { border-color: var(--accent-line); color: var(--accent-text); }
.keyword-chip b { color: var(--faint); font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.rank-item { display: grid; grid-template-columns: 20px 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; padding: 5px 6px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: inherit; text-align: left; }
.rank-item:hover { border-color: var(--line); background: var(--surface-3); }
.rank-item::before { color: var(--faint); font-size: 11px; font-weight: 800; counter-increment: rank; content: counter(rank); }
.rank-thumb { width: 38px; height: 30px; overflow: hidden; border-radius: 6px; background: var(--surface-3); }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-profile { color: inherit; text-decoration: none; }
.rank-profile strong span { color: var(--accent-text); font-size: 11px; }
.rank-profile:hover strong { color: var(--accent-text); text-decoration: underline; }
.creator-name { color: var(--soft); font-weight: 700; text-decoration: none; }
.creator-name:hover { color: var(--accent-text); text-decoration: underline; }
.rank-avatar { text-decoration: none; display: grid; place-items: center; background: var(--gradient); color: var(--on-accent); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.rank-text { min-width: 0; display: grid; }
.rank-text strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.rank-text span { overflow: hidden; color: var(--faint); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rank-value { color: var(--text); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-track { margin-left: 6px; }

/* ── Toolbar ────────────────────────────────────────────────────────────── */
.results-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 14px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-search { min-width: 180px; max-width: 320px; height: 34px; display: flex; align-items: center; gap: 8px; flex: 1; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-2); color: var(--muted); }
.result-search svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--accent-text); }
.result-search input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12.5px; }
.result-search input::placeholder { color: var(--faint); }
.segmented { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.segmented button { min-height: 27px; display: inline-flex; align-items: center; justify-content: center; padding: 3px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.segmented svg { width: 15px; height: 15px; }
.sort-control { display: flex; align-items: center; gap: 7px; margin-left: auto; color: var(--muted); font-size: 12px; }
.sort-control select { width: auto; height: 33px; padding: 0 8px; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.results-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.asset-card { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.asset-card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.asset-image-wrap { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; }
.asset-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.asset-card:hover .asset-image { transform: scale(1.035); }
.asset-image-placeholder { color: var(--faint); font-size: 28px; }
.asset-badges { position: absolute; top: 9px; left: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.asset-badge { padding: 3px 7px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; background: rgba(8, 14, 26, .76); color: #e3e9f7; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(8px); }
.asset-badge.ai-badge { border-color: rgba(169, 139, 255, .5); color: #dccfff; }
.asset-rank { position: absolute; bottom: 9px; left: 9px; padding: 3px 8px; border-radius: 99px; background: rgba(8, 14, 26, .76); color: #fff; font-size: 11px; font-weight: 800; backdrop-filter: blur(8px); }
.asset-save {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  background: rgba(8, 14, 26, .72);
  color: #e3e9f7;
  font-size: 15px;
  backdrop-filter: blur(8px);
}
.asset-save:hover { color: #ffd178; }
.asset-save.is-saved { color: #ffd178; }
.asset-body { display: flex; flex: 1; flex-direction: column; padding: 14px; }
.asset-title { display: -webkit-box; min-height: 42px; overflow: hidden; color: var(--text); font-size: 13.5px; font-weight: 750; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.asset-stats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.asset-stat { padding: 3px 7px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-size: 11px; }
.asset-stat strong { color: var(--text); font-weight: 800; }
.asset-stat.is-hot { background: color-mix(in srgb, var(--good) 13%, transparent); color: var(--good); }
.asset-stat.is-hot strong { color: var(--good); }
.asset-creator { display: flex; align-items: center; gap: 6px; margin-top: 9px; min-width: 0; color: var(--muted); font-size: 11.5px; }
.asset-creator span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-link { flex: 0 0 auto; padding: 0; border: 0; background: none; color: var(--accent-text); font-size: 11.5px; font-weight: 750; }
.creator-link:hover { text-decoration: underline; }
.asset-keywords { margin-top: 7px; overflow: hidden; color: var(--faint); font-size: 11px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.asset-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 11px; }
.mini-action, .mini-link {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--soft);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}
.mini-action:hover, .mini-link:hover { border-color: var(--accent-line); color: var(--accent-text); }
.skeleton-card { height: 330px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(90deg, var(--surface-3), var(--line), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Table view ─────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.results-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 12.5px; }
.results-table th { position: sticky; top: 0; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.results-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--soft); vertical-align: middle; }
.results-table tr:last-child td { border-bottom: 0; }
.results-table tbody tr:hover { background: var(--surface-3); }
.results-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.results-table .num strong { color: var(--text); }
.table-asset { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 420px; }
.table-asset img, .table-asset .table-thumb { width: 56px; height: 42px; flex: 0 0 56px; border-radius: 7px; background: var(--surface-3); object-fit: cover; }
.table-asset button { min-width: 0; overflow: hidden; padding: 0; border: 0; background: none; color: var(--text); font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.table-asset button:hover { color: var(--accent-text); }
.table-actions { display: flex; justify-content: flex-end; gap: 4px; }

.empty-state { min-height: 300px; display: grid; justify-items: center; align-content: center; padding: 30px; text-align: center; }
.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid var(--accent-line); border-radius: 18px; background: var(--accent-soft); color: var(--accent-text); font-size: 23px; transform: rotate(-7deg); }
.empty-state h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.empty-state p { max-width: 380px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--soft); font-weight: 800; text-decoration: none; }
.footer-logo { width: auto; height: 20px; }
.footer-separator { color: var(--faint); }
.site-footer nav { display: flex; gap: 3px; }
.site-footer nav a { padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.site-footer nav a:hover { background: var(--surface-3); color: var(--text); }

/* ── Modal & toast ──────────────────────────────────────────────────────── */
.modal-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3, 6, 14, .72); backdrop-filter: blur(10px); }
.preview-dialog { position: relative; width: min(980px, 100%); max-height: min(720px, 92vh); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); overflow: auto; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); box-shadow: 0 28px 90px rgba(0, 0, 0, .45); }
.modal-close { position: absolute; z-index: 1; top: 10px; right: 10px; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: rgba(7, 12, 23, .72); color: white; font-size: 20px; line-height: 1; }
.preview-media { min-height: 320px; display: grid; place-items: center; overflow: hidden; background: #0b1222; color: #8a95b0; }
.preview-media img, .preview-media video { width: 100%; max-height: 640px; object-fit: contain; }
.preview-details { padding: 30px 24px 24px; }
.preview-details h2 { margin: 8px 0 14px; font-size: 18px; line-height: 1.35; }
.preview-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.preview-facts div { min-width: 0; padding: 8px 10px; border-radius: 9px; background: var(--surface-3); }
.preview-facts dt { color: var(--faint); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.preview-facts dd { margin: 2px 0 0; overflow: hidden; color: var(--text); font-size: 12.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.preview-keywords-head { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 12.5px; }
.preview-keywords-head span { color: var(--faint); font-weight: 600; }
.preview-keywords { display: flex; flex-wrap: wrap; gap: 5px; max-height: 150px; margin: 9px 0 18px; overflow: auto; }
.preview-keywords span { padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--soft); font-size: 11.5px; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.toast { position: fixed; z-index: 60; right: 22px; bottom: 22px; max-width: min(420px, calc(100vw - 36px)); padding: 12px 15px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); color: var(--text); font-size: 13px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .hero { padding: 32px; }
  .usage-card { width: 250px; flex-basis: 250px; }
  .workspace { grid-template-columns: 236px minmax(0, 1fr); }
  .results-panel { padding: 18px; }
  .insight-columns { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; }
  .usage-card { width: 100%; flex-basis: auto; grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
  .usage-ring { width: 104px; height: 104px; }
  .usage-copy { justify-items: start; }
  .usage-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .shell { padding: 0 16px; }
  .site-header { flex-wrap: wrap; padding: 12px 0; gap: 10px; }
  .service-state { display: none; }
  .account-name { max-width: 90px; }
  .hero { margin-top: 16px; padding: 24px 18px; border-radius: 20px; }
  .hero h1 { font-size: clamp(29px, 8.6vw, 40px); }
  .mode-switch { display: flex; }
  .mode-switch button { flex: 1; justify-content: center; padding: 6px 8px; font-size: 12.5px; }
  .hero-search { flex-direction: column; align-items: stretch; }
  .creator-field { flex: 1 1 auto; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
  .kbd-hint { display: none; }
  .search-submit { width: 100%; }
  .notice { flex-wrap: wrap; }
  .workspace { grid-template-columns: 1fr; }
  .filter-panel { position: static; max-height: none; padding: 16px; }
  .results-panel { min-height: 430px; padding: 16px; }
  .results-heading { display: grid; }
  .results-actions { justify-content: flex-start; }
  .insights { padding: 14px; }
  .insights-heading { flex-direction: column; }
  .insights-actions { justify-content: flex-start; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sort-control { margin-left: 0; }
  .site-footer { flex-wrap: wrap; justify-content: center; padding: 14px 0; gap: 8px 16px; text-align: center; }
  .site-footer > span { width: 100%; order: 3; }
  .preview-dialog { grid-template-columns: 1fr; }
  .preview-media { min-height: 200px; max-height: 42vh; }
  .preview-media img, .preview-media video { max-height: 42vh; }
  .preview-details { padding: 20px; }
}
@media (max-width: 640px) {
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 460px) {
  .brand-tagline { display: none; }
  .mode-switch button svg { display: none; }
  .account-name, .account-plan { display: none; }
  .account-button { padding-right: 3px; }
  .result-search { min-width: 0; max-width: none; flex-basis: 100%; }
  .mix-legend { grid-template-columns: 1fr; }
  .preview-facts { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .results-grid { grid-template-columns: 1fr; }
}
/* ── Motion ─────────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes growCol { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

.asset-card { animation: rise .42s cubic-bezier(.22, .61, .36, 1) backwards; animation-delay: var(--stagger, 0ms); }
.results-table tbody tr { animation: fade .3s ease backwards; animation-delay: var(--stagger, 0ms); }
.results-grid.no-anim .asset-card, .no-anim tr { animation: none; }
.insights { animation: rise .5s cubic-bezier(.22, .61, .36, 1); }
.kpi { animation: rise .45s cubic-bezier(.22, .61, .36, 1) backwards; animation-delay: var(--stagger, 0ms); }
.mix-bar span { transform-origin: left center; animation: growBar .6s cubic-bezier(.22, .61, .36, 1) backwards; animation-delay: var(--stagger, 0ms); }
.timeline-bar span { transform-origin: bottom center; animation: growCol .55s cubic-bezier(.22, .61, .36, 1) backwards; animation-delay: var(--stagger, 0ms); }
.keyword-chip { animation: pop .34s cubic-bezier(.22, .61, .36, 1) backwards; animation-delay: var(--stagger, 0ms); }
.notice { animation: rise .32s ease; }
.progress-card { animation: rise .3s ease; }
.toast.is-visible { animation: rise .26s cubic-bezier(.22, .61, .36, 1); }
.modal-backdrop:not([hidden]) { animation: fade .2s ease; }
.modal-backdrop:not([hidden]) .preview-dialog { animation: rise .32s cubic-bezier(.22, .61, .36, 1); }
.account-menu:not([hidden]) { animation: rise .2s ease; }
.ring-value { animation: fade .6s ease; }

.button, .mini-action, .mini-link, .query-chip, .keyword-chip, .segmented button, .mode-switch button, .asset-save, .icon-button, .history-item {
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.asset-save:hover { transform: scale(1.1); }
.asset-save:active { transform: scale(.94); }
.query-chip:hover, .keyword-chip:hover { transform: translateY(-1px); }
.brand-logo { transition: transform .25s cubic-bezier(.22, .61, .36, 1), opacity .25s ease; }
.brand:hover .brand-logo { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; }
}
@media (forced-colors: active) {
  .mix-bar span, .timeline-bar span { forced-color-adjust: none; border: 1px solid CanvasText; }
}
