@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Syne:wght@600;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #f3f1e8;
  --muted: #999b91;
  --faint: #686b63;
  --panel: rgba(28, 29, 25, 0.82);
  --panel-solid: #1c1d19;
  --line: rgba(243, 241, 232, 0.12);
  --accent: #ff6b5e;
  --accent-rgb: 255, 107, 94;
  --secondary: #ffb347;
  --secondary-rgb: 255, 179, 71;
  --tertiary: #e94b8a;
  --instagram-gradient: linear-gradient(
    135deg,
    #833ab4 0%,
    #c13584 28%,
    #e1306c 50%,
    #fd1d1d 72%,
    #fcaf45 100%
  );
  --navy-gradient: linear-gradient(
    135deg,
    #06142f 0%,
    #0a2854 38%,
    #123f76 72%,
    #1d5d94 100%
  );
  --hero-fill-gradient: linear-gradient(105deg, #ff6b5e 0%, #ffb347 58%, #e94b8a 100%);
  --acid: var(--accent);
  --acid-soft: rgba(var(--accent-rgb), 0.12);
  --amber: var(--secondary);
  --pink: var(--tertiary);
  --error: #ff786c;
  --bg: #11120f;
  --on-accent: #11120f;
}

html[data-accent="green"] {
  --accent: #dcff45;
  --accent-rgb: 220, 255, 69;
  --secondary: #b8df35;
  --secondary-rgb: 184, 223, 53;
  --tertiary: #9b5cff;
  --hero-fill-gradient: linear-gradient(105deg, #dcff45 0%, #b8df35 62%, #9b5cff 100%);
}

html[data-accent="instagram"] {
  --accent: #e1306c;
  --accent-rgb: 225, 48, 108;
  --secondary: #fcaf45;
  --secondary-rgb: 252, 175, 69;
  --tertiary: #833ab4;
  --hero-fill-gradient: var(--instagram-gradient);
}

html[data-accent="navy"] {
  --accent: #2f6fa8;
  --accent-rgb: 47, 111, 168;
  --secondary: #4f82ad;
  --secondary-rgb: 79, 130, 173;
  --tertiary: #06142f;
  --hero-fill-gradient: linear-gradient(105deg, #3c78ab 0%, #1c568d 52%, #0a2854 100%);
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #24211f;
  --muted: #6f6964;
  --faint: #918984;
  --panel: rgba(255, 252, 247, 0.9);
  --panel-solid: #fffdf9;
  --line: rgba(48, 39, 34, 0.14);
  --bg: #f7f1ea;
  --on-accent: #211d1a;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 0%, rgba(var(--accent-rgb), 0.06), transparent 25rem),
    linear-gradient(180deg, #11120f, #0d0e0c);
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.11;
  pointer-events: none;
}

.ambient-one {
  width: 28rem;
  height: 28rem;
  left: -15rem;
  top: 30rem;
  background: var(--pink);
}

.ambient-two {
  width: 24rem;
  height: 24rem;
  right: -12rem;
  top: 62rem;
  background: var(--acid);
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.header-tools,
.appearance-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.appearance-controls {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 18, 15, 0.56);
  backdrop-filter: blur(14px);
}

.appearance-controls select {
  min-height: 32px;
  padding: 0 28px 0 10px;
  border-radius: 8px;
  font-size: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  border-radius: 13px;
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.12);
}

.brand span { display: grid; gap: 1px; }
.brand strong { font-family: "Syne", sans-serif; font-size: 16px; letter-spacing: -0.02em; }
.brand small { color: var(--muted); font-size: 10px; }

.privacy-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c8cabf;
  background: rgba(17, 18, 15, 0.72);
  font-size: 11px;
  backdrop-filter: blur(14px);
}

.privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  align-items: end;
  gap: 48px;
  padding: 76px 0 64px;
}

