:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --teal: #087a80;
  --teal-dark: #075f64;
  --coral: #ee6f57;
  --blue: #2d6cdf;
  --yellow: #f4b942;
  --lime: #9ac76d;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 126px;
  min-width: 126px;
  height: 55px;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: url("logo.svg?v=20260909-mockparcel-v16") center / contain no-repeat;
  box-shadow: none;
}

.brand-mark::after {
  content: none;
}

.brand span:not(.brand-mark) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.nav-links a {
  padding: 8px 10px;
  color: #313948;
  border-radius: 7px;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a[aria-current],
.nav-links a[aria-current="page"] {
  background: #eef4f4;
  color: var(--teal-dark);
}

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

.btn {
  border: 1px solid var(--ink);
  border-radius: 7px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.14);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn.primary {
  background: var(--ink);
  color: var(--surface);
}

.btn.teal {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.btn.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.btn.full {
  width: 100%;
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.78) 0%, rgba(8, 11, 18, 0.45) 44%, rgba(8, 11, 18, 0.12) 100%),
    url("hero-asset-marketplace.png") center / cover no-repeat;
  color: #fff;
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: var(--teal-dark);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 610px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.18);
}

.hero-metrics div {
  padding: 18px 20px;
  background: rgba(8, 11, 18, 0.42);
}

.metric-value {
  display: block;
  font-weight: 800;
  font-size: 24px;
}

.metric-label {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.section {
  padding: 76px 0;
}

.section.tight {
  padding: 48px 0;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1,
.product-title h1 {
  margin: 0;
}

.section-head h2 {
  max-width: 680px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
}

.section-head p,
.page-hero p,
.muted {
  color: var(--muted);
}

.page-hero {
  padding: 70px 0 46px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--paper));
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 17px;
}

.band {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.category {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  min-height: 116px;
}

.category strong {
  display: block;
  margin: 10px 0 4px;
}

.category span {
  color: var(--muted);
  font-size: 13px;
}

.swatch-row {
  display: flex;
  gap: 5px;
}

.swatch-row i {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 4px;
  display: block;
}

.market-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.filters h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: #374151;
  font-size: 13px;
  font-weight: 650;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 10px 11px;
  color: var(--ink);
}

.textarea {
  resize: vertical;
  min-height: 92px;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 8px 0 16px;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 14px;
}

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

.toolbar .input {
  max-width: 360px;
}

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

.product-card,
.price-card,
.panel,
.stat-card,
.order-row,
.support-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-card {
  overflow: hidden;
  display: grid;
}

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-card-body {
  padding: 14px;
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
  min-height: 44px;
}

.product-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
  color: #4b5563;
  font-size: 12px;
  white-space: nowrap;
}

.format-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin: 0;
}

