:root {
  /* Legacy names, kept so existing rules keep working; tokens.css owns the values. */
  --bg: var(--color-bg);
  --surface: var(--color-surface);
  --surface-soft: var(--color-surface-muted);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --brand: var(--color-brand);
  --brand-strong: var(--color-brand-strong);
  --logo-size: 90px;
  --avatar-size: 90px;
  --topbar-control-size: calc(var(--logo-size) + 24px);
  --surface-corner-radius: 30px;
  --topbar-shape-radius: var(--surface-corner-radius);
  --hero-radius: var(--surface-corner-radius);
  --layout-max-width: 1500px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 12% -6%, var(--color-brand-glow-1), transparent 34%),
    radial-gradient(circle at 88% -10%, var(--color-brand-glow-2), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.45;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 120;
  background: var(--color-surface-inverse);
  color: var(--color-text-on-inverse);
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 10px;
}

.skip-link:focus {
  top: 12px;
}

.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;
}

a {
  color: inherit;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.page-shell {
  width: min(calc(100% - 40px), var(--layout-max-width));
  max-width: none;
  margin: 0 auto;
  padding: 4px 0 40px;
  flex: 1;
}

.page-toast {
  position: fixed;
  top: calc(var(--topbar-control-size) + 32px);
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--color-success-border);
  background: color-mix(in srgb, var(--color-success-bg) 98%, transparent);
  color: var(--shade-text-135724);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--color-shadow) 16%, transparent);
  backdrop-filter: blur(10px);
}

.page-toast-error {
  border-color: var(--color-danger-border);
  background: color-mix(in srgb, var(--color-danger-bg) 98%, transparent);
  color: var(--shade-text-8c1d18);
}

.page-toast-copy {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.page-toast-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--shade-border-081e10) 12%, transparent);
  background: color-mix(in srgb, var(--color-surface) 70%, transparent);
  color: currentColor;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
}

.page-toast-close:hover,
.page-toast-close:focus-visible {
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  outline: none;
}

.topbar {
  width: 100%;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 35;
  backdrop-filter: blur(7px);
}

.topbar-landing-hidden {
  display: none;
}

.topbar-shell {
  max-width: var(--layout-max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.topbar-inner {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 12px 22px;
  border: 1px solid color-mix(in srgb, var(--color-border) 88%, transparent);
  border-radius: var(--topbar-shape-radius);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-shadow) 8%, transparent);
  min-height: var(--topbar-control-size);
}

.brand {
  display: flex;
  align-items: center;
}

.site-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}

.site-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: var(--logo-size);
}

.topbar-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
  min-height: var(--topbar-control-size);
  gap: 10px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  color: var(--color-text-heading);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--color-shadow) 8%, transparent);
  white-space: nowrap;
}

.topbar-link:hover,
.topbar-link:focus-visible {
  background: var(--color-brand-tint);
  border-color: var(--color-border-strong);
  outline: none;
}

.site-header-control-panel {
  width: min(calc(100% - 40px), var(--layout-max-width));
  max-width: none;
  margin: 14px auto 4px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--color-border) 92%, transparent);
  border-radius: 28px;
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--color-shadow) 8%, transparent);
}

.site-header-lookup-form {
  margin-top: 0;
}

.site-header-blog .landing-action-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 54px;
  min-height: 60px;
}

.site-header-blog .landing-logo-link {
  grid-column: 1;
  justify-content: center;
}

.site-header-blog .landing-action-auth {
  grid-column: 2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--color-text-strong);
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--color-brand-tint);
  outline: none;
}

.user-mini-avatar,
.user-mini-fallback {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: calc(var(--topbar-shape-radius) - 2px);
  border: 1px solid var(--line);
}

.user-mini-avatar {
  object-fit: cover;
  background: var(--color-surface);
}

.user-mini-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-tint);
  color: var(--shade-text-234232);
  font-size: 1.7rem;
  font-weight: 700;
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  list-style: none;
  cursor: pointer;
  width: var(--topbar-control-size);
  height: var(--topbar-control-size);
  border: 1px solid var(--shade-border-cfe4d1);
  background: var(--color-surface);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--color-shadow) 11%, transparent);
  border-radius: var(--topbar-shape-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.user-menu-trigger::-webkit-details-marker {
  display: none;
}

.user-menu-trigger:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.user-menu-trigger:hover {
  transform: translateY(-1px);
  background: var(--color-brand-tint);
  border-color: var(--color-border-strong);
  box-shadow: 0 10px 18px color-mix(in srgb, var(--shade-shadow-0e6e26) 18%, transparent);
}

.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--color-shadow) 16%, transparent);
  padding: 8px;
  z-index: 1000;
}

.user-menu-link,
.user-menu-logout {
  display: block;
  width: 100%;
  border-radius: 8px;
  text-align: left;
  text-decoration: none;
  color: var(--color-text-strong);
  padding: 9px 10px;
  background: transparent;
  border: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.user-menu-link:hover,
.user-menu-link:focus-visible,
.user-menu-logout:hover,
.user-menu-logout:focus-visible {
  background: var(--color-brand-tint);
  outline: none;
  transform: none;
  box-shadow: none;
}

.user-menu-separator {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: 6px 0;
}

button,
input[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--shade-onfill-082003);
  font-weight: 700;
  padding: 10px 16px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  background: var(--brand-strong);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--color-brand-strong) 24%, transparent);
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--topbar-control-size);
  height: var(--topbar-control-size);
  border: 1px solid var(--shade-border-cfe4d1);
  border-radius: var(--topbar-shape-radius);
  background: var(--color-surface);
  color: var(--color-text-heading);
  font-weight: 700;
  padding: 0;
  line-height: 1;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--color-shadow) 11%, transparent);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
  flex-shrink: 0;
}

.login-btn:hover,
.login-btn:focus-visible {
  transform: translateY(-1px);
  background: var(--color-brand-tint);
  border-color: var(--color-border-strong);
  box-shadow: 0 10px 18px color-mix(in srgb, var(--shade-shadow-0e6e26) 18%, transparent);
  outline: none;
}

.hero {
  margin-top: 6px;
  background: linear-gradient(120deg, var(--color-surface) 30%, var(--color-brand-tint) 100%);
  border-radius: var(--hero-radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: center;
}

.hero-kicker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.hero-copy h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
}

.hero-subtitle {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
}

.landing-control-panel {
  position: sticky;
  top: 14px;
  z-index: 35;
  margin: 14px 0 12px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--color-border) 92%, transparent);
  border-radius: 30px;
  background: color-mix(in srgb, var(--color-surface) 96%, transparent);
  box-shadow: 0 20px 46px color-mix(in srgb, var(--color-shadow) 8%, transparent);
  backdrop-filter: blur(7px);
}

.landing-action-row {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) 54px;
  align-items: center;
  gap: 4px;
}

.landing-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: 1;
  height: 70px;
  min-width: 0;
  padding: 0;
  text-decoration: none;
}

.landing-logo {
  display: block;
  width: auto;
  max-width: 220px;
  height: 66px;
  object-fit: contain;
}

.landing-lookup-form {
  grid-column: 2;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 64px;
  padding: 6px;
  border: 0;
  border-radius: 20px;
  background: color-mix(in srgb, var(--color-surface) 98%, transparent);
  box-shadow: none;
}

.landing-lookup-form::before {
  content: none;
}

.landing-lookup-form::after {
  content: none;
}

.landing-lookup-form input[type="text"],
.landing-lookup-form input[type="url"] {
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 16px;
  padding: 0 16px;
  background: transparent;
  color: var(--shade-text-172033);
  font-size: 1rem;
  outline: none;
}

.landing-lookup-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  position: relative;
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  border-radius: 17px;
  color: var(--color-on-brand);
  font-size: 0;
  font-weight: 800;
}

.landing-lookup-form button::before {
  content: none;
}

.landing-lookup-form button::after {
  content: none;
}

.landing-lookup-form button img {
  width: 28px;
  height: 28px;
  display: block;
  pointer-events: none;
}

.landing-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--shade-onfill-082003);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--color-brand-strong) 14%, transparent);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.landing-control-panel .landing-blog-button,
.site-header-control-panel .landing-blog-button {
  display: none;
}

.landing-action-button:hover,
.landing-action-button:focus-visible {
  transform: translateY(-1px);
  background: var(--brand-strong);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--color-brand-strong) 24%, transparent);
  outline: none;
}

.landing-action-auth {
  position: relative;
  grid-column: 3;
  justify-self: stretch;
}

.landing-action-auth .login-btn,
.landing-action-auth .user-menu-trigger {
  position: relative;
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  border-radius: 17px;
  border: 1px solid var(--shade-border-cfe4d1);
  background: color-mix(in srgb, var(--color-surface) 96%, transparent);
  color: var(--shade-text-0b4b22);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--color-shadow) 8%, transparent);
}

.landing-action-auth .login-btn {
  overflow: hidden;
}

.landing-action-auth .login-btn::before,
.landing-action-auth .login-btn::after,
.landing-action-auth .user-menu-trigger::before,
.landing-action-auth .user-menu-trigger::after {
  content: none;
}

.user-menu-icon {
  display: none;
  width: 24px;
  height: 24px;
  color: currentColor;
  pointer-events: none;
}

.guest-menu .user-menu-icon,
.landing-action-auth .user-menu-icon {
  display: block;
}

.landing-action-auth .user-mini-avatar,
.landing-action-auth .user-mini-fallback {
  display: none;
}

.landing-discover-menu {
  margin-top: 10px;
}

.landing-discover-menu .discover-menu-head {
  margin-bottom: 6px;
}

.landing-filter-rail {
  display: grid;
  gap: 6px;
  padding-right: 2px;
}