.eyebrow,
.status-kicker {
  margin: 0 0 16px;
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(48px, 8.4vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero h1 em {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--acid);
  font-style: normal;
}

html[data-title-style="filled"] .hero h1 em {
  color: transparent;
  background: var(--hero-fill-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 0 transparent;
  filter: drop-shadow(0 12px 30px rgba(var(--accent-rgb), 0.16));
}

.hero-copy {
  max-width: 690px;
  margin: 32px 0 0;
  color: #b5b7ad;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
}

.hero-mark {
  min-height: 200px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 40% 60% 46% 54% / 50% 40% 60% 50%;
  background: var(--acid);
  color: #11120f;
  transform: rotate(4deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 30px 90px rgba(var(--accent-rgb), 0.12);
}

.hero-mark span {
  font-family: "Syne", sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
}

.hero-mark small {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.workspace,
.search-section {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(24px);
}

.workspace {
  overflow: hidden;
  border-radius: 28px;
  min-width: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.steps article {
  min-height: 138px;
  padding: 24px;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.steps article + article { border-left: 1px solid var(--line); }
.steps article > div { min-width: 0; }
.steps article > span { color: var(--acid); font: 500 11px "DM Mono", monospace; }
.steps strong { display: block; font: 600 16px "Syne", sans-serif; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.steps code { color: #cfd1c6; font: 11px "DM Mono", monospace; overflow-wrap: anywhere; }

.drop-zone {
  margin: 24px;
  min-height: 190px;
  padding: 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  border: 1px dashed rgba(var(--accent-rgb), 0.36);
  border-radius: 20px;
  background:
    linear-gradient(110deg, rgba(var(--accent-rgb), 0.055), transparent 55%),
    rgba(10, 11, 9, 0.35);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.drop-zone.is-dragging {
  border-color: var(--acid);
  background: var(--acid-soft);
  transform: scale(1.006);
}

.drop-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--acid);
  background: var(--acid-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}

.drop-icon svg,
.search-box svg {
  width: 25px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drop-zone h2 { margin: 0; font: 600 19px "Syne", sans-serif; }
.drop-zone p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.button {
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--on-accent); background: var(--acid); }
.button-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.button-ghost:hover { border-color: rgba(243, 241, 232, 0.3); }
.plan-link { text-decoration: none; }

body[data-plan="free"] .plus-only,
body[data-plan="plus"] .free-only {
  display: none !important;
}

.notice {
  margin: 0 24px 20px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #c9cbc1;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.notice[data-type="success"] { color: #ffd0ca; border-color: rgba(var(--accent-rgb), 0.28); background: var(--acid-soft); }
.notice[data-type="error"] { color: #ffc1bb; border-color: rgba(255, 120, 108, 0.35); background: rgba(255, 120, 108, 0.08); }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.metrics article { padding: 22px 24px; }
.metrics article + article { border-left: 1px solid var(--line); }
.metrics span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.metrics strong { display: block; margin-top: 7px; font: 600 22px "Syne", sans-serif; }

.plus-upsell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 24px 0;
  padding: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.18), transparent 34%),
    rgba(8, 9, 7, 0.48);
}

.plus-upsell strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font: 700 17px "Syne", sans-serif;
}

.plus-upsell p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.index-setup {
  padding: 24px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(var(--accent-rgb), 0.035), transparent 62%),
    rgba(8, 9, 7, 0.28);
}

.setup-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.setup-heading .status-kicker { display: block; margin-bottom: 7px; font-size: 9px; }
.setup-heading strong { display: block; font: 600 17px "Syne", sans-serif; }
.setup-heading p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }

.indexed-summary {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 999px;
  color: var(--secondary);
  background: var(--acid-soft);
  font: 9px "DM Mono", monospace;
}

.profile-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.profile-options legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.profile-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.profile-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-options label > span {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-options label:hover > span { transform: translateY(-1px); border-color: rgba(243, 241, 232, 0.25); }
.profile-options input:checked + span {
  border-color: rgba(var(--accent-rgb), 0.52);
  background: rgba(var(--accent-rgb), 0.07);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}
.profile-options strong { font-size: 11px; }
.profile-options small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.profile-options input:checked + span strong { color: var(--acid); }

.engine-benchmark {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(190px, 0.7fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(var(--accent-rgb), 0.17);
  border-radius: 14px;
  background:
    linear-gradient(100deg, rgba(var(--accent-rgb), 0.055), transparent 64%),
    rgba(8, 9, 7, 0.3);
}

.engine-copy { min-width: 0; }
.engine-copy .status-kicker { display: block; margin-bottom: 5px; font-size: 8px; }
.engine-copy strong { display: block; font: 600 12px "Syne", sans-serif; }
.engine-copy p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

.engine-result {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.2);
}
.engine-result span { color: var(--acid); font: 500 8px "DM Mono", monospace; letter-spacing: 0.08em; }
.engine-result strong { display: block; margin-top: 4px; font-size: 11px; }
.engine-result small { display: block; margin-top: 3px; color: var(--faint); font-size: 8px; }

.benchmark-progress {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}
.benchmark-progress > div:first-child { display: flex; justify-content: space-between; gap: 16px; }
.benchmark-progress strong { font-size: 10px; }
.benchmark-progress span { color: var(--acid); font: 9px "DM Mono", monospace; }
.benchmark-progress .progress-track { margin-top: 9px; }
.benchmark-progress p { margin: 8px 0 0; color: var(--muted); font-size: 8px; }

.thermal-monitor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 180ms ease, background 180ms ease;
}
.thermal-monitor .thermal-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8b8f82;
  box-shadow: 0 0 0 5px rgba(139, 143, 130, 0.1);
}
.thermal-monitor strong { display: block; margin-top: 3px; font-size: 10px; }
.thermal-monitor p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.thermal-monitor > span {
  color: var(--muted);
  font: 700 8px "DM Mono", monospace;
  letter-spacing: 0.08em;
}
.thermal-monitor[data-state="nominal"] .thermal-indicator {
  background: var(--acid);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.11);
}
.thermal-monitor[data-state="fair"] {
  border-color: rgba(255, 190, 70, 0.32);
  background: rgba(255, 190, 70, 0.035);
}
.thermal-monitor[data-state="fair"] .thermal-indicator {
  background: #ffbe46;
  box-shadow: 0 0 0 5px rgba(255, 190, 70, 0.11);
}
.thermal-monitor[data-state="serious"],
.thermal-monitor[data-state="critical"] {
  border-color: rgba(255, 93, 72, 0.48);
  background: rgba(255, 93, 72, 0.055);
}
.thermal-monitor[data-state="serious"] .thermal-indicator,
.thermal-monitor[data-state="critical"] .thermal-indicator {
  background: #ff5d48;
  box-shadow: 0 0 0 5px rgba(255, 93, 72, 0.13);
  animation: thermal-pulse 1.25s ease-in-out infinite;
}
.thermal-monitor[data-state="fair"] > span { color: #ffbe46; }
.thermal-monitor[data-state="serious"] > span,
.thermal-monitor[data-state="critical"] > span { color: #ff7b68; }
@keyframes thermal-pulse {
  50% { transform: scale(0.78); opacity: 0.62; }
}

.scope-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(210px, 0.85fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 12px;
}

.scope-row label { display: grid; gap: 7px; }
.scope-row label > span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scope-row select { min-height: 43px; }

.scope-estimate {
  min-height: 43px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.scope-estimate span { color: #c8cabf; font-size: 10px; }
.scope-estimate small { margin-top: 3px; color: var(--faint); font-size: 8px; }

.setup-note { margin: 14px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.index-panel {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--line);
  background: rgba(var(--accent-rgb), 0.035);
}

.index-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.index-actions { display: flex; align-items: center; gap: 16px; }
.index-copy .status-kicker { margin-bottom: 5px; font-size: 9px; }
.index-copy strong { font-size: 13px; }

.text-button {
  padding: 6px 0;
  border: 0;
  color: #c2c4ba;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-button:hover { color: var(--acid); }
.text-button.danger:hover { color: var(--error); }
.text-button:disabled { opacity: 0.45; cursor: default; }

.progress-track {
  height: 5px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acid);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.45);
  transition: width 260ms ease;
}

.progress-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.progress-facts article {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 9, 7, 0.35);
}

.progress-facts span,
.progress-facts small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.progress-facts span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-facts strong {
  display: block;
  margin: 6px 0 3px;
  overflow: hidden;
  color: #d9dbd1;
  font: 600 15px "Syne", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-facts .eta-card {
  border-color: rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.055);
}

.progress-facts .eta-card strong { color: var(--acid); }

.partial-use-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.17);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.045);
}

.partial-use-note > span {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #11120f;
  background: var(--acid);
  font-size: 11px;
  font-weight: 800;
}

.partial-use-note p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.partial-use-note strong { color: #e3e5da; }
.index-panel > p { margin: 10px 0 0; color: var(--muted); font-size: 9px; }

.search-section {
  margin-top: 24px;
  padding: clamp(24px, 5vw, 52px);
  border-radius: 28px;
}

.backup-section {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(var(--accent-rgb), 0.08), transparent 30%),
    #151712;
}

.backup-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.backup-heading h2 {
  margin: 8px 0 0;
  font: 600 clamp(25px, 3.4vw, 38px) "Syne", sans-serif;
  letter-spacing: -0.045em;
}

.backup-heading > span {
  max-width: 390px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
  text-align: right;
}

.backup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.backup-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 9, 7, 0.38);
}