.format-logo {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.format-ps {
  border-color: #31a8ff;
  background: #001e36;
  color: #31a8ff;
}

.format-ai {
  border-color: #ff9a00;
  background: #300;
  color: #ff9a00;
}

.format-png,
.format-jpg,
.format-svg,
.format-pdf,
.format-otf,
.format-ttf,
.format-id,
.format-br {
  background: #f8fafc;
  color: #334155;
}

.price {
  font-weight: 800;
  color: var(--ink);
}

.price-stack {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.compare-price {
  color: #98a2b3;
  text-decoration: line-through;
  font-size: 12px;
  font-weight: 650;
}

.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
}

.visual {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #edf5f5;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.visual::before,
.visual::after {
  content: "";
  position: absolute;
}

.image-visual {
  background: #f5f7fa;
}

.image-visual::before,
.image-visual::after {
  display: none;
}

.image-visual img {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.image-visual img.active {
  display: block;
}

.visual.ui {
  background:
    radial-gradient(circle at 80% 24%, var(--yellow) 0 9%, transparent 10%),
    linear-gradient(135deg, #eff7f7, #cde8e9);
}

.visual.ui::before {
  width: 74%;
  height: 66%;
  left: 13%;
  top: 18%;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 7px;
  background:
    linear-gradient(90deg, var(--ink) 0 22%, transparent 22%),
    repeating-linear-gradient(180deg, rgba(17, 24, 39, 0.12) 0 1px, transparent 1px 28px),
    #fff;
}

.visual.ui::after {
  width: 90px;
  height: 140px;
  right: 20px;
  bottom: 18px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #e9f3f3);
}

.visual.font {
  background: linear-gradient(135deg, #111827, #2f394a);
}

.visual.font::before {
  content: "Aa";
  left: 28px;
  top: 18px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 86px;
  font-weight: 700;
}

.visual.font::after {
  width: 52%;
  height: 56%;
  right: 20px;
  bottom: 20px;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.78) 0 5px, transparent 5px 18px),
    linear-gradient(90deg, var(--coral), var(--yellow));
  border-radius: 7px;
}

.visual.icons {
  background: linear-gradient(135deg, #f7faf9, #dcefee);
}

.visual.icons::before {
  inset: 22px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 18%, var(--teal) 0 12px, transparent 13px),
    radial-gradient(circle at 36% 18%, var(--coral) 0 12px, transparent 13px),
    radial-gradient(circle at 60% 18%, var(--yellow) 0 12px, transparent 13px),
    radial-gradient(circle at 84% 18%, #111827 0 12px, transparent 13px),
    radial-gradient(circle at 12% 50%, #111827 0 12px, transparent 13px),
    radial-gradient(circle at 36% 50%, var(--teal) 0 12px, transparent 13px),
    radial-gradient(circle at 60% 50%, var(--coral) 0 12px, transparent 13px),
    radial-gradient(circle at 84% 50%, var(--blue) 0 12px, transparent 13px),
    radial-gradient(circle at 12% 82%, var(--yellow) 0 12px, transparent 13px),
    radial-gradient(circle at 36% 82%, #111827 0 12px, transparent 13px),
    radial-gradient(circle at 60% 82%, var(--teal) 0 12px, transparent 13px),
    radial-gradient(circle at 84% 82%, var(--coral) 0 12px, transparent 13px);
  background-color: #fff;
}

.visual.mockup {
  background:
    linear-gradient(150deg, rgba(238,111,87,.22), transparent 45%),
    linear-gradient(45deg, #f7efe6, #e2f2ee);
}

.visual.mockup::before {
  width: 66%;
  height: 62%;
  left: 16%;
  top: 18%;
  transform: rotate(-6deg);
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 0 47%, var(--teal) 48% 64%, transparent 65%),
    linear-gradient(135deg, var(--coral), #fff 45%, var(--yellow));
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
}

.visual.three {
  background: linear-gradient(135deg, #0c2f35, #e8f4f2);
}

.visual.three::before {
  width: 110px;
  height: 110px;
  left: 36px;
  bottom: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff, var(--teal) 38%, #06363c 78%);
}

.visual.three::after {
  width: 96px;
  height: 96px;
  right: 34px;
  top: 32px;
  background: linear-gradient(135deg, var(--coral), var(--yellow));
  clip-path: polygon(50% 0, 100% 35%, 82% 100%, 18% 100%, 0 35%);
}

.visual.photo {
  background:
    linear-gradient(135deg, rgba(8,122,128,.18), transparent 45%),
    linear-gradient(135deg, #fff, #f1ece1);
}

.visual.photo::before {
  inset: 20px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 0 32%, #fff 32% 35%, transparent 35% 67%, #fff 67% 70%, transparent 70%),
    linear-gradient(180deg, transparent 0 32%, #fff 32% 35%, transparent 35% 67%, #fff 67% 70%, transparent 70%),
    radial-gradient(circle at 28% 28%, var(--teal), transparent 22%),
    radial-gradient(circle at 72% 34%, var(--coral), transparent 19%),
    radial-gradient(circle at 40% 76%, #1f2937, transparent 24%),
    radial-gradient(circle at 78% 78%, var(--yellow), transparent 20%),
    #d7e5df;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.workflow-step {
  border-left: 3px solid var(--teal);
  background: #fff;
  padding: 18px;
}

.workflow-step strong {
  display: block;
  margin-bottom: 8px;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.price-card {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.price-card.featured {
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.price-card h2,
.price-card h3 {
  margin: 0;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-line strong {
  font-size: 38px;
  line-height: 1;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #374151;
}

.feature-list li {
  display: flex;
  gap: 9px;
}

.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex: 0 0 auto;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-toggle button {
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}

.billing-toggle button.active {
  background: var(--ink);
  color: #fff;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  gap: 32px;
  align-items: start;
}

.product-title {
  margin-bottom: 22px;
}

.product-title h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
}

.product-gallery {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.gallery-grid .visual {
  height: 150px;
}

.purchase-box {
  position: sticky;
  top: 88px;
  padding: 18px;
}

.license-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.license-table th,
.license-table td,
.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px;
  text-align: left;
  vertical-align: top;
}

.license-table th,
.data-table th {
  background: #f7f8f8;
  color: #374151;
  font-size: 13px;
}

.license-table tr:last-child td,
.data-table tr:last-child td {
  border-bottom: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}

.sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  align-self: start;
  position: sticky;
  top: 88px;
}

.sidebar button,
.tab-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 7px;
  padding: 10px;
  color: #374151;
  cursor: pointer;
}

.sidebar button.active,
.tab-button.active {
  background: #edf5f5;
  color: var(--teal-dark);
  font-weight: 700;
}

.panel {
  padding: 18px;
  margin-bottom: 18px;
}

.panel h2,
.panel h3 {
  margin: 0 0 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 16px;
}

.stat-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.download-item,
.email-item,
.ticket-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.download-item:first-child,
.email-item:first-child,
.ticket-item:first-child {
  border-top: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #edf5f5;
  color: var(--teal-dark);
}

.status.warn {
  background: #fff7df;
  color: #8a5a00;
}

.status.hot {
  background: #fff0ec;
  color: #b13d24;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.automation-flow {
  display: grid;
  gap: 12px;
}

.automation-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.automation-step span:first-child {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.support-result {
  padding: 18px;
  margin-bottom: 14px;
}

.footer {
  padding: 42px 0;
  background: #0f172a;
  color: #d8dee9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 24px;
}

.footer h3,
.footer h4 {
  margin: 0 0 12px;
  color: #fff;
}

.footer a {
  display: block;
  color: #b7c0cf;
  margin: 7px 0;
  font-size: 14px;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 470px;
  margin-top: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
}

.modal.open {
  display: grid;
}

.modal-panel {
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-body {
  padding: 18px;
}

.icon-btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: min(360px, calc(100% - 40px));
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
}

.chat-launch {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: 6px 6px 0 rgba(17, 24, 39, 0.25);
}

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 70;
  width: min(380px, calc(100% - 40px));
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-panel.open {
  display: block;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--ink);
  color: #fff;
}

.chat-msg {
  max-width: 86%;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f2f4f7;
  font-size: 14px;
}

.chat-msg.user {
  justify-self: end;
  background: #ddf1f0;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.hidden {
  display: none !important;
}

.chat-launch,
.chat-panel {
  display: none !important;
}

.site-header.public-header .nav {
  width: min(1320px, calc(100% - 32px));
}

.nav-search {
  width: min(420px, 32vw);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.quick-hero {
  padding: 42px 0 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.quick-hero h1 {
  margin: 0;
  max-width: 740px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.quick-hero p {
  margin: 12px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}

.quick-search {
  margin-top: 22px;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 14px 44px rgba(17, 24, 39, 0.06);
}

.quick-search input {
  border: 0;
  outline: 0;
  padding: 12px 14px;
  background: transparent;
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.quick-cats a,
.quick-cats button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.quick-cats a:hover,
.quick-cats button:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 122, 128, 0.32);
  background: #f0f8f8;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

.light-section {
  padding: 34px 0;
}

.compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.compact-head h2 {
  margin: 0;
  font-size: 24px;
}

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

.compact-page {
  padding-top: 28px;
}

.detail-lite {
  padding: 30px 0;
}

.detail-lite .detail-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.detail-lite .detail-image {
  min-height: 700px;
}

.detail-lite .detail-sidebar h1 {
  margin: 8px 0 12px;
  font-size: 30px;
  line-height: 1.08;
}

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

.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.avatar-large {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef4f4;
  color: var(--teal-dark);
  font-size: 28px;
  font-weight: 900;
}

.auth-card {
  width: min(460px, 100%);
  margin: 46px auto;
}

.family-hero {
  padding: 72px 0 48px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.family-hero h1 {
  max-width: 780px;
  margin: 0 auto 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
}

.family-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.family-search {
  width: min(780px, 100%);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(17, 24, 39, 0.08);
}

.family-search input {
  border: 0;
  outline: 0;
  padding: 14px 16px;
  background: transparent;
  font-size: 17px;
}

.family-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.family-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.family-category:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 122, 128, 0.26);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.09);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.category-preview .visual {
  height: 150px;
  border-radius: 0;
}

.family-category-body {
  padding: 18px;
}

.family-category-body h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.family-category-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.subcategory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subcategory-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: #374151;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.subcategory-links a:hover {
  transform: translateY(-1px);
  background: #eef7f7;
  border-color: rgba(8, 122, 128, 0.28);
}

.member-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.member-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 13px;
  cursor: pointer;
  color: #374151;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.member-tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 122, 128, 0.28);
}

.member-tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.purchase-list {
  display: grid;
  gap: 14px;
}

.purchase-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.purchase-card .visual {
  height: 116px;
  border-radius: 8px;
}

.owned-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.owned-files {
  color: var(--muted);
  font-size: 13px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Graphic-design focused refresh inspired by clean AI-tool directory interfaces. */
.site-header {
  background: rgba(255, 255, 255, 0.92);
}

body {
  background: #f7f8fb;
}

.brand-mark {
  box-shadow: none;
}

.hero {
  min-height: auto;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(980px, calc(100% - 32px));
  text-align: center;
  padding: 86px 0 34px;
}

.hero .eyebrow {
  color: var(--teal-dark);
  justify-content: center;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1;
}

.hero p {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  color: #526071;
}

.hero-ctas {
  justify-content: center;
}

.hero-search {
  width: min(760px, 100%);
  margin: 26px auto 0;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

.hero-search input {
  border: 0;
  outline: 0;
  padding: 12px 14px;
  background: transparent;
  color: var(--ink);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.hero-metrics {
  width: min(980px, calc(100% - 32px));
  margin: 26px auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  background: transparent;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.metric-value {
  color: var(--ink);
}

.metric-label {
  color: var(--muted);
}

.category {
  background: #fff;
  min-height: 128px;
}

.product-card {
  position: relative;
  overflow: hidden;
  grid-template-rows: auto 1fr;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card-media {
  position: relative;
  overflow: hidden;
  background: #f5f7fa;
}

.product-card .visual {
  height: 250px;
}

.product-card-body {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card-body .toolbar {
  margin: auto 0 0;
}

.preview-count {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 5;
  min-width: 44px;
  transform: translate(-50%, 6px);
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  padding: 3px 9px;
  text-align: center;
  font-size: 12px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.card-media:hover .preview-count,
.card-media:focus-within .preview-count,
.product-card:focus .preview-count {
  opacity: 1;
  transform: translate(-50%, 0);
}

.product-card:hover,
.product-card:focus,
.product-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(8, 122, 128, 0.34);
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.12);
}

.product-card:focus {
  outline: 2px solid rgba(8, 122, 128, 0.28);
  outline-offset: 2px;
}

.product-card:hover h3 a,
.product-card:focus h3 a,
.product-card:focus-within h3 a {
  color: var(--teal-dark);
  text-decoration: underline;
}

.product-card:hover .visual,
.product-card:focus .visual,
.product-card:focus-within .visual {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.012);
}

.card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.card-media:hover .card-actions,
.card-media:focus-within .card-actions,
.product-card:focus .card-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.card-actions button,
.card-nav {
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.card-actions button:hover,
.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 122, 128, 0.34);
  background: #f0f8f8;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
}

.card-actions button:active,
.icon-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(17, 24, 39, 0.1);
}

.card-actions button.active {
  color: #d92d20;
}

.card-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.card-nav:hover {
  transform: translateY(calc(-50% - 2px));
  border-color: rgba(8, 122, 128, 0.34);
  background: #f0f8f8;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
}

.card-nav:active {
  transform: translateY(-50%);
  box-shadow: 0 5px 14px rgba(17, 24, 39, 0.1);
}

.card-media:hover .card-nav,
.card-media:focus-within .card-nav,
.product-card:focus .card-nav {
  opacity: 1;
}

.card-nav.prev {
  left: 10px;
}

.card-nav.next {
  right: 10px;
}

.visual.poster,
.visual.floral,
.visual.badge,
.visual.brush,
.visual.sticker,
.visual.template {
  background: #f5f7fa;
}

.visual.poster::before {
  inset: 20px 54px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 70% 28%, #2d6cdf 0 10%, transparent 11%),
    radial-gradient(circle at 30% 74%, #ee6f57 0 16%, transparent 17%),
    linear-gradient(135deg, #f7efe6 0 50%, #087a80 50% 62%, #fff 63%);
  box-shadow: 0 18px 35px rgba(17, 24, 39, 0.16);
}

.visual.poster::after {
  width: 66px;
  height: 120px;
  right: 26px;
  bottom: 20px;
  border-radius: 7px;
  background: repeating-linear-gradient(180deg, #111827 0 7px, #fff 7px 14px);
}

.visual.floral::before {
  inset: 28px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 30% 34%, #ee6f57 0 10%, transparent 11%),
    radial-gradient(ellipse at 46% 48%, #f4b942 0 9%, transparent 10%),
    radial-gradient(ellipse at 60% 30%, #ee6f57 0 8%, transparent 9%),
    linear-gradient(135deg, transparent 0 44%, #087a80 45% 48%, transparent 49%),
    linear-gradient(45deg, transparent 0 54%, #087a80 55% 58%, transparent 59%),
    #fff;
  border: 1px solid var(--line);
}

.visual.badge::before {
  width: 122px;
  height: 122px;
  left: calc(50% - 61px);
  top: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 34%, transparent 35%),
    conic-gradient(from 20deg, #111827, #087a80, #ee6f57, #f4b942, #111827);
}

.visual.badge::after {
  width: 190px;
  height: 48px;
  left: calc(50% - 95px);
  bottom: 28px;
  border-radius: 999px;
  background: #111827;
}

.visual.brush::before {
  inset: 32px;
  border-radius: 9px;
  background:
    linear-gradient(110deg, transparent 0 20%, #111827 20% 24%, transparent 25%),
    linear-gradient(130deg, transparent 0 36%, #ee6f57 36% 40%, transparent 41%),
    linear-gradient(155deg, transparent 0 58%, #087a80 58% 62%, transparent 63%),
    repeating-radial-gradient(circle at 50% 50%, rgba(17,24,39,.12) 0 1px, transparent 1px 8px),
    #fff;
  border: 1px solid var(--line);
}

.visual.sticker::before {
  inset: 22px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 25%, #ee6f57 0 18px, transparent 19px),
    radial-gradient(circle at 52% 28%, #2d6cdf 0 16px, transparent 17px),
    radial-gradient(circle at 78% 24%, #f4b942 0 15px, transparent 16px),
    radial-gradient(circle at 28% 68%, #087a80 0 19px, transparent 20px),
    radial-gradient(circle at 68% 68%, #111827 0 18px, transparent 19px),
    #fff;
  border: 1px solid var(--line);
}

.visual.template::before {
  inset: 22px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, #111827 0 32%, transparent 32%),
    repeating-linear-gradient(180deg, rgba(17,24,39,.14) 0 1px, transparent 1px 24px),
    #fff;
  box-shadow: 0 18px 35px rgba(17, 24, 39, 0.12);
}

.visual[data-slide="1"] {
  filter: hue-rotate(24deg) saturate(0.95);
}

.visual[data-slide="2"] {
  filter: hue-rotate(-18deg) contrast(1.05);
}

.detail-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 42px 0 30px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.detail-media {
  display: grid;
  gap: 18px;
}

.detail-image {
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 22%, #f4b942 0 8%, transparent 9%),
    radial-gradient(circle at 28% 76%, #ee6f57 0 13%, transparent 14%),
    linear-gradient(135deg, #f7efe6 0 50%, #087a80 50% 62%, #ffffff 63%);
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.1);
}

.detail-image.alt {
  min-height: 520px;
  background:
    repeating-linear-gradient(90deg, rgba(17,24,39,.08) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(180deg, rgba(17,24,39,.08) 0 1px, transparent 1px 74px),
    linear-gradient(135deg, #ffffff, #f3f6fb);
}

.detail-image.alt-two {
  min-height: 520px;
  background:
    radial-gradient(circle at 24% 28%, #087a80 0 16%, transparent 17%),
    radial-gradient(circle at 70% 62%, #111827 0 15%, transparent 16%),
    linear-gradient(135deg, #fbefe9, #ffffff);
}

.detail-sidebar {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.detail-sidebar h1 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.03;
}

.detail-price-line {
  margin: 18px 0;
  font-size: 20px;
}

.detail-actions {
  margin: 12px 0 0;
  justify-content: flex-start;
}

.detail-info-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-info-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.detail-file-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-file-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: #f8fafc;
  color: #1f2937;
  font-size: 14px;
}

.detail-meta-grid {
  display: grid;
  gap: 8px;
}

.detail-meta-item {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.detail-meta-item span {
  color: var(--muted);
  font-size: 12px;
}

.detail-meta-item strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.detail-image.image-detail {
  min-height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f7fa;
}

.detail-image.image-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sale-badge.inline {
  position: static;
  min-height: 24px;
  margin-left: 2px;
  padding: 2px 8px;
  box-shadow: none;
}

.admin-login {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.admin-login .panel {
  width: min(430px, 100%);
}

.admin-login-title {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1;
}

.admin-login-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.admin-login-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: admin-login-spin 0.7s linear infinite;
}

.admin-login-submit.is-loading .admin-login-spinner {
  display: inline-block;
}

.admin-login-status {
  min-height: 20px;
  margin: 11px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.admin-login-status.is-error {
  color: #b42318;
}

.admin-login-status.is-success {
  color: #087a65;
}

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

.admin-page-head h1 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: 1;
}

.admin-shell {
  margin-top: 24px;
  grid-template-columns: 210px minmax(0, 1fr);
}

.admin-content {
  min-width: 0;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-panel-head h2 {
  margin-bottom: 4px;
}

.admin-panel-head p {
  margin: 0;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(128px, 0.7fr));
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.member-toolbar {
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
}

.orders-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px);
}

.order-product-cell {
  min-width: 220px;
}

.order-product-cell strong,
.order-product-cell small {
  display: block;
}

.order-product-cell small {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}

.order-status[data-order-status="pending"] {
  background: #fff7df;
  color: #8a5a00;
}

.order-status[data-order-status="abandoned"],
.order-status[data-order-status="cancelled"],
.order-status[data-order-status="refunded"] {
  background: #fff0ec;
  color: #b13d24;
}

.order-status[data-order-status="downloaded"] {
  background: #eef2ff;
  color: #4740a4;
}

.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #374151;
  font-size: 13px;
}

.compact-select {
  max-width: 150px;
}

.table-scroll {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.table-scroll .data-table {
  border: 0;
  border-radius: 0;
}

.dense-table {
  min-width: 1040px;
  font-size: 13px;
}

.dense-table th,
.dense-table td {
  padding: 10px;
  vertical-align: middle;
}

.dense-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}

.check-cell {
  width: 38px;
  text-align: center;
}

.table-sub {
  font-size: 12px;
}

.keyword-cell {
  max-width: 230px;
  color: #475467;
}

.product-admin-table {
  min-width: 1280px;
}

.format-table .format-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 9px;
  box-shadow: none;
}

.format-mini-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.category-chip.sale {
  border-color: #ffd1c8;
  background: #fff0ec;
  color: #b13d24;
}

.table-input,
.table-select {
  min-height: 34px;
  padding: 7px 8px;
  font-size: 13px;
}

.wide-input {
  width: 230px;
}

.format-input {
  width: 138px;
}

.price-input {
  width: 78px;
}

.discount-input {
  width: 72px;
  display: inline-block;
}

.percent-mark {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
}

.final-price-cell {
  min-width: 86px;
}

.final-price-cell strong {
  display: block;
}

.keyword-input {
  width: 220px;
}

.file-input {
  width: 180px;
}

.admin-thumb {
  width: 78px;
  height: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f5f7fa;
}

.admin-thumb .visual {
  height: 100%;
  transform: none;
}

.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-thumb .visual::before {
  transform: scale(0.72);
  transform-origin: center;
}

.thumb-select {
  width: 78px;
  min-height: 28px;
  margin-top: 6px;
  padding: 4px 6px;
  font-size: 11px;
}

.switch-control {
  width: 44px;
  height: 26px;
  display: inline-block;
  position: relative;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-control span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8dee8;
  border: 1px solid rgba(17, 24, 39, 0.1);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.switch-control span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(17, 24, 39, 0.24);
  transition: transform 0.16s ease;
}

.switch-control input:checked + span {
  background: #34c759;
  border-color: #34c759;
}

.switch-control input:checked + span::after {
  transform: translateX(18px);
}

.switch-control:hover span {
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.12);
}

.row-dirty {
  background: #fffaf0;
}

.compact-table .dense-table {
  min-width: 480px;
}

.admin-product-modal .modal-panel {
  width: min(980px, calc(100vw - 32px));
}

.editor-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.editor-form-grid .field.wide {
  grid-column: span 2;
}

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

.editor-form-grid.two .field.wide {
  grid-column: auto;
}

.category-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(130px, 0.7fr) minmax(220px, 1.2fr) auto auto;
  gap: 12px;
  align-items: end;
}

.category-form .field {
  margin-bottom: 0;
}

.check-inline {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.category-table {
  min-width: 980px;
}

.category-name-input {
  width: 150px;
}

.category-slug-input {
  width: 130px;
}

.category-keywords-input {
  width: 320px;
}

.category-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tag-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.category-tag-button:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 122, 128, 0.32);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.1);
}

.category-tag-button.active {
  border-color: var(--teal);
  background: #edf7f6;
  color: var(--teal-dark);
}

.tag-field {
  position: relative;
}

.tag-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 8px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.tag-suggestions.hidden {
  display: none;
}

.tag-suggestions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.tag-suggestions button:hover {
  border-color: var(--teal);
  background: #edf7f6;
  color: var(--teal-dark);
}

.quick-cats button.active,
.quick-cats button.sale-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.quick-cats button.sale-chip {
  border-color: #ffd1c8;
  background: #fff0ec;
  color: #b13d24;
  font-weight: 850;
}

.trash-panel .dense-table {
  min-width: 900px;
}

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

.market-search-section {
  padding: 42px 0 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.market-search-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.market-search-panel h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.catalog-state {
  min-height: 26px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
}

.catalog-search-wrap {
  position: relative;
  width: min(680px, 100%);
}

.catalog-search-input {
  height: 50px;
  border-color: rgba(17, 24, 39, 0.14);
  border-radius: 999px;
  padding: 0 18px;
  text-align: center;
  font-size: 15px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.catalog-search-input:focus {
  outline: 0;
  border-color: rgba(8, 122, 128, 0.38);
  box-shadow: 0 0 0 4px rgba(8, 122, 128, 0.1), 0 12px 32px rgba(17, 24, 39, 0.08);
}

.catalog-suggestions {
  position: absolute;
  left: 18px;
  right: 18px;
  top: calc(100% + 8px);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.catalog-suggestions.hidden {
  display: none;
}

.catalog-suggestions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.catalog-suggestions button:hover {
  border-color: var(--teal);
  background: #edf7f6;
  color: var(--teal-dark);
}

.catalog-section {
  padding-top: 28px;
}

.catalog-toolbar {
  margin-bottom: 14px;
}

.catalog-toolbar .select {
  max-width: 150px;
}

.catalog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
  color: #667085;
  font-size: 13px;
}

.catalog-pager[hidden] {
  display: none;
}

.catalog-pager button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 0;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.catalog-pager button svg {
  width: 17px;
  height: 17px;
}

.catalog-pager button:hover,
.catalog-pager button:focus-visible {
  background: #111827;
  color: #ffffff;
}

.catalog-pager button:disabled {
  cursor: default;
  opacity: 0.32;
}

.catalog-pager button:disabled:hover,
.catalog-pager button:disabled:focus-visible {
  background: #ffffff;
  color: #111827;
}

.catalog-sales-section {
  padding-top: 24px;
}

.catalog-toolbar strong {
  font-size: 13px;
  color: var(--muted);
}

.catalog-section .product-grid,
.section .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  border-radius: 7px;
}

.product-card .visual {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.product-card-body {
  min-height: 118px;
  padding: 10px;
  gap: 7px;
}

.product-card h3 {
  min-height: 34px;
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 750;
}

.product-card-body .format-row {
  min-height: 24px;
  gap: 4px;
}

.product-card .format-logo {
  width: 23px;
  height: 23px;
  border-radius: 5px;
  font-size: 8px;
  box-shadow: none;
}

.product-card .toolbar {
  gap: 8px;
  margin-bottom: 0;
}

.product-card .price {
  font-size: 13px;
}

.product-card .compare-price {
  font-size: 11px;
}

.cart-plus {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
}

.detail-cart-plus {
  min-height: 46px;
  font-size: 24px;
  line-height: 1;
}

.sale-badge {
  top: 8px;
  left: 8px;
  min-height: 24px;
  border: 0;
  border-radius: 0;
  background: #ffdf1b;
  color: #111827;
  padding: 4px 15px 4px 8px;
  font-size: 11px;
  box-shadow: none;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
}

.sale-badge.inline {
  background: #ffdf1b;
  color: #111827;
}

.card-actions {
  top: 8px;
  right: 8px;
}

.card-actions button,
.card-nav {
  width: 29px;
  height: 29px;
  font-size: 13px;
}

.card-nav.prev {
  left: 8px;
}

.card-nav.next {
  right: 8px;
}

.preview-count {
  bottom: 8px;
  min-width: 40px;
  padding: 2px 8px;
  font-size: 11px;
}

.member-page {
  background: #fff;
}

.profile-card h1 {
  margin: 14px 0 4px;
  font-size: 26px;
  line-height: 1.05;
}

.member-stats {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.member-main {
  min-width: 0;
}

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

.member-product-card .owned-note {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.owned-files {
  color: #475467;
  font-size: 11px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-btn {
  min-width: 74px;
}

.member-empty {
  grid-column: 1 / -1;
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 14px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.checkbox-grid label {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
}

.image-manager {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.image-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.image-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f5f7fa;
}

.image-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 8px;
}

.image-actions .btn {
  min-height: 30px;
  padding: 5px 6px;
  font-size: 12px;
}

.admin-empty.compact {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

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

.admin-editor {
  margin-top: 18px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.mini-stat strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.mini-stat span {
  color: var(--muted);
  font-size: 13px;
}

.breakdown-list {
  display: grid;
  gap: 12px;
}

.breakdown-row {
  display: grid;
  gap: 7px;
}

.breakdown-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.breakdown-row span {
  color: var(--muted);
  font-size: 12px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.admin-empty {
  padding: 22px;
  text-align: center;
  color: var(--muted);
}

.email-export-field {
  margin-top: 14px;
}

.email-export-field .textarea {
  min-height: 120px;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.status.neutral {
  background: #eef2f7;
  color: #475467;
}

.btn.danger,
.btn.ghost.danger {
  color: #b42318;
  border-color: #f3b8b1;
}

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

@media (max-width: 980px) {
  .nav {
    height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero-metrics,
  .category-strip,
  .family-categories,
  .product-grid,
  .price-grid,
  .workflow,
  .stats-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-shell,
  .detail-layout,
  .product-layout,
  .app-shell,
  .profile-shell,
  .admin-grid,
  .support-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .member-toolbar,
  .category-form,
  .editor-grid,
  .mini-grid,
  .editor-form-grid,
  .editor-form-grid.two,
  .image-manager {
    grid-template-columns: 1fr;
  }

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

  .editor-form-grid .field.wide {
    grid-column: auto;
  }

  .filters,
  .purchase-box,
  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav {
    width: calc(100% - 24px);
    gap: 8px;
  }

  .site-header.public-header .nav {
    width: min(358px, calc(100vw - 32px));
    max-width: 358px;
    margin-left: 16px;
    margin-right: auto;
  }

  .container,
  .hero-inner {
    width: min(358px, calc(100vw - 32px));
    max-width: 358px;
    margin-left: 16px;
    margin-right: auto;
  }

  .eyebrow {
    display: block;
    white-space: normal;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
    min-width: 0;
  }

  .brand-mark {
    width: 94px;
    min-width: 94px;
    height: 41px;
    flex: 0 0 auto;
  }

  .nav-actions {
    display: none;
  }

  .public-header .nav-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    margin-left: auto;
  }

  .public-header .nav-search,
  .public-header .nav-links {
    display: none;
  }

  .nav-actions .btn.primary {
    width: 54px;
    min-height: 38px;
    padding: 8px 0;
    font-size: 0;
    white-space: nowrap;
  }

  .nav-actions .btn.primary::after {
    content: "Join";
    font-size: 13px;
  }

  .nav-actions .btn.ghost {
    display: none;
  }

  .public-header .nav-actions .btn.ghost {
    display: inline-flex;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .hero-inner {
    padding: 76px 0 48px;
  }

  .hero p {
    width: min(320px, calc(100vw - 42px));
    max-width: calc(100vw - 42px);
    font-size: 17px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-metrics,
  .category-strip,
  .family-categories,
  .product-grid,
  .price-grid,
  .workflow,
  .stats-grid,
  .footer-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .toolbar,
  .download-item,
  .email-item,
  .ticket-item {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

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

  .family-hero {
    padding: 48px 0 34px;
    text-align: left;
  }

  .family-hero h1 {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    font-size: 36px;
    line-height: 1.02;
  }

  .family-hero p {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    font-size: 16px;
  }

  .family-search,
  .quick-search {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .family-search input,
  .quick-search input {
    min-width: 0;
    font-size: 15px;
  }

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

  .category-preview .visual {
    height: 104px;
  }

  .family-category-body h2 {
    font-size: 24px;
  }

  .purchase-card {
    grid-template-columns: 1fr;
  }

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

/* Automation-first marketing workspace */
.automation-center,
.custom-email-center {
  display: grid;
  gap: 14px;
}

.product-management-stats {
  margin-bottom: 14px;
}

.automation-command-bar {
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid #2b2b30;
  border-radius: 12px;
  background: #121214;
  color: #f7f7f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.automation-command-bar h2 {
  margin: 2px 0 3px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.automation-command-bar p {
  margin: 0;
  color: #98989f;
  font-size: 13px;
}

.automation-command-bar .panel-step {
  color: #8f96ff;
}

.automation-command-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.automation-sync-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a7a7ad;
  font-size: 12px;
}

.automation-sync-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ee38b;
  box-shadow: 0 0 0 3px rgba(94, 227, 139, 0.12);
}

.automation-layout {
  min-height: 680px;
  border: 1px solid #29292e;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background: #fff;
}

.automation-rule-list {
  padding: 8px;
  background: #171719;
  border-right: 1px solid #29292e;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.automation-rule-list button {
  width: 100%;
  min-height: 64px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d9d9dd;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}

.automation-rule-list button:hover {
  background: #202023;
}

.automation-rule-list button.active {
  border-color: rgba(143, 150, 255, 0.38);
  background: rgba(94, 106, 210, 0.18);
  color: #fff;
}

.automation-rule-icon {
  width: 26px;
  height: 26px;
  border: 1px solid #3b3b41;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #83838b;
  font-size: 10px;
}

.automation-rule-list button.active .automation-rule-icon {
  border-color: #7079e5;
  color: #c6caff;
}

.automation-rule-list button > span:nth-child(2) {
  min-width: 0;
  display: grid;
}

.automation-rule-list strong {
  font-size: 13px;
  font-weight: 650;
}

.automation-rule-list small {
  overflow: hidden;
  color: #85858c;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-rule-list em {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #505057;
}

.automation-rule-list button.is-enabled em {
  background: #5ee38b;
}

.automation-rule-workspace {
  min-width: 0;
  background: #f8f8f9;
}

.automation-rule-head {
  min-height: 112px;
  padding: 19px 22px;
  border-bottom: 1px solid #e2e2e5;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.automation-rule-head > div > span {
  display: block;
  margin-bottom: 4px;
  color: #696973;
  font: 600 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.automation-rule-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.automation-rule-head p {
  max-width: 680px;
  margin: 4px 0 0;
  color: #696973;
  font-size: 13px;
}

.automation-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 0 0 auto;
}

.automation-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.automation-switch span {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 10px;
  background: #c6c6cb;
  transition: 150ms ease;
}

.automation-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  transition: 150ms ease;
}

.automation-switch input:checked + span {
  background: #5e6ad2;
}

.automation-switch input:checked + span::after {
  transform: translateX(15px);
}

.automation-switch b {
  font-size: 12px;
}

.automation-editor-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(330px, 420px);
  align-items: start;
  gap: 14px;
}

.automation-fields-panel {
  display: grid;
  gap: 10px;
}

.automation-field-group,
.automation-live-preview,
.automation-activity-panel {
  border: 1px solid #dedee2;
  border-radius: 10px;
  background: #fff;
}

.automation-field-group {
  padding: 16px;
}

.automation-group-title {
  margin-bottom: 12px;
}

.automation-group-title > span,
.automation-preview-head span {
  color: #5e6ad2;
  font: 650 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.automation-group-title h3,
.automation-preview-head h3 {
  margin: 2px 0 0;
  font-size: 14px;
}

.automation-group-title p {
  margin: 3px 0 0;
  color: #777780;
  font-size: 12px;
}

.automation-fixed-rule {
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid #e2e2e5;
  border-radius: 8px;
  background: #fafafa;
  display: grid;
  align-content: center;
}

.automation-fixed-rule span,
.automation-fixed-rule small {
  color: #777780;
  font-size: 11px;
}

.automation-fixed-rule strong {
  font-size: 13px;
}

.automation-live-preview {
  position: sticky;
  top: 78px;
  overflow: hidden;
}

.automation-preview-head {
  min-height: 58px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e2e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.automation-preview-head small {
  color: #878790;
  font-size: 11px;
}

.automation-live-preview .marketing-subject-preview {
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

.automation-live-preview .marketing-email-preview-frame {
  width: 100%;
  min-height: 540px;
  border: 0;
  border-radius: 0;
  background: #f4f4f5;
}

.automation-preview-foot {
  padding: 10px 13px;
  border-top: 1px solid #e2e2e5;
  color: #72727b;
  font-size: 11px;
}

.automation-activity-panel {
  overflow: hidden;
}

.automation-activity-panel .admin-panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e2e5;
}

.automation-activity-panel .admin-panel-head > span {
  color: #85858d;
  font-size: 11px;
}

.custom-email-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  align-items: start;
  gap: 14px;
}

.custom-email-form {
  padding: 18px;
}

.custom-email-send {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e2e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.custom-email-send p {
  margin: 0;
  color: #777780;
  font-size: 12px;
}

.custom-email-preview {
  position: sticky;
  top: 78px;
}

/* Logged-in coupon alert */
.coupon-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 20px;
}

.coupon-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 14, 0.64);
  backdrop-filter: blur(7px);
}

.coupon-notice-card {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  border: 1px solid #303036;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.coupon-notice-kicker {
  color: #5e6ad2;
  font: 650 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.coupon-notice-card h2 {
  margin: 7px 0 7px;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.coupon-notice-card > p {
  margin: 0;
  color: #666670;
  font-size: 14px;
}

.coupon-notice-list {
  margin: 18px 0;
  display: grid;
  gap: 8px;
}

.coupon-notice-list > div {
  padding: 12px 14px;
  border: 1px solid #dedee2;
  border-radius: 8px;
  background: #f8f8f9;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
}

.coupon-notice-list span,
.coupon-notice-list small {
  color: #74747d;
  font-size: 11px;
}

.coupon-notice-list strong {
  grid-row: span 2;
  font: 750 15px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}

.coupon-notice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1180px) {
  .automation-editor-grid,
  .custom-email-layout {
    grid-template-columns: 1fr;
  }

  .automation-live-preview,
  .custom-email-preview {
    position: static;
  }
}

@media (max-width: 760px) {
  .automation-command-bar,
  .automation-rule-head,
  .custom-email-send {
    align-items: flex-start;
    flex-direction: column;
  }

  .automation-command-actions {
    width: 100%;
    justify-content: space-between;
  }

  .automation-layout {
    grid-template-columns: 1fr;
  }

  .automation-rule-list {
    border-right: 0;
    border-bottom: 1px solid #29292e;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automation-editor-grid {
    padding: 8px;
  }

  .coupon-notice-actions .btn {
    flex: 1;
  }
}

@media (max-width: 980px) {
  .catalog-section .product-grid,
  .section .product-grid,
  .member-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-search-section {
    padding-top: 32px;
  }
}

@media (max-width: 640px) {
  .catalog-section .product-grid,
  .section .product-grid,
  .member-grid.product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-search-input {
    text-align: left;
  }

  .catalog-toolbar {
    display: flex;
  }
}

/* Final storefront card pass: fast white grid with image-first cards. */
body,
.site-header,
.market-search-section,
.compact-page,
.catalog-section,
.light-section,
.section,
.member-page {
  background: #FFFFFF;
}

.product-card,
.member-product-card {
  border: 0;
  border-radius: 0;
  background: #FFFFFF;
  box-shadow: none;
  overflow: visible;
  transition: none;
}

.product-card:hover,
.product-card:focus,
.product-card:focus-within {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.product-card:focus {
  outline: 0;
}

.card-media {
  overflow: visible;
  border-radius: 0;
  background: #FFFFFF;
}

.product-card .visual,
.product-card .visual:hover,
.image-visual,
.image-visual img {
  border-radius: 0;
}

.product-card:hover .visual,
.product-card:focus .visual,
.product-card:focus-within .visual {
  filter: none;
  transform: none;
}

.product-card-body {
  min-height: 86px;
  padding: 9px 0 0;
  gap: 7px;
}

.product-card h3 {
  min-height: 34px;
  font-size: 13px;
  line-height: 1.28;
}

.product-card:hover h3 a,
.product-card:focus h3 a,
.product-card:focus-within h3 a {
  color: #6b7280;
  text-decoration: none;
}

.product-card .sale-badge {
  top: 10px;
  left: 8px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0 6px 6px 0;
  padding: 4px 9px 4px 8px;
  background: #ffd21a;
  color: #05070c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: none;
  clip-path: none;
  overflow: visible;
}

.product-card .sale-badge::before {
  display: none;
}

.card-format-row {
  position: absolute;
  top: 9px;
  right: 32px;
  z-index: 6;
  display: flex;
  gap: 4px;
  min-height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.card-media:hover .card-format-row,
.card-media:focus-within .card-format-row,
.product-card:focus .card-format-row {
  opacity: 1;
  transform: translateY(0);
}

.product-card .card-format-row .format-logo {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 0;
  font-size: 7px;
  box-shadow: none;
}

.card-actions {
  top: 8px;
  left: auto;
  right: 8px;
  z-index: 7;
}

.card-actions button {
  width: 20px;
  height: 20px;
}

.cart-plus {
  position: relative;
  width: auto;
  min-width: 18px;
  height: 24px;
  min-height: 24px;
  padding: 0 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  box-shadow: none;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color 0.14s ease, transform 0.14s ease;
}

.cart-plus:hover,
.cart-plus:focus-visible {
  background: transparent;
  color: #6b7280;
  box-shadow: none;
  transform: translateY(-1px);
}

.cart-plus::after {
  content: attr(data-cart-hint);
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  z-index: 8;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.1);
  transform: translateY(2px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.cart-plus:hover::after,
.cart-plus:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.catalog-section .product-grid,
.section .product-grid,
.home-featured-section .product-grid,
.home-product-section .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 28px;
}

.public-header .nav,
.market-search-section .container,
.catalog-section .container,
.member-page .container,
.home-featured-section .container,
.home-product-section .container,
.family-hero .container,
.light-section .container,
.detail-lite .container,
.footer .container {
  width: min(1440px, calc(100% - 40px));
}

.catalog-section .product-grid {
  width: 100%;
}

.catalog-toolbar {
  justify-content: flex-end;
  margin-bottom: 24px;
}

.family-categories {
  gap: 28px;
}

.family-category {
  border: 0;
  border-radius: 0;
  background: #FFFFFF;
  box-shadow: none;
  overflow: visible;
  transition: none;
}

.family-category:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.category-preview {
  background: #FFFFFF;
  gap: 8px;
}

.family-category-body {
  padding: 14px 0 0;
}

.product-card,
.card-media,
.product-card .visual {
  width: 100%;
}

@media (max-width: 980px) {
  .catalog-section .product-grid,
  .section .product-grid,
  .member-grid.product-grid,
  .home-featured-section .product-grid,
  .home-product-section .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .catalog-section .product-grid,
  .section .product-grid,
  .member-grid.product-grid,
  .home-featured-section .product-grid,
  .home-product-section .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage product sections and product detail refinement. */
.home-motion-section {
  display: none;
}

.home-product-section {
  padding: 28px 0 38px;
  background: #FFFFFF;
}

.home-product-section + .home-product-section {
  padding-top: 14px;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-section-head span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.1;
}

.home-section-head h2 {
  margin: 2px 0 0;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1;
}

.home-section-head a {
  border: 1px solid #111827;
  padding: 8px 12px;
  color: #111827;
  font-size: 13px;
  font-weight: 760;
  transition: background 0.14s ease, color 0.14s ease;
}

.home-section-head a:hover,
.home-section-head a:focus-visible {
  background: #111827;
  color: #FFFFFF;
}

.visual-carousel {
  position: relative;
  overflow: hidden;
  background: #f5f7fa;
}

.visual-carousel::before,
.visual-carousel::after {
  display: none;
}

.visual-carousel .visual-frame {
  position: absolute;
  inset: 0;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;
}

.visual-carousel .visual-frame.active {
  opacity: 1;
}

.visual-alt-one {
  filter: hue-rotate(22deg) saturate(0.92) contrast(1.02);
}

.visual-alt-two {
  filter: hue-rotate(-18deg) saturate(1.06) contrast(1.04);
}

.detail-lite {
  padding: 0;
  background: #FFFFFF;
}

.detail-lite .container {
  width: min(1440px, calc(100% - 40px));
}

.detail-hero {
  border-bottom: 0;
  background: #FFFFFF;
  padding: 48px 0 36px;
}

.detail-lite .detail-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 44px;
}

.detail-media {
  gap: 30px;
}

.detail-image,
.detail-image.image-detail {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.detail-image.image-detail img {
  border-radius: 0;
}

.detail-sidebar {
  top: 88px;
  border: 0;
  border-radius: 0;
  background: #FFFFFF;
  padding: 0;
  box-shadow: none;
}

.detail-save-button {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: color 0.14s ease, transform 0.14s ease;
}

.detail-save-button .favorite-icon {
  width: 25px;
  height: 25px;
}

.detail-save-button:hover,
.detail-save-button.active {
  transform: translateY(-1px);
}

.detail-save-button:hover {
  color: #6b7280;
}

.detail-save-button.active {
  color: #ef4444;
}

.detail-format-row {
  min-height: 0;
  gap: 4px;
  margin: 0 42px 12px 0;
}

.detail-format-row .format-logo {
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 0;
  font-size: 7px;
  font-weight: 850;
  box-shadow: none;
}

.detail-sidebar h1 {
  margin: 0 42px 10px 0;
  font-size: clamp(30px, 3vw, 44px);
}

.detail-price-line {
  margin: 20px 0 16px;
}

.detail-purchase-actions {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

.detail-add-cart {
  width: 54px;
  min-width: 54px;
  height: 46px;
  min-height: 46px;
  border: 1px solid #111827;
  display: grid;
  place-items: center;
  padding: 0;
  color: #111827;
  font-size: 26px;
}

.detail-add-cart:hover,
.detail-add-cart:focus-visible {
  border-color: #111827;
  background: #111827;
  color: #FFFFFF;
}

.detail-add-cart::after {
  left: 0;
  right: auto;
}

.detail-buy-now {
  min-height: 46px;
  border-radius: 0;
  justify-content: center;
}

.detail-info-panel {
  margin-top: 24px;
  padding-top: 18px;
}

.detail-file-list {
  gap: 0;
  margin-bottom: 12px;
}

.detail-file-row {
  min-height: 30px;
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0;
  padding: 7px 0;
  background: #FFFFFF;
  font-size: 13px;
}

.detail-meta-grid {
  gap: 0;
}

.detail-meta-item {
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: baseline;
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0;
  padding: 8px 0;
  background: #FFFFFF;
}

.detail-meta-item span {
  font-size: 11px;
}

.detail-meta-item strong {
  font-size: 13px;
  font-weight: 680;
}

.detail-lite .band {
  border: 0;
  background: #FFFFFF;
}

@media (max-width: 980px) {
  .detail-lite .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: relative;
    top: auto;
  }
}

/* Black/white interaction states for clearer storefront feedback. */
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current],
.quick-cats a:hover,
.quick-cats a:focus-visible,
.quick-cats button:hover,
.quick-cats button:focus-visible,
.quick-cats button.active,
.quick-cats button.sale-chip.active,
.catalog-suggestions button:hover,
.catalog-suggestions button:focus-visible,
.tag-suggestions button:hover,
.tag-suggestions button:focus-visible {
  border-color: #111827;
  background: #111827;
  color: #FFFFFF;
  box-shadow: none;
}

.btn.primary:hover,
.btn.primary:focus-visible,
.detail-buy-now:hover,
.detail-buy-now:focus-visible {
  border-color: #111827;
  background: #FFFFFF;
  color: #111827;
  box-shadow: none;
}

.detail-add-cart:active,
.detail-buy-now:active,
.btn.primary:active {
  transform: translateY(0);
}

.favorite-button {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  box-shadow: none;
  font-family: Arial, sans-serif;
  padding: 0;
  line-height: 0;
  flex: 0 0 auto;
}

.favorite-icon {
  width: 15px;
  min-width: 15px;
  height: 15px;
  min-height: 15px;
  display: block;
  overflow: visible;
  flex: 0 0 auto;
  aspect-ratio: 1;
  pointer-events: none;
  stroke-width: 1.7;
}

.favorite-icon path {
  vector-effect: non-scaling-stroke;
}

.quick-cats button.sale-chip {
  background: transparent;
  color: #313948;
  font-weight: 400;
}

.quick-cats button.sale-chip:hover,
.quick-cats button.sale-chip:focus-visible,
.quick-cats button.sale-chip.active {
  border-color: #111827;
  background: #111827;
  color: #FFFFFF;
}

.favorite-button:hover,
.favorite-button:focus-visible {
  background: #111827;
  color: #FFFFFF;
}

.favorite-button.active {
  color: #ef4444;
}

.favorite-button.active:hover,
.favorite-button.active:focus-visible {
  background: #111827;
  color: #ef4444;
}

/* Public alignment lock: keep header, home, catalog, detail, and footer on one grid. */
.site-header.public-header .nav,
.public-header .nav,
.family-hero .container,
.home-product-section .container,
.market-search-section .container,
.catalog-section .container,
.detail-lite .container,
.member-page .container,
.footer .container {
  width: min(1440px, calc(100% - 40px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .site-header.public-header .nav,
  .public-header .nav,
  .family-hero .container,
  .home-product-section .container,
  .market-search-section .container,
  .catalog-section .container,
  .detail-lite .container,
  .member-page .container,
  .footer .container {
    width: calc(100vw - 32px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Brand and SEO admin finishing rules. */
.brand-mark {
  width: 126px;
  min-width: 126px;
  height: 55px;
  border: 0;
  border-radius: 0;
  background: url("logo.svg?v=20260909-mockparcel-v16") center / contain no-repeat;
  box-shadow: none;
}

.brand-mark::after {
  content: none;
}

.seo-admin-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.seo-settings-form .editor-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-settings-form .field.wide,
.seo-settings-form .field.full {
  grid-column: 1 / -1;
}

.seo-preview-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 16px;
}

.seo-preview-url {
  color: #188038;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.seo-preview-title {
  margin-top: 4px;
  color: #1a0dab;
  font-size: 19px;
  line-height: 1.25;
}

.seo-preview-desc {
  margin: 6px 0 0;
  color: #4d5156;
  font-size: 14px;
  line-height: 1.45;
}

.seo-check-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.seo-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  padding: 8px 0;
  font-size: 13px;
}

.seo-check-item strong {
  white-space: nowrap;
}

.seo-export-field {
  margin-top: 14px;
}

.seo-export-field textarea {
  min-height: 156px;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

@media (max-width: 760px) {
  .brand-mark {
    width: 94px;
    min-width: 94px;
    height: 41px;
  }

  .seo-admin-grid,
  .seo-settings-form .editor-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin tables should fit the console width without horizontal dragging. */
.admin-shell .table-scroll {
  overflow-x: hidden;
}

.admin-shell .dense-table,
.admin-shell .product-admin-table,
.admin-shell .category-table,
.admin-shell .trash-panel .dense-table,
.admin-shell .compact-table .dense-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.admin-shell .dense-table th,
.admin-shell .dense-table td {
  padding: 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-shell .dense-table thead th {
  white-space: normal;
}

.product-admin-table th:nth-child(1),
.product-admin-table td:nth-child(1) {
  width: 34px;
}

.product-admin-table th:nth-child(2),
.product-admin-table td:nth-child(2) {
  width: 78px;
}

.product-admin-table th:nth-child(3),
.product-admin-table td:nth-child(3) {
  width: 96px;
}

.product-admin-table th:nth-child(4),
.product-admin-table td:nth-child(4) {
  width: 18%;
}

.product-admin-table th:nth-child(6),
.product-admin-table td:nth-child(6) {
  width: 88px;
}

.product-admin-table th:nth-child(7),
.product-admin-table td:nth-child(7),
.product-admin-table th:nth-child(8),
.product-admin-table td:nth-child(8),
.product-admin-table th:nth-child(9),
.product-admin-table td:nth-child(9),
.product-admin-table th:nth-child(10),
.product-admin-table td:nth-child(10) {
  width: 74px;
}

.product-admin-table th:nth-child(11),
.product-admin-table td:nth-child(11) {
  width: 136px;
}

.admin-shell .table-actions {
  flex-wrap: wrap;
  gap: 5px;
}

.admin-shell .table-actions .btn.small {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 12px;
}

.admin-shell .admin-thumb {
  width: 62px;
  height: 46px;
}

.admin-shell .category-chip {
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.admin-shell .format-mini-row {
  margin-bottom: 0;
}

.admin-shell .format-table .format-logo {
  width: 20px;
  height: 20px;
  border-radius: 0;
  font-size: 8px;
}

.admin-shell .discount-input {
  width: 50px;
  min-height: 30px;
  padding: 5px 6px;
}

/* Card overlay buttons use calm color feedback only. */
.card-nav,
.favorite-button {
  transform: none;
  transition: opacity 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.card-nav:hover,
.card-nav:focus-visible {
  transform: none;
  border-color: rgba(17, 24, 39, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  box-shadow: none;
}

.card-nav:active,
.favorite-button:active {
  transform: none;
}

.favorite-button:hover,
.favorite-button:focus-visible {
  transform: none;
  border-color: rgba(17, 24, 39, 0.26);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  box-shadow: none;
}

.favorite-button.active:hover,
.favorite-button.active:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  color: #ef4444;
}

.member-auth-gate {
  width: min(980px, calc(100% - 40px));
}

.member-auth-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.18fr);
  gap: 28px;
  align-items: start;
}

.member-auth-card h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
}

.member-auth-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.member-auth-forms form {
  border: 1px solid rgba(17, 24, 39, 0.08);
  padding: 14px;
  background: #ffffff;
}

.member-auth-forms h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.newsletter-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  gap: 28px;
  align-items: end;
  padding: 34px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.newsletter-footer h2 {
  max-width: 680px;
  margin: 4px 0 8px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.newsletter-footer p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.newsletter-kicker {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.newsletter-form .input {
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.newsletter-form .input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 820px) {
  .member-auth-card,
  .member-auth-forms,
  .newsletter-footer,
  .newsletter-form {
    grid-template-columns: 1fr;
  }
}

/* Final admin/product/member pass. */
.public-header .nav-actions,
.nav-actions {
  gap: 12px;
}

.nav-icon-link {
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.14s ease, background 0.14s ease;
}

.nav-icon-link svg {
  width: 22px;
  height: 22px;
}

.nav-icon-link:hover,
.nav-icon-link:focus-visible {
  outline: 0;
  background: #f3f4f6;
  color: #6b7280;
}

.nav-icon-badge {
  position: absolute;
  right: -3px;
  top: -4px;
  min-width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  background: #111827;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.detail-media {
  gap: 0;
}

.detail-image + .detail-image {
  margin-top: 0;
}

.detail-lite .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 28px;
}

.detail-save-button:hover,
.detail-save-button.active {
  transform: none;
}

.card-actions {
  transform: none;
  transition: opacity 0.16s ease;
}

.card-media:hover .card-actions,
.card-media:focus-within .card-actions,
.product-card:focus .card-actions {
  transform: none;
}

.card-nav {
  transform: translateY(-50%) !important;
}

.card-nav:hover,
.card-nav:focus-visible,
.card-nav:active {
  transform: translateY(-50%) !important;
  border-color: rgba(17, 24, 39, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #6b7280;
  box-shadow: none;
}

.favorite-button,
.favorite-button:active {
  transform: none !important;
}

.favorite-button:hover,
.favorite-button:focus-visible {
  transform: none !important;
  border-color: rgba(17, 24, 39, 0.2);
  background: #f3f4f6;
  color: #111827;
  box-shadow: none;
}

.favorite-button.active {
  color: #ef4444;
}

.favorite-button.active:hover,
.favorite-button.active:focus-visible {
  background: #f3f4f6;
  color: #ef4444;
}

.footer {
  padding: 0;
  background: #050505;
  color: rgba(255, 255, 255, 0.72);
}

.newsletter-footer {
  display: block;
  max-width: 900px;
  padding: 74px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.newsletter-kicker {
  color: rgba(255, 255, 255, 0.58);
}

.newsletter-footer h2 {
  max-width: 820px;
  margin: 6px auto 14px;
  color: #ffffff;
}

.newsletter-footer p {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.66);
}

.newsletter-form {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 560px;
  margin: 30px auto 0;
}

.newsletter-form .input {
  min-height: 48px;
}

.newsletter-form .btn.primary {
  border-color: #ffffff;
  background: #ffffff;
  color: #050505;
}

.newsletter-form .btn.primary:hover,
.newsletter-form .btn.primary:focus-visible {
  background: transparent;
  color: #ffffff;
}

.footer-grid {
  padding: 52px 0 74px;
  gap: 42px;
}

.footer a:hover,
.footer a:focus-visible {
  color: #ffffff;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.cart-drawer.open {
  display: block;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.34);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: 18px;
  padding: 22px;
  background: #ffffff;
  box-shadow: -18px 0 44px rgba(17, 24, 39, 0.16);
}

.cart-panel-head,
.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-list {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: center;
}

.cart-line .visual {
  width: 78px;
  height: 58px;
  min-height: 0;
  aspect-ratio: auto;
}

.cart-line .card-nav,
.cart-line .preview-count {
  display: none;
}

.cart-line a {
  display: block;
  overflow: hidden;
  color: #111827;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-line span {
  color: #667085;
  font-size: 12px;
}

.icon-btn.mini {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.member-auth-card {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
}

.member-auth-forms.single {
  display: block;
}

.auth-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.auth-mode-toggle button {
  min-height: 42px;
  border: 0;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  font-weight: 760;
}

.auth-mode-toggle button.active,
.auth-mode-toggle button:hover,
.auth-mode-toggle button:focus-visible {
  background: #111827;
  color: #ffffff;
}

.admin-shell .table-scroll {
  overflow-x: hidden;
}

.admin-shell .dense-table {
  font-size: 13px;
}

.admin-shell .dense-table th,
.admin-shell .dense-table td {
  padding: 14px 12px;
  vertical-align: middle;
  overflow-wrap: normal;
}

.admin-shell .product-admin-table,
.admin-shell .category-table,
.admin-shell .trash-panel .dense-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.product-admin-table th:nth-child(1),
.product-admin-table td:nth-child(1) {
  width: 46px;
}

.product-admin-table th:nth-child(2),
.product-admin-table td:nth-child(2) {
  width: 32%;
}

.product-admin-table th:nth-child(3),
.product-admin-table td:nth-child(3) {
  width: 17%;
}

.product-admin-table th:nth-child(4),
.product-admin-table td:nth-child(4) {
  width: 12%;
}

.product-admin-table th:nth-child(5),
.product-admin-table td:nth-child(5) {
  width: 18%;
}

.product-admin-table th:nth-child(6),
.product-admin-table td:nth-child(6) {
  width: 10%;
}

.product-admin-table th:nth-child(7),
.product-admin-table td:nth-child(7) {
  width: 11%;
}

.admin-product-info {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.admin-shell .admin-thumb {
  width: 92px;
  height: 68px;
  border-radius: 6px;
}

.admin-product-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.admin-product-title {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-product-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 12px;
}

.admin-product-id code {
  color: #111827;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

.admin-select-fold {
  position: relative;
  width: 100%;
}

.admin-select-fold summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d8dee8;
  border-radius: 4px;
  padding: 7px 10px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  list-style: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-select-fold summary::-webkit-details-marker {
  display: none;
}

.admin-select-fold summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex: 0 0 auto;
}

.admin-select-fold[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.fold-option-list {
  max-height: 150px;
  overflow: auto;
  margin-top: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.fold-option-list span {
  display: block;
  padding: 8px 10px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  color: #374151;
  font-size: 12px;
}

.fold-option-list span:first-child {
  border-top: 0;
}

.category-main-cell {
  display: grid;
  gap: 8px;
}

.table-field-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.table-field-line span {
  color: #667085;
  font-size: 12px;
}

.category-name-input,
.category-slug-input,
.category-keywords-input {
  width: 100%;
}

.category-slug-input {
  color: #667085;
  font-size: 12px;
}

.category-table th:nth-child(1),
.category-table td:nth-child(1) {
  width: 30%;
}

.category-table th:nth-child(2),
.category-table td:nth-child(2) {
  width: 38%;
}

.category-table th:nth-child(3),
.category-table td:nth-child(3) {
  width: 12%;
}

.category-table th:nth-child(4),
.category-table td:nth-child(4) {
  width: 8%;
  text-align: center;
}

.category-table th:nth-child(5),
.category-table td:nth-child(5) {
  width: 12%;
}

.keyword-fold .category-keywords-input {
  margin-top: 6px;
  border-radius: 4px;
}

.editor-category-fold .category-tag-grid {
  max-height: 220px;
  overflow: auto;
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  background: #ffffff;
}

.editor-category-fold .category-tag-button {
  min-height: 32px;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
}

.format-mini-row {
  gap: 7px;
}

.admin-shell .format-table .format-logo {
  width: 22px;
  height: 22px;
  font-size: 8px;
}

.price-promo-cell {
  display: grid;
  gap: 7px;
}

.price-admin-line,
.discount-inline {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.price-admin-line span,
.discount-inline span:first-child {
  color: #667085;
  font-size: 12px;
}

.price-admin-line.final strong {
  color: #111827;
}

.admin-shell .discount-input {
  width: 62px;
  min-height: 34px;
}

.admin-shell .table-actions {
  align-items: stretch;
}

.admin-shell .table-actions .btn.small {
  min-width: 58px;
  min-height: 32px;
}

.analytics-dashboard {
  display: grid;
  gap: 18px;
}

.analytics-dashboard.hidden {
  display: none;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.analytics-card {
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #ffffff;
  padding: 15px 16px;
  display: grid;
  gap: 7px;
}

.analytics-card span,
.analytics-card small,
.funnel-step small {
  color: #667085;
  font-size: 12px;
}

.analytics-card span,
.analytics-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-card strong {
  min-width: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.analytics-funnel-panel {
  min-width: 0;
}

.analytics-funnel {
  display: grid;
  gap: 10px;
}

.funnel-step {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.funnel-step:last-child {
  border-bottom: 0;
}

.funnel-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  color: #111827;
}

.funnel-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.funnel-copy strong {
  font-size: 13px;
  line-height: 1.15;
}

.funnel-count {
  max-width: 96px;
  overflow: hidden;
  color: #111827;
  font-size: 20px;
  font-weight: 760;
  line-height: 1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-track {
  height: 7px;
  background: #eef2f6;
  overflow: hidden;
}

.funnel-track span {
  display: block;
  width: var(--funnel-width, 0%);
  height: 100%;
  max-width: 100%;
  background: #111827;
}

.funnel-rates {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #667085;
  font-size: 11px;
  line-height: 1.2;
}

.wide-analytics-grid {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  margin-top: 0;
}

.analytics-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
  padding: 16px 18px;
}

.analytics-control-bar h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.analytics-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 2px 0 -4px;
}

.analytics-section-title h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.2;
}

.analytics-section-title p,
.analytics-panel-head p,
.admin-panel-head.compact p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.analytics-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 0;
}

.analytics-top-grid .analytics-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.analytics-top-grid .analytics-card {
  min-height: 84px;
  padding: 14px 15px;
}

.analytics-grid {
  gap: 16px;
}

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

.analytics-bottom-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.analytics-panel {
  min-width: 0;
  overflow: hidden;
  padding: 16px;
}

.analytics-panel-head,
.admin-panel-head.compact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.analytics-panel-head h2,
.admin-panel-head.compact h2 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
}

.analysis-flag {
  display: inline-flex;
  margin: 0 4px 4px 0;
  padding: 3px 6px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  color: #111827;
  background: #f8fafc;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-shell [data-tab-panel="analytics"] .compact-table {
  max-height: 362px;
  overflow-x: hidden;
  overflow-y: auto;
}

.admin-shell [data-tab-panel="analytics"] .dense-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
  font-size: 12px;
}

.admin-shell [data-tab-panel="analytics"] .dense-table th,
.admin-shell [data-tab-panel="analytics"] .dense-table td {
  padding: 8px 10px;
  line-height: 1.25;
  vertical-align: middle;
}

.admin-shell [data-tab-panel="analytics"] .dense-table th:first-child,
.admin-shell [data-tab-panel="analytics"] .dense-table td:first-child {
  width: 54%;
}

.admin-shell [data-tab-panel="analytics"] #categoryPerformanceTable th:nth-child(1),
.admin-shell [data-tab-panel="analytics"] #categoryPerformanceTable td:nth-child(1) {
  width: 18%;
}

.admin-shell [data-tab-panel="analytics"] #categoryPerformanceTable th:nth-child(2),
.admin-shell [data-tab-panel="analytics"] #categoryPerformanceTable td:nth-child(2),
.admin-shell [data-tab-panel="analytics"] #categoryPerformanceTable th:nth-child(4),
.admin-shell [data-tab-panel="analytics"] #categoryPerformanceTable td:nth-child(4) {
  width: 12%;
}

.admin-shell [data-tab-panel="analytics"] #categoryPerformanceTable th:nth-child(3),
.admin-shell [data-tab-panel="analytics"] #categoryPerformanceTable td:nth-child(3) {
  width: 32%;
}

.admin-shell [data-tab-panel="analytics"] #categoryPerformanceTable th:nth-child(5),
.admin-shell [data-tab-panel="analytics"] #categoryPerformanceTable td:nth-child(5) {
  width: 26%;
}

.admin-shell [data-tab-panel="analytics"] #promotionPerformanceTable th:nth-child(1),
.admin-shell [data-tab-panel="analytics"] #promotionPerformanceTable td:nth-child(1) {
  width: 42%;
}

.admin-shell [data-tab-panel="analytics"] #promotionPerformanceTable th:nth-child(2),
.admin-shell [data-tab-panel="analytics"] #promotionPerformanceTable td:nth-child(2),
.admin-shell [data-tab-panel="analytics"] #promotionPerformanceTable th:nth-child(3),
.admin-shell [data-tab-panel="analytics"] #promotionPerformanceTable td:nth-child(3),
.admin-shell [data-tab-panel="analytics"] #promotionPerformanceTable th:nth-child(5),
.admin-shell [data-tab-panel="analytics"] #promotionPerformanceTable td:nth-child(5) {
  width: 14%;
}

.admin-shell [data-tab-panel="analytics"] #promotionPerformanceTable th:nth-child(4),
.admin-shell [data-tab-panel="analytics"] #promotionPerformanceTable td:nth-child(4) {
  width: 16%;
}

.admin-shell [data-tab-panel="analytics"] #categoryPerformanceTable,
.admin-shell [data-tab-panel="analytics"] #promotionPerformanceTable {
  min-width: 0;
}

.admin-shell [data-tab-panel="analytics"] .table-sub {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-table-head th {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  white-space: nowrap;
}

.analytics-product-cell {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.analytics-name {
  display: block;
  min-width: 0;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-value {
  color: #111827;
  font-weight: 700;
  white-space: nowrap;
}

.analytics-desc {
  color: #313948;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.analytics-pager-row td {
  padding: 8px 10px !important;
}

.analytics-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #667085;
  font-size: 12px;
}

.analytics-pager span {
  white-space: nowrap;
}

.analytics-pager .btn.small {
  min-height: 28px;
  padding: 0 10px;
}

.integrations-admin-grid,
.integration-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  gap: 18px;
}

.integration-settings-form {
  display: grid;
  gap: 16px;
}

.integration-page-head {
  display: grid;
  gap: 5px;
}

.integration-page-head h2,
.integration-card h3 {
  margin: 0;
}

.integration-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #ffffff;
}

.integration-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.integration-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.integration-copy {
  max-width: 680px;
  margin: 0;
}

.integration-account-notice {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #dedee2;
  border-radius: 8px;
  background: #f8f8fa;
  color: #3f3f46;
  font-size: 13px;
  line-height: 1.5;
}

.integration-account-notice strong {
  color: #111113;
  font-size: 13px;
}

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

.integration-test-action {
  align-self: end;
}

.integration-test-result {
  min-height: 18px;
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.integration-test-result.success {
  color: #087443;
}

.integration-test-result.error {
  color: #c9352b;
}

.integration-section-head {
  margin-top: 24px;
}

.integration-settings-form .editor-form-grid {
  margin-top: 14px;
}

.integration-note {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid rgba(17, 24, 39, 0.08);
  color: #111827;
}

.integration-note code {
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #667085;
}

.integration-status-list {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.integration-status-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  color: #667085;
  font-size: 13px;
}

.integration-status-item strong {
  min-width: 0;
  color: #111827;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.integration-actions {
  display: flex;
  justify-content: flex-end;
}

.paypal-checkout-modal {
  z-index: 110;
}

.purchased-product-modal {
  z-index: 120;
}

.purchased-product-panel {
  width: min(470px, 100%);
  border-radius: 12px;
}

.purchased-product-panel .modal-head > div {
  display: grid;
  gap: 3px;
}

.purchased-product-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.purchased-product-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8f7f2;
  color: #087a65;
  font-size: 22px;
  font-weight: 800;
}

.purchased-product-body h3 {
  margin: 1px 0 7px;
  color: #111827;
  font-size: 18px;
}

.purchased-product-body p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.purchased-product-body small {
  display: block;
  margin-top: 8px;
  color: #7a7f89;
}

.purchased-product-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 5px;
}

.paypal-checkout-panel {
  width: min(480px, 100%);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.paypal-checkout-panel .modal-head > div {
  display: grid;
  gap: 3px;
}

.paypal-checkout-kicker {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.paypal-checkout-body {
  display: grid;
  gap: 14px;
}

.paypal-order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.paypal-order-summary span {
  color: #667085;
  font-size: 13px;
}

.paypal-order-summary strong {
  color: #111827;
  font-size: 17px;
}

.paypal-button-container {
  min-height: 46px;
}

.paypal-checkout-state {
  min-height: 20px;
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.paypal-checkout-state.processing {
  color: #4740a4;
}

.paypal-checkout-state.error {
  color: #c9352b;
}

.paypal-checkout-footnote {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #7a7f89;
  font-size: 12px;
  line-height: 1.55;
}

.paypal-success-body {
  display: grid;
  gap: 18px;
}

.paypal-success-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px 8px 2px;
  text-align: center;
}

.paypal-success-mark,
.checkout-success-banner-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8f8ef;
  color: #157a48;
  font-size: 24px;
  font-weight: 800;
}

.paypal-success-hero h2 {
  margin: 2px 0 0;
  color: #111827;
  font-size: 26px;
  letter-spacing: -0.025em;
}

.paypal-success-hero p {
  max-width: 390px;
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.paypal-success-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.paypal-success-details > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
}

.paypal-success-details > div + div {
  border-left: 1px solid var(--line);
}

.paypal-success-details span {
  color: #7a7f89;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.paypal-success-details strong {
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paypal-success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-success-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
  padding: 17px;
  border: 1px solid #b9e6ce;
  border-radius: 12px;
  background: #f0fbf5;
}

.checkout-success-banner-mark {
  width: 38px;
  height: 38px;
  font-size: 19px;
}

.checkout-success-banner strong {
  color: #135c3b;
  font-size: 15px;
}

.checkout-success-banner p {
  margin: 4px 0 0;
  color: #44705b;
  font-size: 13px;
  line-height: 1.55;
}

.checkout-success-banner span {
  display: block;
  margin-top: 6px;
  color: #557966;
  font-size: 11px;
}

@media (max-width: 560px) {
  .paypal-success-details {
    grid-template-columns: 1fr;
  }

  .paypal-success-details > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .paypal-success-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .admin-product-info {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .admin-shell .admin-thumb {
    width: 78px;
    height: 58px;
  }

  .product-admin-table th:nth-child(2),
  .product-admin-table td:nth-child(2) {
    width: 30%;
  }

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

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

  .analytics-top-grid,
  .analytics-bottom-grid,
  .integration-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .detail-lite .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .analytics-funnel {
    grid-template-columns: 1fr;
  }

  .analytics-top-grid .analytics-summary,
  .analytics-rank-grid,
  .wide-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .member-auth-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .detail-lite .product-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-footer {
    padding: 56px 0;
  }

  .footer-grid {
    padding: 40px 0 58px;
  }

  .analytics-summary {
    grid-template-columns: 1fr;
  }

  .analytics-funnel {
    grid-template-columns: 1fr;
  }

  .analytics-top-grid .analytics-summary,
  .analytics-rank-grid,
  .wide-analytics-grid,
  .integration-fields {
    grid-template-columns: 1fr;
  }
}

/* Discount/member finishing pass. */
.preview-count {
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 2px !important;
  color: #ffffff;
  font-size: 11px;
  font-weight: 520;
  line-height: 1;
  letter-spacing: 0;
  mix-blend-mode: difference;
  text-shadow: none;
}

.profile-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.member-account-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr) auto;
  gap: 26px;
  align-items: center;
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.member-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.member-account-bar .avatar-large {
  width: 64px;
  min-width: 64px;
  height: 64px;
  border-radius: 0;
  background: #111827;
  color: #ffffff;
  font-size: 26px;
}

.avatar-large.has-image,
.avatar-preview.has-image {
  background: #f3f4f6;
  color: transparent;
  overflow: hidden;
}

.avatar-large img,
.avatar-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-upload-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.avatar-upload-row .avatar-preview {
  border-radius: 0;
}

.field-note {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
}

.verification-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.verification-code-row .btn {
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .verification-code-row {
    grid-template-columns: 1fr;
  }
}

/* Supply-style homepage editorial sections. */
.home-product-section {
  padding: 30px 0 54px;
}

.home-product-section + .home-product-section {
  padding-top: 20px;
}

.home-section-head {
  align-items: flex-start;
  margin-bottom: 22px;
}

.home-section-head span {
  color: #a5a5a5;
  font-size: clamp(17px, 1.35vw, 24px);
  font-weight: 760;
  line-height: 0.96;
}

.home-section-head h2 {
  margin: 0;
  color: #050505;
  font-size: clamp(23px, 1.75vw, 31px);
  font-weight: 820;
  line-height: 0.98;
}

.home-section-head a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #050505;
  font-size: clamp(21px, 1.65vw, 30px);
  font-weight: 820;
  line-height: 1;
}

.home-section-head a::after {
  content: "\2192";
  font-size: 1.1em;
  line-height: 1;
}

.home-section-head a:hover,
.home-section-head a:focus-visible {
  background: transparent;
  color: #6b7280;
}

.home-editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1fr);
  gap: clamp(28px, 3vw, 44px);
  align-items: stretch;
}

.home-editorial-layout.no-feature {
  grid-template-columns: 1fr;
}

.home-editorial-layout.no-feature .home-mini-grid.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-product-section .container {
  width: min(1920px, calc(100% - 96px));
}

.home-product-section .home-mini-grid.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 28px;
}

.home-product-section .product-card .visual {
  height: 250px;
  aspect-ratio: auto;
}

.home-product-section .product-card-body {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 0 0;
}

.home-product-section .product-card h3 {
  min-height: 34px;
  margin: 0;
  color: #050505;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.28;
}

.home-product-section .product-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-product-section .product-card-body .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: auto 0 0;
}

.home-product-section .product-card .price-stack {
  align-items: baseline;
  gap: 2px;
}

.home-product-section .product-card .price {
  color: #050505;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.05;
}

.home-product-section .product-card .compare-price {
  color: #a5a5a5;
  font-size: 11px;
  font-weight: 720;
}

.home-product-section .cart-plus {
  opacity: 1;
  transform: none;
}

.home-product-section .product-card:hover .cart-plus,
.home-product-section .product-card:focus-within .cart-plus,
.home-product-section .cart-plus:focus-visible {
  opacity: 1;
}

.home-feature-slot {
  display: flex;
  min-width: 0;
}

.home-feature-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc((250px + 100px) * 2 + 42px);
  display: grid;
}

.home-feature-slide {
  grid-area: 1 / 1;
  min-width: 0;
  height: 100%;
  min-height: calc((250px + 100px) * 2 + 42px);
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s ease;
}

.home-feature-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.home-feature-card {
  width: 100%;
  height: 100%;
  min-height: calc((250px + 100px) * 2 + 42px);
  display: flex;
  flex-direction: column;
}

.home-feature-card .card-media {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px;
  background: #050505;
}

.home-product-section .home-feature-card .visual {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  background: #050505;
}

.home-feature-card .image-visual img {
  object-fit: contain;
  object-position: center center;
  background: #050505;
}

.home-feature-card .card-actions {
  top: 14px;
  right: 10px;
}

.home-feature-card .card-format-row {
  top: 14px;
  right: 38px;
}

.home-feature-card .home-feature-cart {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: auto;
}

.home-feature-card .preview-count {
  bottom: 30px;
}

.home-feature-dots {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
}

.home-feature-dots button {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
}

.home-feature-dots button.active {
  background: #050505;
}

.home-product-section .product-card .sale-badge {
  left: -14px;
  top: 10px;
  min-height: 24px;
  padding: 4px 12px 4px 22px;
  border-radius: 0 6px 6px 0;
  background: #ffd21a;
  color: #050505;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.home-empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  background: #f5f5f5;
  color: #8a8a8a;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .home-editorial-layout {
    grid-template-columns: 1fr;
  }

  .home-editorial-layout.no-feature .home-mini-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feature-carousel,
  .home-feature-slide,
  .home-feature-card {
    min-height: 0;
  }

  .home-feature-card .card-media {
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  .home-product-section .container {
    width: min(1920px, calc(100% - 32px));
  }

  .home-section-head {
    align-items: flex-start;
    gap: 16px;
  }

  .home-section-head a {
    font-size: 22px;
  }

  .home-product-section .home-mini-grid.product-grid {
    grid-template-columns: 1fr;
  }

  .home-editorial-layout.no-feature .home-mini-grid.product-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-card .card-media {
    padding: 8px;
  }
}

/* 2026-09-06 unified commerce offers: homepage, member entry, cart and pricing page. */
.picks-price-grid,
.picks-purchase-mode .picks-price-grid,
.home-picks-section .home-picks-grid {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.picks-purchase-mode [data-pick-plan="free"],
.picks-purchase-mode [data-pick-plan="single"] {
  display: flex;
}

.pick-price-card.twenty,
.home-picks-section .home-pick-card.twenty {
  border-color: #13251d;
}

.pick-price-card.lifetime,
.home-picks-section .home-pick-card.lifetime {
  border-color: #13251d;
  background: #13251d;
  color: #fff;
}

.pick-price-card.lifetime p,
.pick-price-card.lifetime .pick-card-price span,
.home-picks-section .home-pick-card.lifetime p,
.home-picks-section .home-pick-card.lifetime .home-pick-price small,
.home-picks-section .home-pick-card.lifetime > span {
  color: #c4cec8;
}

.pick-price-card.lifetime .btn.primary,
.home-picks-section .home-pick-card.lifetime .btn.primary {
  border-color: #fff;
  background: #fff;
  color: #13251d;
}

.lifetime-availability {
  display: block;
  margin: -12px 0 18px;
  color: #97aaa0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-account-benefit {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid #e2e5e2;
  background: #eef6f1;
  padding: 12px 18px;
}

.nav-account-benefit strong {
  color: #124c32;
  font-size: 12px;
}

.nav-account-benefit span {
  color: #5f6d65;
  font-size: 10px;
}

.member-benefit-status {
  width: fit-content;
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,.32);
  padding: 7px 10px;
  color: #d9e9e0;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .03em;
}

.picks-wallet.lifetime-active {
  background: #0e251a;
}

.product-sale-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.product-sale-price s {
  color: #8b918d;
  font-size: .72em;
  font-weight: 500;
}

.product-sale-price strong {
  color: #166b44;
  font: inherit;
}

.cart-line-pay s {
  margin-right: 5px;
  color: #8c918e;
}

@media (max-width: 1000px) {
  .picks-price-grid,
  .picks-purchase-mode .picks-price-grid,
  .home-picks-section .home-picks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .picks-price-grid,
  .picks-purchase-mode .picks-price-grid,
  .home-picks-section .home-picks-grid {
    grid-template-columns: 1fr;
  }
}

.picks-purchase-mode .picks-pricing-hero {
  padding-top: clamp(54px, 6vw, 82px);
  padding-bottom: 38px;
}

.picks-purchase-mode .picks-pricing-hero h1 {
  max-width: 940px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.96;
}

.picks-purchase-mode .picks-clarity-strip {
  display: none;
}

.picks-purchase-mode .picks-pricing-section {
  padding-top: 46px;
}

/* 2026-09-06 mixed Picks checkout, account clarity, and exact editorial card alignment. */
@media (min-width: 1101px) {
  .home-editorial-layout {
    --home-card-media-height: 250px;
    --home-card-body-height: 108px;
    --home-card-row-gap: 42px;
  }

  .home-product-section .home-mini-grid.product-grid {
    grid-auto-rows: calc(var(--home-card-media-height) + var(--home-card-body-height));
  }

  .home-product-section .home-mini-grid .storefront-product-card {
    height: calc(var(--home-card-media-height) + var(--home-card-body-height));
    display: flex;
    flex-direction: column;
  }

  .home-product-section .home-mini-grid .storefront-product-card .card-media,
  .home-product-section .home-mini-grid .storefront-product-card .visual {
    height: var(--home-card-media-height);
    min-height: var(--home-card-media-height);
    flex: 0 0 var(--home-card-media-height);
  }

  .home-product-section .storefront-product-card .product-card-body {
    width: 100%;
    height: var(--home-card-body-height);
    min-height: var(--home-card-body-height);
    max-height: var(--home-card-body-height);
    flex: 0 0 var(--home-card-body-height);
    box-sizing: border-box;
  }

  .home-feature-carousel,
  .home-feature-slide,
  .home-feature-card {
    height: calc((var(--home-card-media-height) + var(--home-card-body-height)) * 2 + var(--home-card-row-gap));
    min-height: calc((var(--home-card-media-height) + var(--home-card-body-height)) * 2 + var(--home-card-row-gap));
  }

  .home-feature-card .card-media {
    height: calc(100% - var(--home-card-body-height));
    flex: 0 0 calc(100% - var(--home-card-body-height));
  }

  .home-feature-dots {
    bottom: 102px;
  }
}

.cart-panel {
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto auto;
}

.cart-pick-notice.has-balance {
  border-color: #d8d0b8;
  background: #f8f5e9;
}

.cart-pick-notice.has-balance strong {
  color: #5b4812;
}

.cart-pick-notice.has-balance span,
.cart-line .cart-line-pay {
  color: #725f26;
}

.cart-picks-offer {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #d8dcda;
  background: #f7f8f6;
  padding: 14px;
  color: #111814;
  text-decoration: none;
}

.cart-picks-offer.hidden {
  display: none;
}

.cart-picks-offer > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.cart-picks-offer small {
  color: #657069;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cart-picks-offer strong {
  font-size: 13px;
  line-height: 1.25;
}

.cart-picks-offer > span > span {
  color: #657069;
  font-size: 10px;
  line-height: 1.35;
}

.cart-picks-offer em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111814;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.cart-picks-offer:hover,
.cart-picks-offer:focus-visible {
  border-color: #111814;
  background: #fff;
  outline: none;
}

.cart-pick-confirm-label {
  display: block;
  padding: 13px 0 6px;
  color: #167047;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.cart-pick-confirm-label.payable {
  color: #725f26;
}

.cart-pick-confirm-products span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.cart-pick-confirm-products b {
  overflow: hidden;
  font: inherit;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-pick-confirm-products em {
  flex: 0 0 auto;
  color: #59635d;
  font-style: normal;
  font-weight: 760;
}

.paypal-preparing {
  min-height: 116px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid #e0e3e1;
  background: #f8f9f8;
  padding: 22px;
  text-align: center;
}

.paypal-preparing > span {
  width: 24px;
  height: 24px;
  border: 2px solid #cfd5d1;
  border-top-color: #111814;
  border-radius: 50%;
  animation: paypal-prepare-spin 0.8s linear infinite;
}

.paypal-preparing strong {
  color: #111814;
  font-size: 13px;
}

.paypal-preparing small {
  color: #69736d;
  font-size: 10px;
}

.paypal-preparing.failed {
  border-color: #e3c4c0;
  background: #fff7f6;
}

.paypal-preparing.failed strong {
  color: #8f1f17;
}

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

.picks-wallet {
  grid-template-columns: minmax(250px, 0.86fr) minmax(420px, 1.14fr) auto;
  border-radius: 0;
}

.picks-wallet-breakdown {
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 0;
  background: transparent;
}

.picks-wallet-breakdown > div {
  min-height: 92px;
  align-content: space-between;
  background: rgba(255, 255, 255, 0.055);
  padding: 17px 18px;
}

.picks-wallet-breakdown span {
  color: #bfcac4;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.picks-wallet-breakdown strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.picks-account-context,
.picks-cart-context {
  margin-top: 28px;
  border: 1px solid #d9deda;
  background: #fff;
  padding: 18px 20px;
}

.picks-account-context {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 18px;
}

.picks-account-context.hidden,
.picks-cart-context.hidden {
  display: none;
}

.picks-account-context > span,
.picks-account-context > small {
  color: #667069;
  font-size: 11px;
}

.picks-account-context > strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #111814;
  font-size: 23px;
}

.picks-cart-context {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 24px;
  border-color: #b9d1c2;
  background: #edf7f1;
}

.picks-cart-context > span {
  color: #167047;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.picks-cart-context > strong {
  color: #103c29;
  font-size: 18px;
}

.picks-cart-context > p {
  margin: 2px 0 0;
  color: #4f6257;
  font-size: 12px;
}

.picks-cart-context > a {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  color: #103c29;
  font-size: 11px;
  font-weight: 760;
  text-underline-offset: 3px;
}

.picks-purchase-mode .picks-price-grid {
  width: min(980px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
}

.picks-purchase-mode [data-pick-plan="free"],
.picks-purchase-mode [data-pick-plan="single"] {
  display: none;
}

.pick-price-card.recommended-for-cart::after {
  content: "BEST FIT FOR YOUR CART";
  position: absolute;
  top: -1px;
  right: -1px;
  background: #167047;
  padding: 8px 10px;
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.nav-account-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-account-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 120;
  width: 286px;
  display: grid;
  visibility: hidden;
  border: 1px solid #dcdedc;
  background: #fff;
  padding: 10px;
  opacity: 0;
  box-shadow: 0 18px 48px rgba(16, 24, 20, 0.15);
  transform: translateY(-7px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.nav-account-dropdown::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 74px;
  height: 15px;
}

.nav-account-menu:hover .nav-account-dropdown,
.nav-account-menu:focus-within .nav-account-dropdown,
.nav-account-menu.open .nav-account-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-account-summary,
.nav-account-picks {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid #e4e6e4;
  padding: 12px 11px 14px;
}

.nav-account-summary small,
.nav-account-picks span {
  color: #727b76;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.1em;
}

.nav-account-summary strong {
  overflow: hidden;
  color: #111814;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account-summary span,
.nav-account-picks small {
  overflow: hidden;
  color: #717975;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account-picks {
  grid-template-columns: minmax(0, 1fr) auto;
  background: #f3f6f4;
}

.nav-account-picks strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #13251d;
  font-size: 28px;
  line-height: 1;
}

.nav-account-dropdown > a,
.nav-account-dropdown > button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 0 11px;
  color: #1a211d;
  font: inherit;
  font-size: 12px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-account-dropdown > a:hover,
.nav-account-dropdown > a:focus-visible,
.nav-account-dropdown > button:hover,
.nav-account-dropdown > button:focus-visible {
  background: #f1f3f2;
  outline: none;
}

@media (max-width: 840px) {
  .picks-wallet {
    grid-template-columns: 1fr;
  }

  .picks-purchase-mode .picks-price-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-account-dropdown {
    position: fixed;
    top: 70px;
    right: 16px;
    width: min(320px, calc(100vw - 32px));
  }

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

  .picks-wallet-breakdown > div {
    min-height: 78px;
    padding: 13px 10px;
  }

  .picks-wallet-breakdown span {
    font-size: 9px;
  }

  .picks-wallet-breakdown strong {
    font-size: 23px;
  }

  .picks-cart-context,
  .picks-account-context {
    grid-template-columns: 1fr;
  }

  .picks-account-context > strong,
  .picks-cart-context > a {
    grid-column: 1;
    grid-row: auto;
  }

  .picks-cart-context > a {
    margin-top: 8px;
  }
}

/* Picks storefront and wallet. */
.home-picks-section,
.picks-pricing-section {
  padding: clamp(54px, 7vw, 92px) 0;
  background: #f4f5f2;
  color: #101211;
}

.home-picks-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.home-picks-heading > span,
.picks-wallet-kicker,
.pick-card-label,
.pick-confirm-kicker {
  display: block;
  margin-bottom: 10px;
  color: #59615d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.home-picks-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.home-picks-heading p {
  max-width: 650px;
  margin: 0;
  color: #59615d;
  font-size: 17px;
  line-height: 1.55;
}

.home-picks-grid,
.picks-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.home-pick-card,
.pick-price-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  border: 1px solid #d9ddd9;
  border-radius: 14px;
  background: #ffffff;
  padding: 26px;
}

.home-pick-card.popular,
.pick-price-card.popular {
  border: 2px solid #167a4b;
  box-shadow: 0 16px 40px rgba(24, 92, 61, 0.11);
}

.home-pick-card.value,
.pick-price-card.value {
  background: #13251d;
  border-color: #13251d;
  color: #ffffff;
}

.home-pick-card > span,
.pick-card-badge {
  align-self: flex-start;
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  background: #e7f4ec;
  color: #16633f;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.home-pick-card.value > span,
.pick-price-card.value .pick-card-badge {
  background: #d7f4e3;
  color: #114a30;
}

.home-pick-card h3,
.pick-price-card h2 {
  margin: 26px 0 10px;
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-pick-card strong {
  font-size: 15px;
}

.home-pick-card p,
.pick-price-card p {
  margin: 10px 0 28px;
  color: #68716c;
  font-size: 14px;
  line-height: 1.5;
}

.home-pick-card.value p,
.pick-price-card.value p {
  color: #c4cec8;
}

.home-pick-card .btn,
.pick-price-card .btn {
  margin-top: auto;
}

.home-pick-card.value .btn.primary,
.pick-price-card.value .btn.primary {
  background: #ffffff;
  color: #13251d;
}

.home-picks-promise,
.picks-never-expire {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  color: #59615d;
  text-align: center;
}

.home-picks-promise strong,
.picks-never-expire strong {
  color: #101211;
}

.picks-pricing-hero {
  padding-bottom: 52px;
}

.picks-pricing-hero h1 {
  max-width: 900px;
  font-size: clamp(54px, 8vw, 105px);
  letter-spacing: -0.065em;
}

.picks-clarity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.picks-clarity-strip span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border: 1px solid #dfe3df;
  border-radius: 999px;
  background: #ffffff;
  padding: 9px 14px;
  color: #68716c;
  font-size: 13px;
}

.picks-clarity-strip strong {
  color: #101211;
  font-size: 18px;
}

.pick-price-card {
  min-height: 390px;
}

.pick-price-card .pick-card-label {
  margin: 0 0 6px;
}

.pick-price-card .pick-card-badge + .pick-card-label {
  margin-top: 22px;
}

.pick-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.pick-card-price strong {
  font-size: 31px;
  letter-spacing: -0.04em;
}

.pick-card-price span {
  color: #727a75;
  font-size: 12px;
}

.pick-price-card.value .pick-card-price span {
  color: #c4cec8;
}

.picks-wallet {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(390px, 1.3fr) auto;
  gap: 30px;
  align-items: center;
  border-radius: 16px;
  background: #13251d;
  color: #ffffff;
  padding: clamp(24px, 4vw, 42px);
}

.picks-wallet-lead h2 {
  margin: 0 0 9px;
  color: #ffffff;
  font-size: clamp(35px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.picks-wallet-lead p,
.picks-wallet-kicker {
  color: #bdc9c2;
}

.picks-wallet-lead p {
  margin: 0;
  line-height: 1.5;
}

.picks-wallet-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
}

.picks-wallet-breakdown > div {
  display: grid;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  padding: 16px;
}

.picks-wallet-breakdown span {
  color: #bdc9c2;
  font-size: 11px;
}

.picks-wallet-breakdown strong {
  font-size: 22px;
}

.picks-wallet-breakdown .free-picks-row {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.picks-wallet-breakdown .free-picks-row strong {
  font-size: 14px;
}

.picks-wallet-actions {
  display: grid;
  gap: 9px;
}

.picks-wallet-actions .btn.primary {
  background: #ffffff;
  color: #13251d;
}

.picks-wallet-actions .btn.ghost {
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
}

.auth-picks-callout {
  display: grid;
  gap: 3px;
  border-left: 3px solid #167a4b;
  background: #edf7f1;
  padding: 13px 15px;
  color: #1f5e40;
}

.auth-picks-callout strong {
  font-size: 13px;
  letter-spacing: 0.06em;
}

.auth-picks-callout span {
  font-size: 12px;
}

.detail-price-line .price-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.pick-price-alternative {
  color: #167a4b;
  font-size: 14px;
  font-weight: 750;
}

.card-pick-note {
  color: #167a4b;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.detail-purchase-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.detail-purchase-actions .detail-pick-action,
.detail-purchase-actions .detail-account-download,
.detail-purchase-actions .detail-first-pick-note,
.detail-purchase-actions .detail-owned-copy {
  grid-column: 1 / -1;
}

.detail-purchase-actions .detail-pick-action {
  min-height: 52px;
  background: #167a4b;
}

.detail-purchase-actions .detail-buy-now {
  min-height: 46px;
}

.detail-first-pick-note,
.detail-owned-copy {
  margin: 1px 0 0;
  color: #68716c;
  font-size: 12px;
}

.detail-first-pick-note a {
  color: #167a4b;
  font-weight: 750;
}

.pick-redeem-panel {
  max-width: 520px;
}

.pick-redeem-panel h2 {
  margin: 8px 0 10px;
  font-size: 30px;
}

.pick-confirm-balance {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0;
  border-radius: 10px;
  background: #f0f5f2;
  padding: 16px;
}

.pick-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

@media (max-width: 1100px) {
  .home-picks-grid,
  .picks-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .picks-wallet {
    grid-template-columns: 1fr 1.2fr;
  }

  .picks-wallet-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .home-picks-grid,
  .picks-price-grid,
  .picks-wallet {
    grid-template-columns: 1fr;
  }

  .home-pick-card,
  .pick-price-card {
    min-height: 290px;
  }

  .home-picks-promise,
  .picks-never-expire {
    display: grid;
    gap: 4px;
  }

  .picks-wallet-breakdown,
  .picks-wallet-actions {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .picks-wallet-breakdown .free-picks-row {
    grid-column: auto;
  }

  .detail-purchase-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.member-account-bar h1 {
  margin: 0 0 4px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
}

.member-account-bar p {
  margin: 0;
}

.member-account-bar .member-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.member-account-bar .stat-card {
  min-height: 76px;
  border: 0;
  border-radius: 0;
  background: #f6f7f9;
  padding: 13px 14px;
}

.member-account-bar .stat-card strong {
  font-size: 22px;
}

.member-account-bar .stat-card span {
  font-size: 11px;
}

.member-account-bar [data-member-logout] {
  justify-self: end;
  white-space: nowrap;
}

.member-main {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.member-main .compact-head {
  margin: 0;
}

.member-main .compact-head h2 {
  font-size: 28px;
}

.member-tabs {
  gap: 0;
  margin: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.member-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: #ffffff;
  padding: 10px 14px;
  color: #667085;
  font-size: 14px;
  font-weight: 760;
}

.member-tabs button:hover,
.member-tabs button:focus-visible {
  transform: none;
  border-color: #111827;
  background: #ffffff;
  color: #111827;
}

.member-tabs button.active {
  border-color: #111827;
  background: #ffffff;
  color: #111827;
}

.member-grid.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 28px;
}

.member-empty {
  grid-column: 1 / -1;
  padding: 46px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  color: #667085;
  text-align: center;
}

.member-discount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.member-discount-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 0;
  background: #ffffff;
  padding: 18px;
}

.member-discount-card h3 {
  margin: 14px 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.1;
}

.member-discount-card p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.discount-code {
  display: inline-block;
  background: #111827;
  color: #ffffff;
  padding: 5px 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.discount-meta {
  display: grid;
  gap: 4px;
  color: #667085;
  font-size: 12px;
}

.discount-meta strong {
  color: #111827;
  font-size: 28px;
  line-height: 1;
}

.cart-coupon {
  display: grid;
  gap: 9px;
  padding: 14px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.cart-coupon label {
  color: #111827;
  font-size: 12px;
  font-weight: 760;
}

.cart-coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.cart-coupon-state {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #667085;
  font-size: 12px;
}

.cart-coupon-state button {
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.cart-member-coupons {
  display: grid;
  gap: 6px;
}

.cart-member-coupons > small {
  color: #667085;
  font-size: 11px;
}

.cart-member-coupon-list {
  display: grid;
  gap: 6px;
}

.cart-member-coupon {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 7px;
  padding: 8px 10px;
  background: #fafafa;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.cart-member-coupon:hover,
.cart-member-coupon:focus-visible,
.cart-member-coupon.active {
  border-color: #5e6ad2;
  background: #f4f3ff;
}

.cart-member-coupon span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cart-member-coupon strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.cart-member-coupon small,
.cart-member-coupon em {
  color: #667085;
  font-size: 10px;
  font-style: normal;
}

.cart-summary {
  align-items: flex-end;
}

#cartSummaryRows {
  flex: 1 1 auto;
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #667085;
  font-size: 13px;
}

#cartSummaryRows span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

#cartSummaryRows span:last-child {
  color: #111827;
  font-weight: 800;
}

#cartTotal {
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

.discount-admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.52fr);
  align-items: start;
}

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

.discount-form .field.wide {
  grid-column: 1 / -1;
}

.discount-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.discount-list-panel .dense-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.discount-list-panel th,
.discount-list-panel td {
  vertical-align: top;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.marketing-dashboard {
  display: grid;
  gap: 16px;
}

.marketing-head-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.marketing-head-panel h2,
.marketing-form-section h3 {
  margin: 0;
}

.marketing-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-input {
  width: 82px;
}

.compact-textarea {
  min-height: 92px;
}

.marketing-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.marketing-admin-grid {
  grid-template-columns: minmax(520px, 1.1fr) minmax(360px, 0.9fr);
  align-items: start;
}

.marketing-settings-form,
.marketing-campaign-form {
  display: grid;
  gap: 16px;
}

.marketing-campaign-form {
  order: -1;
}

.marketing-settings-form {
  order: 1;
}

.marketing-template-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  padding: 12px;
  background: #f7f8fb;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.marketing-template-strip .field {
  margin: 0;
}

.marketing-template-strip .muted {
  align-self: center;
  font-size: 12px;
  line-height: 1.4;
}

.marketing-auto-panel {
  align-content: start;
}

.marketing-form-section {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.marketing-form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.marketing-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.marketing-fields .field.wide {
  grid-column: 1 / -1;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.marketing-selected-products {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.marketing-selected-product {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.marketing-selected-product:first-child {
  border-top: 0;
}

.marketing-selected-product .admin-thumb {
  width: 54px;
  height: 40px;
}

.marketing-selected-product strong {
  display: block;
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
}

.marketing-selected-product span {
  display: block;
  color: #667085;
  font-size: 12px;
}

.marketing-campaign-buttons {
  align-self: end;
}

.marketing-campaign-buttons .inline-actions {
  justify-content: flex-start;
}

.marketing-recipient-preview {
  display: grid;
  gap: 5px;
  min-height: 48px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  padding-top: 12px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.marketing-recipient-preview strong {
  color: #111827;
  font-size: 13px;
}

.marketing-recipient-preview.error {
  color: #c9352b;
}

.marketing-email-preview-panel {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.marketing-subject-preview {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.marketing-subject-preview span {
  color: #667085;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.marketing-subject-preview strong {
  min-width: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.marketing-email-preview-frame {
  width: 100%;
  min-height: 520px;
  border: 1px solid #e5e7eb;
  background: #f4f4f4;
}

.marketing-table-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.admin-shell [data-tab-panel="marketing"] .table-scroll {
  overflow-x: hidden;
}

.marketing-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.marketing-table th,
.marketing-table td {
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.35;
  vertical-align: top;
}

.marketing-table th:nth-child(n + 3),
.marketing-table td:nth-child(n + 3) {
  width: 62px;
  text-align: center;
}

.marketing-table th:last-child,
.marketing-table td:last-child {
  width: 88px;
}

@media (max-width: 1180px) {
  .member-account-bar,
  .discount-admin-grid,
  .marketing-admin-grid,
  .marketing-table-grid {
    grid-template-columns: 1fr;
  }

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

  .member-account-bar [data-member-logout] {
    justify-self: start;
  }

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

@media (max-width: 980px) {
  .member-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .member-account-bar .member-stats,
  .avatar-upload-row,
  .member-discount-grid,
  .member-grid.product-grid,
  .discount-form .editor-form-grid,
  .marketing-head-panel,
  .marketing-stats,
  .marketing-fields,
  .cart-coupon-row {
    grid-template-columns: 1fr;
  }

  .marketing-head-panel {
    display: grid;
  }

  .marketing-actions,
  .marketing-section-title,
  .marketing-template-strip {
    justify-content: flex-start;
  }

  .marketing-template-strip {
    grid-template-columns: 1fr;
  }

  .marketing-email-preview-frame {
    min-height: 460px;
  }
}

/* 2026 admin console refresh: commerce-first workspace with a focused marketing center. */
.admin-console-page {
  --admin-cream: #f5f5ef;
  --admin-paper: #ffffff;
  --admin-ink: #0a0a0a;
  --admin-subtle: #6b6b66;
  --admin-line: #deded7;
  --admin-mint: #c9f6d8;
  --admin-pistachio: #e1f7d7;
  background: var(--admin-cream);
  color: var(--admin-ink);
  font-feature-settings: "ss03";
}

.admin-console-page .admin-header {
  border-bottom-color: #202020;
  background: #080808;
  color: #ffffff;
  backdrop-filter: none;
}

.admin-console-page .admin-topnav {
  width: min(1480px, calc(100% - 40px));
  height: 64px;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-brand-logo {
  width: 54px;
  height: 38px;
  flex: 0 0 auto;
  background: url("logo-mark.svg?v=20260909-mockparcel-v16") center / contain no-repeat;
}

.admin-brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.admin-brand-copy strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.admin-brand-copy small {
  color: #a8a8a3;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-topnav-actions {
  gap: 14px;
}

.admin-preview-link {
  color: #d4d4cf;
  font-size: 13px;
}

.admin-preview-link:hover,
.admin-preview-link:focus-visible {
  color: #ffffff;
}

.admin-workspace-state,
.marketing-draft-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b9b9b3;
  font-size: 12px;
  white-space: nowrap;
}

.admin-workspace-state i,
.marketing-draft-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--admin-mint);
  box-shadow: 0 0 0 3px rgba(201, 246, 216, 0.12);
}

.admin-console-page .admin-header .btn.ghost {
  min-height: 34px;
  border-color: #383838;
  background: transparent;
  color: #ffffff;
}

.admin-console-page .admin-app-section {
  padding: 38px 0 72px;
}

.admin-console-page .admin-workspace {
  width: min(1480px, calc(100% - 40px));
}

.admin-workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-workspace-head .eyebrow.dark,
.marketing-eyebrow,
.panel-step {
  width: fit-content;
  margin: 0 0 9px;
  color: #40403c;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.admin-workspace-head .eyebrow.dark {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--admin-mint);
  color: #111111;
}

.admin-console-page .admin-page-head h1 {
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 420;
  letter-spacing: -0.045em;
}

.admin-context-copy {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--admin-subtle);
  font-size: 15px;
}

.admin-workspace-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-console-page .btn {
  border-radius: 999px;
  box-shadow: none;
  font-weight: 580;
}

.admin-console-page .btn:hover,
.admin-console-page .btn:focus-visible {
  transform: none;
  box-shadow: none;
}

.admin-console-page .btn.primary:hover,
.admin-console-page .btn.primary:focus-visible {
  background: #383834;
  border-color: #383834;
}

.admin-console-page .input,
.admin-console-page .select,
.admin-console-page .textarea {
  border-color: var(--admin-line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-console-page .input:focus,
.admin-console-page .select:focus,
.admin-console-page .textarea:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
  outline: 0;
}

.admin-console-page .admin-stats {
  gap: 10px;
}

.admin-console-page .stat-card {
  position: relative;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.admin-console-page .stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #111111;
}

.admin-console-page .stat-card[data-tone="success"]::before {
  background: #84d9a0;
}

.admin-console-page .stat-card[data-tone="quiet"]::before {
  background: #c8c8c0;
}

.admin-console-page .stat-card[data-tone="accent"]::before {
  background: #c8e9ae;
}

.admin-console-page .stat-card span {
  color: var(--admin-subtle);
  font-size: 12px;
  font-weight: 580;
}

.admin-console-page .stat-card strong {
  margin: auto 0 8px;
  font-size: 34px;
  font-weight: 520;
  letter-spacing: -0.04em;
}

.admin-console-page .stat-card small,
.admin-console-page .mini-stat small {
  color: #8a8a84;
  font-size: 11px;
}

.admin-console-page .admin-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.admin-console-page .sidebar {
  top: 84px;
  padding: 10px;
  border-color: var(--admin-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.admin-nav-group {
  display: grid;
  gap: 2px;
  padding: 11px 0;
  border-top: 1px solid #ecece6;
}

.admin-nav-group:first-child {
  padding-top: 2px;
  border-top: 0;
}

.admin-nav-label {
  padding: 0 10px 7px;
  color: #999991;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-console-page .sidebar button {
  min-height: 38px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  padding: 8px 10px;
  color: #4c4c47;
  font-size: 13px;
}

.admin-console-page .sidebar button:hover,
.admin-console-page .sidebar button:focus-visible {
  background: #f3f3ee;
  color: #111111;
  outline: 0;
}

.admin-console-page .sidebar button.active {
  background: #111111;
  color: #ffffff;
  font-weight: 600;
}

.admin-nav-icon {
  color: #aaa9a2;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.admin-console-page .sidebar button.active .admin-nav-icon {
  color: #bebeb8;
}

.admin-console-page .sidebar button em {
  border-radius: 999px;
  padding: 2px 6px;
  background: var(--admin-mint);
  color: #111111;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.admin-sidebar-foot {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding: 13px 10px 5px;
  border-top: 1px solid #ecece6;
}

.admin-sidebar-foot span {
  color: #999991;
  font-size: 10px;
}

.admin-sidebar-foot strong {
  color: #4c4c47;
  font-size: 11px;
  font-weight: 600;
}

.admin-console-page .panel {
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.admin-console-page .admin-content > [data-tab-panel] > .panel:first-child,
.admin-console-page .admin-content > [data-tab-panel] > .admin-grid:first-child > .panel {
  margin-top: 0;
}

.admin-console-page .admin-panel-head h2 {
  font-size: 21px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.admin-console-page .bulk-bar,
.admin-console-page .marketing-template-strip {
  border-color: var(--admin-line);
  border-radius: 10px;
  background: #f7f7f2;
}

.admin-console-page .table-scroll {
  border-color: var(--admin-line);
  border-radius: 10px;
}

.admin-console-page .data-table th {
  background: #f7f7f2;
  color: #5f5f59;
}

.marketing-head-panel {
  min-height: 156px;
  align-items: flex-end;
  padding: 24px;
  border-color: #111111 !important;
  background: #0a0a0a !important;
  color: #ffffff;
}

.marketing-head-panel h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 420;
  letter-spacing: -0.04em;
  line-height: 1;
}

.marketing-head-panel .muted {
  max-width: 680px;
  margin: 12px 0 0;
  color: #b8b8b1;
}

.marketing-eyebrow {
  color: var(--admin-mint);
}

.marketing-head-panel .btn.ghost {
  border-color: #44443f;
  color: #ffffff;
}

.marketing-head-panel .btn.primary {
  border-color: #ffffff;
  background: #ffffff;
  color: #111111;
}

.marketing-head-panel .btn.primary:hover,
.marketing-head-panel .btn.primary:focus-visible {
  border-color: var(--admin-mint);
  background: var(--admin-mint);
  color: #111111;
}

.marketing-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #ffffff;
}

.marketing-workflow > div {
  position: relative;
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 16px 18px 16px 50px;
  border-left: 1px solid #e8e8e2;
}

.marketing-workflow > div:first-child {
  border-left: 0;
}

.marketing-workflow span {
  position: absolute;
  top: 19px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
}

.marketing-workflow strong {
  font-size: 13px;
  font-weight: 620;
}

.marketing-workflow small {
  color: #85857e;
  font-size: 11px;
  line-height: 1.4;
}

.admin-console-page .marketing-stats {
  gap: 10px;
}

.admin-console-page .marketing-stats .mini-stat {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  border-color: var(--admin-line);
  border-radius: 12px;
  background: #ffffff;
}

.admin-console-page .marketing-stats .mini-stat span {
  order: -1;
  color: #6c6c66;
  font-size: 11px;
  font-weight: 600;
}

.admin-console-page .marketing-stats .mini-stat strong {
  margin: auto 0 7px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.admin-console-page .marketing-admin-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.admin-console-page .marketing-campaign-form {
  order: -1;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  column-gap: 24px;
  padding: 24px;
}

.marketing-campaign-form > .admin-panel-head,
.marketing-campaign-form > .marketing-template-strip,
.marketing-campaign-form > .marketing-fields,
.marketing-campaign-form > .marketing-recipient-preview {
  grid-column: 1;
}

.marketing-draft-state {
  color: #74746e;
}

.marketing-draft-state i {
  background: #81d59d;
  box-shadow: none;
}

.marketing-template-gallery {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.marketing-template-gallery button {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 3px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  padding: 14px;
  background: #ffffff;
  color: #111111;
  text-align: left;
  cursor: pointer;
}

.marketing-template-gallery button:hover,
.marketing-template-gallery button:focus-visible {
  border-color: #8e8e87;
  background: #fafaf6;
  outline: 0;
}

.marketing-template-gallery button.active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.marketing-template-gallery span {
  margin-bottom: 8px;
  color: #8c8c85;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marketing-template-gallery button.active span {
  color: var(--admin-mint);
}

.marketing-template-gallery strong {
  font-size: 14px;
  font-weight: 650;
}

.marketing-template-gallery small {
  color: #777770;
  font-size: 11px;
  line-height: 1.45;
}

.marketing-template-gallery button.active small {
  color: #bdbdb7;
}

.admin-console-page .marketing-email-preview-panel {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: start;
  position: sticky;
  top: 84px;
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #f7f7f2;
}

.admin-console-page .marketing-email-preview-frame {
  min-height: 650px;
  border-color: var(--admin-line);
  border-radius: 8px;
  background: #ecece7;
}

.admin-console-page .marketing-subject-preview {
  border-color: var(--admin-line);
  border-radius: 8px;
}

.admin-console-page .marketing-recipient-preview {
  min-height: 58px;
  padding: 13px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #f7f7f2;
}

.admin-console-page .marketing-settings-form {
  order: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  padding: 24px;
}

.marketing-settings-form > .admin-panel-head {
  grid-column: 1 / -1;
}

.admin-console-page .marketing-form-section {
  height: 100%;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #fafaf6;
}

.admin-console-page .marketing-form-section:first-of-type {
  padding-top: 18px;
  border-top: 1px solid var(--admin-line);
}

.admin-console-page .marketing-welcome-card {
  background: #f3fbf5;
}

.admin-console-page .marketing-abandoned-card {
  background: #fbfaf1;
}

.admin-console-page .marketing-settings-form .marketing-fields {
  grid-template-columns: 1fr;
}

.admin-console-page .marketing-settings-form .field.wide {
  grid-column: auto;
}

.admin-console-page .marketing-table-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}

.admin-console-page .marketing-table-grid .panel {
  padding: 20px;
}

@media (max-width: 1260px) {
  .admin-console-page .marketing-campaign-form {
    grid-template-columns: 1fr;
  }

  .marketing-campaign-form > .admin-panel-head,
  .marketing-template-gallery,
  .marketing-campaign-form > .marketing-template-strip,
  .marketing-campaign-form > .marketing-fields,
  .marketing-campaign-form > .marketing-recipient-preview,
  .admin-console-page .marketing-email-preview-panel {
    grid-column: 1;
  }

  .admin-console-page .marketing-email-preview-panel {
    grid-row: auto;
    position: static;
  }

  .admin-console-page .marketing-settings-form {
    grid-template-columns: 1fr;
  }

  .marketing-settings-form > .admin-panel-head {
    grid-column: 1;
  }
}

@media (max-width: 980px) {
  .admin-console-page .admin-workspace-head {
    align-items: flex-start;
  }

  .admin-console-page .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-console-page .sidebar {
    position: sticky;
    top: 63px;
    z-index: 25;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px;
    border-radius: 0 0 12px 12px;
  }

  .admin-nav-group {
    display: flex;
    flex: 0 0 auto;
    gap: 3px;
    padding: 0;
    border: 0;
  }

  .admin-nav-label,
  .admin-sidebar-foot,
  .admin-console-page .sidebar button em {
    display: none;
  }

  .admin-console-page .sidebar button {
    grid-template-columns: auto auto;
    width: auto;
    white-space: nowrap;
  }

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

  .marketing-workflow > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #e8e8e2;
  }

  .marketing-workflow > div:nth-child(4) {
    border-top: 1px solid #e8e8e2;
  }

  .admin-console-page .marketing-table-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-console-page .admin-topnav,
  .admin-console-page .admin-workspace {
    width: calc(100% - 24px);
  }

  .admin-brand-copy small,
  .admin-preview-link,
  .admin-workspace-state {
    display: none;
  }

  .admin-workspace-head,
  .admin-workspace-actions,
  .marketing-head-panel {
    display: grid;
  }

  .admin-workspace-actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .admin-workspace-actions .btn {
    width: 100%;
  }

  .admin-console-page .admin-stats,
  .marketing-workflow {
    grid-template-columns: 1fr;
  }

  .marketing-workflow > div {
    border-top: 1px solid #e8e8e2;
    border-left: 0;
  }

  .marketing-workflow > div:first-child {
    border-top: 0;
  }

  .admin-console-page .marketing-campaign-form,
  .admin-console-page .marketing-settings-form {
    padding: 16px;
  }

  .admin-console-page .marketing-email-preview-frame {
    min-height: 480px;
  }

  .marketing-template-gallery {
    grid-template-columns: 1fr;
  }
}

/* Marketing workspace refinement: compact controls, adjacent previews, nested navigation. */
.admin-console-page .btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12.5px;
}

.admin-console-page .btn.small {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11.5px;
}

.admin-console-page .btn.danger-soft {
  border-color: #e2b6b3;
  background: #fff7f6;
  color: #9f2f28;
}

.admin-console-page .field > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #343430;
  font-size: 11.5px;
  font-weight: 650;
}

.admin-console-page .field > label small {
  color: #999991;
  font-size: 10px;
  font-weight: 450;
}

.admin-nav-group {
  display: block;
}

.admin-nav-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.admin-nav-group > summary::-webkit-details-marker {
  display: none;
}

.admin-nav-group > summary i {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #9a9a93;
  border-bottom: 1.5px solid #9a9a93;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.admin-nav-group:not([open]) > summary i {
  transform: rotate(-45deg) translate(-1px, -1px);
}

.admin-nav-items {
  display: grid;
  gap: 2px;
}

.admin-console-page .sidebar .admin-nav-subitem {
  min-height: 30px;
  grid-template-columns: 26px minmax(0, 1fr);
  color: #777770;
  font-size: 11.5px;
}

.admin-console-page .sidebar .admin-nav-subitem > span:first-child {
  position: relative;
  height: 100%;
}

.admin-console-page .sidebar .admin-nav-subitem > span:first-child::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 8px;
  border-top: 1px solid #cecec7;
}

.marketing-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-console-page .marketing-campaign-form {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  column-gap: 20px;
  padding: 20px;
}

.marketing-campaign-form > .marketing-template-manager {
  grid-column: 1;
}

.admin-console-page .marketing-email-preview-panel {
  grid-row: 1 / span 6;
  top: 76px;
  padding: 15px;
}

.admin-console-page .marketing-email-preview-frame {
  min-height: 590px;
}

.marketing-custom-template-cards {
  display: contents;
}

.marketing-template-manager {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  align-items: end;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed #cecec7;
  border-radius: 9px;
  background: #ffffff;
}

.marketing-template-manager .field {
  margin: 0;
}

.input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #ffffff;
}

.input-with-unit:focus-within {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.admin-console-page .input-with-unit .input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.input-with-unit > span {
  display: grid;
  place-items: center;
  min-width: 48px;
  padding: 0 11px;
  border-left: 1px solid var(--admin-line);
  background: #f3f3ee;
  color: #5e5e58;
  font-size: 11px;
  font-weight: 650;
}

.admin-console-page .marketing-settings-form {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 14px 18px;
  padding: 20px;
}

.marketing-settings-form > .admin-panel-head {
  grid-column: 1 / -1;
}

.marketing-settings-form > .marketing-welcome-card,
.marketing-settings-form > .marketing-abandoned-card {
  grid-column: 1;
}

.marketing-settings-form > .marketing-abandoned-card {
  grid-row: 3;
}

.marketing-section-title > div {
  min-width: 0;
}

.marketing-section-title p {
  margin: 4px 0 0;
  color: #777770;
  font-size: 11px;
  line-height: 1.45;
}

.automation-link-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #cce8d4;
  border-radius: 8px;
  background: #ffffff;
}

.automation-link-note > span {
  color: #276a3b;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.automation-link-note p {
  margin: 0;
  color: #5f6f63;
  font-size: 10.5px;
  line-height: 1.45;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #111111;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.automation-preview-panel {
  grid-column: 2;
  grid-row: 2 / span 2;
  position: sticky;
  top: 76px;
  align-self: start;
  padding: 15px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #f7f7f2;
}

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

.automation-preview-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 620;
}

.segmented-control {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #ffffff;
}

.segmented-control button {
  min-height: 27px;
  border: 0;
  border-radius: 6px;
  padding: 4px 8px;
  background: transparent;
  color: #707069;
  font-size: 10.5px;
  cursor: pointer;
}

.segmented-control button.active {
  background: #111111;
  color: #ffffff;
}

.admin-console-page .automation-email-preview-frame {
  min-height: 610px;
}

.automation-preview-note {
  margin: 10px 2px 0;
  color: #777770;
  font-size: 10.5px;
  line-height: 1.5;
}

@media (min-width: 821px) and (max-width: 1260px) {
  .admin-console-page .marketing-campaign-form {
    grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  }

  .marketing-campaign-form > .admin-panel-head,
  .marketing-template-gallery,
  .marketing-campaign-form > .marketing-template-strip,
  .marketing-campaign-form > .marketing-template-manager,
  .marketing-campaign-form > .marketing-fields,
  .marketing-campaign-form > .marketing-recipient-preview {
    grid-column: 1;
  }

  .admin-console-page .marketing-email-preview-panel {
    grid-column: 2;
    grid-row: 1 / span 6;
    position: sticky;
  }

  .admin-console-page .marketing-settings-form {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  }

  .marketing-settings-form > .admin-panel-head {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .admin-console-page .marketing-campaign-form,
  .admin-console-page .marketing-settings-form {
    grid-template-columns: 1fr;
  }

  .marketing-campaign-form > .admin-panel-head,
  .marketing-template-gallery,
  .marketing-campaign-form > .marketing-template-strip,
  .marketing-campaign-form > .marketing-template-manager,
  .marketing-campaign-form > .marketing-fields,
  .marketing-campaign-form > .marketing-recipient-preview,
  .admin-console-page .marketing-email-preview-panel,
  .marketing-settings-form > .admin-panel-head,
  .marketing-settings-form > .marketing-welcome-card,
  .marketing-settings-form > .marketing-abandoned-card,
  .automation-preview-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .admin-console-page .marketing-email-preview-panel,
  .automation-preview-panel {
    position: static;
  }

  .marketing-template-manager {
    grid-template-columns: 1fr 1fr;
  }

  .marketing-template-manager .field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .admin-nav-items {
    display: flex;
    gap: 3px;
  }

  .admin-console-page .sidebar .admin-nav-subitem {
    display: none;
  }
}

@media (max-width: 640px) {
  .marketing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automation-link-note,
  .marketing-template-manager {
    grid-template-columns: 1fr;
  }

  .marketing-template-manager .field {
    grid-column: auto;
  }

  .automation-preview-head,
  .marketing-section-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Marketing information architecture v3: each sidebar child is a separate workspace. */
.admin-console-page .sidebar .admin-nav-subitem.marketing-view-active {
  background: #eef8f0;
  color: #174d29;
  font-weight: 680;
}

.admin-console-page .sidebar .admin-nav-subitem.marketing-view-active > span:first-child::after {
  border-color: #5cad77;
}

.marketing-admin-grid {
  display: contents !important;
}

.marketing-campaign-form > .admin-panel-head,
.marketing-campaign-form > .campaign-template-step,
.marketing-campaign-form > .campaign-ready-card,
.marketing-campaign-form > .campaign-config-grid,
.marketing-campaign-form > .campaign-products-summary,
.marketing-campaign-form > .campaign-content-editor,
.marketing-campaign-form > .campaign-delivery-grid {
  grid-column: 1;
}

.campaign-template-step,
.campaign-products-summary,
.campaign-content-editor {
  display: grid;
  gap: 12px;
}

.campaign-step-head > div,
.campaign-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.campaign-step-head > div > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 9px;
  font-weight: 750;
}

.campaign-step-head h3,
.campaign-ready-card h3,
.campaign-editor-head h3,
.campaign-test-box h3,
.campaign-send-box h3,
.template-editor h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.campaign-step-head p,
.campaign-editor-head p,
.campaign-ready-card p,
.campaign-test-box p,
.campaign-send-box p,
.template-editor p {
  margin: 3px 0 0;
  color: #777770;
  font-size: 11px;
  line-height: 1.45;
}

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

.campaign-template-gallery button {
  min-height: 92px;
}

.campaign-ready-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid #bfe5ca;
  border-radius: 10px;
  background: #eef8f0;
}

.campaign-ready-label {
  display: block;
  margin-bottom: 5px;
  color: #26713c;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.campaign-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}

.campaign-config-grid > .field,
.campaign-offer-fields > .field {
  margin: 0;
}

.campaign-offer-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.campaign-products-summary {
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #fafaf6;
}

.marketing-selected-products.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.marketing-selected-products.compact .marketing-selected-product {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  margin: 0;
  padding: 8px;
  border: 1px solid #e4e4de;
  border-radius: 8px;
  background: #ffffff;
}

.campaign-content-editor {
  padding: 16px;
  border: 1px solid #c7c7c0;
  border-radius: 10px;
  background: #ffffff;
}

.campaign-delivery-grid {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.campaign-test-box,
.campaign-send-box {
  display: grid;
  grid-template-columns: minmax(140px, 0.75fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #f7f7f2;
}

.campaign-send-box {
  grid-template-columns: minmax(140px, 0.75fr) minmax(0, 1fr);
  background: #eef8f0;
  border-color: #bfe5ca;
}

.campaign-test-box > div > span,
.campaign-send-box > div > span {
  display: block;
  margin-bottom: 5px;
  color: #777770;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.campaign-test-box .field {
  margin: 0;
}

.campaign-send-box .marketing-recipient-preview {
  grid-column: 2;
  min-height: 54px;
  margin: 0;
  background: #ffffff;
}

.campaign-send-actions {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-console-page .marketing-campaign-form > .marketing-email-preview-panel {
  grid-column: 2;
  grid-row: 1 / span 8;
}

.marketing-template-workspace {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.template-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: start;
  gap: 18px;
}

.template-library-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.template-library-list button {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 4px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  padding: 14px;
  background: #ffffff;
  color: #111111;
  text-align: left;
  cursor: pointer;
}

.template-library-list button:hover,
.template-library-list button:focus-visible {
  border-color: #8e8e87;
  background: #fafaf6;
  outline: 0;
}

.template-library-list button.active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.template-library-list button span {
  margin-bottom: 7px;
  color: #898981;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.template-library-list button.active span {
  color: var(--admin-mint);
}

.template-library-list button strong {
  font-size: 14px;
  font-weight: 680;
}

.template-library-list button small {
  color: #787871;
  font-size: 11px;
  line-height: 1.45;
}

.template-library-list button.active small {
  color: #bdbdb7;
}

.template-library-actions,
.template-editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.template-library-preview {
  position: sticky;
  top: 76px;
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #f7f7f2;
}

.template-library-preview .marketing-email-preview-frame {
  min-height: 610px;
}

.template-editor {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #bfe5ca;
  border-radius: 10px;
  background: #eef8f0;
}

@media (max-width: 900px) {
  .template-workspace-grid {
    grid-template-columns: 1fr;
  }

  .template-library-preview {
    position: static;
  }
}

@media (max-width: 980px) {
  .admin-console-page .sidebar .admin-nav-subitem {
    display: grid;
  }
}

@media (max-width: 820px) {
  .marketing-campaign-form > .campaign-template-step,
  .marketing-campaign-form > .campaign-ready-card,
  .marketing-campaign-form > .campaign-config-grid,
  .marketing-campaign-form > .campaign-products-summary,
  .marketing-campaign-form > .campaign-content-editor,
  .marketing-campaign-form > .campaign-delivery-grid,
  .admin-console-page .marketing-campaign-form > .marketing-email-preview-panel {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .campaign-template-gallery,
  .campaign-config-grid,
  .campaign-offer-fields,
  .marketing-selected-products.compact,
  .template-library-list,
  .campaign-test-box,
  .campaign-send-box {
    grid-template-columns: 1fr;
  }

  .campaign-ready-card,
  .campaign-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .campaign-send-box .marketing-recipient-preview,
  .campaign-send-actions {
    grid-column: 1;
  }

  .campaign-send-actions {
    justify-content: stretch;
  }

  .campaign-send-actions .btn,
  .campaign-test-box > .btn,
  .campaign-ready-card .btn {
    width: 100%;
  }
}

/* Operations workspaces: compact service subpages and delivery observability. */
.admin-console-page .sidebar .admin-nav-subitem.integration-view-active {
  background: #f2f1ff;
  color: #4740a4;
  font-weight: 680;
}

.admin-console-page .sidebar .admin-nav-subitem.integration-view-active > span:first-child::after {
  border-color: #7b72d8;
}

.integration-status-panel .admin-panel-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-line);
}

.integration-settings-form .integration-card,
.integration-status-panel,
.email-log-center .panel {
  border-color: #dedee2;
  border-radius: 10px;
  box-shadow: none;
}

.email-log-center {
  display: grid;
  gap: 14px;
}

.email-log-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.email-log-kpi {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 14px;
  border: 1px solid #dedee2;
  border-radius: 9px;
  background: #ffffff;
}

.email-log-kpi span,
.email-log-kpi small {
  color: #74747d;
  font-size: 11px;
}

.email-log-kpi strong {
  color: #17171a;
  font-size: 24px;
  font-weight: 660;
  letter-spacing: -0.04em;
}

.email-queue-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: start;
}

.email-queue-grid > .panel {
  overflow: hidden;
}

.email-queue-grid > .panel > .admin-panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e2e5;
}

.queue-policy-list {
  display: grid;
  padding: 4px 16px;
}

.queue-policy-list > div {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #ececef;
}

.queue-policy-list > div:last-child {
  border-bottom: 0;
}

.queue-policy-list p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.queue-policy-list strong {
  font-size: 12px;
}

.queue-policy-list small,
.queue-health-copy {
  color: #777780;
  font-size: 11px;
  line-height: 1.45;
}

.queue-health-copy {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid #e2e2e5;
  background: #fafafa;
}

.queue-priority {
  min-width: 30px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d8d8dc;
  border-radius: 5px;
  background: #f5f5f6;
  color: #62626b;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.queue-priority.critical {
  border-color: #e2b9ba;
  background: #fff1f1;
  color: #a03e42;
}

.queue-priority.high {
  border-color: #e7d2a7;
  background: #fff8e8;
  color: #8a651d;
}

.queue-priority.normal {
  border-color: #d8d5f0;
  background: #f4f3ff;
  color: #5e56aa;
}

.email-log-center .data-table th,
.email-log-center .data-table td {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .email-log-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .email-queue-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .email-log-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-fields {
    grid-template-columns: 1fr;
  }
}

/* Discovery-first storefront, account recovery, and homepage Banner controls. */
.family-hero {
  padding: clamp(58px, 8vw, 104px) 0 clamp(38px, 5vw, 62px);
}

.family-hero h1 {
  max-width: 850px;
  font-size: clamp(44px, 6.8vw, 86px);
  letter-spacing: -0.058em;
}

.family-hero > .container > p:not(.eyebrow) {
  max-width: 650px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}

.family-search {
  width: min(620px, 100%);
  min-height: 54px;
  margin-top: 28px;
  padding: 5px 6px 5px 10px;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 4px;
  border-color: #dedede;
  border-radius: 999px;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.family-search:focus-within {
  border-color: #aaa;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.05);
}

.family-search input {
  min-width: 0;
  padding: 10px 12px;
  font-size: 15px;
}

.family-search button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  cursor: pointer;
}

.family-search button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.home-discovery-bar {
  border-bottom: 1px solid #e7e7e7;
  background: #fff;
}

.home-discovery-bar .container {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-category-links {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-category-links::-webkit-scrollbar {
  display: none;
}

.home-category-links a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: #666;
  font-size: 14px;
  text-decoration: none;
}

.home-category-links a:hover,
.home-category-links a.active {
  background: #f1f1f1;
  color: #111;
}

.free-picks-hint {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 8px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.free-picks-hint:hover {
  background: #fff;
  color: #111;
}

.home-banner-section {
  padding: clamp(22px, 3vw, 38px) 0 0;
  background: #fff;
}

.home-banner-link {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #f2f2f2;
}

.home-banner-link img {
  width: 100%;
  aspect-ratio: 2.6 / 1;
  display: block;
  object-fit: cover;
}

.home-picks-late {
  margin-top: clamp(28px, 4vw, 58px);
}

.free-picks-modal .modal-panel {
  width: min(560px, 100%);
  border-radius: 20px;
}

.free-picks-modal .modal-body {
  padding: 34px;
}

.free-picks-modal h2 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: .98;
  letter-spacing: -.05em;
}

.free-picks-modal .modal-body > p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.free-picks-modal-badge {
  display: inline-flex;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.free-picks-modal-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0;
}

.free-picks-modal-notes span {
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 7px 10px;
  color: #555;
  font-size: 12px;
}

.catalog-discovery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.catalog-filter-chips {
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catalog-filter-chips::-webkit-scrollbar {
  display: none;
}

.catalog-filter-chips button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #5f5f5f;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.catalog-filter-chips button:hover,
.catalog-filter-chips button.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.catalog-discovery-toolbar > .select {
  flex: 0 0 160px;
  border-radius: 999px;
}

.auth-text-action {
  display: block;
  margin: -2px 0 12px auto;
  border: 0;
  background: transparent;
  color: #555;
  padding: 2px;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-back-action {
  margin: 12px auto 0;
}

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

.profile-file-picker > span {
  color: #666;
  font-size: 12px;
}

.home-banner-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 24px;
  align-items: start;
}

.home-banner-upload-card {
  min-width: 0;
}

.home-banner-preview {
  aspect-ratio: 2.6 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #ccc;
  border-radius: 14px;
  background: #f6f6f6;
  color: #888;
  font-size: 13px;
}

.home-banner-preview.has-image {
  border-style: solid;
}

.home-banner-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-banner-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.home-banner-fields {
  display: grid;
  gap: 16px;
}

@media (max-width: 820px) {
  .home-banner-admin-layout {
    grid-template-columns: 1fr;
  }

  .catalog-discovery-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-discovery-toolbar > .select {
    flex-basis: auto;
  }
}

@media (max-width: 640px) {
  .home-discovery-bar .container {
    min-height: 66px;
    gap: 10px;
  }

  .home-category-links a {
    padding-inline: 10px;
  }

  .free-picks-hint {
    padding-inline: 12px;
  }

  .home-banner-link,
  .free-picks-modal .modal-panel {
    border-radius: 14px;
  }

  .home-banner-link img,
  .home-banner-preview {
    aspect-ratio: 1.8 / 1;
  }

  .free-picks-modal .modal-body {
    padding: 24px;
  }
}

/* Screenshot corrections: one category navigation, compact cards, consistent selects/search. */
.nav-free-picks {
  min-height: 36px;
  flex: 0 0 auto;
  border: 1px solid #171717;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.nav-free-picks:hover,
.nav-free-picks:focus-visible {
  background: #fff;
  color: #171717;
  outline: none;
}

.home-editorial-layout {
  align-items: start;
}

.home-product-section .home-mini-grid.product-grid {
  align-self: start;
  align-content: start;
  grid-auto-rows: max-content;
}

.home-product-section .home-mini-grid .product-card {
  align-self: start;
}

.catalog-search-input {
  padding: 0 62px 0 24px;
}

.catalog-search-button {
  position: absolute;
  top: 50%;
  right: 7px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  cursor: pointer;
}

.catalog-search-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.catalog-search-button:hover,
.catalog-search-button:focus-visible {
  background: #333;
  outline: none;
}

.catalog-select-control {
  position: relative;
  flex: 0 0 auto;
  display: block;
  min-width: 176px;
}

.catalog-select-control .select {
  width: 100%;
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #222;
  padding: 0 50px 0 18px;
  font-size: 14px;
  cursor: pointer;
}

.catalog-select-control > svg {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #555;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.catalog-select-control .select:hover,
.catalog-select-control .select:focus {
  border-color: #aaa;
  outline: none;
}

@media (max-width: 860px) {
  .nav-free-picks {
    padding-inline: 11px;
  }
}

@media (max-width: 640px) {
  .nav-free-picks {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .public-header .nav-actions {
    gap: 3px;
  }

  .public-header .nav-icon-link {
    width: 30px;
  }

  .catalog-discovery-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .catalog-select-control {
    min-width: 0;
  }

  .catalog-select-control .select {
    min-height: 44px;
    padding-left: 14px;
    padding-right: 40px;
    font-size: 13px;
  }

  .catalog-select-control > svg {
    right: 14px;
  }
}

/* Photography-first marketplace cards: larger save action, quiet metadata, price rail. */
.storefront-product-card {
  align-content: start;
  overflow: visible;
}

.storefront-product-card .card-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0;
  background: #f3f3f1;
}

.storefront-product-card .visual,
.storefront-product-card .image-visual,
.storefront-product-card .image-visual img {
  border-radius: 0;
}

.storefront-product-card .visual {
  transition: transform 220ms ease, filter 220ms ease;
}

.storefront-product-card:hover .visual,
.storefront-product-card:focus-within .visual {
  transform: scale(1.012);
  filter: saturate(1.02) contrast(1.01);
}

.storefront-product-card .card-actions {
  top: 12px;
  right: 12px;
  z-index: 12;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.storefront-product-card .favorite-button,
.storefront-product-card .favorite-button:active {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #151515;
  box-shadow: 0 5px 18px rgba(17, 24, 39, 0.1);
  backdrop-filter: blur(8px);
}

.storefront-product-card .favorite-button:hover,
.storefront-product-card .favorite-button:focus-visible {
  border-color: #151515;
  background: #151515;
  color: #fff;
  outline: none;
}

.storefront-product-card .favorite-button.active,
.storefront-product-card .favorite-button.active:hover,
.storefront-product-card .favorite-button.active:focus-visible {
  border-color: #151515;
  background: #fff;
  color: #151515;
}

.storefront-product-card .favorite-icon {
  width: 25px;
  min-width: 25px;
  height: 25px;
  min-height: 25px;
}

.storefront-product-card .product-card-body,
.home-product-section .storefront-product-card .product-card-body {
  min-height: 100px;
  padding: 12px 2px 0;
  gap: 0;
}

.storefront-product-card .product-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.storefront-product-card .product-card-copy {
  min-width: 0;
}

.storefront-product-card h3,
.home-product-section .storefront-product-card h3 {
  min-height: 0;
  margin: 0;
  color: #151515;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.storefront-product-card h3 a,
.home-product-section .storefront-product-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.storefront-product-card:hover h3 a,
.storefront-product-card:focus-within h3 a {
  color: #151515;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.storefront-product-card .card-format-meta {
  min-height: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 7px 0 0;
}

.storefront-product-card .card-format-chip {
  min-width: 22px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8b8b5;
  border-radius: 0;
  padding: 2px 5px;
  background: #fff;
  color: #686868;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.025em;
}

.storefront-product-card .card-purchase-stack {
  min-width: 46px;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.storefront-product-card .card-purchase-stack .price,
.home-product-section .storefront-product-card .card-purchase-stack .price {
  color: #151515;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.card-cart-button {
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d9d9d7;
  border-radius: 999px;
  background: #fff;
  color: #151515;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.card-cart-button svg {
  width: 20px;
  height: 20px;
}

.card-cart-button:hover,
.card-cart-button:focus-visible {
  border-color: #151515;
  background: #151515;
  color: #fff;
  outline: none;
}

.card-save-gate {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(12px, 4%, 20px);
  background: rgba(12, 12, 12, 0.24);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.card-save-gate.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.card-save-gate-message {
  align-self: start;
  padding: clamp(18px, 7%, 34px);
  background: rgba(255, 255, 255, 0.97);
  color: #9b9b9b;
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 560;
  line-height: 1.32;
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.1);
}

.card-save-gate-message a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.card-save-gate-message a:hover,
.card-save-gate-message a:focus-visible {
  color: #151515;
  outline: none;
}

.card-save-gate-close {
  min-height: 50px;
  border: 0;
  background: #151515;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.card-save-gate-close:hover,
.card-save-gate-close:focus-visible {
  background: #333;
  outline: 2px solid #fff;
  outline-offset: -4px;
}

@media (max-width: 640px) {
  .storefront-product-card .favorite-button,
  .storefront-product-card .favorite-button:active {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
  }

  .storefront-product-card .product-card-heading {
    gap: 12px;
  }

  .storefront-product-card h3,
  .home-product-section .storefront-product-card h3 {
    font-size: 15px;
  }

  .card-save-gate-message {
    font-size: 17px;
  }
}

/* Keep public catalog geometry stable across homepage and category routes. */
@media (min-width: 701px) {
  html {
    overflow-y: scroll;
  }
}

.home-product-section .container,
.catalog-section .container {
  width: min(1920px, calc(100% - 96px));
}

/* Collection controls stay quiet until the product is intentionally explored. */
@media (hover: hover) and (pointer: fine) {
  .storefront-product-card .card-actions {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
  }

  .storefront-product-card:hover .card-actions,
  .storefront-product-card:focus .card-actions,
  .storefront-product-card:focus-within .card-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .home-product-section .container,
  .catalog-section .container {
    width: min(1920px, calc(100% - 32px));
  }
}

/* Unified public edge and quieter member account hierarchy. */
.site-header.public-header .nav,
.public-header .nav,
.member-page .container,
.footer .container {
  width: min(1920px, calc(100% - 96px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.profile-shell {
  gap: 24px;
}

.member-account-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding-bottom: 22px;
}

.member-account-bar h1 {
  font-size: clamp(26px, 2.4vw, 38px);
}

.member-account-bar [data-member-logout] {
  min-height: 42px;
}

.picks-wallet {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(28px, 4vw, 52px);
}

.picks-wallet-lead {
  max-width: 820px;
}

.picks-wallet-summary {
  width: fit-content;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  color: #d3ddd7;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.picks-wallet-actions {
  min-width: 196px;
}

.member-main {
  gap: 28px;
}

.member-tabs {
  align-items: center;
}

.member-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.member-tabs button strong {
  min-width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f2f3;
  color: #5e6673;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 760;
}

.member-tabs button.active strong {
  background: #111827;
  color: #fff;
}

.member-main > [data-tab-panel="settings"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.member-main > [data-tab-panel="settings"]:not(.hidden) {
  display: grid;
}

.member-empty {
  min-height: 150px;
  border: 1px solid #eceeed;
  border-radius: 0;
  background: #fafbfa;
}

/* A one-time celebration after verified registration. */
.registration-gift-modal {
  background: rgba(12, 20, 16, 0.68);
}

.registration-gift-modal .modal-panel {
  position: relative;
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(7, 18, 12, 0.28);
}

.registration-gift-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #dedfdd;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.registration-gift-visual {
  min-height: 470px;
  display: grid;
  place-content: center;
  justify-items: center;
  background: #13251d;
  color: #fff;
}

.registration-gift-visual strong {
  font-size: clamp(110px, 15vw, 180px);
  font-weight: 760;
  line-height: 0.76;
  letter-spacing: -0.08em;
}

.registration-gift-visual span {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.registration-gift-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 68px);
}

.registration-gift-eyebrow {
  color: #167a4b;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.registration-gift-copy h2 {
  margin: 16px 0 14px;
  color: #101814;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.registration-gift-copy > p {
  margin: 0;
  color: #667069;
  font-size: 14px;
  line-height: 1.6;
}

.registration-gift-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 18px;
  border-top: 1px solid #e3e6e4;
  border-bottom: 1px solid #e3e6e4;
  padding: 15px 0;
  color: #6c756f;
  font-size: 12px;
}

.registration-gift-balance strong {
  color: #13251d;
  font-size: 19px;
}

.registration-gift-later {
  align-self: center;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: #6c756f;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.registration-gift-modal .btn:focus-visible,
.registration-gift-close:focus-visible,
.registration-gift-later:focus-visible {
  outline: 3px solid #167a4b;
  outline-offset: 3px;
}

/* Member deletion backup controls live beside the member table. */
.admin-shell [data-tab-panel="members"] {
  gap: 18px;
}

.admin-shell [data-tab-panel="members"]:not(.hidden) {
  display: grid;
}

.member-backup-panel .admin-panel-head > div:first-child {
  max-width: 760px;
}

.member-backup-location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 14px;
  margin: 18px 0 14px;
  border: 1px solid #e5e7eb;
  background: #f8f9fa;
  padding: 12px 14px;
}

.member-backup-location span {
  color: #667085;
  font-size: 12px;
}

.member-backup-location code,
.member-backup-table code {
  color: #27313d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.member-backup-location strong {
  margin-left: auto;
  font-size: 12px;
}

.member-backup-table th:last-child,
.member-backup-table td:last-child {
  width: 90px;
  text-align: right;
}

@media (max-width: 840px) {
  .picks-wallet,
  .registration-gift-modal .modal-panel {
    grid-template-columns: 1fr;
  }

  .picks-wallet-actions {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .registration-gift-visual {
    min-height: 170px;
  }

  .registration-gift-visual strong {
    font-size: 92px;
  }

  .registration-gift-visual span {
    margin-top: 12px;
  }

  .registration-gift-copy {
    padding: 32px 24px;
  }

  .member-main > [data-tab-panel="settings"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header.public-header .nav,
  .public-header .nav,
  .member-page .container,
  .footer .container {
    width: min(1920px, calc(100% - 32px));
  }

  .public-header .nav-icon-link {
    width: 36px;
    height: 40px;
  }

  .card-nav {
    width: 38px;
    height: 38px;
    opacity: 1;
    font-size: 18px;
  }

  .detail-add-cart::after {
    display: none;
  }

  .footer-grid a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .member-account-bar {
    grid-template-columns: 1fr auto;
  }

  .picks-wallet-actions {
    grid-template-columns: 1fr;
  }

  .member-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .member-tabs button {
    white-space: nowrap;
  }

  .member-backup-location strong {
    width: 100%;
    margin-left: 0;
  }
}

/* 2026-09-06 storefront hierarchy: aligned card controls, calmer Picks plans, and legal pages. */
.storefront-product-card .product-card-body,
.home-product-section .storefront-product-card .product-card-body {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  padding: 12px 2px 0;
}

.storefront-product-card .product-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.storefront-product-card h3,
.home-product-section .storefront-product-card h3 {
  min-height: 38px;
}

.storefront-product-card .product-card-heading > .price,
.home-product-section .storefront-product-card .product-card-heading > .price {
  align-self: start;
  color: #151515;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.28;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.storefront-product-card .product-card-meta-row {
  min-height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.storefront-product-card .card-format-meta {
  min-height: 20px;
  margin: 0 0 1px;
}

.card-cart-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border-color: #bdbdb9;
  border-radius: 0;
}

.card-cart-plus {
  display: block;
  transform: translateY(-1px);
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
}

.home-picks-section {
  padding: clamp(64px, 7.5vw, 108px) 0;
  background: #f4f4f1;
}

.home-picks-section .home-picks-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr);
  gap: clamp(32px, 7vw, 120px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.home-picks-section .home-picks-heading > div {
  max-width: 820px;
}

.home-picks-section .home-picks-heading h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.98;
}

.home-picks-section .home-picks-heading > p {
  max-width: 520px;
  padding-bottom: 3px;
  font-size: 16px;
}

.home-picks-section .home-picks-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-picks-section .home-pick-card {
  min-height: 320px;
  border: 1px solid #d6d6d1;
  border-radius: 0;
  background: #fff;
  padding: 28px;
  box-shadow: none;
}

.home-picks-section .home-pick-card > span,
.home-pick-card-top > span {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #6c6c67;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.home-picks-section .home-pick-card h3 {
  margin: 38px 0 0;
  font-size: clamp(25px, 2.1vw, 34px);
  line-height: 1.05;
}

.home-pick-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 18px;
}

.home-pick-price strong {
  font-size: clamp(38px, 3vw, 50px);
  font-weight: 720;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.home-pick-price small {
  color: #72726d;
  font-size: 12px;
}

.home-picks-section .home-pick-card > p {
  max-width: 310px;
  margin: 16px 0 30px;
}

.home-picks-section .home-pick-card.popular {
  border-color: #111814;
  background: #111814;
  color: #fff;
}

.home-picks-section .home-pick-card.popular > span,
.home-picks-section .home-pick-card.popular p,
.home-picks-section .home-pick-card.popular .home-pick-price small {
  color: #c6cec9;
}

.home-picks-section .home-pick-card.popular .btn.primary {
  border-color: #fff;
  background: #fff;
  color: #111814;
}

.home-picks-section .home-pick-card.value {
  border-color: #d6d6d1;
  background: #fff;
  color: #101211;
}

.home-picks-section .home-pick-card.value > span,
.home-picks-section .home-pick-card.value p,
.home-picks-section .home-pick-card.value .home-pick-price small {
  color: #6c6c67;
}

.home-picks-section .home-pick-card.value .btn.primary {
  border-color: #111814;
  background: #111814;
  color: #fff;
}

.home-picks-section .home-pick-card.free {
  grid-column: 1 / -1;
  min-height: 154px;
  display: grid;
  grid-template-columns: minmax(130px, 0.38fr) minmax(300px, 1.45fr) auto;
  gap: clamp(22px, 4vw, 64px);
  align-items: center;
  border: 0;
  background: #dfeee6;
  color: #10231a;
  padding: 30px 34px;
}

.home-pick-card-top {
  display: grid;
  gap: 7px;
}

.home-pick-card-top > span {
  color: #185f3e;
}

.home-pick-card-top small {
  color: #607168;
  font-size: 12px;
}

.home-picks-section .home-pick-card.free h3 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 40px);
}

.home-picks-section .home-pick-card.free p {
  max-width: 620px;
  margin: 0;
  color: #506158;
}

.home-picks-section .home-pick-card.free .btn {
  min-width: 210px;
  margin-top: 0;
  border-color: #10231a;
  background: #10231a;
  color: #fff;
}

.home-picks-section .home-picks-promise {
  justify-content: flex-start;
  margin-top: 26px;
  border-top: 1px solid #d6d6d1;
  padding-top: 20px;
  text-align: left;
}

.footer-legal-bar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.footer-legal-bar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

.footer-legal-bar a {
  color: rgba(255, 255, 255, 0.72);
}

.legal-page {
  background: #fff;
}

.legal-hero {
  border-bottom: 1px solid #e5e5e2;
  padding: clamp(70px, 10vw, 132px) 0 clamp(48px, 7vw, 88px);
}

.legal-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: clamp(36px, 8vw, 120px);
  align-items: end;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 8px 0 0;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.legal-hero p {
  margin: 0;
  color: #626762;
  font-size: 15px;
  line-height: 1.65;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 820px);
  justify-content: space-between;
  gap: clamp(44px, 9vw, 150px);
  padding-top: clamp(50px, 7vw, 90px);
  padding-bottom: clamp(80px, 10vw, 150px);
}

.legal-index {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  border-top: 1px solid #1a1a1a;
}

.legal-index a {
  border-bottom: 1px solid #deded9;
  padding: 15px 2px;
  color: #5f645f;
  font-size: 13px;
}

.legal-index a:hover,
.legal-index a:focus-visible {
  color: #111;
}

.legal-content {
  min-width: 0;
}

.policy-section {
  scroll-margin-top: 110px;
  border-top: 1px solid #1a1a1a;
  padding: 28px 0 68px;
}

.policy-section + .policy-section {
  margin-top: 16px;
}

.policy-section h2 {
  margin: 0 0 8px;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.policy-updated {
  margin: 0 0 34px;
  color: #777b77;
  font-size: 12px;
}

.policy-section h3 {
  margin: 34px 0 9px;
  font-size: 17px;
}

.policy-section p,
.policy-section li {
  color: #4f544f;
  font-size: 14px;
  line-height: 1.75;
}

.policy-section ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.policy-section a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-note {
  margin-top: 28px;
  border-left: 3px solid #173b2a;
  background: #f2f6f3;
  padding: 18px 20px;
}

@media (max-width: 1000px) {
  .home-picks-section .home-picks-heading,
  .legal-hero .container {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .home-picks-section .home-pick-card.free {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-pick-card.free .home-pick-card-top {
    grid-column: 1 / -1;
  }

  .legal-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .storefront-product-card h3,
  .home-product-section .storefront-product-card h3 {
    min-height: 38px;
  }

  .home-picks-section .home-picks-grid,
  .home-picks-section .home-pick-card.free,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .home-picks-section .home-pick-card {
    min-height: 290px;
    padding: 24px;
  }

  .home-picks-section .home-pick-card.free {
    min-height: 0;
    gap: 24px;
    padding: 28px 24px;
  }

  .home-pick-card.free .home-pick-card-top {
    grid-column: auto;
  }

  .home-picks-section .home-pick-card.free .btn {
    width: 100%;
    min-width: 0;
  }

  .home-picks-section .home-picks-promise,
  .footer-legal-bar {
    align-items: flex-start;
  }

  .footer-legal-bar {
    flex-direction: column;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .footer-legal-bar nav {
    justify-content: flex-start;
  }

  .legal-index {
    position: static;
    top: auto;
  }
}

/* Prominent global feedback and contextual member-form messages. */
.toast {
  position: fixed;
  top: 22px;
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 220;
  width: min(540px, calc(100% - 32px));
  min-height: 70px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 13px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: #151715;
  color: #fff;
  padding: 13px 14px 13px 16px;
  box-shadow: 0 18px 54px rgba(8, 14, 10, 0.22);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.toast.show {
  display: grid;
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast.success {
  background: #113e29;
}

.toast.error {
  background: #7c211b;
}

.toast.warning {
  background: #4b3b14;
}

.toast-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.toast-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.toast-copy strong {
  color: #fff;
  font-size: 13px;
  font-weight: 780;
}

.toast-copy > span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.toast-close {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.toast-close:hover,
.toast-close:focus-visible {
  color: #fff;
  outline: 1px solid rgba(255, 255, 255, 0.7);
}

.form-notice {
  margin: 2px 0 14px;
  border-left: 3px solid #41524a;
  background: #f3f5f4;
  padding: 11px 13px;
  color: #37423c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.form-notice.success {
  border-left-color: #177247;
  background: #edf7f1;
  color: #155c3c;
}

.form-notice.error {
  border-left-color: #b42318;
  background: #fff1ef;
  color: #8f1f17;
}

.form-notice.warning {
  border-left-color: #987012;
  background: #fff8e7;
  color: #71530b;
}

.admin-login-status {
  min-height: 0;
  margin-top: 12px;
  border-left: 3px solid #98a2b3;
  background: #f5f6f7;
  padding: 10px 12px;
}

.admin-login-status.is-error {
  border-left-color: #b42318;
  background: #fff1ef;
}

.admin-login-status.is-success {
  border-left-color: #087a65;
  background: #edf8f5;
}

/* Free and paid Picks are applied before PayPal inside the cart. */
.cart-pick-notice {
  display: grid;
  gap: 4px;
  border: 1px solid #b9d5c5;
  background: #edf7f1;
  padding: 13px 14px;
}

.cart-pick-notice.hidden {
  display: none;
}

.cart-coupon[hidden] {
  display: none !important;
}

.cart-pick-notice strong {
  color: #155c3c;
  font-size: 13px;
}

.cart-pick-notice span {
  color: #53645b;
  font-size: 11px;
  line-height: 1.45;
}

.cart-line .cart-line-pick {
  color: #147044;
  font-weight: 720;
}

.cart-pick-confirm-products {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  border-top: 1px solid #e1e4e2;
}

.cart-pick-confirm-products span {
  border-bottom: 1px solid #e1e4e2;
  padding: 11px 0;
  color: #333a36;
  font-size: 12px;
}

@media (max-width: 700px) {
  .toast {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 64px;
    grid-template-columns: 30px minmax(0, 1fr) 28px;
    gap: 10px;
    padding: 11px 10px 11px 12px;
  }

  .toast-icon {
    width: 28px;
    height: 28px;
  }
}

/* Final member wallet overrides stay last so the account hierarchy is consistent. */
.member-page .picks-wallet {
  grid-template-columns: minmax(250px, 0.86fr) minmax(420px, 1.14fr) auto;
  border-radius: 0;
}

.member-page .picks-wallet-breakdown {
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 0;
  background: transparent;
}

.member-page .picks-wallet-breakdown > div {
  min-height: 92px;
  align-content: space-between;
  background: rgba(255, 255, 255, 0.055);
  padding: 17px 18px;
}

.member-page .picks-wallet-breakdown strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 840px) {
  .member-page .picks-wallet {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .member-page .picks-wallet-breakdown {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .member-page .picks-wallet-breakdown > div {
    min-height: 78px;
    padding: 13px 10px;
  }
}

/* Keep every commerce entry point on the same complete six-offer grid. */
.picks-price-grid,
.picks-purchase-mode .picks-price-grid,
.home-picks-section .home-picks-grid {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.picks-purchase-mode [data-pick-plan="free"],
.picks-purchase-mode [data-pick-plan="single"] {
  display: flex;
}

@media (max-width: 1000px) {
  .picks-price-grid,
  .picks-purchase-mode .picks-price-grid,
  .home-picks-section .home-picks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .picks-price-grid,
  .picks-purchase-mode .picks-price-grid,
  .home-picks-section .home-picks-grid {
    grid-template-columns: 1fr;
  }
}
