:root {
  /* Neutral premium palette: warm paper + ink + a single sage accent */
  --bg: #f5f3ee;
  --paper: #ffffff;
  --paper-2: #faf8f3;
  --ink: #1c1b18;
  --muted: #7c7568;
  --accent: #5f7059;
  --accent-ink: #43503f;
  --accent-soft: #eaeee6;
  --line: rgba(28, 27, 24, 0.1);
  --line-strong: rgba(28, 27, 24, 0.16);
  --danger: #9a3434;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sheet: 0 -12px 44px rgba(28, 27, 24, 0.14);
  --shadow-soft: 0 12px 32px rgba(28, 27, 24, 0.06);
}

* {
  box-sizing: border-box;
  font-family: inherit;
  scrollbar-color: rgba(95, 112, 89, 0.45) transparent;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border-radius: var(--radius-pill);
  background: rgba(95, 112, 89, 0.4);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(95, 112, 89, 0.6);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  display: block;
  height: 86px;
}

button,
input,
select,
textarea {
  font: inherit;
  font-family: Manrope, system-ui, sans-serif;
}

button {
  cursor: pointer;
  font-family: Manrope, system-ui, sans-serif;
  transition:
    transform 140ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

button:active {
  transform: scale(0.985);
}

.app-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 0 18px 32px;
}

/* ---------- Hero / daily feature ---------- */

.hero {
  position: relative;
  min-height: 64vh;
  overflow: hidden;
  margin: 0 -18px 24px;
  background: var(--paper-2);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(245, 243, 238, 0.96) 100%);
}

.hero__brand {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(28, 27, 24, 0.6);
}

.hero__copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 32px;
  max-width: 420px;
  color: var(--ink);
}

.hero__copy p,
.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__copy h1,
.section-row h2,
.soft-panel h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.admin-shell .soft-panel h2 {
  margin-bottom: 16px;
  font-size: 30px;
}

.admin-shell .eyebrow {
  margin-bottom: 8px;
}

.hero__copy span {
  display: block;
  max-width: 320px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.daily-feature {
  margin: 0 -18px 22px;
}

.daily-feature__frame {
  position: relative;
  min-height: 66vh;
  overflow: hidden;
  background: var(--paper-2);
  animation: featureIn 520ms ease both;
}

.daily-feature__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: featureImageIn 700ms ease both;
}

.daily-feature__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(245, 243, 238, 0.2) 64%, rgba(245, 243, 238, 0.97) 100%);
}

.daily-feature__body {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 32px;
  min-width: 0;
  max-width: 430px;
  animation: featureTextIn 600ms ease both;
}

.daily-feature__body h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.05;
}

.daily-feature__body p:not(.eyebrow) {
  max-width: 320px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.daily-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
  font-size: 11px;
  font-weight: 600;
}

.daily-feature__meta span,
.daily-feature__meta strong {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
}

.daily-feature__actions {
  display: grid;
  grid-template-columns: minmax(0, 140px) auto;
  gap: 8px;
  max-width: 280px;
}

.daily-feature__actions .add-button {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  max-width: none;
}

.daily-feature__actions .ghost-button {
  padding: 11px 16px;
  font-weight: 600;
}

.daily-feature__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: -26px;
  position: relative;
  z-index: 2;
}

.daily-feature__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(28, 27, 24, 0.18);
}

.daily-feature__dots button.is-active {
  width: 22px;
  background: var(--accent);
}

@keyframes featureIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes featureImageIn {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes featureTextIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Tabs ---------- */

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  background: var(--bg);
}

.tabs::-webkit-scrollbar,
.admin-nav::-webkit-scrollbar,
.intervals::-webkit-scrollbar {
  height: 5px;
}

.tab,
.interval {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper);
}

.tab.is-active,
.interval.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- Bottom navigation ---------- */

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(calc(100% - 20px), 500px);
  min-height: 64px;
  transform: translateX(-50%);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(28, 27, 24, 0.1);
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 50px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: inherit;
  transition: transform 160ms ease;
}

.nav-icon svg {
  width: 23px;
  height: 23px;
  display: block;
}

