﻿:root {
  --paper: #f5efe4;
  --paper-deep: #ebe1d1;
  --ink: #2d2923;
  --muted: #756f66;
  --line: rgba(72, 61, 46, .16);
  --white: #fffaf1;
  --sage: #78856c;
  --moss: #52624d;
  --clay: #a66f55;
  --gold: #b5965a;
  --shadow: 0 14px 32px rgba(51, 42, 31, .08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0) 42%),
    repeating-linear-gradient(90deg, rgba(72,61,46,.025) 0 1px, transparent 1px 7px),
    linear-gradient(135deg, rgba(255,255,255,.26) 0 25%, transparent 25% 50%, rgba(255,255,255,.16) 50% 75%, transparent 75%),
    var(--paper);
  background-size: auto, 18px 18px, auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body {
  padding: 0 0 env(safe-area-inset-bottom);
}

body.is-lightbox-open {
  overflow: hidden;
}

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

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

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

.ui-icon {
  width: 1.35em;
  height: 1.35em;
  display: block;
}

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

.app-shell {
  width: 100%;
  max-width: 640px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
}

.app-topbar {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 60;
  width: min(640px, 100%);
  padding: calc(8px + env(safe-area-inset-top)) max(10px, env(safe-area-inset-left)) 6px max(10px, env(safe-area-inset-right));
  background: linear-gradient(180deg, rgba(245, 239, 228, .72), rgba(245, 239, 228, 0));
  border-bottom: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 250, 241, .72);
  border: 1px solid rgba(72, 61, 46, .12);
  box-shadow: 0 14px 34px rgba(51, 42, 31, .12);
  backdrop-filter: blur(22px) saturate(1.08);
  pointer-events: auto;
}

.topbar-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark,
.topbar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  overflow: hidden;
  padding: 1px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 250, 241, .9);
  border: 1px solid rgba(72, 61, 46, .14);
  box-shadow: inset 0 0 0 1px rgba(255,250,241,.52), 0 8px 18px rgba(45,41,35,.1);
}

.brand-mark .ui-icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.9;
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.brand-mark:hover {
  transform: translateY(-1px);
}

.topbar-icon {
  margin-left: auto;
  color: var(--ink);
  background: rgba(255, 250, 241, .76);
  border: 1px solid var(--line);
  font-size: 15px;
}

.topbar-icon.is-active {
  color: #fffaf1;
  background: var(--moss);
  border-color: rgba(82, 98, 77, .5);
}

.topbar-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.topbar-kicker {
  color: var(--sage);
  font-size: 10px;
  letter-spacing: 0;
}

.topbar-title {
  margin-top: 2px;
  max-width: 100%;
  font-size: 18px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.topbar-actions .topbar-icon {
  margin-left: 0;
}

.app-main {
  --content-card-inset: 18px;
  padding: 84px 14px 96px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 360px;
  padding: 28px 24px;
  color: #fffdf7;
  background: #2d2923;
  border: 1px solid rgba(255, 250, 241, .16);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(45,41,35,.16), rgba(45,41,35,.66)),
    var(--hero-image, url("/assets/img/hero-tea.jpg")) 62% center/cover no-repeat;
  transform: scale(1.02);
}

.hero.has-slider::before {
  display: none;
}

.page-banner.hero {
  min-height: 190px;
  margin-bottom: 18px;
  padding: 0;
  border-radius: 18px;
}

.page-banner .hero-slide::after {
  background:
    linear-gradient(180deg, rgba(45,41,35,.04), rgba(45,41,35,.1)),
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 28%, transparent 72%, rgba(255,255,255,.05));
}

.page-lead-card {
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(255, 250, 241, .78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-lead-media {
  position: relative;
  overflow: hidden;
  min-height: 185px;
  background: #2d2923;
}

.page-lead-media .hero-slide::after {
  background:
    linear-gradient(180deg, rgba(45,41,35,.02), rgba(45,41,35,.16)),
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 32%, transparent 72%, rgba(255,255,255,.05));
}

.page-lead-copy {
  padding: var(--content-card-inset);
  min-width: 0;
}

.page-lead-copy h1 {
  margin: 4px 0 12px;
  font-size: 30px;
  line-height: 1.24;
}

.page-lead-copy .detail-text {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-slide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-position: 62% center;
  background-size: cover;
  transform: scale(1.02);
  transition: opacity .75s ease;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45,41,35,.14), rgba(45,41,35,.68));
}