.backup-grid article .button {
  grid-column: 1 / -1;
  width: 100%;
}

.backup-number {
  color: var(--acid);
  font: 700 10px "DM Mono", monospace;
}

.backup-grid strong {
  display: block;
  color: #e8e9df;
  font: 600 12px "Syne", sans-serif;
}

.backup-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.backup-progress {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.035);
}

.backup-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.backup-progress strong { font-size: 10px; }
.backup-progress span { color: var(--acid); font: 9px "DM Mono", monospace; }
.backup-progress .progress-track { margin-top: 9px; }
.backup-progress p,
.backup-note { color: var(--muted); font-size: 8px; }
.backup-progress p { margin: 8px 0 0; }
.backup-note { margin: 12px 0 0; line-height: 1.55; }

.wrapped-section {
  position: relative;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(var(--accent-rgb), 0.18), transparent 25%),
    radial-gradient(circle at 8% 88%, rgba(233, 75, 138, 0.13), transparent 30%),
    #12140f;
}

.wrapped-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.wrapped-heading > div:first-child,
.wrapped-card-title,
.wrapped-hero-facts > div,
.story-feature {
  min-width: 0;
}

.wrapped-heading h2 {
  max-width: 620px;
  margin: 8px 0 0;
  font: 600 clamp(30px, 4.8vw, 52px) "Syne", sans-serif;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.wrapped-heading > div:first-child > p:last-child {
  max-width: 540px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.wrapped-controls {
  flex: 0 0 250px;
  display: grid;
  gap: 10px;
}

.wrapped-controls label {
  display: grid;
  gap: 6px;
}

.wrapped-controls label span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.wrapped-controls select { min-height: 43px; }

.wrapped-empty {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
  border: 1px dashed rgba(243, 241, 232, 0.14);
  border-radius: 20px;
  color: var(--muted);
}

.wrapped-empty > span {
  color: var(--acid);
  font-size: 36px;
}

.wrapped-empty strong { display: block; color: var(--ink); font-size: 14px; }
.wrapped-empty p { margin: 6px 0 0; font-size: 10px; }

.wrapped-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.78fr;
  gap: 14px;
  margin-top: 28px;
}

.wrapped-content > article {
  min-width: 0;
  border: 1px solid rgba(243, 241, 232, 0.11);
  border-radius: 22px;
}

.wrapped-hero-card {
  container-type: inline-size;
  min-height: 350px;
  padding: clamp(24px, 4vw, 38px);
  color: #11120f;
  background: var(--acid);
}

.wrapped-hero-card > span,
.wrapped-card-title > span,
.story-brand,
.wrapped-story > p,
.story-feature > span {
  font: 700 9px "DM Mono", monospace;
  letter-spacing: 0.12em;
}

.wrapped-hero-card > p { margin: 54px 0 0; font-size: 15px; }
.wrapped-hero-card > strong {
  display: block;
  max-width: 100%;
  margin-top: -4px;
  font: 700 clamp(58px, 27cqw, 104px) "Syne", sans-serif;
  line-height: 0.9;
  letter-spacing: -0.08em;
  white-space: nowrap;
}
.wrapped-hero-card h3 {
  max-width: 350px;
  margin: 10px 0 0;
  font: 600 clamp(24px, 3vw, 34px) "Syne", sans-serif;
  line-height: 1;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.wrapped-hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 18, 15, 0.24);
}
.wrapped-hero-facts span { display: block; font-size: 8px; text-transform: uppercase; }
.wrapped-hero-facts strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.wrapped-ranking,
.wrapped-timeline,
.brain-card {
  padding: 24px;
  background: rgba(4, 5, 4, 0.48);
}

