@font-face { font-family: "Oswald"; src: url("/assets/fonts/oswald-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("/assets/fonts/oswald-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #070b14;
  --ink-2: #0d1422;
  --panel: #121a2a;
  --panel-2: #182235;
  --line: #2a364d;
  --cream: #f3ede0;
  --muted: #b7c0d1;
  --gold: #f4c14a;
  --amber: #ff8a2a;
  --rise: #3ddc97;
  --fall: #ff5c7a;
  --signal: #4de8e0;
  --shadow: 0 12px 40px rgba(0, 0, 0, .35);
  --font-ui: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1180px;
  --header-h: 68px;
  --focus: 0 0 0 3px rgba(77, 232, 224, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.55;
  min-height: 100vh;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--signal); text-underline-offset: 2px; }
a:hover { color: var(--gold); }
:focus-visible { outline: none; box-shadow: var(--focus); }
.visually-hidden, .skip-link:not(:focus) {
  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:focus {
  position: fixed; top: .6rem; left: .6rem; z-index: 80;
  background: var(--gold); color: var(--ink); padding: .6rem 1rem; font-weight: 700;
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 11, 20, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; min-height: var(--header-h);
  display: flex; align-items: center; gap: 1rem; padding: .4rem 1rem;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-mark { width: 200px; height: 46px; display: block; }
.nav-desktop { flex: 1 1 auto; min-width: 0; }
.nav-desktop ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; justify-content: center; flex-wrap: wrap; }
.nav-desktop a {
  display: block; padding: .45rem .7rem; color: var(--cream); text-decoration: none;
  font-weight: 600; letter-spacing: .02em; border-radius: 6px;
}
.nav-desktop a[aria-current="page"], .nav-desktop a:hover { background: var(--panel-2); color: var(--gold); }
.header-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.search-launch {
  display: flex; align-items: center; gap: .45rem;
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: .4rem .8rem; min-height: 40px; cursor: pointer; max-width: 280px;
}
.search-launch-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.menu-toggle { display: none; background: var(--panel); border: 1px solid var(--line); color: var(--cream); width: 44px; height: 44px; border-radius: 8px; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: "";
}
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 4px; }

.mobile-drawer { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); }
.mobile-drawer-panel { background: var(--panel); width: min(360px, 92vw); height: 100%; padding: 1rem; overflow: auto; }
.mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-drawer nav ul { list-style: none; padding: 0; }
.mobile-drawer a { display: block; padding: .85rem 0; color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.drawer-close, .btn { font: inherit; cursor: pointer; }
.drawer-close { background: transparent; color: var(--gold); border: 0; min-height: 44px; }

.site-main { min-width: 0; }
.hero { background: linear-gradient(180deg, #101827 0%, var(--ink) 100%); padding: 2.2rem 1rem 1.4rem; }
.hero-scoreboard { max-width: var(--max); margin: 0 auto; }
.eyebrow { font-family: var(--font-mono); color: var(--signal); letter-spacing: .16em; font-size: .78rem; margin: 0 0 .4rem; }
.hero h1, .page-hero h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .08em;
  font-size: clamp(2.4rem, 8vw, 5.4rem); line-height: .95; margin: 0;
}
.hero-tag { color: var(--gold); font-size: clamp(1.3rem, 3vw, 1.8rem); margin: .4rem 0; font-weight: 700; }
.hero-sub, .lede { color: var(--muted); max-width: 42rem; }
.hero-search, .search-overlay-form {
  display: flex; gap: .5rem; margin: 1.2rem 0 1rem; max-width: 720px;
}
.hero-search input, .search-overlay-form input, .contact-form input, .contact-form textarea, .login-card input {
  flex: 1 1 auto; min-width: 0; background: var(--ink-2); color: var(--cream);
  border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem; font: inherit;
}
.btn { border: 0; border-radius: 10px; padding: .8rem 1.1rem; font-weight: 700; min-height: 44px; }
.btn-gold { background: var(--gold); color: #1a1204; }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.quick-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .8rem;
  border-radius: 999px; text-decoration: none; font-weight: 700; border: 1px solid var(--line);
  background: var(--panel); color: var(--cream);
}
.pill-hot { border-color: #ff8a2a; }
.pill-move { border-color: var(--signal); }
.pill-cash { border-color: var(--gold); }
.pill-time { border-color: #8aa0c8; }

.pulse-bar {
  max-width: var(--max); margin: 0 auto 1.2rem; padding: .8rem 1rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  display: grid; gap: .7rem;
}
.pulse-status { margin: 0; font-family: var(--font-mono); color: var(--muted); }
.pulse-dot {
  display: inline-block; width: .65rem; height: .65rem; border-radius: 50%;
  background: var(--gold); margin-right: .4rem; vertical-align: middle;
}
@media (prefers-reduced-motion: no-preference) {
  .pulse-dot { animation: pulse 1.8s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: .35; } }
.pulse-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; list-style: none; margin: 0; padding: 0; }
.pulse-metrics li { background: var(--ink-2); border-radius: 8px; padding: .5rem .6rem; min-width: 0; }
.metric-label { display: block; color: var(--muted); font-size: .78rem; }
.metric-value { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }

.board-section { max-width: var(--max); margin: 0 auto 1.6rem; padding: 0 1rem; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); letter-spacing: .04em; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .8rem; }
.empty-state {
  background: var(--panel); border: 1px dashed var(--line); border-radius: 12px; padding: 1.4rem;
  text-align: center;
}
.empty-state h2 { margin: .4rem 0; }
.empty-policy { color: var(--muted); font-size: .95rem; }
.empty-bars { display: inline-flex; gap: 4px; align-items: flex-end; height: 36px; }
.empty-bars i { display: block; width: 8px; background: var(--gold); border-radius: 2px; }
.empty-bars i:nth-child(1) { height: 10px; }
.empty-bars i:nth-child(2) { height: 16px; }
.empty-bars i:nth-child(3) { height: 24px; }
.empty-bars i:nth-child(4) { height: 32px; background: var(--signal); }

.mover-table-wrap, .source-table-wrap, .admin-table-wrap { overflow-x: auto; }
.mover-table, .source-table, .admin-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.mover-table th, .source-table th, .admin-table th, .mover-table td, .source-table td, .admin-table td {
  text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
.mover-table { background: var(--panel); border-radius: 12px; }

.budget-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.budget-tile {
  display: flex; flex-direction: column; gap: .2rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 1rem; text-decoration: none; color: inherit; min-width: 0;
}
.budget-cap { font-family: var(--font-display); font-size: 2rem; color: var(--gold); }
.budget-note { color: var(--muted); font-size: .85rem; }
.budget-tile.tier-10 { border-top: 3px solid #3dcf8e; }
.budget-tile.tier-25 { border-top: 3px solid #4de8e0; }
.budget-tile.tier-50 { border-top: 3px solid #f4c14a; }
.budget-tile.tier-100 { border-top: 3px solid #3dcf8e; }
.budget-tile.tier-250 { border-top: 3px solid #4de8e0; }
.budget-tile.tier-500 { border-top: 3px solid #f4c14a; }
.budget-tile.tier-1000 { border-top: 3px solid #e8d9a3; }
.budget-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.budget-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; min-width: 0; }
.budget-card h3 { margin: .4rem 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.card-price { font-family: var(--font-display); font-size: 1.6rem; color: #3dcf8e; margin: .2rem 0; }
.card-retailer, .card-fresh, .card-brand, .was-price { color: var(--muted); margin: .15rem 0; }
.card-move { font-weight: 700; }
.budget-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0; }
.budget-filters label { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.budget-filters select, .budget-filters button { width: 100%; }
.filter-drawer { margin: 1rem 0; background: var(--panel); border-radius: 12px; padding: .8rem 1rem; }
.filter-drawer summary { cursor: pointer; font-weight: 700; color: var(--gold); }
.sort-label { color: var(--muted); }
.price-chart { margin: 1rem 0; min-width: 0; }
.price-chart svg { width: 100%; height: auto; display: block; }
.price-chart figcaption { color: var(--muted); font-size: .9rem; }
.provider-status-list { list-style: none; padding: 0; display: grid; gap: .4rem; }
.provider-status-list li { background: var(--panel); padding: .7rem 1rem; border-radius: 10px; overflow-wrap: anywhere; }
.best-offer-row { box-shadow: inset 3px 0 0 #3dcf8e; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin: 1rem 0; }

.history-rail { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.history-rail li { background: var(--panel); border-radius: 12px; padding: 1rem; border-top: 3px solid var(--signal); min-width: 0; }
.history-rail em { display: block; color: var(--muted); font-style: normal; }
.method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.method-grid article { background: var(--panel); padding: 1rem; border-radius: 12px; min-width: 0; }
.method-grid h3 { margin-top: 0; color: var(--gold); }
.status-dl { display: grid; gap: .6rem; }
.status-dl div { background: var(--panel); padding: .8rem 1rem; border-radius: 10px; }
.status-dl dt { color: var(--muted); font-size: .85rem; }
.status-dl dd { margin: .2rem 0 0; }

.page-shell { max-width: var(--max); margin: 0 auto; padding: 1.4rem 1rem 3rem; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.prose h2 { color: var(--gold); }
.prose li { margin: .35rem 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: var(--line); }
.status-pill { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.status-planned { background: #2a364d; color: var(--gold); }
.status-active { background: #163528; color: var(--rise); }
.status-disabled { background: #3a1d24; color: var(--fall); }
.rank-badge { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.move-badge { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; }
.move-up { color: var(--rise); }
.move-down { color: var(--fall); }
.move-flat { color: var(--muted); }
.flash-success, .flash-error, .danger-note { padding: .8rem 1rem; border-radius: 8px; }
.flash-success { background: #163528; }
.flash-error, .danger-note { background: #3a1d24; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 1rem; background: #080d16; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 1rem; }
.footer-brand { font-family: var(--font-display); letter-spacing: .1em; margin: 0; }
.footer-tag { color: var(--gold); margin: .2rem 0; }
.footer-note, .footer-copy { color: var(--muted); }
.site-footer h2 { font-size: 1rem; color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-copy { max-width: var(--max); margin: 1.2rem auto 0; }

.search-overlay[hidden],
.mobile-drawer[hidden],
.modal[hidden] { display: none !important; }
.search-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.65); display: grid; place-items: start center; padding: 12vh 1rem 1rem; }
.search-overlay-panel { width: min(720px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; max-height: 80vh; overflow: auto; }
.search-overlay-head { display: flex; justify-content: space-between; align-items: center; }
.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 70; }
.product-rank-card {
  display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; min-width: 0;
}
.product-rank-card-art { width: 72px; height: 72px; background: var(--ink-2); border-radius: 8px; }
.product-rank-card-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.trend-badge, .price-badge, .source-badge {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 28px;
  padding: .15rem .5rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  border: 1px solid var(--line); background: var(--ink-2);
}
.trend-hot { border-color: var(--amber); color: var(--amber); }
.trend-up { border-color: var(--rise); color: var(--rise); }
.trend-down { border-color: var(--fall); color: var(--fall); }
.trend-search { border-color: var(--signal); color: var(--signal); }
.price-badge { color: var(--gold); }
.confidence { font-family: var(--font-mono); letter-spacing: .08em; color: var(--muted); }
.category-tile {
  display: flex; flex-direction: column; gap: .25rem; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem;
  text-decoration: none; color: inherit;
}
.category-swatch { width: 2rem; height: .35rem; background: var(--cat, var(--gold)); border-radius: 99px; }
.category-note { color: var(--muted); font-size: .85rem; }
.skeleton-row { display: grid; grid-template-columns: 3rem 1fr 5rem; gap: .5rem; margin: .45rem 0; }
.skeleton-row span { display: block; height: .85rem; background: var(--panel-2); border-radius: 4px; }
.modal { position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.65); display: grid; place-items: center; padding: 1rem; }
.modal-panel { width: min(640px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 1rem 0; }
.pagination a, .pagination span { min-height: 40px; display: inline-flex; align-items: center; }
.tracked-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.tracked-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-width: 0; overflow: hidden; }
.tracked-card-media { display: block; background: var(--ink-2); aspect-ratio: 1; }
.tracked-card-media img { width: 100%; height: 100%; object-fit: contain; }
.product-placeholder { display: grid; place-items: center; min-height: 180px; color: var(--muted); }
.tracked-card-body { padding: .8rem 1rem 1rem; }
.tracked-card-body h3 { margin: .2rem 0 .5rem; font-size: 1.05rem; overflow-wrap: anywhere; }
.tracked-brand, .freshness, .tracked-note { color: var(--muted); font-size: .85rem; margin: 0; }
.tracked-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.price-badge { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; color: var(--gold); }
.price-none { color: var(--muted); font-size: .9rem; }
.source-badge { background: var(--panel-2); border-radius: 99px; padding: .15rem .55rem; font-size: .8rem; }
.suggest-panel { display: grid; gap: .35rem; margin-top: .7rem; min-width: 0; }
.suggest-panel a { display: flex; gap: .45rem; align-items: center; color: var(--cream); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.suggest-panel a:hover { color: var(--gold); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; margin: 0 0 1.2rem; }
.filter-bar label { display: grid; gap: .3rem; color: var(--muted); }
.filter-bar select { background: var(--ink-2); color: var(--cream); border: 1px solid var(--line); border-radius: 8px; min-height: 44px; padding: .4rem .6rem; }
.product-hero { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 1.2rem; margin-bottom: 1.4rem; }
.product-hero-media img { width: 100%; height: auto; background: var(--ink-2); border-radius: 12px; }
.id-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.id-list li { background: var(--panel); padding: .3rem .6rem; border-radius: 8px; }
.product-page h2 { color: var(--gold); }
@media (max-width: 1024px) { .tracked-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .tracked-grid, .product-hero { grid-template-columns: 1fr; }
}

.rank-rail { display: grid; gap: .7rem; }
.rank-card { display: grid; grid-template-columns: 5.2rem 7rem minmax(0, 1fr); gap: .8rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .8rem; min-width: 0; }
.rank-num { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.4rem); line-height: .9; margin: 0; color: var(--cream); }
.rank-gold .rank-num { color: var(--gold); }
.rank-silver .rank-num { color: #d7dde8; }
.rank-bronze .rank-num { color: #d08a4a; }
.rank-media { display: block; background: var(--ink-2); aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.rank-media img { width: 100%; height: 100%; object-fit: contain; }
.rank-copy { min-width: 0; }
.rank-copy h3 { margin: .15rem 0 .4rem; overflow-wrap: anywhere; }
.rank-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .35rem; }
.movement { font-family: var(--font-mono); margin: 0; }
.movement-up { color: var(--rise); }
.movement-down { color: var(--fall); }
.rank-chart { margin: 1rem 0; color: var(--muted); }
.rank-chart svg { width: 100%; height: auto; display: block; background: var(--ink-2); border-radius: 12px; }
.rank-chart figcaption { font-size: .9rem; overflow-wrap: anywhere; }
.rank-panel { background: var(--panel); border-radius: 12px; padding: .8rem 1rem; margin: 0 0 .7rem; }
@media (max-width: 560px) {
  .rank-card { grid-template-columns: 4.2rem minmax(0, 1fr); }
  .rank-media { grid-column: 1 / -1; max-width: 180px; }
}

.trend-page { min-width: 0; }
.trend-hero { background: linear-gradient(160deg, #2a1208, #121a2a 62%); border: 1px solid #5a2a16; border-radius: 18px; padding: 1.2rem 1.1rem 1.3rem; margin-bottom: 1rem; }
.trend-hero h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 8vw, 4.2rem); line-height: .95; margin: .2rem 0 .5rem; letter-spacing: .02em; }
.trend-flame { color: var(--amber); }
.trend-filters { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; margin: 0 0 1rem; }
.trend-filters label { display: grid; gap: .25rem; font-size: .9rem; min-width: 0; }
.trend-filters select { background: var(--panel); color: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; max-width: 100%; }
.trend-windows { display: flex; flex-wrap: wrap; gap: .6rem; }
.trend-windows a[aria-current="page"] { color: var(--amber); }
.trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.home-trends { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trend-card { min-width: 0; background: var(--panel); border: 1px solid #4a2616; border-radius: 16px; padding: .85rem; display: grid; gap: .55rem; }
.trend-card.trend-exploding { box-shadow: 0 0 24px rgba(255, 90, 40, .18); }
.trend-badge { margin: 0; font-weight: 700; color: var(--amber); letter-spacing: .04em; }
.tms-score { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.tms-num { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.2rem); line-height: .9; color: var(--amber); }
.source-chip { display: inline-block; background: #3a1d12; color: #ffd2b0; border-radius: 999px; padding: .15rem .55rem; font-size: .8rem; }
.trend-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; color: var(--muted); }
.trend-chart { margin: 0; color: var(--muted); min-width: 0; }
.trend-chart svg { width: 100%; height: auto; display: block; background: var(--ink-2); border-radius: 10px; }
.trend-chart figcaption { font-size: .85rem; overflow-wrap: anywhere; }
.search-momentum { margin: 1.2rem 0; }
@media (max-width: 1024px) {
  .home-trends, .trend-grid { grid-template-columns: 1fr; }
  .pulse-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .trend-filters { flex-direction: column; align-items: stretch; }
}

.admin-body { background: var(--ink-2); }
.admin-header { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.admin-header nav { display: flex; flex-wrap: wrap; gap: .7rem; }
.admin-main { padding: 1.2rem; max-width: 1100px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; list-style: none; padding: 0; }
.admin-stats li { background: var(--panel); padding: .8rem; border-radius: 8px; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.admin-grid a { background: var(--panel); padding: .9rem; border-radius: 8px; color: var(--cream); text-decoration: none; }
.login-card { max-width: 420px; margin: 12vh auto; background: var(--panel); padding: 1.4rem; border-radius: 12px; }
.login-card label { display: block; margin: .7rem 0 .25rem; }
.login-card input { width: 100%; }
.contact-form { display: grid; gap: .6rem; max-width: 640px; }

@media (max-width: 1024px) {
  .method-grid, .history-rail, .admin-stats, .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .search-launch-label { display: none; }
  .search-launch { max-width: 44px; padding: .4rem; border-radius: 8px; justify-content: center; }
  .pulse-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .budget-grid, .budget-card-grid, .budget-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero-search, .search-overlay-form { flex-direction: column; }
  .budget-grid, .budget-card-grid, .budget-filters, .method-grid, .history-rail, .admin-stats, .admin-grid, .footer-grid { grid-template-columns: 1fr; }
  .pulse-metrics { grid-template-columns: 1fr 1fr; }
  .mover-table, .source-table { min-width: 0; }
  .source-table thead { display: none; }
  .source-table, .source-table tbody, .source-table tr, .source-table td { display: block; width: 100%; }
  .source-table tr { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .header-inner { gap: .5rem; }
  .brand-mark { width: 168px; }
}