.hero-slide.is-active {
  opacity: 1;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero > .hero-slide {
  position: absolute;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 22%, transparent 78%, rgba(255,255,255,.06)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 9em;
  font-size: 36px;
  line-height: 1.14;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(20, 17, 14, .34);
}

.hero p {
  margin: 16px 0 0;
  max-width: 24em;
  color: rgba(255, 253, 247, .82);
  line-height: 1.8;
  font-size: 15px;
  text-shadow: 0 1px 12px rgba(20, 17, 14, .28);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

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

.quick-entry {
  min-height: 92px;
  padding: 14px 12px;
  border-radius: 8px;
  background: rgba(255, 250, 241, .82);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(51, 42, 31, .05);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.quick-grid .quick-entry:first-child:nth-last-child(3) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  min-height: 84px;
  padding: 16px;
}

.quick-grid .quick-entry:first-child:nth-last-child(3)::after {
  content: "›";
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--moss);
  background: rgba(120, 133, 108, .12);
  border: 1px solid rgba(120, 133, 108, .16);
  font-size: 24px;
  line-height: 1;
}

.quick-grid .quick-entry:first-child:nth-last-child(3) span {
  margin-top: 0;
}

.quick-entry strong {
  display: block;
  font-size: 17px;
}

.quick-entry span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.category-image-nav {
  display: grid;
  align-items: start;
  gap: 10px;
  margin: 12px 0 18px;
}

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

.category-image-nav.count-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-image-button {
  position: relative;
  width: 100%;
  max-width: 108px;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--ink);
  transform: translateZ(0);
  transition: transform .18s ease, color .18s ease;
}

.category-image-disc {
  position: relative;
  overflow: visible;
  width: min(100%, 88px);
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none;
  isolation: isolate;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.category-image-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--nav-image) center/contain no-repeat;
  transform: none;
  transition: transform .25s ease, filter .25s ease;
}

.category-image-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  display: none;
}

.category-image-label {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.category-image-button strong,
.category-image-button em {
  display: block;
}

.category-image-button strong {
  font-size: 14px;
  line-height: 1.2;
}

.category-image-button em {
  margin: 3px auto 0;
  max-width: 9.5em;
  color: var(--muted);
  font-style: normal;
  font-size: 10.5px;
  line-height: 1.28;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-active-mark {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  height: 22px;
  min-width: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fffaf1;
  background: rgba(142, 103, 58, .94);
  border: 1px solid rgba(255,250,241,.72);
  box-shadow: 0 8px 18px rgba(51,42,31,.22);
  font-size: 9px;
  line-height: 1;
}

.category-image-button.is-active {
  color: var(--ink);
  transform: translateY(-2px);
}

.category-image-button.is-active .category-image-disc {
  background: rgba(255,250,241,.5);
  box-shadow:
    0 10px 22px rgba(51,42,31,.09),
    0 0 0 4px rgba(181,150,90,.2);
}

.category-image-button.is-active .category-image-disc::after {
  background:
    radial-gradient(circle at 50% 35%, rgba(255,250,241,.14), transparent 42%),
    linear-gradient(180deg, rgba(68,56,38,.08) 0%, rgba(45,41,35,.36) 44%, rgba(45,41,35,.88) 100%);
}

.category-image-button.is-active .category-image-disc::before,
.category-image-button:hover .category-image-disc::before {
  transform: scale(1.04);
  filter: none;
}

.category-image-button:hover {
  transform: translateY(-1px);
}

.category-image-button.is-active strong {
  color: var(--moss);
}


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

.home-entry-card {
  position: relative;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  padding: 15px;
  border-radius: 12px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255,250,241,.92), rgba(236,226,210,.72)),
    repeating-linear-gradient(90deg, rgba(72,61,46,.035) 0 1px, transparent 1px 8px);
  border: 1px solid rgba(72, 61, 46, .16);
  box-shadow: 0 12px 28px rgba(51, 42, 31, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 58%, rgba(255,255,255,.28) 58% 100%),
    linear-gradient(180deg, rgba(255,255,255,.14), transparent 42%);
}

.home-entry-card::after {
  content: "›";
  position: absolute;
  right: 13px;
  bottom: 12px;
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--moss);
  background: rgba(255, 250, 241, .62);
  border: 1px solid rgba(72, 61, 46, .12);
  font-size: 22px;
  line-height: 1;
}

.home-entry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(82, 98, 77, .3);
  box-shadow: 0 20px 42px rgba(51, 42, 31, .13);
}

.home-entry-card > * {
  position: relative;
  z-index: 1;
}

.entry-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--moss);
  background: rgba(120, 133, 108, .13);
  border: 1px solid rgba(120, 133, 108, .16);
}

.entry-icon .ui-icon {
  width: 21px;
  height: 21px;
}

.entry-kicker {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-size: 10px;
  line-height: 1;
}

.home-entry-card strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.2;
}

.home-entry-card em {
  display: block;
  max-width: calc(100% - 34px);
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.home-entry-card.is-event .entry-icon {
  color: #8a6d38;
  background: rgba(181, 150, 90, .14);
  border-color: rgba(181, 150, 90, .2);
}

.home-entry-card.is-product .entry-icon {
  color: #8c5b45;
  background: rgba(166, 111, 85, .13);
  border-color: rgba(166, 111, 85, .2);
}

.home-entry-card.is-member .entry-icon {
  color: #2d2923;
  background: rgba(45, 41, 35, .08);
  border-color: rgba(45, 41, 35, .12);
}

.training-gallery-section {
  position: relative;
  margin: 14px 0 22px;
  padding: 16px 0 10px;
  overflow: hidden;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 2px 12px;
}

.gallery-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.gallery-heading span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--moss);
  background: rgba(255, 250, 241, .72);
  border: 1px solid var(--line);
  font-size: 13px;
}