.wrapped-card-title {
  display: grid;
  gap: 7px;
}
.wrapped-card-title > span { color: var(--acid); }
.wrapped-card-title > strong {
  font: 600 17px "Syne", sans-serif;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.wrapped-ranking ol {
  display: grid;
  gap: 15px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.wrapped-ranking li {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.wrapped-rank-number { color: var(--faint); font: 10px "DM Mono", monospace; }
.wrapped-rank-copy { min-width: 0; }
.wrapped-rank-copy strong,
.wrapped-rank-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrapped-rank-copy strong { font-size: 11px; }
.wrapped-rank-copy span { margin-top: 3px; color: var(--faint); font-size: 8px; }
.wrapped-rank-count { color: var(--acid); font: 10px "DM Mono", monospace; }
.wrapped-rank-bar {
  grid-column: 2 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(243, 241, 232, 0.08);
}
.wrapped-rank-count { color: var(--amber); }
.wrapped-rank-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--acid), var(--amber));
}

.brain-card {
  grid-column: 1 / 3;
}

.brain-layout {
  display: grid;
  grid-template-columns: minmax(142px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 24px;
}

.brain-donut {
  position: relative;
  width: min(100%, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(243, 241, 232, 0.12);
}

.brain-donut::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: inherit;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(243, 241, 232, 0.10);
}

.brain-donut span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--ink);
  font: 700 clamp(24px, 7vw, 38px) "Syne", sans-serif;
  letter-spacing: -0.06em;
}

.brain-topics-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brain-topics-list li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.brain-topic-color {
  width: 10px;
  height: 28px;
  border-radius: 999px;
  background: var(--topic-color, var(--acid));
}

.brain-topic-copy { min-width: 0; }
.brain-topic-copy strong,
.brain-topic-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brain-topic-copy strong { color: var(--ink); font-size: 12px; }
.brain-topic-copy small { margin-top: 3px; color: var(--faint); font-size: 9px; }
.brain-topic-percent { color: var(--amber); font: 700 12px "DM Mono", monospace; }

.brain-topic-bar {
  grid-column: 2 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(243, 241, 232, 0.08);
}

.brain-topic-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--topic-color, var(--acid)), var(--amber));
}

.brain-method-note {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.5;
}

.wrapped-timeline { grid-column: 1 / 3; }
.wrapped-months {
  height: 160px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 8px;
  margin-top: 28px;
}
.wrapped-month {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 8px;
}
.wrapped-month-bar {
  min-height: 4px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, var(--amber), rgba(var(--accent-rgb), 0.24));
  transition: height 280ms ease;
}
.wrapped-month span {
  color: var(--faint);
  font: 8px "DM Mono", monospace;
  text-align: center;
  text-transform: uppercase;
}