.nav-item.is-active,
.nav-item.is-cart-open {
  color: var(--ink);
  background: var(--accent-soft);
}

.nav-item.is-active .nav-icon,
.nav-item.is-cart-open .nav-icon {
  transform: translateY(-0.5px) scale(1.04);
}

/* ---------- Views ---------- */

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.is-hidden {
  display: none !important;
}

.shop-top,
.section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 16px;
}

.shop-top {
  align-items: center;
}

.shop-top h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 600;
}

.cart-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 118px;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--paper);
  background: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.icon-button {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--paper);
  background: var(--ink);
  font-weight: 600;
}

.cart-pill span {
  font-size: 13px;
}

.cart-pill strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--paper);
  font-size: 13px;
}

/* ---------- Promo band ---------- */

.promo-band {
  display: grid;
  gap: 4px;
  margin: 4px 0 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid var(--line);
}

.promo-band strong {
  font-size: 15px;
}

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

/* ---------- Product grid ---------- */

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

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 0;
  padding: 0 0 14px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}

.product-card.is-reveal-ready {
  opacity: 0;
  transform: translateY(14px);
}

.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card.is-reveal-ready,
.product-card.is-visible {
  transition:
    opacity 460ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

/* Theme hooks kept for JS compatibility, intentionally neutral */
.product-card.theme-milk,
.product-card.theme-sage,
.product-card.theme-peach,
.product-card.theme-butter,
.product-card.theme-lavender {
  background: var(--paper);
}

.product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.02;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper-2);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.product-card:active .product-card__media img {
  transform: scale(1.015);
}

.product-card > div {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 0 12px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

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

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.chip {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 600;
}

.product-meta {
  display: flex;
  gap: 6px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.product-meta span {
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
}

.price {
  font-size: 17px;
  font-weight: 700;
}

.add-button {
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  min-height: 40px;
  padding: 10px 16px;
  color: var(--ink);
  background: transparent;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  flex: 1 0 92px;
  max-width: 144px;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.add-button:hover {
  color: var(--paper);
  background: var(--ink);
}

.qty-control {
  display: flex;
  align-items: center;
  height: 40px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.qty-control button {
  width: 34px;
  height: 40px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 600;
}

.qty-control span {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}

/* ---------- Product detail ---------- */

.detail-media {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 14px 0;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 13px;
}

/* ---------- Panels ---------- */

.soft-panel {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.intervals {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  overflow-x: auto;
}

.primary-action {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--paper);
  background: var(--ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.primary-action:hover {
  background: #2c2925;
}

.soft-panel .primary-action:first-of-type {
  margin-top: 16px;
}

/* ---------- Account ---------- */

.account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.account-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--line);
}

.account-hero div {
  display: grid;
  gap: 3px;
}

.account-hero span,
.account-hero small,
.account-action small,
.account-product span,
.account-product small,
.account-order-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.account-hero strong {
  font-size: 20px;
  line-height: 1.15;
}

.account-bonus {
  min-width: 96px;
  text-align: right;
}

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

.account-stats div {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.account-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.account-stats strong {
  align-self: end;
  font-size: 15px;
}

.account-action {
  display: grid;
  gap: 5px;
  align-content: center;
  text-align: left;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--ink);
  background: var(--paper-2);
  font-weight: 700;
}

.account-action--cta {
  grid-column: 1 / -1;
  min-height: 58px;
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.account-action--cta small {
  color: rgba(255, 255, 255, 0.72);
}

.account-section {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.ambassador-callout {
  background: var(--accent-soft);
}

.account-section h3 {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
}

.secondary-action {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.secondary-action:hover {
  color: var(--paper);
  background: var(--ink);
}

.account-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 8px;
}

.account-order-card div {
  display: grid;
  gap: 4px;
}

.account-order-card small {
  line-height: 1.35;
}

.account-recommendations {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.account-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.account-product__media {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}

.account-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-product div {
  display: grid;
  gap: 3px;
}

.account-product .add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 112px;
  max-width: 112px;
  min-height: 42px;
  padding: 10px 12px;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
}

.danger-action {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid rgba(154, 52, 52, 0.3);
  border-radius: var(--radius-pill);
  color: var(--danger);
  background: transparent;
  font-weight: 600;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ---------- Sheets ---------- */

.cart-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: end;
  background: rgba(28, 27, 24, 0.32);
}

.cart-sheet.is-open {
  display: flex;
}

.cart-sheet__panel {
  width: min(100%, 520px);
  max-height: 88vh;
  margin: 0 auto;
  padding: 22px 20px calc(96px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--paper);
  box-shadow: var(--shadow-sheet);
}

.sheet-head,
.cart-row,
.total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.metric-line span {
  color: var(--muted);
  font-weight: 600;
}

.metric-line strong {
  font-size: 28px;
}

.sheet-head {
  margin-bottom: 4px;
}

.sheet-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
}

.ghost-button {
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--paper);
  font-weight: 600;
}

.ghost-button:hover {
  border-color: var(--ink);
}

.cart-items {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.cart-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row strong {
  display: block;
}

.cart-row small {
  color: var(--muted);
}

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

.qty button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper-2);
}

.field {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--ink);
  background: var(--paper-2);
  transition: border-color 160ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field input,
.field select {
  height: 48px;
}

.field textarea {
  min-height: 116px;
  padding-top: 13px;
  resize: vertical;
}

.total-line {
  margin: 20px 0;
}

.total-line strong {
  font-size: 22px;
}

/* ---------- Admin ---------- */

.admin-shell {
  width: min(100%, 1120px);
  padding: 14px 18px 36px;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
}

.admin-head h2 {
  margin-bottom: 0;
}

.admin-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  background: var(--bg);
}

.admin-nav button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: var(--paper);
  font-weight: 600;
}

.admin-nav button.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-panel .soft-panel {
  margin-top: 16px;
}

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

.admin-metrics div {
  min-width: 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.admin-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.admin-row > div {
  min-width: 0;
}

.admin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-item > div {
  min-width: 0;
}

.admin-row strong,
.admin-row small {
  display: block;
}

.admin-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
}

.admin-row select {
  width: min(220px, 100%);
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.admin-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--paper-2);
}