.training-gallery {
  position: relative;
  margin: 0 -14px;
  overflow: hidden;
}

.training-gallery::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 250, 241, .7);
  border: 1px solid rgba(255, 250, 241, .64);
  box-shadow: 0 10px 22px rgba(51, 42, 31, .14);
  backdrop-filter: blur(12px);
  font-size: 28px;
  line-height: 1;
  pointer-events: none;
  animation: galleryNudge 2.8s ease-in-out infinite;
}

.gallery-track {
  display: flex;
  gap: 10px;
  padding: 0 14px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-shot {
  position: relative;
  flex: 0 0 78%;
  max-width: 420px;
  height: clamp(220px, 58vw, 360px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(72, 61, 46, .16);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  cursor: zoom-in;
}

.gallery-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(34, 30, 25, 0), rgba(34, 30, 25, .12)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 6px);
  opacity: .8;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: calc(18px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
  background: rgba(31, 29, 25, .78);
  backdrop-filter: blur(18px);
}

.photo-lightbox img {
  width: min(100%, 1120px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
}

.photo-lightbox-close {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: calc(14px + env(safe-area-inset-right));
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 250, 241, .3);
  border-radius: 50%;
  color: #fffaf1;
  background: rgba(45, 41, 35, .48);
  backdrop-filter: blur(12px);
  font-size: 26px;
  line-height: 1;
}

@keyframes galleryNudge {
  0%,
  58%,
  100% {
    transform: translateY(-50%) translateX(0);
  }

  72% {
    transform: translateY(-50%) translateX(6px);
  }
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 2px 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.section-head a:not(.btn) {
  color: var(--sage);
  font-size: 13px;
  white-space: nowrap;
}

.amount-summary {
  display: grid;
  gap: 8px;
  margin: 18px 0 4px;
  padding: 14px;
  border: 1px solid rgba(222, 211, 194, .86);
  border-radius: 12px;
  background: rgba(246, 241, 232, .74);
}

.amount-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.amount-summary strong {
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}

.amount-summary-total {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(222, 211, 194, .86);
  color: var(--ink) !important;
}

.amount-summary-total strong {
  color: #935f47;
  font-size: 22px;
}

.amount-summary.is-compact {
  gap: 5px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 250, 241, .58);
  box-shadow: none;
}

.amount-summary.is-compact div {
  font-size: 12px;
}

.amount-summary.is-compact strong {
  font-size: 13px;
}

.amount-summary.is-compact .amount-summary-total {
  padding-top: 7px;
}

.amount-summary.is-compact .amount-summary-total strong {
  font-size: 15px;
}

.data-table .amount-summary.is-admin {
  min-width: 164px;
  margin: 0;
}

.cart-checkout-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.cart-checkout-bar .btn {
  width: 100%;
  min-width: 180px;
}

.card-list,
.product-grid,
.metric-grid,
.member-grid {
  display: grid;
  gap: 12px;
}

.info-strip {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.info-tile {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, .72);
}

.info-tile strong {
  display: block;
  font-size: 22px;
}

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

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

.product-grid .card.is-balanced-wide {
  grid-column: 1 / -1;
}

.product-grid .card.is-balanced-wide .cover {
  aspect-ratio: 16 / 9;
}

.card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 250, 241, .86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover,
.quick-entry:hover {
  transform: translateY(-2px);
  border-color: rgba(82, 98, 77, .28);
  box-shadow: 0 18px 42px rgba(51, 42, 31, .12);
}

.card-body {
  padding: 16px;
}

.cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper-deep);
}

.product-card .cover {
  aspect-ratio: 1 / 1;
}

.pill-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--moss);
  background: rgba(120, 133, 108, .12);
  font-size: 12px;
}

.price {
  color: var(--clay);
  font-weight: 700;
}

.card h3 {
  margin: 10px 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.product-card h3 {
  font-size: 15px;
}

.muted,
.card p,
.detail-text {
  color: var(--muted);
  line-height: 1.75;
}

.card p {
  margin: 0;
  font-size: 14px;
}

.detail-cover {
  overflow: hidden;
  margin: -14px -14px 18px;
  border-radius: 0 0 20px 20px;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-layout {
  display: block;
}

.detail-media,
.detail-content {
  min-width: 0;
}

.detail-panel {
  margin-top: -54px;
  position: relative;
  z-index: 2;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 250, 241, .94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-panel h1 {
  margin: 10px 0;
  font-size: 26px;
  line-height: 1.25;
}

.detail-panel .detail-text {
  margin: 0;
}

.detail-panel .meta-row {
  margin-top: 14px;
}

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

.detail-panel-note strong {
  color: var(--moss);
  font-weight: 600;
  text-align: right;
}

.detail-panel-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: 10px;
  margin-top: 12px;
}

.detail-panel-actions .btn {
  min-height: 42px;
  padding-inline: 14px;
}

.detail-section {
  margin-top: 20px;
  padding: var(--content-card-inset);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, .7);
  border: 1px solid var(--line);
}

.intro-band h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.28;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.section-title-row em {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--moss);
  background: rgba(120, 133, 108, .13);
  border: 1px solid rgba(120, 133, 108, .18);
  font-style: normal;
  font-size: 14px;
}