.wrapped-story {
  container-type: inline-size;
  grid-column: 3;
  grid-row: 1 / span 2;
  position: relative;
  min-height: 570px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px;
  color: #11120f;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.46), transparent 16%),
    linear-gradient(155deg, var(--amber), var(--acid) 68%, #ef5f7f);
}
.story-orbit {
  position: absolute;
  top: 70px;
  right: -75px;
  width: 230px;
  height: 230px;
  border: 30px solid rgba(17, 18, 15, 0.1);
  border-radius: 50%;
}
.wrapped-story > p { position: relative; margin: 64px 0 0; }
.wrapped-story > strong {
  position: relative;
  display: block;
  max-width: 100%;
  margin-top: 4px;
  font: 700 clamp(52px, 24cqw, 76px) "Syne", sans-serif;
  line-height: 0.9;
  letter-spacing: -0.08em;
  white-space: nowrap;
}
.wrapped-story h3 {
  position: relative;
  margin: 12px 0 0;
  font: 600 clamp(20px, 9cqw, 26px) "Syne", sans-serif;
  line-height: 1;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.story-feature {
  position: relative;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 18, 15, 0.24);
}
.story-feature strong {
  display: block;
  max-width: 100%;
  margin-top: 7px;
  font: 600 clamp(14px, 6.5cqw, 22px) "Syne", sans-serif;
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.story-feature small {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.wrapped-story footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  padding: 24px 0 0;
  color: #11120f;
  font-size: 8px;
}

.wrapped-story footer > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wrapped-story footer > :last-child {
  flex: 0 0 auto;
  text-align: right;
}

.search-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.search-heading .eyebrow { margin-bottom: 10px; }
.search-heading h2 { margin: 0; font: 600 clamp(27px, 4vw, 42px) "Syne", sans-serif; letter-spacing: -0.045em; }

.search-sticky-shell {
  position: sticky;
  top: 10px;
  z-index: 30;
  margin-top: 20px;
  padding: 7px;
  border: 1px solid rgba(243, 241, 232, 0.12);
  border-radius: 19px;
  background:
    linear-gradient(100deg, rgba(var(--accent-rgb), 0.035), transparent 60%),
    rgba(15, 16, 13, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
}

.suggested-searches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 9px 4px 2px;
  color: var(--faint);
  font: 9px "DM Mono", monospace;
}

.suggested-searches span {
  margin-right: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.suggested-searches button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 999px;
  color: var(--ink);
  background:
    linear-gradient(110deg, rgba(var(--accent-rgb), 0.12), transparent),
    rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 10px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.suggested-searches .suggestion-refresh-button {
  color: var(--muted);
  background: transparent;
}

.suggested-searches button:hover,
.suggested-searches button:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.58);
  background: rgba(var(--accent-rgb), 0.14);
  transform: translateY(-1px);
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(220px, 1.15fr);
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(8, 9, 7, 0.32);
}

.filter-panel label:not(.check-filter) {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.filter-panel label > span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-panel select,
.filter-panel input[type="date"],
.filter-panel input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: #c8cabf;
  background: #11120f;
  font-size: 10px;
}

.filter-panel input[type="search"] {
  min-height: 34px;
  padding-inline: 10px;
}

.filter-panel input[type="search"]::placeholder {
  color: rgba(200, 202, 191, 0.58);
}

.creator-combobox {
  position: relative;
}

.creator-combobox::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(200, 202, 191, 0.7);
  border-bottom: 2px solid rgba(200, 202, 191, 0.7);
  pointer-events: none;
  transform: rotate(45deg);
}

.creator-search-input {
  padding-right: 42px !important;
  cursor: text;
}

.creator-clear-button {
  position: absolute;
  top: 8px;
  right: 30px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.creator-clear-button:hover {
  color: var(--ink);
  background: rgba(var(--accent-rgb), 0.16);
}

.creator-options-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  margin: 0;
  padding: 6px;
  overflow: auto;
  list-style: none;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 14px;
  background: #080907;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.creator-options-list li {
  padding: 9px 10px;
  border-radius: 10px;
  color: #e8e9df;
  font-size: 10px;
  cursor: pointer;
}

.creator-options-list li[aria-selected="true"],
.creator-options-list li:hover {
  color: var(--on-accent);
  background: var(--acid);
}

.creator-options-list .creator-options-empty {
  color: var(--muted);
  cursor: default;
}

.creator-options-list .creator-options-empty:hover {
  color: var(--muted);
  background: transparent;
}

.filter-panel input[type="date"] { color-scheme: dark; }

.check-filter {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.check-filter input {
  width: 16px;
  height: 16px;
  accent-color: var(--acid);
}

.check-filter > span {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.check-filter strong { color: #c8cabf; font-size: 9px; }
.check-filter small { color: var(--faint); font-size: 8px; line-height: 1.3; }

.instagram-preview-control {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(243, 241, 232, 0.1);
  border-radius: 13px;
  cursor: pointer;
  background:
    linear-gradient(100deg, rgba(var(--accent-rgb), 0.035), transparent 58%),
    rgba(8, 9, 7, 0.28);
}

.instagram-preview-control input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--acid);
}

.instagram-preview-control > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.instagram-preview-control strong {
  color: #dfe1d6;
  font-size: 9px;
}

.instagram-preview-control small {
  max-width: 760px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.45;
}

.search-box {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
  border: 1px solid rgba(243, 241, 232, 0.18);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(8, 9, 7, 0.55);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box:focus-within {
  border-color: rgba(var(--accent-rgb), 0.52);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.06);
}

.search-box input {
  min-width: 0;
  height: 56px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.search-box input::placeholder { color: #62655d; }
.search-box input:disabled { cursor: not-allowed; opacity: 0.5; }

kbd {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--faint);
  font: 9px "DM Mono", monospace;
}

select {
  min-width: 0;
  padding: 0 15px;
  border: 1px solid rgba(243, 241, 232, 0.18);
  border-radius: 15px;
  outline: 0;
  color: #c8cabf;
  background: #131410;
  font-size: 12px;
}

select:disabled { opacity: 0.45; }

.result-meta {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font: 10px "DM Mono", monospace;
}

.search-status-stack {
  min-width: min(100%, 330px);
  display: grid;
  justify-items: end;
  gap: 5px;
}

.search-engine-status {
  width: min(100%, 310px);
  display: grid;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 999px;
  color: var(--acid);
  background: rgba(var(--accent-rgb), 0.045);
}

.search-engine-status[hidden] { display: none; }

.search-engine-track {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.search-engine-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--acid), var(--secondary));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.42);
  transition: width 220ms ease;
}