.landing-filter-rail .discover-category-row,
.landing-filter-rail .discover-badge-row {
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.landing-filter-rail .discover-category-row {
  flex-wrap: wrap;
}

.landing-filter-rail .discover-badge-row {
  flex-wrap: nowrap;
  margin-top: 0;
  max-height: 70px;
  overflow-x: auto;
  overflow-y: hidden;
}

.landing-filter-rail .discover-chip,
.landing-filter-rail .discover-more summary,
.landing-filter-rail .discover-badge-chip {
  min-height: 30px;
  font-size: 0.78rem;
}

.landing-filter-rail .discover-badge-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.landing-filter-rail .discover-badge-chip img {
  width: 20px;
  height: 20px;
}

.landing-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1040px) minmax(0, 450px);
  gap: 10px;
  align-items: start;
  justify-content: center;
}

.landing-main-content {
  min-width: 0;
  max-width: 1040px;
}

.landing-main-content .market-section {
  margin-top: 6px;
}

.landing-side-rail {
  min-width: 0;
}

.landing-side-panel {
  margin-top: 20px;
  min-height: 520px;
  border: 1px solid color-mix(in srgb, var(--color-border) 92%, transparent);
  border-radius: var(--hero-radius);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--color-shadow) 7%, transparent);
  padding: 34px;
}

.landing-side-copy h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.03;
}

.landing-side-art {
  margin-top: 24px;
}

.discover-menu {
  margin-top: 16px;
  position: relative;
}

.discover-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.discover-menu-title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  font-weight: 800;
}

.discover-clear-link {
  color: var(--shade-text-42624b);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.discover-clear-link:hover,
.discover-clear-link:focus-visible {
  color: var(--color-text-heading);
  text-decoration: underline;
  outline: none;
}

.discover-category-row,
.discover-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.discover-badge-row {
  margin-top: 10px;
}

.discover-chip,
.discover-more summary,
.discover-badge-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface-subtle);
  color: var(--shade-text-264231);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.discover-chip,
.discover-more summary {
  padding: 0 12px;
}

.discover-chip:hover,
.discover-chip:focus-visible,
.discover-more summary:hover,
.discover-more summary:focus-visible,
.discover-badge-chip:hover,
.discover-badge-chip:focus-visible {
  border-color: var(--color-border-strong);
  background: var(--color-brand-tint);
  outline: none;
}

.discover-chip.is-active,
.discover-badge-chip.is-active {
  border-color: var(--shade-border-1f7a35);
  background: var(--color-success-bg);
  color: var(--shade-text-0e3d1d);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--shade-shadow-1f7a35) 12%, transparent);
}

.discover-more {
  position: relative;
}

.discover-more summary {
  cursor: pointer;
  list-style: none;
}

.discover-more summary::-webkit-details-marker {
  display: none;
}

.discover-more summary::after {
  content: "▾";
  display: inline-block;
  margin-left: 8px;
  font-size: 0.78rem;
}

.discover-more[open] summary::after {
  transform: rotate(180deg);
}

.discover-more-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 6px;
  width: min(420px, calc(100vw - 48px));
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--color-shadow) 14%, transparent);
}

.discover-more-link {
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--shade-text-264231);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.discover-more-link:hover,
.discover-more-link:focus-visible,
.discover-more-link.is-active {
  background: var(--color-brand-tint);
  outline: none;
}

.discover-badge-label {
  color: var(--shade-text-42624b);
  font-size: 0.82rem;
  font-weight: 800;
}

.discover-badge-chip {
  gap: 6px;
  padding: 0 10px;
}

.discover-badge-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.lookup-form {
  margin-top: 24px;
  display: flex;
  gap: 10px;
}

.lookup-form-row {
  margin-top: 24px;
}

.lookup-form-row.lookup-form-row-search {
  margin-top: 0;
}

.lookup-form.lookup-form-full {
  margin-top: 0;
  width: 100%;
}

.lookup-form input[type="url"],
.lookup-form input[type="text"],
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--color-surface);
  color: var(--text);
  font-family: inherit;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.lookup-form input[type="url"],
.lookup-form input[type="text"] {
  flex: 1;
  min-width: 180px;
}

.lookup-form button {
  white-space: nowrap;
}

body.lookup-modal-open {
  overflow: hidden;
}

.lookup-modal[hidden] {
  display: none;
}

.lookup-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
}

.lookup-modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--shade-bg-111111) 46%, transparent);
  backdrop-filter: blur(2px);
}

.lookup-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: 0 26px 60px color-mix(in srgb, var(--shade-shadow-0e361e) 30%, transparent);
  padding: 22px 22px 20px;
}

.lookup-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--shade-text-314437);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
}

.lookup-modal-close:hover,
.lookup-modal-close:focus-visible {
  background: var(--color-brand-tint);
  outline: none;
}

.lookup-modal-spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid var(--color-border);
  border-top-color: var(--shade-border-2f6d3f);
  animation: lookup-spin 0.85s linear infinite;
  margin-bottom: 14px;
}

.lookup-modal-dialog h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
}

.lookup-modal-dialog p {
  margin: 0;
  color: var(--shade-text-516457);
}

@keyframes lookup-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-trending {
  margin-top: 14px;
}

.hero-trending-title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  font-weight: 700;
}

.hero-trending-icon {
  color: var(--shade-text-111111);
  margin-right: 4px;
}

.hero-trending-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-trending-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 8px 10px;
  background: var(--color-surface-subtle);
  color: var(--shade-text-264231);
}

.hero-trending-chip:hover,
.hero-trending-chip:focus-visible {
  border-color: var(--color-border-strong);
  background: var(--color-brand-tint);
  outline: none;
}

.hero-trending-chip span {
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-trending-picker {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.hero-trending-picker select {
  width: auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0 18px 0 0;
  background: transparent;
  color: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.hero-trending-picker select:focus-visible {
  outline: none;
}

.hero-trending-picker::after {
  content: "▾";
  position: absolute;
  right: 10px;
  font-size: 0.78rem;
  color: var(--shade-text-264231);
  pointer-events: none;
}

.hero-art {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  justify-items: center;
}

.hero-logo-wrap {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--color-surface-muted), var(--color-surface));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-shadow) 8%, transparent);
  padding: 14px;
}

.landing-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background-image: var(--hero-image, url('/static/shop-dealify.jpg'));
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.market-section {
  margin-top: 32px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-block {
  margin-top: 18px;
}

.section-subhead h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.landing-main-content .section-subhead h3 {
  font-size: clamp(calc(1.05rem - 2px), 2.2vw, calc(1.35rem - 2px));
}

.section-subhead p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.landing-main-content .section-subhead p {
  font-size: calc(0.92rem - 2px);
}

.search-results-back-link {
  display: inline-flex;
  margin-bottom: 18px;
}

.search-results-back-link-bottom {
  margin-top: 18px;
  margin-bottom: 0;
}

.featured-deals-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.featured-deals-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.featured-scroll-shell {
  margin-top: 12px;
  margin-bottom: -22px;
  overflow: visible;
}

.featured-scroll-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--shade-text-233327);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.filter-knob-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--shade-text-233327);
  padding: 0;
}

.filter-knob-button img {
  width: 17px;
  height: 17px;
  display: block;
}

.filter-knob-button svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-picker-popover {
  position: fixed;
  top: var(--filter-picker-top, 96px);
  left: var(--filter-picker-left, 20px);
  z-index: 80;
  width: min(420px, calc(100vw - 40px));
  max-height: min(620px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--color-border) 95%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--color-surface) 98%, transparent);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--color-shadow) 18%, transparent);
}

.filter-picker-popover[hidden] {
  display: none;
}

.filter-picker-form {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.filter-picker-head,
.filter-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-picker-title {
  margin: 0;
  color: var(--color-text-strong);
  font-size: 0.95rem;
  font-weight: 800;
}

.filter-picker-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--shade-text-243326);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
}

.filter-picker-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-picker-group legend {
  margin-bottom: 8px;
  color: var(--color-text-soft);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-picker-category-block {
  display: grid;
  gap: 8px;
}

.filter-picker-category-search {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--shade-text-213326);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 14px;
}

.filter-picker-category-search::placeholder {
  color: var(--shade-text-6d7d72);
  font-weight: 600;
}

.filter-picker-category-search:focus-visible {
  border-color: var(--color-border-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--shade-shadow-9ec9a4) 22%, transparent);
  outline: none;
}

.filter-picker-category-chips,
.filter-picker-category-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-picker-category-suggestions[hidden] {
  display: none;
}

.filter-picker-category-chip,
.filter-picker-category-suggestion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--shade-text-213326);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.filter-picker-category-chip {
  background: var(--color-brand-tint);
  border-color: var(--shade-border-c7d8ca);
  color: var(--shade-text-1f3f2a);
  cursor: pointer;
}

.filter-picker-category-suggestion {
  cursor: pointer;
}

.filter-picker-category-chip:hover,
.filter-picker-category-chip:focus-visible,
.filter-picker-category-suggestion:hover,
.filter-picker-category-suggestion:focus-visible {
  border-color: var(--color-border-strong);
  background: var(--color-brand-tint);
  outline: none;
}

.filter-picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-picker-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--shade-text-213326);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.filter-picker-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-picker-option img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.filter-picker-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.filter-picker-badge-option {
  justify-content: center;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 6px;
  border-radius: 14px;
}

.filter-picker-badge-option img {
  width: 34px;
  height: 34px;
}

.filter-picker-option.is-selected {
  border-color: var(--shade-border-9ed9aa);
  background: var(--color-success-bg);
  color: var(--shade-text-123c20);
}

.filter-picker-clear,
.filter-picker-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.filter-picker-clear {
  padding: 0 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--shade-text-415146);
}

.filter-picker-apply {
  padding: 0 18px;
  border: 1px solid var(--shade-border-16bd07);
  background: var(--shade-bg-16bd07);
  color: var(--shade-onfill-10220e);
}

.featured-scroll-btn:hover,
.featured-scroll-btn:focus-visible,
.filter-knob-button:hover,
.filter-knob-button:focus-visible,
.filter-picker-close:hover,
.filter-picker-close:focus-visible,
.filter-picker-clear:hover,
.filter-picker-clear:focus-visible {
  border-color: var(--color-border-strong);
  background: var(--color-brand-tint);
  outline: none;
}