.section-more {
  margin: 10px 0 0;
  text-align: right;
}

.section-more a {
  color: var(--moss);
  font-size: 13px;
}

.rich-content {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.72;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.rich-content p {
  margin: 0 0 10px;
}

.rich-content blockquote {
  max-width: 100%;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
}

.rich-content div {
  margin: 0 0 9px;
}

.rich-content ul,
.rich-content ol {
  margin: 6px 0 12px;
  padding-left: 1.25em;
}

.rich-content li {
  margin: 2px 0;
}

.rich-content p:empty,
.rich-content div:empty {
  display: none;
}

.rich-content strong,
.rich-content b {
  color: var(--ink);
}

.rich-content p:last-child,
.rich-content div:last-child,
.rich-content ul:last-child,
.rich-content ol:last-child {
  margin-bottom: 0;
}

.rich-content img {
  width: 100%;
  height: auto;
  margin: 14px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-content {
  margin-top: 14px;
}

.about-content .rich-content {
  max-width: 100%;
}

.detail-section > .rich-content > p,
.detail-section > .rich-content > div,
.detail-section > .rich-content > blockquote,
.detail-section > .rich-content > h1,
.detail-section > .rich-content > h2,
.detail-section > .rich-content > h3,
.detail-section > .rich-content > h4,
.detail-section > .rich-content > h5,
.detail-section > .rich-content > h6 {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}

.detail-section > .rich-content > blockquote > :first-child {
  margin-top: 0 !important;
}

.contact-panel {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,250,241,.88), rgba(235,225,209,.58)),
    repeating-linear-gradient(90deg, rgba(72,61,46,.035) 0 1px, transparent 1px 9px);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.contact-grid {
  display: grid;
  gap: 10px;
}

.contact-card {
  min-width: 0;
  display: block;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid rgba(72,61,46,.12);
  background: rgba(255,250,241,.68);
}

.contact-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--moss);
  font-size: 12px;
}

.contact-card span {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

a.contact-card:hover {
  border-color: rgba(82,98,77,.36);
  background: rgba(120,133,108,.1);
}

.affinity-link {
  margin: 14px 0 4px;
}

.affinity-link a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 8px;
  border: 1px solid rgba(72,61,46,.12);
  background: rgba(255,250,241,.52);
  color: var(--muted);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.affinity-link span,
.affinity-link em {
  font-size: 12px;
  line-height: 1.5;
}

.affinity-link strong {
  grid-row: span 2;
  color: var(--moss);
  font-size: 15px;
  white-space: nowrap;
}

.affinity-link em {
  font-style: normal;
  overflow-wrap: anywhere;
}

.affinity-link a:hover {
  transform: translateY(-1px);
  border-color: rgba(82,98,77,.28);
  background: rgba(255,250,241,.78);
}

.form-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 250, 241, .9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-card h2,
.form-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.form-grid {
  display: grid;
  gap: 0;
}

.list-toolbar {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, .72);
}

.list-toolbar .field {
  margin-bottom: 0;
}

.list-toolbar.search-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.list-toolbar.search-toolbar .field {
  min-width: 0;
}

.list-toolbar.search-toolbar .btn {
  min-width: 88px;
  min-height: 48px;
}

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

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.form-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.upload-preview {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.46), rgba(235,225,209,.38)),
    repeating-linear-gradient(45deg, rgba(72,61,46,.045) 0 1px, transparent 1px 9px);
  color: var(--muted);
}

.upload-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.upload-preview.is-empty {
  min-height: 128px;
  border-style: dashed;
}

.upload-preview.is-marked-delete {
  opacity: .45;
  filter: grayscale(.8);
}

.danger-check {
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 8px !important;
  padding: 8px 10px;
  border-radius: 999px;
  color: #743824 !important;
  background: rgba(166, 111, 85, .12);
  border: 1px solid rgba(166, 111, 85, .2);
}

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

.input,
.textarea,
.select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .62);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field .input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--ink);
  background: rgba(120, 133, 108, .12);
  outline: none;
}

.password-toggle .ui-icon {
  width: 21px;
  height: 21px;
}

.password-field.is-visible .password-toggle {
  color: var(--moss);
}

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

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(82, 98, 77, .54);
  box-shadow: 0 0 0 4px rgba(120, 133, 108, .13);
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fffdf7;
  background: var(--ink);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 8px 18px rgba(45, 41, 35, .08);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(45, 41, 35, .12);
}

.btn:focus-visible {
  outline: 3px solid rgba(181, 150, 90, .28);
  outline-offset: 3px;
}

.btn.secondary {
  color: var(--ink);
  background: rgba(255, 250, 241, .9);
  border: 1px solid var(--line);
}

.btn.secondary.danger {
  color: #8a3f31;
  border-color: rgba(166, 111, 85, .34);
  background: rgba(255, 250, 241, .94);
}

.btn.sage {
  color: #fffdf7;
  background: var(--moss);
}

.btn.clay {
  color: #fffdf7;
  background: var(--clay);
}

.btn.sage:hover,
.btn.sage:focus-visible {
  background: #465741;
}