.demo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
  padding: 17px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 15%, rgba(var(--accent-rgb), 0.16), transparent 32%),
    linear-gradient(120deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.03));
}

.demo-cta[hidden] { display: none; }

.demo-cta span {
  color: var(--acid);
  font: 700 9px "DM Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-cta strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font: 600 17px "Syne", sans-serif;
  letter-spacing: -0.025em;
}

.demo-cta p {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.demo-cta .button {
  flex: 0 0 auto;
  color: var(--on-accent);
  background: var(--acid);
}

.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.results.is-masonry {
  grid-auto-rows: 8px;
}

.results-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(8, 9, 7, 0.32);
  font: 9px "DM Mono", monospace;
}

.results-footer .button {
  min-height: 38px;
  padding: 0 16px;
}

.result-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(9, 10, 8, 0.42);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.instagram-preview {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 62px;
  overflow: hidden;
  contain: inline-size;
  border: 1px dashed rgba(243, 241, 232, 0.13);
  border-radius: 13px;
  background: rgba(4, 5, 4, 0.36);
  transition: max-height 260ms ease;
}

.instagram-preview[hidden] {
  display: none !important;
}

.instagram-preview[data-view="compact"] {
  max-height: 360px;
}

.instagram-preview[data-view="compact"][data-status="loaded"] {
  position: relative;
}

.instagram-preview[data-view="compact"][data-status="loaded"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 54px;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(4, 5, 4, 0.92));
}

.instagram-preview[data-view="expanded"] {
  max-height: 2200px;
}

.instagram-preview iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: var(--instagram-embed-height, 540px) !important;
  min-height: 240px !important;
  max-height: 2200px !important;
  border: 0;
  background: #fff;
  transition: opacity 180ms ease;
}

.instagram-preview[data-status="loading"] iframe { opacity: 0.45; }
.instagram-preview[data-status="loading"] {
  min-height: 84px;
  position: relative;
}
.instagram-preview[data-status="loading"] iframe {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.instagram-preview[data-status="loaded"] {
  min-height: 240px;
  border-style: solid;
}
.instagram-preview[data-status="loading"]::after {
  content: "Carregando prévia pública do Instagram…";
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 14px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.instagram-preview .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.preview-placeholder {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
}

.preview-placeholder > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.preview-placeholder strong {
  color: #bfc1b6;
  font-size: 9px;
}

.preview-placeholder span {
  color: var(--faint);
  font-size: 8px;
  line-height: 1.4;
}

.preview-placeholder button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 9px;
  color: var(--acid);
  cursor: pointer;
  background: rgba(var(--accent-rgb), 0.04);
  font-size: 8px;
  font-weight: 700;
}

.instagram-preview[data-status="queued"] .preview-placeholder,
.instagram-preview[data-status="loading"] .preview-placeholder {
  background:
    linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.055), transparent);
  background-size: 220% 100%;
  animation: preview-loading 1.6s linear infinite;
}

.instagram-preview[data-status="failed"] {
  border-style: solid;
  border-color: rgba(255, 120, 108, 0.22);
}

@keyframes preview-loading {
  to { background-position: -220% 0; }
}

.result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.025);
}

.result-marker {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px 15px 4px 15px;
  color: #11120f;
  background: var(--acid);
  font: 700 14px "Syne", sans-serif;
}

html[data-accent="instagram"] .button-primary,
html[data-accent="instagram"] .hero-mark,
html[data-accent="instagram"] .result-marker {
  color: #fff;
  background: var(--instagram-gradient);
}

html[data-accent="instagram"] .progress-track span,
html[data-accent="instagram"] .wrapped-rank-bar span {
  background: var(--instagram-gradient);
}

html[data-accent="instagram"] .wrapped-hero-card {
  color: #fff;
  background: var(--instagram-gradient);
}

html[data-accent="instagram"] .wrapped-story {
  color: #fff;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.38), transparent 16%),
    var(--instagram-gradient);
}

html[data-accent="instagram"] .wrapped-story footer {
  color: #fff;
}

html[data-accent="instagram"] .story-feature {
  border-top-color: rgba(255, 255, 255, 0.32);
}

html[data-accent="navy"] .button-primary,
html[data-accent="navy"] .hero-mark,
html[data-accent="navy"] .result-marker {
  color: #fff;
  background: var(--navy-gradient);
}

html[data-accent="navy"] .progress-track span,
html[data-accent="navy"] .wrapped-rank-bar span {
  background: var(--navy-gradient);
}

html[data-accent="navy"] .wrapped-hero-card {
  color: #fff;
  background: var(--navy-gradient);
}

html[data-accent="navy"] .wrapped-story {
  color: #fff;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.26), transparent 18%),
    var(--navy-gradient);
}

html[data-accent="navy"] .wrapped-story footer {
  color: #fff;
}

html[data-accent="navy"] .story-feature,
html[data-accent="navy"] .wrapped-hero-facts {
  border-top-color: rgba(255, 255, 255, 0.28);
}