.filter-picker-apply:hover,
.filter-picker-apply:focus-visible {
  background: var(--color-brand-strong);
  outline: none;
}

.featured-scroll-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.featured-scroll-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  margin: -10px -12px 0;
  padding: 16px 12px 30px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.featured-scroll-track::-webkit-scrollbar {
  display: none;
}

.featured-scroll-track .product-card {
  flex: 0 0 220px;
  max-width: 220px;
}

.landing-main-content .featured-scroll-track {
  gap: 10px;
}

.landing-main-content .featured-scroll-track .product-card {
  flex-basis: 200px;
  max-width: 200px;
}

.homepage-ad-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 4px;
}

.landing-side-ad,
.blog-sidebar-ad {
  min-width: 0;
  min-height: 280px;
}

.landing-side-ad {
  margin-top: 10px;
}

.homepage-ad-slot {
  min-width: 0;
  min-height: 120px;
}

.shopdealify-adsbygoogle,
.homepage-adsbygoogle {
  width: 100%;
  min-height: 120px;
}

.sidebar-adsbygoogle {
  min-height: 280px;
}

.product-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.landing-main-content .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 200px));
  gap: 10px;
  justify-content: start;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  padding: 12px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--color-shadow) 5%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px color-mix(in srgb, var(--color-shadow) 12%, transparent);
}

.product-media {
  position: relative;
  height: 146px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-media-tile);
}

.product-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-discount-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  border-radius: 999px;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--shade-bg-03693d) 94%, transparent);
  color: var(--shade-text-ecfdf5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.landing-main-content .product-discount-badge {
  font-size: calc(0.72rem - 2px);
}

.media-empty {
  color: var(--muted);
  font-size: 0.85rem;
}

.landing-main-content .media-empty {
  font-size: calc(0.85rem - 2px);
}

.product-title-block {
  min-height: 2.95em;
}

.product-title-brand {
  margin-bottom: 2px;
  color: var(--shade-text-57705f);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: none;
}

.landing-main-content .product-title-brand {
  font-size: calc(0.72rem - 2px);
}

.product-title {
  min-height: 2.6em;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.landing-main-content .product-title {
  font-size: calc(0.9rem - 2px);
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product-badge {
  width: clamp(56px, 14vw, 72px);
  max-width: 128px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--color-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--shade-shadow-234333) 8%, transparent);
}

.product-badge-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.product-block .product-badge {
  width: clamp(64px, 12vw, 96px);
}

.product-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-category-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.7rem;
  color: var(--shade-text-2f533a);
  background: var(--color-surface-subtle);
  text-transform: capitalize;
}

.landing-main-content .product-category-chip {
  font-size: calc(0.7rem - 2px);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
}

.landing-main-content .product-price-row {
  font-size: calc(0.86rem - 2px);
}

.product-admin-publish {
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.price-listing {
  color: var(--shade-text-2a3a2f);
  font-weight: 400;
}

.old-price {
  color: var(--color-text-subtle);
  text-decoration: line-through;
  font-weight: 400;
}

.price-paying {
  color: var(--shade-text-047857);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
}

.landing-main-content .price-paying {
  font-size: calc(1rem - 2px);
}

.price-empty {
  color: var(--muted);
}

.product-deal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.product-promo-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.product-promo-switcher .product-deal-badge {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.product-promo-switcher.is-switching .product-deal-badge {
  opacity: 0;
  transform: translateY(2px);
}

.product-deal-badge {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
  cursor: default;
}

.product-deal-badge[hidden] {
  display: none;
}

a.product-deal-badge {
  text-decoration: none;
  cursor: pointer;
}

button.product-deal-badge {
  font-family: inherit;
  cursor: pointer;
}

.product-deal-badge svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-deal-badge-checkout {
  border: 1px solid var(--shade-border-b7d7f8);
  background: var(--color-info-bg);
  color: var(--shade-text-175cd3);
}

.product-deal-badge-promo {
  border: 1px solid var(--color-promo-border);
  background: var(--color-promo-bg);
  color: var(--shade-text-9b1b5a);
}

.product-deal-badge-code {
  border: 1px solid var(--shade-border-f7d5e5);
  background: var(--color-promo-bg);
  color: var(--color-promo);
}

.product-deal-badge-code.is-copied {
  border-color: var(--shade-border-2f855a);
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.product-deal-badge-fallback {
  margin: 0 0 0 6px;
  border: 1px solid var(--color-success-border);
  background: var(--color-success-bg);
  color: var(--color-success-text);
  cursor: pointer;
  vertical-align: baseline;
}

.product-deal-badge-fallback:disabled {
  cursor: default;
  opacity: 0.68;
}

.landing-main-content .product-deal-badge {
  font-size: calc(0.68rem - 1px);
  padding: 2px 6px;
}

.product-page-deal-badges {
  margin-top: -2px;
  margin-bottom: 4px;
}

.product-page-deal-badges .product-deal-badge {
  font-size: 0.78rem;
  padding: 4px 9px;
}

.vote-row {
  display: flex;
  gap: 8px;
  margin-top: 2px;
  align-items: center;
}

.vote-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  border: 1px solid var(--line);
}

.landing-main-content .vote-pill {
  font-size: calc(0.72rem - 2px);
}

.vote-pill-up {
  color: var(--color-success-text);
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
}

.vote-pill-down {
  color: var(--shade-text-9a3412);
  background: var(--color-warning-bg);
  border-color: var(--shade-border-f7d7be);
}

.vote-pill-net {
  font-variant-numeric: tabular-nums;
}

.vote-pill-net-inline {
  align-self: center;
}

.vote-pill-net-positive {
  color: var(--color-success-text);
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
}

.vote-pill-net-negative {
  color: var(--shade-text-b42318);
  background: var(--color-promo-bg);
  border-color: var(--shade-border-f9d3d3);
}

.promo-code-copy {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.promo-code-copy svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promo-code-copy.is-copied {
  border-color: var(--shade-border-2f855a);
  color: var(--color-success-text);
}

.promo-carousel-shell {
  position: relative;
  display: block;
}

.promo-carousel-track {
  display: block;
}

.promo-deal-card {
  min-width: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.promo-deal-card.is-hidden {
  display: none;
  opacity: 0;
}

.promo-deal-card.is-active {
  opacity: 1;
  transform: translateY(0);
}

.promo-deal-card.is-fading-out {
  opacity: 0;
  transform: translateY(4px);
}

.promo-deal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.checkout-discount-box {
  border-color: var(--color-border);
  background: var(--color-surface-subtle);
  color: var(--color-text-heading);
}

.checkout-discount-price {
  margin: 0;
  color: var(--shade-text-047857);
  font-weight: 900;
  font-size: 0.95rem;
}

.promo-apply-btn,
.promo-feedback-btn {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.82rem;
}

.promo-feedback-btn {
  color: var(--shade-text-74415c);
}

.promo-edit-card-new {
  margin-top: 10px;
  background: var(--color-surface);
}

.promo-edit-card-title {
  margin-bottom: 8px;
  color: var(--shade-text-37543f);
  font-size: 0.84rem;
  font-weight: 800;
}

.pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.page-link {
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.page-link:hover,
.page-link:focus-visible {
  border-color: var(--color-border-strong);
  background: var(--color-brand-tint);
  outline: none;
}

.page-current {
  color: var(--muted);
  font-size: 0.9rem;
}

.async-list-section {
  position: relative;
}

.async-list-section .product-grid {
  transition: opacity 0.16s ease;
}

.async-list-section.is-loading {
  cursor: progress;
}

.async-list-section.is-loading .product-grid {
  opacity: 0.55;
}

.async-list-section.is-loading .page-link {
  pointer-events: none;
}

.site-footer {
  width: 100%;
  padding: 0;
}

.site-footer-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border: 1px solid var(--shade-border-25563a);
  border-left: 0;
  border-right: 0;
  background: linear-gradient(145deg, var(--shade-bg-173624) 0%, var(--shade-bg-0f2419) 52%, var(--shade-bg-0b1712) 100%);
  color: var(--shade-text-e7f2e9);
  box-shadow: none;
  overflow: hidden;
}

.site-footer-main {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.site-footer-left {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 30px;
}

.site-footer-right {
  border-left: 1px solid color-mix(in srgb, var(--shade-border-c1e6cc) 20%, transparent);
  background: transparent;
  padding: 30px;
}

.site-footer-column {
  min-width: 0;
}

.site-footer-heading {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shade-text-f5fff7);
}

.site-footer-brand-heading {
  letter-spacing: 0;
  text-transform: none;
}

.site-footer-links {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer-links a {
  color: var(--shade-text-d1e4d5);
  text-decoration: none;
  font-weight: 700;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--shade-text-f6fff8);
  outline: none;
}

.site-footer-links-social {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.site-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.site-footer-social-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--shade-border-d3ecda) 48%, transparent);
  background: color-mix(in srgb, var(--shade-bg-05170e) 44%, transparent);
}

.site-footer-social-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.site-footer-social-icon img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.site-footer-copy {
  margin: 12px 0 0;
  color: var(--shade-text-cae2d1);
  max-width: 42ch;
}

.site-footer-subscribe-form {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer-subscribe-note {
  margin: 10px 0 0;
  color: var(--shade-text-cae2d1);
}

.site-footer-subscribe-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-border-strong) 75%, transparent);
  background: color-mix(in srgb, var(--color-surface-subtle) 96%, transparent);
  color: var(--shade-text-0a1f13);
  padding: 11px 14px;
}

.site-footer-subscribe-form input[type="email"]::placeholder {
  color: var(--shade-text-557663);
}

.site-footer-subscribe-form button {
  flex: 0 0 auto;
  padding: 11px 18px;
  border: 1px solid color-mix(in srgb, var(--shade-border-a5e2b2) 75%, transparent);
  background: linear-gradient(180deg, var(--shade-bg-27db4c) 0%, var(--shade-bg-11b137) 100%);
  color: var(--shade-onfill-07200d);
}