.btn.clay:hover,
.btn.clay:focus-visible {
  background: #955f47;
}

.btn.block {
  width: 100%;
}

.wide-buy {
  grid-column: 1 / -1;
}

.sticky-cta {
  position: sticky;
  bottom: 78px;
  z-index: 20;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  padding: 10px;
  margin: 16px 0 0;
  border-radius: 22px;
  background: rgba(245, 239, 228, .88);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  width: min(640px, 100%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 241, .92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.tab-item {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  border-radius: 15px;
}

.tab-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.tab-item em {
  font-style: normal;
  font-size: 11px;
}

.tab-item.is-active {
  color: var(--ink);
  background: rgba(120, 133, 108, .13);
}

.toast {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.5;
}

.toast.is-ok {
  color: #31462d;
  background: rgba(120, 133, 108, .16);
  border: 1px solid rgba(120, 133, 108, .22);
}

.toast.is-error {
  color: #743824;
  background: rgba(166, 111, 85, .16);
  border: 1px solid rgba(166, 111, 85, .22);
}

.profile-form-card {
  scroll-margin-top: 92px;
}

.profile-save-notice {
  display: grid;
  gap: 3px;
  margin: -2px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  line-height: 1.5;
}

.profile-save-notice strong {
  display: block;
  font-size: 15px;
}

.profile-save-notice span {
  color: inherit;
  font-size: 13px;
  opacity: .88;
}

.profile-save-notice.is-ok {
  color: #31462d;
  background: rgba(120, 133, 108, .16);
  border: 1px solid rgba(120, 133, 108, .24);
}

.empty {
  padding: 34px 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.table-scroll {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: rgba(255, 250, 241, .86);
}

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

.data-table th {
  color: var(--muted);
  font-weight: 600;
}

.admin-thumb {
  width: 86px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--moss);
  background: rgba(120, 133, 108, .13);
  border: 1px solid rgba(120, 133, 108, .18);
  font-size: 12px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 4px;
}

.pager a,
.pager span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, .82);
  color: var(--ink);
  font-size: 13px;
}

.pager .is-active {
  color: #fffdf7;
  background: var(--ink);
  border-color: rgba(45, 41, 35, .82);
}

.pager-summary {
  color: var(--muted) !important;
  background: transparent !important;
  border-color: transparent !important;
  padding-left: 0 !important;
}

.cart-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row img {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
}

.order-card .order-items {
  margin-top: 12px;
}

.order-card .order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
}

.order-card .order-actions .btn {
  min-width: 116px;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty-box button,
.qty-box input {
  width: 42px;
  height: 38px;
  border: 0;
  background: transparent;
  text-align: center;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .45);
}

.admin-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  position: fixed;
  top: calc(74px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 45;
  width: 100%;
  margin: 0;
  padding: 8px 10px 10px;
  background: linear-gradient(180deg, rgba(245,239,228,.94), rgba(245,239,228,.78));
  border-bottom: 1px solid rgba(72,61,46,.1);
  backdrop-filter: blur(16px) saturate(1.04);
  transform: none;
  scroll-padding-left: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.admin-nav::-webkit-scrollbar {
  display: none;
}

.admin-nav a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,250,241,.82);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.admin-nav a.is-active {
  color: #fffdf7;
  background: var(--ink);
  border-color: rgba(45, 41, 35, .84);
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-actions + .admin-actions {
  margin-top: 8px;
}

.order-admin-actions,
.row-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.order-admin-actions .admin-actions + .admin-actions,
.row-admin-actions .admin-actions + .admin-actions {
  margin-top: 0;
}

.order-admin-actions .delete-order-form,
.row-admin-actions .delete-row-form {
  flex: 0 0 auto;
}

.admin-body .app-shell {
  max-width: 1280px;
}

.admin-body .app-main {
  padding: calc(136px + env(safe-area-inset-top)) 10px 42px;
}

.admin-body .form-card,
.admin-body .detail-section {
  border-radius: 8px;
}

.admin-body .input,
.admin-body .select {
  min-height: 40px;
  border-radius: 10px;
  padding: 9px 11px;
}

.admin-body .textarea {
  min-height: 86px;
  border-radius: 10px;
  padding: 10px 11px;
}

.admin-body .field label {
  margin-bottom: 5px;
  font-size: 12px;
}

.admin-body .form-help {
  font-size: 12px;
}

.admin-form {
  display: grid;
  grid-auto-flow: dense;
  gap: 12px;
  align-items: start;
}

.admin-form h2,
.admin-form .full-field,
.admin-form .form-actions,
.admin-form .span-2,
.admin-form .upload-field,
.admin-form .rich-field {
  grid-column: 1 / -1;
}

.admin-form .field {
  min-width: 0;
  margin-bottom: 0;
}

.admin-form .form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 4px;
}

.admin-form .form-actions .btn {
  min-width: 150px;
}