.result-content { min-width: 0; }
.result-head { display: flex; justify-content: space-between; gap: 10px; }
.result-head > div { min-width: 0; }
.result-head strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.result-head span { display: block; margin-top: 3px; overflow: hidden; color: var(--faint); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.result-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.result-head a,
.preview-toggle-button {
  align-self: start;
  color: var(--acid);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.preview-toggle-button {
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.preview-toggle-button.secondary {
  color: var(--muted);
}

.preview-toggle-button:hover,
.preview-toggle-button:focus-visible,
.result-head a:hover,
.result-head a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.open-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(243, 241, 232, 0.1);
  border-radius: 999px;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.025);
  font: 8px "DM Mono", monospace;
}

.open-status[data-opened="true"] {
  border-color: rgba(var(--accent-rgb), 0.26);
  color: var(--acid);
  background: rgba(var(--accent-rgb), 0.06);
}

.caption {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  color: #bbbdb3;
  font-size: 11px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.chips span {
  max-width: 150px;
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 8px "DM Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chips .collection-chip { color: var(--amber); border-color: rgba(var(--secondary-rgb), 0.28); }

.empty-state {
  padding: 68px 20px 36px;
  color: var(--muted);
  text-align: center;
}

.empty-state[hidden] { display: none; }
.empty-glyph { color: var(--acid); font: 80px/0.75 "Syne", sans-serif; opacity: 0.75; }
.empty-state strong { display: block; margin-top: 24px; color: #cfd1c6; font: 600 16px "Syne", sans-serif; }
.empty-state p { margin: 8px 0 0; font-size: 11px; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0 46px;
  color: var(--faint);
  font-size: 10px;
}

footer span { color: #a9aba1; font: 600 12px "Syne", sans-serif; }
footer p { text-align: right; line-height: 1.55; }
footer small { color: #555950; font-size: 8px; }

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 82% 0%, rgba(var(--accent-rgb), 0.12), transparent 27rem),
    linear-gradient(180deg, #fbf7f1, #eee6dc);
}

html[data-theme="light"] .ambient { opacity: 0.08; }
html[data-theme="light"] .brand img { box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.18); }

html[data-theme="light"] .privacy-pill,
html[data-theme="light"] .appearance-controls,
html[data-theme="light"] .search-sticky-shell {
  color: #433d39;
  background: rgba(255, 252, 247, 0.88);
}

html[data-theme="light"] .workspace,
html[data-theme="light"] .search-section {
  background: rgba(255, 252, 247, 0.86);
}

html[data-theme="light"] .backup-section,
html[data-theme="light"] .wrapped-section {
  background:
    radial-gradient(circle at 90% 8%, rgba(var(--accent-rgb), 0.12), transparent 28%),
    #f8f1e9;
}

html[data-theme="light"] .steps article,
html[data-theme="light"] .drop-zone,
html[data-theme="light"] .index-setup,
html[data-theme="light"] .index-panel,
html[data-theme="light"] .engine-benchmark,
html[data-theme="light"] .engine-result,
html[data-theme="light"] .thermal-monitor,
html[data-theme="light"] .backup-grid article,
html[data-theme="light"] .backup-progress,
html[data-theme="light"] .filter-panel,
html[data-theme="light"] .demo-cta,
html[data-theme="light"] .instagram-preview-control,
html[data-theme="light"] .results-footer,
html[data-theme="light"] .result-card,
html[data-theme="light"] .preview-placeholder,
html[data-theme="light"] .wrapped-ranking,
html[data-theme="light"] .wrapped-timeline,
html[data-theme="light"] .brain-card {
  color: var(--ink);
  background-color: rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] select,
html[data-theme="light"] .search-box,
html[data-theme="light"] .filter-panel select,
html[data-theme="light"] .filter-panel input[type="date"],
html[data-theme="light"] .filter-panel input[type="search"] {
  color: #332e2a;
  background: #fffdf9;
}

html[data-theme="light"] .creator-options-list {
  background: #fffdf9;
  box-shadow: 0 22px 60px rgba(72, 55, 38, 0.16);
}

html[data-theme="light"] .creator-options-list li {
  color: #332e2a;
}

html[data-theme="light"] .creator-combobox::after {
  border-color: rgba(51, 46, 42, 0.62);
}

html[data-theme="light"] .search-box input,
html[data-theme="light"] .result-head strong,
html[data-theme="light"] .wrapped-card-title > strong,
html[data-theme="light"] .wrapped-ranking li,
html[data-theme="light"] .backup-grid strong,
html[data-theme="light"] .steps strong {
  color: #292522;
}

html[data-theme="light"] .caption,
html[data-theme="light"] .hero-copy,
html[data-theme="light"] .notice,
html[data-theme="light"] .check-filter strong,
html[data-theme="light"] .instagram-preview-control strong {
  color: #59524d;
}

html[data-theme="light"] .instagram-preview,
html[data-theme="light"] .empty-state {
  background: rgba(247, 240, 232, 0.7);
}

html[data-theme="light"] .brain-donut::after {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .result-card:hover {
  background: rgba(var(--accent-rgb), 0.055);
}

html[data-theme="light"] footer small { color: #8a817a; }

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

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .hero-mark { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps article { min-height: 0; }
  .steps article + article { border-left: 0; border-top: 1px solid var(--line); }
  .drop-zone { grid-template-columns: auto minmax(0, 1fr); }
  .drop-zone .button { grid-column: span 1; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .metrics article:nth-child(4) { border-top: 1px solid var(--line); }
  .profile-options { grid-template-columns: 1fr; }
  .profile-options label > span { min-height: 0; }
  .engine-benchmark { grid-template-columns: 1fr 1fr; }
  .engine-benchmark .button { grid-column: 1 / -1; }
  .scope-row { grid-template-columns: 1fr 1fr; }
  .scope-row .button { grid-column: 1 / -1; }
  .progress-facts { grid-template-columns: 1fr 1fr; }
  .progress-facts .eta-card { grid-column: 1 / -1; }
  .wrapped-content { grid-template-columns: 1fr 1fr; }
  .wrapped-story { grid-column: 2; grid-row: 1 / span 2; }
  .brain-card { grid-column: 1 / -1; }
  .wrapped-timeline { grid-column: 1 / -1; }
  .search-row { grid-template-columns: 1fr; }
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  select { min-height: 48px; }
}

@media (max-width: 650px) {
  .site-header, main, footer { width: min(100% - 24px, 1120px); }
  .site-header { flex-wrap: wrap; padding-top: 16px; }
  .header-tools { width: 100%; justify-content: space-between; margin-top: 12px; }
  .appearance-controls {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .appearance-controls label { flex: 1; }
  .appearance-controls .title-style-control { grid-column: 1 / -1; }
  .appearance-controls select { width: 100%; }
  .brand small { display: none; }
  .privacy-pill {
    width: 36px;
    height: 36px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }
  .hero { padding: 46px 4px 44px; }
  .hero h1 { font-size: clamp(40px, 11.8vw, 48px); }
  .hero-copy { margin-top: 24px; font-size: 14px; }
  .drop-zone { margin: 14px; padding: 23px; grid-template-columns: 1fr; text-align: center; }
  .drop-icon { margin: auto; }
  .drop-zone .button { width: 100%; }
  .notice { margin-inline: 14px; }
  .metrics article { padding: 18px; }
  .metrics strong { font-size: 19px; }
  .index-setup { padding: 20px 14px; }
  .setup-heading { flex-direction: column; gap: 12px; }
  .engine-benchmark { grid-template-columns: 1fr; }
  .engine-benchmark .button { grid-column: auto; width: 100%; }
  .thermal-monitor { grid-template-columns: auto 1fr; }
  .thermal-monitor > span { grid-column: 2; }
  .scope-row { grid-template-columns: 1fr; }
  .scope-row .button { width: 100%; }
  .index-copy { align-items: flex-start; }
  .index-actions { flex-direction: column; align-items: flex-end; gap: 3px; }
  .progress-facts { grid-template-columns: 1fr; }
  .progress-facts .eta-card { grid-column: auto; }
  .search-section { padding: 24px 16px; }
  .backup-section { padding: 24px 16px; }
  .backup-heading { align-items: start; flex-direction: column; gap: 10px; }
  .backup-heading > span { text-align: left; }
  .backup-grid { grid-template-columns: 1fr; }
  .wrapped-section { padding: 24px 16px; }
  .wrapped-heading { align-items: start; flex-direction: column; }
  .wrapped-controls { width: 100%; flex-basis: auto; }
  .wrapped-controls .button { width: 100%; }
  .wrapped-content { grid-template-columns: 1fr; }
  .brain-card,
  .wrapped-story,
  .wrapped-timeline { grid-column: auto; grid-row: auto; }
  .brain-layout { grid-template-columns: 1fr; }
  .brain-donut { width: min(260px, 100%); margin-inline: auto; }
  .wrapped-story { min-height: 590px; }
  .wrapped-months { gap: 4px; }
  .wrapped-month span { font-size: 7px; }
  .search-heading { align-items: start; flex-direction: column; gap: 10px; }
  .search-sticky-shell {
    top: 6px;
    margin: 18px -7px 0;
    padding: 6px;
    border-radius: 16px;
  }
  .search-row { gap: 6px; }
  .suggested-searches {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 2px 1px;
    scrollbar-width: none;
  }
  .suggested-searches::-webkit-scrollbar { display: none; }
  .suggested-searches span { flex: 0 0 auto; }
  .suggested-searches button { flex: 0 0 auto; }
  .search-box { min-height: 52px; }
  .search-box input { height: 50px; font-size: 13px; }
  .demo-cta { align-items: stretch; flex-direction: column; }
  .demo-cta .button { width: 100%; }
  .result-head { align-items: flex-start; }
  .result-actions { flex-direction: column; align-items: flex-end; gap: 5px; }
  .instagram-preview[data-view="compact"] { max-height: 420px; }
  .results-footer { flex-direction: column; gap: 9px; }
  .results-footer .button { width: 100%; }
  .filter-panel { grid-template-columns: 1fr; }
  .preview-placeholder { align-items: flex-start; flex-direction: column; }
  .preview-placeholder button { width: 100%; }
  .instagram-preview iframe { min-height: 480px; }
  kbd { display: none; }
  .results { grid-template-columns: 1fr; }
  .results.is-masonry { grid-auto-rows: auto; }
  .result-card { grid-row: auto !important; }
  .result-meta { align-items: start; flex-direction: column; gap: 4px; padding: 12px 2px; }
  footer { padding-inline: 4px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