.site-footer-subscribe-form button:hover,
.site-footer-subscribe-form button:focus-visible {
  background: linear-gradient(180deg, var(--shade-bg-2ce752) 0%, var(--shade-bg-13bd3b) 100%);
  outline: none;
}

.site-footer-bottom {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid color-mix(in srgb, var(--shade-border-c1e6cc) 20%, transparent);
  padding: 14px 30px 18px;
  font-size: 0.82rem;
  color: var(--shade-text-afc7b4);
  text-align: center;
}

.site-footer-version {
  color: var(--shade-text-8fb89a);
}

.site-footer-disclosure {
  max-width: 44rem;
}

.cookie-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  width: min(720px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--color-surface) 98%, transparent);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--color-shadow) 18%, transparent);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice-copy h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--color-text-heading);
}

.cookie-notice-copy p {
  margin: 0;
  color: var(--shade-text-4f6358);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-notice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cookie-preferences[hidden] {
  display: none;
}

.cookie-preferences-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--shade-bg-0c1811) 42%, transparent);
}

.cookie-preferences-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, calc(100dvh - 36px));
  overflow: auto;
  display: grid;
  gap: 16px;
}

.cookie-preferences-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-preferences-head h2,
.cookie-preference-copy h3 {
  margin: 0;
  color: var(--color-text-heading);
}

.cookie-preferences-head p,
.cookie-preference-copy p {
  margin: 6px 0 0;
  color: var(--shade-text-52665b);
  line-height: 1.45;
}

.cookie-preferences-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface-subtle);
  color: var(--color-text-heading);
  font-size: 1.3rem;
  line-height: 1;
}

.cookie-preference-list {
  display: grid;
  gap: 10px;
}

.cookie-preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 126px;
  font-weight: 800;
  color: var(--color-text-heading);
}

.cookie-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--shade-text-12b43a);
}

.cookie-toggle-disabled {
  color: var(--color-text-soft);
}

.cookie-toggle-disabled input {
  opacity: 0.65;
}

.cookie-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Internal pages */
.page-section {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 6px auto 0;
}

.page-section.narrow {
  max-width: var(--layout-max-width);
}

.page-section.compact {
  max-width: var(--layout-max-width);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.panel + .panel {
  margin-top: 16px;
}

.legal-page .panel {
  display: grid;
  gap: 14px;
}

.legal-page h3 {
  margin: 12px 0 0;
  color: var(--color-text-heading);
}

.legal-page p {
  margin: 0;
  max-width: 74ch;
  color: var(--shade-text-334238);
}

.panel-head h1,
.panel-head h2,
.panel-head h3 {
  margin: 0;
  line-height: 1.2;
}

.panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.blog-hero {
  margin-bottom: 24px;
}

.blog-hero-copy {
  max-width: 68ch;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-border-subtle);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-card-body {
  padding: 22px;
}

.blog-card-meta,
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-post-meta {
  justify-content: center;
}

.blog-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -4px;
}

.blog-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-heading);
  line-height: 1;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
}

.blog-share-link:hover,
.blog-share-link:focus-visible {
  border-color: var(--color-border-strong);
  background: var(--color-brand-tint);
  color: var(--color-text-heading);
  outline: none;
}

.blog-share-link svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.blog-share-link .share-btn-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.blog-share-link svg[data-blog-share-stroke-icon] {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-share-status {
  flex: 1 0 100%;
  min-width: 0;
  min-height: 1.1em;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.2;
  text-align: center;
}

.blog-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.14;
}

.blog-card h2 a,
.blog-back-link,
.blog-pagination-link {
  text-decoration: none;
}

.blog-card-excerpt {
  margin: 0;
  color: var(--muted);
}

.blog-tag-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag-list li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-brand-tint);
  color: var(--shade-text-234232);
  font-size: 0.82rem;
  font-weight: 700;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blog-pagination-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.blog-pagination-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-heading);
  font-weight: 700;
}

.blog-empty {
  margin-bottom: 24px;
}

.blog-post-shell {
  display: grid;
  gap: 20px;
}

.blog-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1040px) minmax(0, 450px);
  align-items: start;
  justify-content: center;
  gap: 10px;
}

.blog-post-main {
  display: grid;
  min-width: 0;
  max-width: 1040px;
}

.blog-post-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  min-width: 0;
  max-width: 450px;
  gap: 16px;
}

.blog-sidebar-panel {
  padding: 18px;
}

.blog-sidebar-panel h2 {
  margin: 0 0 12px;
  color: var(--color-text-heading);
  font-size: 1rem;
  line-height: 1.2;
}

.blog-sidebar-menu,
.blog-sidebar-post-list {
  display: grid;
  gap: 8px;
}

.blog-sidebar-menu-link,
.blog-sidebar-post {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--shade-text-1f3828);
  text-decoration: none;
  line-height: 1.28;
}

.blog-sidebar-menu-link span,
.blog-sidebar-post span {
  font-weight: 800;
}

.blog-sidebar-menu-link time,
.blog-sidebar-post time {
  color: var(--muted);
  font-size: 0.82rem;
}

.blog-sidebar-menu-link:hover,
.blog-sidebar-menu-link:focus-visible,
.blog-sidebar-post:hover,
.blog-sidebar-post:focus-visible {
  border-color: var(--shade-border-b8d7bd);
  background: var(--color-brand-tint);
  color: var(--color-text-heading);
  outline: none;
}

.blog-sidebar-menu-link.is-active,
.blog-sidebar-menu-link[aria-current="page"] {
  border-color: var(--shade-border-8bcf9a);
  background: var(--color-success-bg);
  color: var(--color-text-heading);
}

.blog-sidebar-menu-link-h3 {
  padding-left: 20px;
}

.blog-sidebar-menu-link-h4 {
  padding-left: 30px;
  font-size: 0.9rem;
}

.blog-post-header {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 0;
  text-align: center;
}

.blog-post-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  max-width: 18ch;
}

.blog-post-header .blog-tag-list {
  margin-top: 2px;
  justify-content: center;
}

.blog-post-cover {
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.blog-post-cover img {
  width: min(100%, 760px);
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 4px);
}

.blog-post-content {
  display: grid;
  gap: 26px;
  padding: 30px;
  font-family: var(--font-sans);
}

.blog-prose {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-prose > :first-child {
  margin-top: 0;
}

.blog-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.blog-prose figure,
.blog-prose .kg-card {
  margin: 1.6rem 0;
}

.blog-prose .kg-image-card,
.blog-prose .kg-embed-card,
.blog-prose .kg-button-card {
  width: min(100%, 760px);
  margin-inline: auto;
}

.blog-prose .kg-image-card .kg-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.blog-prose figcaption,
.blog-prose .kg-card-hascaption figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.blog-prose iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 18px;
}

.blog-prose .kg-embed-card iframe[src*="youtube.com"],
.blog-prose .kg-embed-card iframe[src*="youtube-nocookie.com"],
.blog-prose .kg-embed-card iframe[src*="vimeo.com"] {
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: var(--shade-bg-111111);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--color-shadow) 16%, transparent);
}

.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
  line-height: 1.15;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  font-family: var(--font-display);
  letter-spacing: var(--tracking-display);
  color: var(--shade-text-111827);
}

.blog-prose h2 {
  font-size: 2rem;
  font-weight: 700;
}

.blog-prose h3 {
  font-size: 1.45rem;
  font-weight: 600;
}

.blog-prose p,
.blog-prose ul,
.blog-prose ol,
.blog-prose blockquote {
  margin: 0 0 1.1em;
}

.blog-prose a {
  color: var(--color-brand-text);
}

.blog-prose code,
.cms-rich-paragraph code,
.cms-special-preview code {
  padding: 0.12em 0.36em;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface-muted);
  color: var(--shade-text-122119);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.blog-prose .kg-button-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: stretch;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: left;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--color-shadow) 6%, transparent);
}

.blog-prose .kg-button-card-text {
  margin: 0;
  color: var(--shade-text-243528);
  font-weight: 600;
  line-height: 1.5;
}

.blog-prose .kg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: var(--color-on-brand);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 16px 30px color-mix(in srgb, var(--color-brand-strong) 22%, transparent);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.blog-prose .kg-button-card .kg-btn {
  justify-self: end;
  white-space: nowrap;
}

.blog-prose .kg-btn:hover {
  color: var(--color-on-brand);
  opacity: 0.96;
  transform: translateY(-1px);
  box-shadow: 0 20px 34px color-mix(in srgb, var(--color-brand-strong) 26%, transparent);
}

.blog-prose .kg-blockquote-card {
  width: min(100%, 700px);
  margin-inline: auto;
  padding: 24px 26px;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text-heading);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--color-shadow) 6%, transparent);
}

.blog-prose .kg-blockquote-card p {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.55;
  font-weight: 700;
}

.blog-prose .kg-blockquote-card cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 700;
}

.blog-prose .kg-subscribe-card {
  display: grid;
  gap: 24px;
  width: min(100%, 760px);
  margin-inline: auto;
  padding: 34px;
  border: 1px solid var(--shade-border-2c6a43);
  border-radius: var(--radius-lg);
  background: var(--shade-bg-082417);
  color: var(--shade-text-f5fff7);
  box-shadow: 0 24px 44px color-mix(in srgb, var(--shade-shadow-082417) 22%, transparent);
}

.blog-prose .kg-subscribe-card-copy {
  display: grid;
  gap: 14px;
  text-align: left;
}

.blog-prose .kg-subscribe-card-title,
.blog-prose .kg-subscribe-card-text {
  margin: 0;
}

.blog-prose .kg-subscribe-card-title {
  color: var(--shade-text-f5fff7);
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-prose .kg-subscribe-card-text {
  max-width: 560px;
  color: var(--shade-text-d8efdf);
  font-size: 1.35rem;
  line-height: 1.5;
}

.blog-prose .kg-subscribe-card-form {
  display: flex;
  align-items: center;
  gap: 18px;
}

.blog-prose .kg-subscribe-card-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-brand-tint);
  color: var(--shade-text-122119);
  padding: 0 22px;
  font-size: 1rem;
}