.ai-generator {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.ai-generator h3 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 600;
}

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

.ai-result {
  display: grid;
  gap: 10px;
}

.ai-result img {
  width: 100%;
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--paper);
}

.admin-grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
  margin-bottom: 16px;
}

.admin-grid-form .primary-action {
  grid-column: 1 / -1;
}

.admin-calendar-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  text-align: center;
}

.admin-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.admin-calendar b {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
}

.admin-calendar-day {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 78px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--paper);
  text-align: left;
}

.admin-calendar-day.is-muted {
  opacity: 0.45;
}

.admin-calendar-day span {
  min-width: 0;
  overflow: hidden;
  padding: 3px 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utm-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.utm-stats span {
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
}

.utm-stats b {
  color: var(--ink);
}

.admin-small-danger {
  width: auto;
  min-height: 38px;
  margin: 0;
  padding: 0 12px;
  border-radius: var(--radius-sm);
}

.subscription-actions {
  display: grid;
  gap: 8px;
  min-width: 150px;
}

.compact-intervals {
  margin-top: 8px;
}

.delete-confirm-block {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */

@media (min-width: 700px) {
  .hero {
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

@media (max-width: 760px) {
  .admin-metrics,
  .admin-grid-form {
    grid-template-columns: 1fr;
  }

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

  .admin-row > button,
  .admin-row > select,
  .admin-row > .admin-small-danger {
    grid-column: 1 / -1;
    width: 100%;
  }

  .ai-generator__controls {
    grid-template-columns: 1fr;
  }

  .admin-calendar-day {
    min-height: 62px;
    padding: 5px;
  }
}

@media (max-width: 390px) {
  .hero__copy h1 {
    font-size: 32px;
  }

  .daily-feature__frame {
    min-height: 62vh;
  }

  .shop-top h2 {
    font-size: 28px;
  }

  .add-button {
    padding-inline: 10px;
    font-size: 13px;
  }

  .account-stats {
    grid-template-columns: 1fr;
  }

  .account-product {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .account-product__media {
    width: 64px;
    height: 64px;
  }

  .account-product .add-button {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card.is-reveal-ready,
  .product-card.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