.admin-form h2:not(:first-child) {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-form .upload-preview {
  min-height: 96px;
}

.admin-form .upload-preview img {
  max-height: 180px;
}

.admin-body .tea-editor {
  border-radius: 10px;
}

.admin-body .tea-editor-area {
  min-height: 150px;
  padding: 11px;
}

.admin-body .tea-editor-toolbar {
  padding: 6px;
}

.admin-body .tea-editor-toolbar button {
  min-width: 32px;
  height: 30px;
  border-radius: 8px;
}

.admin-body .data-table th,
.admin-body .data-table td {
  padding: 8px 9px;
}

.admin-body .data-table td:last-child a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 2px 2px 2px 0;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,250,241,.78);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.admin-body .data-table td:last-child a:hover {
  border-color: rgba(82,98,77,.38);
  background: rgba(120,133,108,.12);
}

.admin-body .admin-actions .select {
  width: auto;
  min-width: 116px;
}

.admin-body .admin-actions .btn {
  min-height: 40px;
  padding: 0 14px;
}

.admin-dashboard-hero {
  padding: 16px;
}

.admin-dashboard-hero h1 {
  font-size: 24px;
  line-height: 1.25;
}

.admin-dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 10px 0 0;
}

.admin-metric-card {
  position: relative;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(72,61,46,.14);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255,250,241,.92), rgba(236,226,210,.62)),
    repeating-linear-gradient(90deg, rgba(72,61,46,.025) 0 1px, transparent 1px 8px);
  box-shadow: 0 10px 22px rgba(51,42,31,.06);
}

.admin-metric-card::after {
  content: "›";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--moss);
  background: rgba(120,133,108,.1);
  font-size: 18px;
  line-height: 1;
}

.admin-metric-card strong {
  font-size: 26px;
  line-height: 1;
}

.admin-metric-card span {
  font-weight: 700;
  line-height: 1.15;
}

.admin-metric-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  line-height: 1.25;
}

.admin-metric-card:hover,
.admin-metric-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(82,98,77,.32);
  outline: none;
}

@media (min-width: 520px) {
  .hero h1 {
    font-size: 44px;
  }

  .quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 14px 0 22px;
  }

  .quick-grid .quick-entry:first-child:nth-last-child(3) {
    grid-column: auto;
    display: block;
    min-height: 92px;
    padding: 14px 12px;
  }

  .quick-grid .quick-entry:first-child:nth-last-child(3)::after {
    display: none;
  }

  .quick-grid .quick-entry:first-child:nth-last-child(3) span {
    margin-top: 8px;
  }

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

@media (min-width: 760px) {
  .app-shell {
    max-width: 1180px;
  }

  .app-topbar {
    width: min(1180px, 100%);
    padding-left: 24px;
    padding-right: 24px;
  }

  .topbar-inner,
  .app-main {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }

  .app-main {
    --content-card-inset: 24px;
    padding: 96px 24px 118px;
  }

  .hero {
    min-height: 460px;
    padding: 58px 56px;
    border-radius: 20px;
  }

  .page-banner.hero {
    min-height: 300px;
    padding: 0;
  }

  .page-lead-media {
    min-height: 330px;
  }

  .page-lead-copy {
    padding: var(--content-card-inset);
  }

  .page-lead-copy h1 {
    font-size: 42px;
  }

  .hero h1 {
    max-width: 11em;
    font-size: 54px;
  }

  .hero p {
    font-size: 16px;
  }

  .quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 14px 0 22px;
  }

  .quick-entry {
    min-height: 118px;
    padding: 20px;
  }

  .category-image-nav {
    gap: 12px;
    margin: 16px 0 22px;
  }

  .category-image-button {
    max-width: 136px;
  }

  .category-image-disc {
    width: min(100%, 118px);
  }

  .category-image-button strong {
    font-size: 16px;
  }

  .category-image-button em {
    max-width: 10em;
    font-size: 11px;
  }

  .home-entry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
  }

  .home-entry-card {
    min-height: 156px;
    padding: 18px;
    border-radius: 12px;
  }

  .home-entry-card strong {
    font-size: 20px;
  }

  .home-entry-card em {
    font-size: 13px;
  }

  .training-gallery-section {
    margin-top: 18px;
  }

  .training-gallery {
    margin: 0;
  }

  .gallery-track {
    gap: 14px;
    padding: 0 0 12px;
    scroll-padding-left: 0;
  }

  .gallery-shot {
    flex-basis: calc((100% - 28px) / 3);
    max-width: none;
    height: 300px;
    border-radius: 14px;
  }

  .training-gallery::after {
    right: 18px;
  }

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

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
  }

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

  .cover {
    aspect-ratio: 4 / 3;
  }

  .detail-section,
  .form-card {
    padding: var(--content-card-inset);
  }

  .intro-band {
    display: grid;
    grid-template-columns: minmax(240px, .72fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: end;
  }

  .intro-band h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
  }

  .intro-band .detail-text {
    margin: 0;
  }

  .detail-layout {
    --detail-hero-height: clamp(360px, 27vw, 460px);
    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(420px, 1.18fr);
    gap: 24px;
    align-items: stretch;
  }

  .detail-media {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    height: var(--detail-hero-height);
    min-height: 0;
  }

  .detail-content {
    display: contents;
  }

  .detail-cover {
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .detail-cover img {
    display: block;
    height: 100%;
    aspect-ratio: auto;
  }

  .detail-panel {
    grid-column: 2;
    grid-row: 1;
    min-height: var(--detail-hero-height);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 0;
  }

  .detail-content > .detail-section {
    grid-column: 1 / -1;
    margin-top: 0;
  }

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

  .contact-panel {
    grid-template-columns: minmax(280px, .72fr) minmax(420px, 1fr);
    align-items: start;
    padding: 24px;
  }

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

  .list-toolbar {
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, .8fr)) auto;
    align-items: end;
  }

  .cart-checkout-bar .btn {
    width: auto;
  }

  .detail-panel {
    padding: 28px;
  }

  .info-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .account-panel {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    align-items: start;
  }

  .admin-body .topbar-inner,
  .admin-body .app-main {
    max-width: 1280px;
  }

  .admin-body .app-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .admin-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .admin-metric-card {
    min-height: 104px;
    padding: 16px;
  }

  .admin-metric-card strong {
    font-size: 30px;
  }

  .admin-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    padding: 18px;
  }

  .admin-form-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-form-compact .span-2 {
    grid-column: span 2;
  }

  .admin-form-compact .upload-field.span-2 {
    grid-column: span 2;
  }

  .admin-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    position: static;
    top: auto;
    left: auto;
    width: auto;
    transform: none;
    margin: 0 0 12px;
    padding: 0 0 12px;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    gap: 7px;
  }

  .sticky-cta {
    bottom: 92px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .purchase-card .sticky-cta {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    margin: 16px 0 0;
    backdrop-filter: none;
  }

  .purchase-card .wide-buy {
    grid-column: auto;
  }

  .tabbar {
    width: min(760px, calc(100% - 48px));
    bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 16px 36px rgba(51, 42, 31, .13);
  }
}