.blog-prose .kg-subscribe-card-form button {
  flex: 0 0 auto;
  min-height: 54px;
  padding: 0 34px;
  border: 1px solid var(--shade-border-9bd7a7);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--shade-bg-27db4c) 0%, var(--shade-bg-11b137) 100%);
  color: var(--shade-onfill-07200d);
  font-weight: 800;
}

.blog-prose .kg-subscribe-card-form-account {
  justify-content: flex-start;
}

.blog-prose .kg-subscribe-card-note {
  margin: -12px 0 0;
  color: var(--shade-text-8fa09a);
  font-size: 0.95rem;
}

.blog-prose .kg-subscribe-card-form button:hover,
.blog-prose .kg-subscribe-card-form button:focus-visible {
  background: linear-gradient(180deg, var(--shade-bg-2ce752) 0%, var(--shade-bg-13bd3b) 100%);
  outline: none;
}

.blog-prose .blog-inline-adsbygoogle {
  min-height: 120px;
}

.blog-prose blockquote.twitter-tweet:not(.twitter-tweet-rendered) {
  max-width: min(100%, 560px);
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--color-surface), var(--color-surface-subtle));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--color-shadow) 8%, transparent);
  font-size: 1rem;
  line-height: 1.6;
}

.blog-prose blockquote.twitter-tweet:not(.twitter-tweet-rendered) p {
  margin: 0 0 16px;
}

.blog-prose blockquote.twitter-tweet:not(.twitter-tweet-rendered) > :last-child {
  margin-bottom: 0;
}

.blog-prose .twitter-tweet-rendered {
  margin-left: auto !important;
  margin-right: auto !important;
}

.blog-prose .kg-toggle-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--color-surface);
  overflow: clip;
}

.blog-prose .kg-toggle-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.blog-prose .kg-toggle-summary::-webkit-details-marker {
  display: none;
}

.blog-prose .kg-toggle-summary-text {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
}

.blog-prose .kg-toggle-summary-icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--shade-bg-1f6a2d);
}

.blog-prose .kg-toggle-summary-icon::before,
.blog-prose .kg-toggle-summary-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--color-surface);
  transform: translate(-50%, -50%);
}

.blog-prose .kg-toggle-summary-icon::after {
  width: 2px;
  height: 12px;
}

.blog-prose .kg-toggle-card[open] .kg-toggle-summary-icon::after {
  opacity: 0;
}

.blog-prose .kg-toggle-content {
  padding: 0 20px 20px;
}

.blog-prose .kg-toggle-content > :last-child {
  margin-bottom: 0;
}

.blog-prose .kg-signup-card {
  display: block !important;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(135deg, var(--color-surface-subtle), var(--color-brand-tint));
}

.blog-prose .kg-signup-card-content {
  display: grid;
  gap: 12px;
}

.blog-prose .kg-signup-card-app-cta {
  display: grid;
  gap: 12px;
}

.blog-prose .kg-signup-card-app-cta p,
.blog-prose .kg-signup-card-heading,
.blog-prose .kg-signup-card-subheading,
.blog-prose .kg-signup-card-disclaimer {
  margin: 0;
}

.blog-prose .kg-signup-card-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--shade-bg-1f6a2d);
  color: var(--color-on-brand);
  text-decoration: none;
  font-weight: 700;
}

.blog-prose .kg-signup-card-app-link:hover {
  color: var(--color-on-brand);
  opacity: 0.92;
}

.blog-prose .kg-product-card {
  display: flex;
  justify-content: center;
}

.blog-prose .kg-product-card-container {
  display: grid;
  gap: 0;
  width: min(100%, 620px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: inherit;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--color-shadow) 6%, transparent);
}

.blog-prose .kg-product-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 18px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.blog-prose .kg-product-card-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.blog-prose .kg-product-card-content {
  display: grid;
  gap: 11px;
  padding: 16px;
}

.blog-prose .kg-product-card-brand,
.blog-prose .kg-product-card-title {
  margin: 0;
}

.blog-prose .kg-product-card-brand {
  color: var(--shade-text-57705f);
  font-size: 0.92rem;
  line-height: 1.15;
}

.blog-prose .kg-product-card-title {
  color: var(--shade-text-18233a);
  font-size: 1.06rem;
  line-height: 1.28;
  font-weight: 500;
}

.blog-prose .kg-product-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-prose .kg-product-card-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--color-brand-tint);
  color: var(--shade-text-244333);
  font-size: 0.76rem;
}

.blog-prose .kg-product-card-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-prose .kg-product-card-listing {
  color: var(--color-text-subtle);
  text-decoration: line-through;
  font-weight: 500;
}

.blog-prose .kg-product-card-paying,
.blog-prose .kg-product-card-price {
  color: var(--shade-text-047857);
  font-weight: 800;
}

.blog-prose .kg-product-card-discount {
  color: var(--shade-text-9f1d1d);
  font-weight: 800;
}

.blog-prose .kg-product-card-price-empty,
.blog-prose .kg-product-card-note {
  color: var(--muted);
}

.blog-prose .kg-product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-prose .kg-product-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-brand-tint);
  color: var(--shade-text-244333);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.blog-prose .kg-product-card-button-primary {
  border-color: var(--shade-border-7cc788);
  background: var(--shade-bg-0f7a3d);
  color: var(--color-on-brand);
}

.blog-prose .kg-product-card-button-secondary {
  background: var(--color-surface);
}

.blog-prose .kg-product-card-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.blog-prose .kg-product-card-button span {
  color: inherit;
}

.blog-prose .kg-product-card-button:hover,
.blog-prose .kg-product-card-button:focus-visible {
  background: var(--color-success-bg);
  border-color: var(--color-border-strong);
  color: var(--shade-text-244333);
  outline: none;
  transform: translateY(-1px);
}

.blog-prose .kg-product-card-button-primary:hover,
.blog-prose .kg-product-card-button-primary:focus-visible {
  border-color: var(--shade-border-0f7a3d);
  background: var(--shade-bg-0b6632);
  color: var(--color-on-brand);
}

.login-panel-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.login-page-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.login-page-logo {
  width: auto;
  max-width: 100%;
  height: var(--logo-size);
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--color-surface-subtle);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.status-banner {
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--shade-text-135724);
  font-size: 0.9rem;
}

.status-banner-trusted {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-info-bg);
  border: 1px solid var(--shade-border-b8d8f4);
  color: var(--shade-text-0f4f74);
}

.status-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--shade-bg-d2ebff);
  color: var(--shade-text-0f6fa8);
}

.status-banner-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-trusted-banner {
  margin: 0 0 28px;
  min-height: 64px;
  padding: 13px 18px;
  border-radius: 22px;
  font-size: 1rem;
}

.status-banner-warning {
  background: var(--color-warning-bg);
  border: 1px solid var(--shade-border-f3cc91);
  color: var(--shade-text-7a4b00);
}

.status-banner-danger {
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
  color: var(--shade-text-8c1d18);
}

.bot-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notifications-flash-error {
  color: var(--shade-text-aa3322);
}

.notifications-flash-success {
  color: var(--color-brand-text-deep);
}

.social-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.social-dashboard-mini-card > :is(.social-dashboard-mini-row, .small-note):first-of-type {
  border-top: 0;
  padding-top: 0;
}

.social-badge-discount {
  border-color: var(--shade-border-f4c6a7);
  background: var(--color-warning-bg);
  color: var(--shade-text-8a4114);
}

.social-price-marker-listing {
  color: var(--shade-text-9a5a25);
}

.social-price-marker-low {
  color: var(--shade-text-4d8f5f);
}

.social-price-marker-paying {
  color: var(--color-brand-text);
}

.social-publish-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.social-publish-counts-inline {
  align-items: center;
}

.social-publish-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--shade-bg-304138);
  color: var(--color-on-brand);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
}

.social-publish-count-pill-telegram {
  border-color: var(--color-telegram);
  background: var(--shade-bg-229ed9);
}

.social-publish-count-pill-x {
  border-color: var(--shade-border-111111);
  background: var(--shade-bg-111111);
}

.social-publish-count-pill-instagram {
  border-color: var(--color-promo);
  background: var(--shade-bg-b83280);
}

.social-publish-count-pill img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.events-toolbar {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.event-kind-http {
  color: var(--shade-text-0f5132);
  background: var(--color-border);
}

.event-kind-dependency {
  color: var(--shade-text-664d03);
  background: var(--shade-bg-fff3cd);
}

.event-kind-exception {
  color: var(--shade-text-842029);
  background: var(--shade-bg-f8d7da);
}

.event-kind-generic {
  color: var(--shade-text-41464b);
  background: var(--shade-bg-e2e3e5);
}

.form-stack {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-row.wrap {
  flex-wrap: wrap;
}

.form-row.end {
  justify-content: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--shade-text-2b3b31);
}

.small-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.email-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.email-status-badge-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  background: color-mix(in srgb, var(--color-surface) 70%, transparent);
}

.email-status-badge-detail {
  opacity: 0.78;
  font-weight: 700;
}

.email-status-badge-verified {
  border-color: var(--color-border-strong);
  background: linear-gradient(135deg, var(--color-success-bg), var(--color-success-bg));
  color: var(--shade-text-185c27);
}

.email-status-badge-pending {
  border-color: var(--shade-border-edd59c);
  background: linear-gradient(135deg, var(--shade-bg-fff6df), var(--shade-bg-fff0c2));
  color: var(--shade-text-87510c);
}

.email-status-badge-danger {
  border-color: var(--color-danger-border);
  background: linear-gradient(135deg, var(--color-danger-bg), var(--shade-bg-ffdede));
  color: var(--color-danger-text);
}

.access-name-status-icon-only-verified {
  color: var(--shade-text-17733a);
}

.access-name-status-icon-only-bounced,
.access-name-status-icon-only-complained,
.access-name-status-icon-only-suppressed {
  color: var(--shade-text-b32a2a);
}

.access-name-status-icon-only-pending {
  color: var(--shade-text-66717a);
}

.btn-secondary,
.btn-ghost,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  max-width: 100%;
}

.btn-secondary {
  border: 1px solid var(--shade-border-bdd9c0);
  background: var(--color-brand-tint);
  color: var(--shade-text-1f4126);
}

.btn-secondary:hover {
  background: var(--color-success-bg);
  box-shadow: none;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--color-surface);
  color: var(--shade-text-2e3d31);
}

.btn-ghost:hover {
  background: var(--color-surface-subtle);
  box-shadow: none;
}

.btn-danger {
  border: 1px solid var(--color-danger-border);
  background: var(--color-promo-bg);
  color: var(--color-danger-text);
}

.btn-danger:hover {
  background: var(--color-danger-bg);
  box-shadow: none;
}

.auth-options {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  width: min(100%, 400px);
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--shade-border-cde4cf);
  border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  background: var(--color-success-bg);
}

.auth-provider-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.auth-link-label {
  line-height: 1.2;
  text-align: center;
}

.auth-shell {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--color-brand-strong) 8%, transparent), transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface) 98%, transparent), color-mix(in srgb, var(--color-surface-subtle) 98%, transparent));
}

.auth-hero {
  gap: 6px;
}

.auth-eyebrow {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-strong);
  font-weight: 800;
}

.auth-shell-single {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 22px 22px 24px;
}

.auth-hero-minimal {
  text-align: center;
  align-items: center;
  margin-bottom: 14px;
}

.auth-card-stack {
  display: grid;
  gap: 14px;
}

.auth-section-card {
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  padding: 20px;
  box-shadow: 0 18px 36px color-mix(in srgb, var(--shade-shadow-172d1e) 5%, transparent);
}

.auth-section-card-main {
  padding-top: 22px;
  padding-bottom: 18px;
}

.auth-section-card-secondary {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-section-card-secondary.is-collapsed {
  opacity: 0;
  transform: translateY(-6px);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form label span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--shade-text-56645a);
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  padding: 12px 14px;
  font: inherit;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--shade-border-9db7a3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--shade-shadow-506e58) 12%, transparent);
}

.auth-form-compact {
  margin-top: 12px;
}

.auth-inline-panel {
  display: grid;
  gap: 12px;
}

.auth-heading {
  margin: 0;
  font-size: 1.06rem;
  color: var(--color-text-strong);
  text-align: center;
}

.auth-password-group {
  margin-bottom: 0;
}

.auth-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-inline-actions-end {
  justify-content: flex-end;
  margin-top: -6px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.auth-divider-wide {
  margin-top: 20px;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  padding: 12px 20px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.auth-submit-primary {
  border-color: var(--shade-border-2e9d57);
  background: linear-gradient(180deg, var(--color-success-bg), var(--color-border));
  color: var(--shade-text-2a3d2e);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--color-surface) 75%, transparent),
    0 10px 18px color-mix(in srgb, var(--shade-shadow-2e9d57) 12%, transparent);
}

.auth-submit-primary:hover,
.auth-submit-primary:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, var(--color-brand-tint), var(--color-success-bg));
  border-color: var(--shade-border-3ea868);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--color-surface) 84%, transparent),
    0 12px 20px color-mix(in srgb, var(--shade-shadow-3ea868) 14%, transparent);
}

.auth-submit-secondary {
  border-color: var(--color-border);
  background: linear-gradient(180deg, var(--color-border-subtle), var(--color-border-subtle));
  color: var(--shade-text-25342a);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-surface) 85%, transparent);
}

.auth-submit-secondary:hover,
.auth-submit-secondary:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, var(--color-surface-subtle), var(--color-brand-tint));
  border-color: var(--shade-border-bdd3c1);
}

.auth-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--shade-shadow-506e58) 16%, transparent);
}

.auth-options-single {
  width: 100%;
}

.auth-provider-button {
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  border-color: var(--shade-border-2e9d57);
  background: linear-gradient(180deg, var(--color-success-bg), var(--color-border));
  color: var(--shade-text-2a3d2e);
  padding: 12px 14px;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--color-surface) 75%, transparent),
    0 10px 18px color-mix(in srgb, var(--shade-shadow-2e9d57) 10%, transparent);
}

.auth-provider-button:hover,
.auth-provider-button:focus-visible {
  background: linear-gradient(180deg, var(--color-brand-tint), var(--color-success-bg));
  border-color: var(--shade-border-3ea868);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--color-surface) 84%, transparent),
    0 12px 20px color-mix(in srgb, var(--shade-shadow-3ea868) 13%, transparent);
}

.auth-footer {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 20px;
  text-align: center;
}

.auth-footer-copy {
  margin: 0;
  color: var(--shade-text-556159);
}

.auth-text-link {
  border: 0;
  background: transparent;
  color: var(--shade-text-5a8f70);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}

.auth-text-link:hover,
.auth-text-link:focus-visible {
  color: var(--shade-text-3f7356);
  outline: none;
}

.auth-text-link-inline {
  display: inline;
}

.auth-modal-dialog {
  display: grid;
  gap: 12px;
}

.auth-modal-dialog h3 {
  margin: 0;
  padding-right: 20px;
}

.auth-modal-dialog .small-note {
  margin: 0;
}

.error-text {
  color: var(--color-danger-text);
}

.kv-grid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kv-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
  padding: 10px;
}

.kv-item span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.kv-item strong {
  display: block;
  margin-top: 4px;
  word-break: break-word;
}

.profile-dashboard {
  position: relative;
}

.profile-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.profile-main,
.profile-sidebar {
  min-width: 0;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--color-brand) 14%, transparent), transparent 30%),
    radial-gradient(circle at right center, color-mix(in srgb, var(--color-brand-strong) 8%, transparent), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface) 98%, transparent), color-mix(in srgb, var(--color-surface-subtle) 94%, transparent));
}

.profile-hero-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-brand) 12%, transparent), transparent 68%);
  pointer-events: none;
}

.profile-eyebrow {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shade-text-2e6b3b);
}

.profile-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 56rem;
}

.profile-title-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-title-row h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.1;
}

.profile-hero-grid {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.profile-identity-card {
  border: 1px solid color-mix(in srgb, var(--shade-border-bddac1) 92%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--color-surface) 82%, transparent);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--color-shadow) 8%, transparent);
  backdrop-filter: blur(8px);
}

.profile-avatar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 0 6px;
  text-align: center;
}

.profile-avatar-upload-form {
  margin: 0;
}

.profile-avatar,
.profile-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-border) 92%, transparent);
}

.profile-avatar {
  object-fit: cover;
}

.profile-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, var(--shade-bg-f8d9ee) 0 28%, var(--shade-bg-f2c2dd) 29%, var(--color-violet-bg) 58%, var(--color-promo-bg) 100%);
}

.profile-avatar-fallback-orb {
  position: absolute;
  border-radius: 999px;
}

.profile-avatar-fallback-orb-one {
  width: 42px;
  height: 42px;
  left: 16px;
  top: 14px;
  background: color-mix(in srgb, var(--shade-bg-c46099) 42%, transparent);
}

.profile-avatar-fallback-orb-two {
  width: 58px;
  height: 24px;
  left: 18px;
  bottom: 15px;
  border-radius: 999px 999px 10px 10px;
  background: color-mix(in srgb, var(--shade-bg-c46099) 28%, transparent);
}

.profile-avatar-button {
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 18px 36px color-mix(in srgb, var(--shade-shadow-13381c) 16%, transparent);
}

.profile-avatar-button:focus-within {
  outline: 2px solid var(--shade-border-214b61);
  outline-offset: 4px;
}

.profile-avatar-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.profile-avatar-picker-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--shade-border-bdd8e4);
  background: var(--color-info-bg);
}

.profile-avatar-picker-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--shade-bg-0e1b24) 42%, transparent);
  opacity: 0;
  transition: opacity 140ms ease;
}

.profile-avatar-button:hover .profile-avatar-overlay,
.profile-avatar-button:focus-within .profile-avatar-overlay {
  opacity: 1;
}

.profile-avatar-overlay .profile-avatar-picker-icon {
  border-color: color-mix(in srgb, var(--color-surface) 45%, transparent);
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  color: var(--shade-text-214b61);
}

.profile-avatar-random {
  padding: 0.45rem 0.8rem;
  color: var(--color-brand-text-deep);
}

.profile-identity-card {
  padding: 22px;
}

.profile-account-form {
  margin-top: 0;
  gap: 18px;
}

.profile-identity-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-field-stack {
  display: grid;
  gap: 12px;
}

.profile-edit-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--shade-border-dbe6ee);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface) 100%);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--shade-shadow-1a3143) 8%, transparent);
  overflow: hidden;
}

.profile-edit-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border-right: 1px solid var(--shade-border-dbe6ee);
  color: var(--color-brand-text-deep);
  font-size: 1.35rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--color-brand-tint) 92%, transparent);
}

.profile-edit-prefix-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(22%) sepia(26%) saturate(961%) hue-rotate(83deg) brightness(92%) contrast(91%);
}

.profile-edit-prefix-email svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-brand-text-deep);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-edit-input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0 14px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--shade-text-1c2740);
  background: transparent;
  box-shadow: none;
}

.profile-edit-input:focus {
  outline: none;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
}

.profile-edit-row-disabled {
  border-color: var(--color-border);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-muted) 100%);
  box-shadow: none;
}

.profile-edit-row-disabled .profile-edit-prefix {
  background: color-mix(in srgb, var(--color-border-subtle) 96%, transparent);
  color: var(--shade-text-48614f);
}

.profile-edit-input-disabled {
  color: var(--shade-text-738175);
  background: transparent;
}

.profile-edit-input-disabled:focus {
  background: transparent;
}

.profile-identity-meta {
  display: none;
}