@media (min-width: 1080px) {
  .app-main {
    padding-top: 104px;
  }

  .admin-body .app-shell,
  .admin-body .topbar-inner,
  .admin-body .app-main {
    max-width: 1360px;
  }

  .admin-body .app-topbar {
    width: min(1360px, 100%);
  }

  .admin-body .app-main {
    padding-top: 96px;
  }

  .admin-dashboard-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .admin-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 16px;
    padding: 18px 20px 20px;
  }

  .admin-form .span-2,
  .admin-form .rich-field.span-2,
  .admin-form .upload-field.span-2 {
    grid-column: span 2;
  }

  .admin-form .rich-field.span-2 {
    grid-column: span 3;
  }

  .admin-form .upload-field.span-2 {
    grid-column: span 1;
    grid-row: span 4;
  }

  .admin-form .full-field,
  .admin-form .form-actions,
  .admin-form h2 {
    grid-column: 1 / -1;
  }

  .admin-form .upload-preview {
    min-height: 104px;
  }

  .admin-form .upload-preview img {
    max-height: 190px;
  }

  .hero {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .page-banner.hero {
    min-height: 340px;
  }

  .page-lead-media {
    min-height: 360px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .gallery-shot {
    height: 330px;
  }

  .card h3 {
    font-size: 20px;
  }

  .product-card h3 {
    font-size: 16px;
  }

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

  .tabbar {
    left: 24px;
    top: 50%;
    bottom: auto;
    width: 78px;
    grid-template-columns: 1fr;
    transform: translateY(-50%);
    border-radius: 28px;
    padding: 10px;
  }

  .tab-item {
    min-height: 68px;
  }
}

@media (max-width: 480px) {
  .admin-body .app-topbar {
    padding: calc(6px + env(safe-area-inset-top)) 8px 5px;
  }

  .admin-body .topbar-inner {
    min-height: 50px;
    gap: 7px;
    padding: 5px 7px;
  }

  .admin-body .brand-mark {
    width: 38px;
    height: 38px;
  }

  .admin-body .topbar-actions {
    gap: 5px;
  }

  .admin-body .topbar-icon {
    width: 36px;
    height: 36px;
  }

  .admin-body .topbar-title {
    font-size: 15px;
  }

  .admin-body .topbar-kicker {
    font-size: 9px;
  }

  .admin-body .app-main {
    padding: calc(124px + env(safe-area-inset-top)) 9px 34px;
  }

  .admin-nav {
    top: calc(66px + env(safe-area-inset-top));
    gap: 6px;
    margin: 0 -9px 10px;
    padding: 7px 9px 9px;
  }

  .admin-nav a {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .admin-dashboard-hero {
    padding: 14px;
  }

  .admin-dashboard-hero h1 {
    font-size: 22px;
  }

  .admin-dashboard-grid {
    gap: 8px;
  }

  .admin-metric-card {
    min-height: 78px;
    padding: 10px;
    border-radius: 9px;
  }

  .admin-metric-card strong {
    font-size: 24px;
  }

  .admin-metric-card em {
    font-size: 10.5px;
  }

  .admin-body .detail-section,
  .admin-body .form-card {
    padding: 14px;
  }

  .admin-body .form-card {
    margin-top: 10px;
  }

  .admin-body .list-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 10px 0;
    padding: 10px;
  }

  .admin-body .list-toolbar .field label {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .admin-body .input,
  .admin-body .select {
    min-height: 42px;
  }

  .admin-body .textarea {
    min-height: 96px;
  }

  .admin-form {
    gap: 10px;
  }

  .admin-form .form-actions {
    gap: 8px;
    flex-wrap: wrap;
  }

  .admin-form .form-actions .btn,
  .admin-body .list-toolbar .btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
  }

  .admin-body .table-scroll {
    margin-left: -4px;
    margin-right: -4px;
    border-radius: 8px;
    box-shadow: inset -18px 0 18px -20px rgba(45,41,35,.5);
  }

  .admin-body .data-table {
    min-width: 760px;
  }

  .admin-body .data-table th,
  .admin-body .data-table td {
    padding: 8px;
    font-size: 12px;
  }

  .admin-body .admin-actions {
    gap: 6px;
  }

  .admin-body .admin-actions .select {
    min-width: 104px;
  }

  .admin-body .admin-actions .btn {
    min-height: 38px;
    padding: 0 12px;
  }

  .admin-thumb {
    width: 70px;
    height: 52px;
  }

  .pager {
    gap: 6px;
  }

  .pager a,
  .pager span {
    min-height: 32px;
    padding: 4px 9px;
    font-size: 12px;
  }

  .hero {
    min-height: 305px;
    padding: 16px 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .page-banner.hero {
    min-height: 176px;
    padding: 0;
    border-radius: 16px;
  }

  .page-lead-card {
    border-radius: 16px;
  }

  .page-lead-media {
    min-height: clamp(270px, 76vw, 320px);
  }

  .page-lead-copy {
    padding: var(--content-card-inset);
  }

  .page-lead-copy h1 {
    font-size: 28px;
  }

  .category-image-nav {
    gap: 7px;
  }

  .category-image-button {
    max-width: 86px;
  }

  .category-image-disc {
    width: min(100%, 74px);
  }

  .category-image-button strong {
    font-size: 12px;
  }

  .category-image-button em {
    display: none;
  }

  .category-active-mark {
    top: 4px;
    right: 1px;
    height: 19px;
    min-width: 19px;
    padding: 0 6px;
    font-size: 8.5px;
  }

  .list-toolbar.search-toolbar {
    gap: 8px;
    padding: 9px;
  }

  .list-toolbar.search-toolbar .field label {
    display: none;
  }

  .list-toolbar.search-toolbar .input,
  .list-toolbar.search-toolbar .btn {
    min-height: 44px;
  }

  .list-toolbar.search-toolbar .btn {
    min-width: 76px;
    padding: 0 14px;
  }

  .hero h1 {
    font-size: 34px;
    max-width: 8.4em;
    line-height: 1.1;
  }

  .hero p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
  }

  .hero > p:not(.hero-kicker) {
    margin-top: auto;
    padding-top: 58px;
  }

  .hero .hero-kicker {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.2;
  }

  .home-entry-grid {
    gap: 9px;
    margin-top: 10px;
  }

  .home-entry-card {
    min-height: 132px;
    gap: 8px;
    padding: 12px;
  }

  .entry-icon {
    width: 34px;
    height: 34px;
  }

  .entry-icon .ui-icon {
    width: 19px;
    height: 19px;
  }

  .home-entry-card strong {
    font-size: 16px;
  }

  .home-entry-card em {
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width: 360px) {
  .app-topbar {
    padding: calc(6px + env(safe-area-inset-top)) 8px 5px;
  }

  .topbar-inner {
    min-height: 50px;
    gap: 8px;
    padding: 5px 7px;
  }

  .brand-mark,
  .topbar-icon {
    width: 38px;
    height: 38px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    padding: 1px;
    border-radius: 50%;
  }

  .brand-mark .ui-icon {
    width: 30px;
    height: 30px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar-title {
    font-size: 16px;
  }

  .topbar-kicker {
    font-size: 9px;
  }

  .app-main {
    --content-card-inset: 16px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 78px;
  }

  .quick-grid {
    gap: 8px;
  }

  .home-entry-grid {
    gap: 8px;
  }

  .home-entry-card {
    min-height: 120px;
    padding: 13px;
  }

  .entry-icon {
    width: 34px;
    height: 34px;
  }

  .home-entry-card strong {
    font-size: 16px;
  }

  .home-entry-card em {
    font-size: 11px;
  }

  .training-gallery {
    margin-left: -10px;
    margin-right: -10px;
  }

  .gallery-track {
    padding-left: 10px;
    padding-right: 10px;
    scroll-padding-left: 10px;
  }

  .gallery-shot {
    flex-basis: 84%;
    height: 224px;
  }

  .hero {
    min-height: 306px;
    padding: 16px 20px 22px;
  }

  .page-banner.hero {
    min-height: 164px;
    padding: 0;
  }

  .page-lead-media {
    min-height: 258px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero > p:not(.hero-kicker) {
    padding-top: 44px;
  }

  .intro-band h1 {
    font-size: 27px;
  }

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

  .product-grid .card.is-balanced-wide {
    grid-column: auto;
  }

  .product-grid .card.is-balanced-wide .cover {
    aspect-ratio: 1 / 1;
  }
}