.profile-admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.78rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-admin-badge {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--shade-bg-d6dce3) 100%);
  border: 1px solid var(--shade-border-b4bcc7);
  color: var(--shade-text-43505f);
  min-height: 18px;
  padding: 0 0.38rem;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  transform: translateY(-1px);
}

.profile-account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
}

.profile-section-card {
  padding: 24px;
}

.profile-section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.profile-section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.1;
}

.profile-section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.profile-section-head-split {
  gap: 12px;
}

/* What DealiAI remembers (openspec assistant-shopper-memory D6). */
.profile-memory-card {
  display: grid;
  gap: 14px;
}

.profile-memory-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.profile-memory-switch p {
  margin: 0;
}

.profile-memory-groups {
  display: grid;
  gap: 12px;
}

.profile-memory-group h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.profile-memory-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-memory-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.profile-memory-list form {
  margin: 0;
}

.profile-memory-list .btn-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.profile-preferences-card .preference-form {
  margin-top: 0;
  gap: 18px;
}

.profile-preferences-card .preference-section {
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-subtle) 100%);
}

.profile-preferences-card .preference-chip-grid,
.profile-preferences-card .preference-frequency-group {
  gap: 10px;
}

.profile-preferences-card .form-row.wrap {
  justify-content: flex-end;
}

.profile-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-subtle) 100%);
}

.profile-activity-marker {
  width: 12px;
  height: 12px;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-brand) 0%, var(--color-brand-strong) 100%);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-brand) 10%, transparent);
}

.profile-activity-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-activity-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-activity-action {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--color-text-heading);
}

.profile-activity-time {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.profile-activity-target,
.profile-activity-target a,
.profile-activity-target span {
  color: var(--shade-text-25342b);
  word-break: break-word;
}

.profile-activity-target a {
  font-weight: 700;
  text-decoration: none;
}

.profile-activity-target a:hover,
.profile-activity-target a:focus-visible {
  color: var(--shade-text-0f5a22);
  text-decoration: underline;
  outline: none;
}

.profile-activity-empty {
  padding: 26px 20px;
  border: 1px dashed var(--color-border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--color-surface-subtle) 92%, transparent);
  text-align: center;
}

.profile-activity-empty h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.profile-activity-empty p {
  margin: 0;
  color: var(--muted);
}

.profile-pagination {
  margin-top: 20px;
}

@media (min-width: 900px) {
  .profile-layout {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    align-items: start;
  }

  .profile-main {
    order: 1;
  }

  .profile-sidebar {
    order: 2;
  }

  .profile-sidebar .profile-hero-card {
    position: sticky;
    top: calc(var(--topbar-control-size) + 28px);
  }

  .profile-section-head-split {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .profile-section-head-split > * {
    flex: 0 0 auto;
  }
}

@media (max-width: 899px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    order: 1;
  }

  .profile-main {
    order: 2;
  }
}

@media (max-width: 720px) {
  .blog-post-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-sidebar-panel {
    padding: 16px;
  }

  .profile-hero-card,
  .profile-section-card,
  .profile-identity-card {
    padding: 18px;
  }

  .profile-edit-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .profile-account-actions {
    align-items: stretch;
  }

  .profile-account-actions .form-row.end {
    width: 100%;
    justify-content: stretch;
  }

  .profile-account-actions .form-row.end button {
    width: 100%;
  }

  .profile-activity-item {
    padding: 14px 16px;
  }
}

.preferences-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: color-mix(in srgb, var(--shade-bg-051109) 48%, transparent);
  backdrop-filter: blur(4px);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preferences-modal {
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border-color: var(--shade-border-bcd4c0);
}

.preference-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preference-section .section-label,
.preference-section .small-note {
  margin: 0;
}

.preference-interest-hint {
  color: var(--shade-text-304854);
  font-weight: 600;
}

.preference-selection-hint {
  font-size: 0.82rem;
}

.preference-interest-hint.is-max-selected {
  color: var(--shade-text-6b7280);
}

.preference-chip-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.preference-chip {
  display: block;
  cursor: pointer;
}

.preference-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.preference-chip span {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--shade-border-c8dbcb);
  border-radius: 999px;
  background: var(--color-surface-subtle);
  color: var(--color-text-heading);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 10px 14px;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.preference-chip input:checked + span {
  border-color: var(--shade-border-0f7a39);
  background: var(--color-success-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--shade-shadow-0f7a39) 20%, transparent);
}

.preference-chip input:disabled + span {
  opacity: 0.55;
}

.preference-chip input:focus-visible + span {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.preference-frequency-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.preference-choice {
  display: block;
  cursor: pointer;
}

.preference-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.preference-choice span {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--shade-border-c8dbcb);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-heading);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 10px 12px;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.preference-choice input:checked + span {
  border-color: var(--shade-border-0f7a39);
  background: var(--color-success-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--shade-shadow-0f7a39) 20%, transparent);
}

.preference-choice input:focus-visible + span {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.preference-newsletter-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.preference-frequency-group-single {
  grid-template-columns: minmax(220px, 340px);
  justify-content: flex-start;
}

.preference-daily-field[hidden] {
  display: none;
}

.social-destination-list {
  gap: 10px 18px;
  align-items: center;
}

.social-telegram-option-toggle {
  margin: 0;
  justify-self: start;
}

.social-telegram-window-group {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-telegram-window-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.social-telegram-reviews-input {
  width: min(220px, 100%);
  max-width: 100%;
  flex: 0 1 220px;
}

textarea {
  min-height: 48px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

/* Not Found */
.not-found-page-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% -6%, var(--color-brand-glow-1), transparent 34%),
    radial-gradient(circle at 88% -10%, var(--color-brand-glow-2), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

.not-found-minimal {
  --not-found-pad: clamp(12px, 3vw, 28px);
  --not-found-ui-reserve: 74px;
  --not-found-image-max-width: 1024px;
  --not-found-image-max-height: 1536px;
  min-height: 100dvh;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: var(--not-found-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.not-found-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, var(--not-found-image-max-width));
  max-height: min(
    var(--not-found-image-max-height),
    calc(100dvh - var(--not-found-pad) - var(--not-found-pad) - var(--not-found-ui-reserve))
  );
}

.not-found-return-link {
  text-decoration: none;
  font-weight: 700;
  color: var(--color-text-heading);
  border: 1px solid var(--shade-border-cfe4d1);
  background: var(--color-brand-tint);
  border-radius: 999px;
  padding: 10px 16px;
  line-height: 1;
}

.not-found-return-link:hover,
.not-found-return-link:focus-visible {
  border-color: var(--color-border-strong);
  background: var(--color-success-bg);
  outline: none;
}

@media (max-width: 1540px) {
  .landing-main-layout {
    grid-template-columns: minmax(0, 1040px);
  }

  .landing-main-content .product-grid {
    justify-content: center;
  }

  .landing-side-rail {
    display: none;
  }
}

@media (max-width: 1080px) {
  .blog-post-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .homepage-ad-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage-ad-slot:nth-child(n+3) {
    display: none;
  }

  .blog-post-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art,
  .hero-copy {
    width: 100%;
  }

  .site-footer-main {
    grid-template-columns: 1fr;
  }

  .site-footer-right {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--shade-border-c1e6cc) 20%, transparent);
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --logo-size: 72px;
    --avatar-size: 72px;
    --topbar-control-size: calc(var(--logo-size) + 8px);
    --surface-corner-radius: 22px;
  }

  .not-found-minimal {
    --not-found-pad: 12px;
    --not-found-ui-reserve: 68px;
    gap: 10px;
  }

  .topbar {
    position: static;
    padding: 0;
  }

  .site-header-control-panel {
    position: relative;
    z-index: 300;
    width: 100%;
    margin: 14px auto 4px;
    padding: 8px;
    border-radius: 24px;
  }

  .site-header-control-panel.site-header-blog {
    width: min(calc(100% - 24px), var(--layout-max-width));
    margin: 12px auto 6px;
    padding: 6px;
    border-radius: 22px;
  }

  .topbar-shell {
    gap: 8px;
  }

  .topbar-inner {
    border-radius: var(--topbar-shape-radius);
    height: var(--topbar-control-size);
    min-height: var(--topbar-control-size);
    padding: 0 14px;
  }

  .brand {
    min-width: 0;
  }

  .topbar-auth {
    width: auto;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .topbar-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .user-menu-panel {
    right: 0;
    left: auto;
    max-width: min(260px, calc(100vw - 40px));
  }

  .nav-links {
    width: 100%;
    gap: 6px;
    flex-wrap: wrap;
  }

  .page-shell {
    width: 100%;
    padding: 2px 12px 28px;
  }

  .page-toast {
    right: 16px;
    left: 16px;
    width: auto;
    top: calc(var(--topbar-control-size) + 24px);
  }

  .site-footer {
    padding: 0;
  }

  .site-footer-left {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 18px;
  }

  .site-footer-right {
    padding: 22px 18px;
  }

  .site-footer-subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer-subscribe-form button {
    width: 100%;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: center;
    padding: 12px 18px 16px;
  }

  .cookie-notice {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
  }

  .cookie-notice-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-notice-actions > * {
    width: 100%;
  }

  .cookie-preference-row {
    grid-template-columns: 1fr;
  }

  .cookie-toggle {
    min-width: 0;
  }

  .cookie-preferences-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-preferences-actions > * {
    width: 100%;
  }

  .page-section {
    margin-top: 4px;
  }

  .panel {
    padding: 16px;
    border-radius: 18px;
  }

  .auth-shell-single {
    width: min(100%, 100%);
    padding: 18px 16px 20px;
  }

  .auth-section-card {
    padding: 18px 16px;
  }

  .hero {
    padding: 20px;
    border-radius: var(--hero-radius);
  }

  .landing-control-panel {
    position: relative;
    z-index: 300;
    margin: 14px 0 10px;
    padding: 8px;
    border-radius: 24px;
  }

  .landing-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px;
    align-items: center;
    gap: 5px;
  }

  .landing-logo-link {
    grid-column: 1 / -1;
    justify-content: center;
    min-width: 0;
    height: 58px;
  }

  .landing-logo {
    max-width: 184px;
    height: 56px;
  }

  .site-header-blog .landing-action-row {
    grid-template-columns: minmax(0, 1fr) 50px;
    align-items: center;
    gap: 8px;
    min-height: 0;
  }

  .site-header-blog .landing-logo-link {
    grid-column: 1;
    justify-content: center;
    height: 48px;
  }

  .site-header-blog .landing-logo {
    max-width: 168px;
    height: 46px;
  }

  .site-header-blog .landing-action-auth {
    grid-column: 2;
  }

  .landing-blog-button {
    display: none;
  }

  .landing-action-auth {
    grid-column: 2;
    justify-self: stretch;
  }

  .landing-lookup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px;
    align-items: stretch;
    grid-column: 1;
    min-width: 0;
    min-height: 60px;
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
  }

  .landing-lookup-form input[type="text"],
  .landing-lookup-form input[type="url"] {
    min-width: 0;
  }

  .landing-lookup-form button {
    position: relative;
    width: 50px;
    min-width: 50px;
    min-height: 50px;
    height: 50px;
    padding: 0;
    border-radius: 16px;
    font-size: 0;
  }

  .landing-lookup-form button::before {
    content: none;
  }

  .landing-lookup-form button::after {
    content: none;
  }

  .landing-lookup-form::before {
    content: none;
  }

  .landing-lookup-form::after {
    content: none;
  }

  .landing-lookup-form button img {
    width: 24px;
    height: 24px;
  }

  .landing-action-auth .login-btn,
  .landing-action-auth .user-menu-trigger {
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
    border-radius: 16px;
  }

  .landing-action-auth .user-menu-icon {
    width: 22px;
    height: 22px;
  }

  .filter-picker-popover {
    top: var(--filter-picker-top, 86px);
    left: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 28px);
    border-radius: 16px;
  }

  .filter-picker-options {
    gap: 6px;
  }

  .filter-picker-option {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 0.78rem;
  }

  .filter-picker-category-search {
    min-height: 40px;
    font-size: 0.84rem;
    padding: 0 12px;
  }

  .filter-picker-category-chip,
  .filter-picker-category-suggestion {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .filter-picker-badge-option {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 5px;
  }

  .filter-picker-badge-option img {
    width: 30px;
    height: 30px;
  }

  .landing-discover-menu {
    margin-top: 8px;
  }

  .landing-filter-rail {
    gap: 5px;
  }

  .discover-category-row,
  .discover-badge-row {
    gap: 7px;
  }

  .discover-chip,
  .discover-more summary,
  .discover-badge-chip {
    min-height: 32px;
    font-size: 0.8rem;
  }

  .discover-more {
    position: static;
  }

  .discover-more-panel {
    left: 0;
    right: 0;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .discover-badge-label {
    flex: 1 0 100%;
  }

  .lookup-form {
    flex-direction: column;
  }

  .hero-trending-picker {
    width: 100%;
  }

  .hero-trending-picker select {
    width: 100%;
    min-width: 0;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage-ad-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .homepage-ad-slot:nth-child(n+2) {
    display: none;
  }

  .featured-scroll-track .product-card {
    flex-basis: min(72vw, 260px);
    max-width: min(72vw, 260px);
  }

  .featured-scroll-btn {
    width: 34px;
    height: 34px;
  }

  .meta-row,
  .kv-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .form-row > * {
    flex: 1 1 100%;
    min-width: 0;
  }

  .form-row.end {
    justify-content: stretch;
  }

  .form-row.end > * {
    width: 100%;
  }

  .preference-chip-grid-scroll {
    grid-template-columns: 1fr;
    max-height: 252px;
    overflow-y: auto;
    align-content: start;
    padding-right: 4px;
  }

  .preference-chip-grid-scroll::-webkit-scrollbar {
    width: 8px;
  }

  .preference-chip-grid-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--shade-bg-b7cdbd);
  }

  .preference-frequency-group {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-pagination-actions {
    width: 100%;
    justify-content: space-between;
  }

  .blog-post-content {
    padding: 22px;
  }

  .blog-prose .kg-image-card,
  .blog-prose .kg-embed-card,
  .blog-prose .kg-button-card,
  .blog-prose .kg-blockquote-card,
  .blog-prose .kg-subscribe-card,
  .blog-prose .kg-ad-card,
  .blog-prose .kg-product-card-container {
    width: 100%;
  }

  .blog-prose .kg-blockquote-card,
  .blog-prose .kg-subscribe-card {
    padding: 18px;
  }

  .blog-prose .kg-button-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .blog-prose .kg-button-card .kg-btn {
    justify-self: stretch;
  }

  .blog-prose .kg-product-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .blog-prose .kg-product-card-button {
    width: 100%;
  }

  .blog-prose .kg-subscribe-card-form {
    display: grid;
    gap: 10px;
  }

  .blog-prose .kg-embed-card iframe[src*="youtube.com"],
  .blog-prose .kg-embed-card iframe[src*="youtube-nocookie.com"],
  .blog-prose .kg-embed-card iframe[src*="vimeo.com"] {
    border-radius: 18px;
  }

  .blog-prose .kg-btn {
    width: 100%;
  }

  .blog-prose blockquote.twitter-tweet:not(.twitter-tweet-rendered) {
    padding: 18px;
    border-radius: 20px;
  }
}

@media (max-width: 460px) {
  :root {
    --logo-size: 64px;
    --avatar-size: 64px;
    --topbar-control-size: calc(var(--logo-size) + 6px);
    --surface-corner-radius: 18px;
  }

  .page-shell {
    padding: 2px 10px 22px;
  }

  .topbar-shell {
    gap: 6px;
  }

  .landing-action-row {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 5px;
  }

  .landing-logo-link {
    height: 52px;
  }

  .landing-logo {
    max-width: 170px;
    height: 50px;
  }

  .landing-lookup-form {
    grid-template-columns: minmax(0, 1fr) 48px;
    min-height: 56px;
  }

  .landing-lookup-form input[type="text"],
  .landing-lookup-form input[type="url"] {
    font-size: 0.95rem;
  }

  .landing-lookup-form button {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 15px;
  }

  .landing-lookup-form button::before {
    content: none;
  }

  .landing-lookup-form button::after {
    content: none;
  }

  .landing-lookup-form::before {
    content: none;
  }

  .landing-lookup-form::after {
    content: none;
  }

  .landing-lookup-form button img {
    width: 23px;
    height: 23px;
  }

  .landing-action-auth .login-btn,
  .landing-action-auth .user-menu-trigger {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 15px;
  }

  .landing-action-auth .user-menu-icon {
    width: 21px;
    height: 21px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .landing-main-content .product-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .landing-main-content .product-card {
    width: 100%;
    max-width: none;
  }

  .featured-scroll-track .product-card {
    flex-basis: 82vw;
    max-width: 82vw;
  }

}

@media (max-width: 380px) {
  .landing-logo-link {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .landing-blog-button,
  .landing-action-auth {
    grid-column: 2;
  }

  .landing-lookup-form {
    grid-column: 1;
  }
}

/* Affiliate disclosure around every blog post body (templates/v2/_blog_affiliate_disclosure.html). */
.blog-disclosure {
  color: var(--muted);
}

.blog-disclosure-top {
  margin: 0 0 18px;
  font-size: 1rem;
}

.blog-disclosure-closing {
  margin: 28px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.blog-disclosure-closing small {
  font-size: 0.8rem;
}

/* Theme ------------------------------------------------------------------------------------------ */

/* static/theme.js sets this for one frame while switching, so every colour changes at once instead
   of each element fading on its own transition. */
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}

/* Icons drawn with currentColor inside an <img>: browsers disagree on what that colour is in dark
   mode, so render them as in light mode everywhere and let --icon-filter invert them. */
.user-menu-icon,
.filter-knob-button img {
  color-scheme: light;
  filter: var(--icon-filter);
}

/* <picture> swaps the logo for its dark version without changing the header layout. */
.theme-picture {
  display: contents;
}

/* The dark logo artwork sits on its own near-black; a rounded edge makes that read as a badge. */
.landing-logo {
  border-radius: var(--logo-radius);
}

/* The homepage art has a dark version too. Its near-black matte fills the letterbox around it, so
   the rounded panel, not the artwork's square edge, is what shows. Two selectors, as in tokens.css:
   the device setting, or a pinned choice. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .landing-hero {
    background-image: var(--hero-image-dark, var(--hero-image));
    background-color: var(--color-hero-matte);
  }
}

:root[data-theme="dark"] .landing-hero {
  background-image: var(--hero-image-dark, var(--hero-image));
  background-color: var(--color-hero-matte);
}

.theme-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
}

.theme-toggle-label {
  color: var(--color-text-strong);
  font-size: 0.9rem;
  font-weight: 500;
}

.theme-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Match device: a round icon button beside the switch, lit while the device decides. */
.theme-device-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.theme-device-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-device-button:hover {
  background: var(--color-brand-tint);
  color: var(--color-text-strong);
}

.theme-device-button[aria-pressed="true"] {
  border-color: var(--color-brand-strong);
  background: var(--color-brand-tint);
  color: var(--color-brand-text);
}

.theme-toggle {
  display: inline-flex;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.theme-toggle:focus-visible,
.theme-device-button:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.theme-toggle-track {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--color-border);
  transition: background-color 0.18s ease;
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-warning-text);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--color-shadow) 30%, transparent);
  transition: transform 0.18s ease;
}

.theme-toggle[aria-checked="true"] .theme-toggle-track {
  background: var(--color-brand-strong);
}

.theme-toggle[aria-checked="true"] .theme-toggle-thumb {
  transform: translateX(20px);
  color: var(--color-brand-strong);
}

.theme-toggle-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-icon-moon {
  display: none;
  fill: currentColor;
  stroke: none;
}

.theme-toggle[aria-checked="true"] .theme-toggle-icon-sun {
  display: none;
}

.theme-toggle[aria-checked="true"] .theme-toggle-icon-moon {
  display: block;
}
