:root {
  color-scheme: light;
  --paper: #f4f7f6;
  --sheet: #ffffff;
  --ink: #172821;
  --muted: #65766e;
  --line: #dce7e1;
  --green: #087957;
  --green-deep: #073d31;
  --green-action: #087447; /* active states; follows the admin's main brand colour */
  --green-mid: #0d6b4c;
  --header-dark: #123f31; /* dark hero and header surfaces; follows the admin's header colour */
  --amber: #ac6810;
  --amber-text: #8a5410; /* small amber text: badges and labels (4.5:1 or better on white and cream) */
  --danger: #9d2c2c;
  --shadow: 0 12px 30px rgba(16, 48, 35, 0.07);
  --shadow-soft: 0 5px 18px rgba(16, 48, 35, 0.05);
  --font-ui: "Segoe UI", "Helvetica Neue", Helvetica, "Lucida Grande", Arial, Ubuntu, Cantarell, "Fira Sans", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 18rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.45;
}

h1, h2, h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: 1.15;
}

h1 { margin: 0.15rem 0 0.4rem; font-size: clamp(1.8rem, 4vw, 2.4rem); }
h2 { margin: 0 0 0.4rem; font-size: 1.5rem; }
h3 { margin: 0 0 0.7rem; font-size: 1.2rem; }

a { color: var(--green); }
code { font-family: Consolas, "Courier New", monospace; font-size: 0.92em; }

.wrap { width: min(100% - 2rem, 56rem); margin-inline: auto; }
.page-admin .wrap { width: min(100% - 2rem, 58rem); }

.site-header {
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 7px, rgba(255, 255, 255, 0.035) 7px, rgba(255, 255, 255, 0.035) 8px),
    var(--green-deep);
  color: #f6f1e7;
  box-shadow: inset 0 -4px 0 #c9821a;
  padding: 1.65rem 0 1.45rem;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2c48a;
}

.header-note, .site-header .help { margin: 0; max-width: 38rem; color: #e7f3ec; }
.header-content { max-width: 56rem; }
.header-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; }

.mode { margin: 0.45rem 0 0; color: #d7efe4; font-size: 0.85rem; }
.mode.is-live {
  display: inline-block;
  color: #3d2a00;
  background: #ffd98a;
  border-radius: 7px;
  padding: 0.15rem 0.55rem;
}

main.wrap { padding-top: 1.5rem; }

.sheet, .batch {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.sheet { padding: 1.2rem; margin-bottom: 1rem; }
.batch + .batch { margin-top: 1rem; }
.batch.is-closed { background: #f6f2ea; }

.reviews-dialog-content { display: grid; gap: 0.8rem; }
.product-review-list { display: grid; gap: 0.7rem; }
.product-review {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}
.product-review-stars { color: var(--amber); letter-spacing: 0.08em; }
.product-review p, .product-review small { grid-column: 1 / -1; margin: 0; }
.product-review small { color: var(--muted); }
.product-review-form { display: grid; gap: 0.55rem; margin-top: 0.35rem; }
.review-whatsapp-link { display: inline-flex; justify-self: start; text-decoration: none; }

.batch-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 1rem 1.05rem 0.9rem;
  cursor: pointer;
}

.batch-side { display: flex; align-items: center; gap: 0.45rem; }
.batch-date {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--amber);
}
.batch-name { grid-column: 1 / -1; font-size: 1.45rem; }
.batch-meta, .batch-count { grid-column: 1 / -1; color: var(--muted); }
.batch-count { font-size: 0.92rem; margin-bottom: 0.15rem; }

.pill {
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pill.is-open { background: #e5f5ee; color: var(--green); }
.pill.is-closed { background: #ece7df; color: var(--muted); }

.chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.2rem;
}
.batch.is-expanded .chevron { transform: rotate(-135deg); margin-top: 0.15rem; }

.batch-panel { padding: 0 1.05rem 1.1rem; }
.product-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; align-items: start; }
.product-row.has-image { grid-template-columns: minmax(6rem, 10rem) minmax(0, 1fr); }
.product-image-button {
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: zoom-in;
}
.product-image, .admin-product-image {
  display: block;
  width: 100%;
  height: 9rem;
  object-fit: contain;
  background: #f6f2ea;
  border-radius: 12px;
  margin: 0;
}
.product-image-gallery, .dialog-product-image-gallery { position: relative; min-width: 0; touch-action: pan-y; }
.product-image-gallery { position: absolute; inset: 0; }
.product-image-gallery .product-image-button { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  background: rgb(20 31 26 / 62%);
  color: #fff;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-previous { left: 0.45rem; }
.gallery-next { right: 0.45rem; }
.gallery-count { position: absolute; z-index: 3; right: 50%; bottom: 0.45rem; transform: translateX(50%); padding: 0.17rem 0.45rem; border-radius: 999px; background: rgb(20 31 26 / 68%); color: #fff; font-size: 0.68rem; font-weight: 700; }
.gallery-control[hidden], .gallery-count[hidden] { display: none; }
.product-image-gallery[hidden], .dialog-product-image-gallery[hidden] { display: none; }
.product-image-gallery:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.admin-product-image { max-width: 28rem; }
.product-order-panel { min-width: 0; }
.view-orders { min-height: 2.3rem; }
.product-order-panel .order-list { margin-top: 0.55rem; }
.order-actions, .order-editor { display: flex; flex-wrap: wrap; align-items: end; gap: 0.45rem; margin-top: 0.35rem; }
.order-editor { display: block; padding: 0.7rem; background: #f6f2ea; border-radius: 10px; }
.order-editor.is-saving { border: 1px solid #dfbb70; background: #fff8e9; }
.order-update-pending { color: #8a5a00; font-size: 0.78em; font-weight: 750; }
.order-editor .field { display: inline-flex; width: min(12rem, 100%); margin-right: 0.45rem; }
.quantity-edit-heading { display: flex; align-items: center; gap: 0.4rem; }
.quantity-edit-heading > label { margin: 0; }
.quantity-change-help { position: relative; display: inline-flex; flex: 0 0 auto; }
.quantity-change-help > summary { display: grid; width: 1rem; height: 1rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 0.68rem; font-weight: 750; line-height: 1; cursor: pointer; list-style: none; }
.quantity-change-help > summary::-webkit-details-marker { display: none; }
.quantity-change-help > span { position: absolute; z-index: 5; bottom: calc(100% + 0.4rem); left: 0; width: min(16rem, 75vw); padding: 0.55rem 0.65rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-soft); color: var(--ink); font-size: 0.78rem; font-weight: 400; line-height: 1.4; }
.image-preview { width: min(92vw, 58rem); max-width: none; border: 0; border-radius: 16px; padding: 0.8rem; box-shadow: var(--shadow); touch-action: pan-y; }
.image-preview::backdrop { background: rgb(0 0 0 / 72%); }
.image-preview-stage { position: relative; display: grid; min-height: 8rem; place-items: center; }
.image-preview-media { display: grid; width: 100%; min-height: 8rem; place-items: center; }
.image-preview-media img, .image-preview-media video, .image-preview-media iframe { display: block; width: 100%; max-width: 100%; height: min(78vh, 48rem); border: 0; border-radius: 10px; object-fit: contain; background: #111; }
.image-preview-media img { width: auto; margin: 0.65rem auto 0; background: transparent; }
.image-preview-media iframe { background: #fff; }
.image-preview-stage .gallery-control { width: 2.6rem; height: 2.6rem; }
.image-preview-stage .gallery-count { bottom: 0.7rem; }
.gallery-expand-media { position: absolute; z-index: 4; top: 0.45rem; right: 0.45rem; min-height: 2rem; padding: 0.35rem 0.65rem; border: 1px solid rgb(255 255 255 / 65%); border-radius: 999px; background: rgb(20 31 26 / 78%); color: #fff; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.product-media-unavailable { display: grid; width: 100%; height: 100%; margin: 0; padding: 1rem; place-items: center; background: #f1f4f2; color: #52615b; font-size: 0.82rem; text-align: center; }
.invoice-section > h2 { margin: 0; color: #102849; }
.invoice-card-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0.85rem;
  border-radius: 50%;
  background-color: #e9f5f1;
  color: #08735a;
}
.invoice-list { display: grid; gap: 0.8rem; margin-top: 0.85rem; }
.skeleton-stack { display: grid; gap: 0.7rem; min-width: 0; }
.skeleton-stack--product,
.skeleton-stack--stat { grid-column: 1 / -1; grid-template-columns: inherit; gap: inherit; }
.skeleton-product-card,
.skeleton-invoice-card,
.skeleton-stat-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1ece8;
  border-radius: 14px;
  padding: 0.8rem;
  background: #fff;
}
.skeleton-product-card { display: grid; gap: 0.7rem; }
.skeleton-invoice-card { display: grid; gap: 0.75rem; padding: 1rem; }
.skeleton-stat-card { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: center; gap: 0.55rem; }
.skeleton-row,
.skeleton-panel-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; min-width: 0; padding: 0.75rem; border: 1px solid #e1ece8; border-radius: 10px; background: #fff; }
.skeleton-row .skeleton-block--copy,
.skeleton-panel-row .skeleton-block--copy,
.skeleton-row .skeleton-block--copy-short,
.skeleton-panel-row .skeleton-block--copy-short { grid-column: 1; }
.skeleton-row .skeleton-block--badge { grid-column: 2; grid-row: 1 / span 2; }
.skeleton-table-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; align-items: center; min-width: 0; padding: 0.75rem; border-bottom: 1px solid #e7eeea; }
.skeleton-stat-card .skeleton-block--icon { grid-row: 1 / span 2; width: 2.35rem; height: 2.35rem; border-radius: 12px; }
.skeleton-block { display: block; min-width: 0; height: 0.8rem; border-radius: 6px; background: linear-gradient(100deg, #edf2ef 30%, #f7f9f7 50%, #edf2ef 70%); background-size: 220% 100%; animation: samdart-skeleton-shimmer 1.5s ease-in-out infinite; }
.skeleton-block--media { aspect-ratio: 1.25; height: auto; border-radius: 10px; }
.skeleton-block--copy { width: 74%; }
.skeleton-block--copy-short { width: 46%; height: 0.65rem; }
.skeleton-block--control { width: 58%; height: 2.35rem; border-radius: 999px; }
.skeleton-block--heading { width: 52%; height: 1.15rem; }
.skeleton-block--table-line { width: 100%; height: 0.68rem; }
.skeleton-block--badge { width: 4.3rem; height: 1.5rem; border-radius: 999px; }
.skeleton-block--cell { height: 0.7rem; }
@keyframes samdart-skeleton-shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skeleton-block { animation: none; background: #edf2ef; }
  .invite-earn-panel,
  .invite-earn-panel *,
  .admin-referral-report,
  .admin-referral-report * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.my-order-group, .invoice-group { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.my-order-group > summary, .invoice-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.85rem 1rem; color: var(--green-deep); font-weight: 750; cursor: pointer; list-style: none; }
.my-order-group > summary::-webkit-details-marker, .invoice-group > summary::-webkit-details-marker { display: none; }
.my-order-group > summary::after, .invoice-group > summary::after { content: "+"; color: var(--green); font-size: 1.25rem; font-weight: 500; }
.my-order-group[open] > summary::after, .invoice-group[open] > summary::after { content: "−"; }
.cutoff-group-date { flex: 0 0 auto; color: var(--muted); font-size: 0.8rem; font-weight: 550; }
.cutoff-date-mobile { display: none; }
.invoice-group { border-color: #e1ece8; border-radius: 16px; }
.invoice-group > summary { min-height: 3.5rem; color: #102849; }
.invoice-group > summary::after { content: "⌄"; color: #08735a; font-size: 1.2rem; }
.invoice-group[open] > summary::after { content: "⌃"; }
.invoice-group-label { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.invoice-group-label > span:first-child { font-size: 1.02rem; }
.invoice-item-count { padding: 0.25rem 0.65rem; border-radius: 999px; background: #edf7f3; color: #28715e; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.invoice-group .cutoff-group-date { display: inline-flex; align-items: center; gap: 0.45rem; color: #53647a; font-size: 0.82rem; }
.invoice-group .cutoff-group-date::before { content: ""; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat; }
.cutoff-group-content { padding: 0 0.9rem 0.2rem; }
.my-order-outstanding { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin: 0; font-size: 0.95rem; font-weight: 700; }
.my-order-outstanding strong { color: var(--green-deep); white-space: nowrap; }
.my-order-group-footer { display: grid; gap: 0.6rem; margin-top: 0.4rem; padding: 0.75rem 0.1rem 0.65rem; border-top: 1px solid var(--line); }
.my-order-group-footer .help { margin: 0; font-size: 0.86rem; }
.my-order-group-footer .btn { justify-self: end; }
.invoice-card { border: 1px solid #e1ece8; border-radius: 16px; padding: 1rem; background: #fff; }
.invoice-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
.invoice-identity { display: flex; align-items: center; gap: 0.8rem; }
.invoice-card-icon { width: 3.4rem; height: 3.4rem; padding: 0.9rem; background-color: #dff1eb; }
.invoice-heading h3 { margin: 0; color: #102849; font-family: var(--font-ui); font-size: 1.05rem; font-weight: 800; }
.invoice-status { display: inline-flex; align-items: center; gap: 0.4rem; border-radius: 999px; padding: 0.42rem 0.8rem; color: #a94d07; background: #fff3db; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.invoice-status::before { content: "◷"; font-size: 1rem; }
.invoice-status.is-paid { color: #084734; background: #e5f5ee; }
.invoice-status.is-paid::before { content: "✓"; }
.invoice-status.is-partial { color: #0b5838; background: #e7f6d8; }
.invoice-status.is-partial::before { content: "◑"; }
.invoice-dates { margin: 0.15rem 0 0; }
.invoice-bill-to { display: flex; align-items: center; gap: 0.42rem; margin: 0.5rem 0 0.85rem; color: #26394c; font-size: 0.9rem; font-weight: 600; }
.invoice-home-icon { display: inline-block; width: 1rem; height: 1rem; background: #08735a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m3 11 9-8 9 8M5 10v10h14V10M9 20v-6h6v6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m3 11 9-8 9 8M5 10v10h14V10M9 20v-6h6v6'/%3E%3C/svg%3E") center / contain no-repeat; }
.invoice-table-scroll { overflow-x: auto; border: 1px solid #e7efec; border-radius: 14px; }
.invoice-table { width: 100%; min-width: 0; table-layout: fixed; margin: 0; }
.invoice-table th:nth-child(1), .invoice-table td:nth-child(1) { width: 5%; text-align: center; }
.invoice-table th:nth-child(2), .invoice-table td:nth-child(2) { width: 39%; }
.invoice-table th:nth-child(3), .invoice-table td:nth-child(3) { width: 10%; text-align: center; }
.invoice-table th:nth-child(4), .invoice-table td:nth-child(4) { width: 14%; text-align: right; white-space: nowrap; }
.invoice-table th:nth-child(5), .invoice-table td:nth-child(5) { width: 16%; text-align: right; white-space: nowrap; }
.invoice-table th:nth-child(6), .invoice-table td:nth-child(6) { width: 16%; text-align: right; white-space: nowrap; }
.invoice-table th { background: #edf7f4; color: #25463d; font-size: 0.72rem; }
.invoice-table th, .invoice-table td { padding: 0.38rem 0.4rem; vertical-align: middle; }
.invoice-table tbody tr:last-child td { border-bottom: 0; }
/* On narrow phones the fixed table cramps item names, so each line becomes a
   small card: item first, figures in a labelled row beneath it. */
@media (max-width: 540px) {
  .invoice-table { table-layout: auto; }
  .invoice-table thead { display: none; }
  .invoice-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.1rem 0.5rem; padding: 0.5rem 0.4rem; }
  .invoice-table tr + tr { border-top: 1px solid #e7efec; }
  .invoice-table td { display: block; padding: 0.1rem 0.2rem; }
  .invoice-table td:nth-child(1) { grid-column: auto; width: auto; text-align: left; color: var(--muted); font-size: 0.72rem; align-self: center; }
  .invoice-table td:nth-child(2) { grid-column: 1 / -1; width: auto; }
  .invoice-table td:nth-child(n+3)::before { content: attr(data-label) " "; color: var(--muted); font-weight: 400; }
  .invoice-table td:nth-child(n+3) { width: auto; text-align: right; }
}
.invoice-item { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.invoice-product-image, .invoice-product-placeholder { display: block; flex: 0 0 2.35rem; width: 2.35rem; height: 2.35rem; border-radius: 7px; object-fit: cover; background: #f4f2ed; }
.invoice-product-placeholder { background: #f4f2ed center / 1.35rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397a29b' stroke-width='1.6'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 20'/%3E%3C/svg%3E"); }
.invoice-item-description { display: grid; gap: 0.12rem; font-weight: 700; }
.invoice-item-description small { color: var(--muted); font-weight: 400; }
.invoice-footer { margin-top: 0.8rem; }
.invoice-detail-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem); align-items: start; gap: 0.85rem; }
.invoice-contact { padding: 0.55rem 0.65rem; border: 1px solid #e3eae6; border-radius: 10px; background: #fafcfb; }
.invoice-contact-heading { display: flex; align-items: center; gap: 0.45rem; color: #34564b; }
.invoice-info-icon { display: grid; flex: 0 0 1.45rem; width: 1.45rem; height: 1.45rem; place-items: center; border-radius: 50%; background: #e6efeb; color: #587367; font-size: 0.82rem; font-weight: 800; font-family: var(--font-ui); }
.invoice-contact-heading > div { display: grid; gap: 0.08rem; }
.invoice-contact-heading strong { font-size: 0.76rem; }
.invoice-contact-heading span { color: #798781; font-size: 0.68rem; }
.invoice-contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 0.45rem; }
.invoice-contact-button { display: flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 2.2rem; border: 1px solid #d4dfd9; border-radius: 7px; color: #466457; text-decoration: none; font-size: 0.78rem; font-weight: 650; }
.invoice-contact-button > span:first-child { font-size: 0.9rem; }
.invoice-contact-button > span:last-child { display: grid; gap: 0.05rem; }
.invoice-contact-button small { color: #788780; font-size: 0.66rem; font-weight: 400; }
.invoice-call-button { border-color: #d4dfd9; background: #edf3f0; color: #466457; }
.invoice-whatsapp-button { background: #fff; }
.invoice-document-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; margin-top: 0.4rem; }
.invoice-document-actions .btn { min-width: 0; min-height: 1.8rem; padding: 0.25rem 0.35rem; border: 1px solid #e0e7e3; border-radius: 7px; background: transparent; color: #52685e; font-size: 0.68rem; white-space: nowrap; }
.invoice-document-action { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; }
.invoice-document-action svg { width: 0.78rem; height: 0.78rem; flex: 0 0 0.78rem; }
.invoice-totals-panel { padding: 0.6rem 0.8rem; border-radius: 13px; background: #fffbf2; }
.invoice-totals { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0.8rem; margin: 0; }
.invoice-totals dt, .invoice-totals dd { margin: 0; text-align: right; }
.invoice-totals dt { color: var(--muted); }
.invoice-totals .invoice-total { font-weight: 800; color: var(--ink); }
.invoice-totals dt.invoice-total, .invoice-totals dd.invoice-total { margin-inline: -0.8rem; padding: 0.35rem 0.8rem; background: #edf7f4; }
.invoice-totals dt.invoice-total { text-align: left; }
.invoice-totals dt.invoice-paid, .invoice-totals dd.invoice-paid { color: #08735a; font-weight: 800; }
.invoice-paid-amount { color: #08735a; font-weight: 800; }
.invoice-totals dt:last-of-type, .invoice-totals dd:last-of-type { color: #a94d07; font-size: 1.05rem; }
.invoice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.8rem; }
.invoice-actions .invoice-pay-button { min-width: 10.8rem; }
.order-list {
  list-style: none;
  margin: 0.2rem 0 1rem;
  padding: 0.15rem 0 0.15rem 0.9rem;
  border-left: 3px solid var(--green);
}
.order-row {
  padding: 0.28rem 0;
  font-size: 1.06rem;
  overflow-wrap: anywhere;
}
.order-empty { color: var(--muted); }
.order-paid { white-space: pre; }

.closed-note { margin: 0 0 0.4rem; color: var(--muted); }
.help, .status-line { color: var(--muted); }
.help { margin-top: 0; }
.status-line { min-height: 1.3rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.8rem; }
.field label { font-weight: 600; }
textarea {
  width: 100%;
  min-height: 14rem;
  margin: 0 0 1rem;
  padding: 0.8rem;
  border: 1px solid #d9ccb8;
  border-radius: 12px;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}
.split { display: grid; gap: 0.8rem; }
@media (min-width: 640px) {
  .split { grid-template-columns: 1fr 1fr; }
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d9ccb8;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.05rem;
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn:disabled { opacity: 0.65; cursor: wait; }
.btn[aria-pressed="true"] { background: var(--green); color: #fff; }
.btn-secondary, .btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--line);
}
.site-header .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-danger { background: transparent; color: var(--danger); border-color: #efc7c7; }

.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.order-total { margin: 0.1rem 0 0.8rem; font-weight: 700; }
.customer-profile { overflow-wrap: anywhere; }
.color-quantity-fields { margin-bottom: 0.8rem; }
.color-quantity-fields .help { margin-bottom: 0.5rem; }
.color-quantity-list { display: grid; gap: 0 0.8rem; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.color-quantity-list .field { margin-bottom: 0.55rem; }
.product-image-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.8rem 0; }
.product-image-controls label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; }
.product-image-controls input[type="file"], input[type="file"] { min-height: auto; padding: 0.45rem; }
.name-suggestions { margin: -0.3rem 0 0.8rem; }
.name-suggestions p { margin: 0 0 0.4rem; color: var(--muted); }
.name-suggestion-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.form-error { color: var(--danger); margin: 0.7rem 0 0; }
.form-error:empty { display: none; }

.banner {
  margin: 0 0 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff4d8;
  color: #4e3708;
}
.banner.is-ok { background: #e5f5ee; color: #084734; }
.banner.is-error { background: #fde8e8; color: var(--danger); }

.empty { color: var(--muted); }

.summary { margin: 0.2rem 0 0.8rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 36rem; }
th, td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
tr.is-paid td { background: #f3faf6; }
.unpaid { color: var(--muted); }

.login-card { max-width: 26rem; margin-inline: auto; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.4rem 0 2rem;
}
.site-footer p { margin: 0; }
/* The legal footer is pinned to the bottom of the screen on every customer
   page; sign-up and order-placing pages (body.legal-footer-flow) keep it in
   the normal flow so it never competes with the forms or checkout. */
body:not(.page-admin)[data-view] .site-footer.customer-legal-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  width: 100%;
  margin: 0;
  padding: 0.5rem max(1rem, calc((100% - 56rem) / 2)) calc(0.55rem + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 94%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 22px rgb(16 48 35 / 6%);
  backdrop-filter: blur(10px);
}
body:not(.page-admin)[data-view]:not(.legal-footer-flow) main.wrap { padding-bottom: 4.25rem; }
body:not(.page-admin)[data-view].legal-footer-flow .site-footer.customer-legal-footer {
  position: static;
  width: min(100% - 2rem, 56rem);
  margin-inline: auto;
  padding: 0.4rem 0 max(2rem, env(safe-area-inset-bottom));
  background: transparent;
  border-top: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.dashboard-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 14px rgb(16 48 35 / 5%);
  backdrop-filter: blur(12px);
}
.nav-inner { min-height: 3.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { color: var(--green-deep); text-decoration: none; font-weight: 800; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 650; padding: 0.58rem 0.75rem; border-radius: 999px; }
.nav-link:hover, .nav-link.is-current { color: var(--green-deep); background: #eaf5ef; }
.nav-user { color: var(--green-deep); font-size: 0.86rem; font-weight: 700; white-space: nowrap; }
.header-note { max-width: 44rem; }

.customer-panel, .orders-section, .invoice-section { scroll-margin-top: 5rem; }
.customer-panel h2 { margin-bottom: 0.45rem; }
.customer-panel form { max-width: 34rem; }
.customer-panel #signup-form, .customer-panel #customer-login-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 0.9rem; max-width: 48rem; }
.customer-panel #signup-form > .help, .customer-panel #signup-form > button, .customer-panel #signup-form > .form-error,
.customer-panel #customer-login-form > button, .customer-panel #customer-login-form > .form-error { grid-column: 1 / -1; }
.customer-panel #signup-form > .name-suggestions { grid-column: 1 / -1; }
.customer-panel .actions { margin-bottom: 0.9rem; }
.customer-signed-in #customer-panel { padding-block: 0.8rem; }
.customer-signed-in #customer-panel-title,
.customer-signed-in #customer-panel-help { display: none; }
.customer-signed-in #customer-profile { margin: 0; font-weight: 700; }
.customer-signed-in #customer-signed-in { display: block; }
.customer-signed-in #switch-customer { min-height: 2.5rem; }

.orders-section, .admin-section, #invoice-section { scroll-margin-top: 5rem; }
.telegram-draft { margin-top: 0.8rem; padding: 1rem; border: 1px solid #e4d6bf; border-radius: 14px; background: #fffdf9; }
.telegram-draft-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.45rem 1rem; margin-bottom: 0.45rem; }
.telegram-draft-heading h3 { margin: 0; font-family: var(--font-ui); font-size: 1.05rem; font-weight: 750; }
.telegram-draft-image { width: min(100%, 24rem); height: auto; max-height: 20rem; object-fit: contain; margin: 0.55rem 0; }
.telegram-draft-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.6rem; margin: 0.2rem 0 0.7rem; }
.telegram-draft-gallery figure { margin: 0; }
.telegram-draft-gallery .telegram-draft-image { display: block; width: 100%; height: 8.5rem; max-height: none; margin: 0; border: 1px solid #eadfce; border-radius: 10px; background: #f6f1e8; object-fit: cover; }
.telegram-draft-gallery figcaption { margin-top: 0.25rem; color: #6b6255; font-size: 0.74rem; font-weight: 650; }
.telegram-draft-form .telegram-draft-options textarea { min-height: 3.2rem; font-family: inherit; }
.telegram-source-link { display: inline-block; margin: 0.25rem 0 0.5rem; }
.telegram-draft-warning { margin: 0.5rem 0; padding: 0.6rem 0.75rem; border-radius: 9px; background: #fff0d3; color: #714600; font-size: 0.88rem; }
.telegram-source { margin: 0.6rem 0; font-size: 0.88rem; }
.telegram-source summary { cursor: pointer; color: var(--green-deep); font-weight: 700; }
.telegram-source pre { overflow-wrap: anywhere; white-space: pre-wrap; padding: 0.7rem; border-radius: 8px; background: #f2efe8; font: inherit; }
.telegram-draft-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem 0.8rem; margin-top: 0.75rem; }
.telegram-draft-form .field { margin-bottom: 0.45rem; }
.telegram-draft-category-field > label { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.telegram-draft-category-create { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.35rem 0.5rem; margin-top: 0.4rem; }
.telegram-draft-category-create > label { display: grid; gap: 0.2rem; color: var(--muted); font-size: 0.78rem; }
.telegram-draft-category-create input { width: 100%; min-width: 0; min-height: 2.4rem; padding: 0.45rem 0.55rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
.telegram-draft-category-create .btn { min-height: 2.4rem; padding: 0.45rem 0.65rem; white-space: nowrap; }
.telegram-draft-category-create p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.78rem; }
.telegram-draft-category-create p.is-error { color: var(--danger); }
.telegram-draft-form .field:last-of-type,
.telegram-draft-form > .form-error,
.telegram-draft-form > .actions { grid-column: 1 / -1; }
.telegram-available-media { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem 0.8rem; }
.telegram-option-images { display: grid; grid-column: 1 / -1; gap: 0.55rem; margin: 0; padding: 0.75rem; border: 1px solid var(--line); border-radius: 10px; }
.telegram-option-images > legend { padding: 0 0.35rem; font-weight: 750; }
.telegram-option-images > small { color: var(--muted); }
.telegram-option-image-list { display: grid; gap: 0.45rem; }
.telegram-option-image-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.7fr); align-items: center; gap: 0.75rem; color: var(--ink); font-size: 0.85rem; }
.telegram-option-image-row select { width: 100%; min-width: 0; min-height: 2.4rem; padding: 0.4rem 0.55rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
.telegram-draft-form .actions { margin: 0.2rem 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 1.2rem 0 0.9rem; }
.section-heading .eyebrow { color: var(--green); margin-bottom: 0.25rem; }
.section-heading h2 { margin: 0; }
.section-heading .help { margin: 0.35rem 0 0; }
.active-products-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 0.75rem; }
.active-products-title-row h2 { text-wrap: balance; }
.customer-product-sort { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.35rem; color: #6d756f; font-size: 0.76rem; font-weight: 650; white-space: nowrap; }
.customer-product-sort select { min-height: 2rem; max-width: 10rem; padding: 0.2rem 0.45rem; border: 1px solid #e6e0d4; border-radius: 8px; background: #fff; color: #27352f; font: inherit; font-weight: 650; }
.section-badge { padding: 0.4rem 0.7rem; border-radius: 999px; background: #eaf5ef; color: var(--green-deep); font-size: 0.78rem; font-weight: 750; white-space: nowrap; }

.sheet, .batch { border-color: var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); }
.sheet { margin-bottom: 1rem; }
.batch { overflow: hidden; transition: box-shadow 160ms ease, transform 160ms ease; }
.batch:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.batch.is-expanded { border-color: #b7d9c8; }
.batch-toggle { padding: 1.1rem 1.2rem; }
.batch-name { font-family: var(--font-ui); font-size: 1.35rem; font-weight: 650; }
.batch-meta { font-size: 0.92rem; }
.batch-count { font-size: 0.84rem; }
.pill { letter-spacing: 0.035em; }
.pill.is-open { background: #e4f5ed; }
.batch-panel { padding: 0 1.2rem 1.2rem; }
.product-row { padding-top: 0.25rem; }
.product-image { border: 1px solid var(--line); }
.view-orders { min-height: 2.55rem; }
.order-row { padding: 0.65rem 0; border-bottom: 1px solid #edf1ee; }
.order-row:last-child { border-bottom: 0; }
.order-actions { margin-top: 0.5rem; }
.order-actions .btn { min-height: 2.45rem; }
.order-form { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.order-form h3 { margin-bottom: 0.8rem; }
.signin-prompt { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.7rem; margin-top: 0.9rem; padding: 0.9rem 1rem; border: 1px solid #d3e7dc; border-radius: 12px; background: #f3faf6; }
.signin-prompt p { margin: 0; color: var(--green-deep); font-weight: 650; }
.signin-prompt .btn { min-height: 2.6rem; }

.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.3rem 1.45rem;
  border: 1px solid #d3e7dc;
  border-radius: 18px;
  background: linear-gradient(120deg, #edf8f1, #fff 78%);
  box-shadow: var(--shadow-soft);
}
.dashboard-welcome .eyebrow { color: var(--green); margin-bottom: 0.3rem; }
.dashboard-welcome h2 { margin: 0; }
.dashboard-welcome p:last-child { margin: 0.35rem 0 0; color: var(--muted); }
.dashboard-welcome .btn { white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0.85rem 0 1.2rem; }
.stat-card { display: flex; flex-direction: column; gap: 0.2rem; min-height: 5.3rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.stat-card strong { color: var(--green-deep); font-size: 1.55rem; line-height: 1; }
.stat-card span { color: var(--muted); font-size: 0.84rem; }
.admin-section { margin-top: 1.5rem; }
#admin-invoice-details > summary,
.admin-batch > summary { list-style: none; cursor: pointer; }
#admin-invoice-details > summary::-webkit-details-marker,
.admin-batch > summary::-webkit-details-marker { display: none; }
#admin-invoice-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; font-size: 1.12rem; font-weight: 800; }
#admin-invoice-details > summary::after,
.admin-batch > summary::after { content: "+"; color: var(--green); font-size: 1.35rem; font-weight: 500; }
#admin-invoice-details[open] > summary::after,
.admin-batch[open] > summary::after { content: "−"; }
.summary-hint { color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.admin-batch { padding: 0; overflow: hidden; }
.admin-batch + .admin-batch { margin-top: 0.75rem; }
.admin-batch-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; align-items: center; padding: 1rem 1.15rem; }
.admin-batch-name { font-family: var(--font-ui); font-size: 1.2rem; font-weight: 700; }
.admin-batch-meta { grid-column: 1; margin: 0; font-size: 0.86rem; }
.admin-batch-count { grid-column: 2; grid-row: 1 / span 2; color: var(--green-deep); background: #eaf5ef; border-radius: 999px; padding: 0.35rem 0.65rem; font-size: 0.8rem; font-weight: 750; }
.admin-batch-content { border-top: 1px solid var(--line); padding: 1rem 1.15rem; }
.admin-batch-content .summary { font-weight: 650; }
.admin-product-image { max-height: 15rem; object-fit: contain; border: 1px solid var(--line); }
.admin-batch .actions { margin-bottom: 0; }
.table-scroll { border: 1px solid var(--line); border-radius: 10px; }
table { min-width: 42rem; }
th { background: #f1f7f3; color: var(--green-deep); }
tbody tr:nth-child(even) td { background-color: #fbfdfb; }
tr.is-paid td { background: #eff9f3; }

.login-card { border-radius: 20px; }
.btn { box-shadow: 0 2px 5px rgb(8 121 87 / 12%); transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 12px rgb(8 121 87 / 18%); }
.btn-secondary, .btn-ghost { box-shadow: none; }
input, select, textarea { border-color: #cfddd5; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgb(8 121 87 / 13%); }

body:not(.page-admin) { background: #f7f2e9; }
body:not(.page-admin) .site-header {
  padding: 0.55rem 0;
  box-shadow: none;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 7px, rgb(255 255 255 / 3%) 7px, rgb(255 255 255 / 3%) 8px),
    var(--green-deep);
}

.admin-cutoff-group {
  padding: 1rem 0;
  border-top: 1px solid var(--line, #dce5df);
}

.admin-cutoff-group h3 {
  margin: 0 0 0.75rem;
}

.admin-cutoff-group .actions input {
  width: min(100%, 14rem);
  min-height: 2.75rem;
  padding: 0.65rem;
}
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.4rem; }
.site-brand { display: inline-flex; flex-direction: row; align-items: center; gap: 0.65rem; color: #f3c46f; text-decoration: none; line-height: 1; }
.site-brand-logo { display: block; width: clamp(2.5rem, 4vw, 3rem); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0.7rem; }
.site-brand-name { display: inline-flex; align-items: baseline; color: #f8f6f0; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 750; letter-spacing: -0.04em; white-space: nowrap; }
.site-brand-name strong { color: #f6b51f; font-weight: 850; }
.header-note { margin: 0; color: #e6f1eb; font-size: 0.88rem; }
.dashboard-nav { background: var(--green-deep); border-bottom: 3px solid #d18a25; box-shadow: none; }
.nav-inner { min-height: 3.35rem; }
.nav-brand { color: #fff; }
.nav-link { color: #eef6f1; }
.nav-link:hover, .nav-link.is-current { color: #2d230d; background: #f2bb52; }
.nav-user { color: #fff; }

.welcome-hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  min-height: 20rem;
  margin: 1.5rem 0 2.2rem;
  overflow: hidden;
  border: 1px solid rgb(207 180 137 / 56%);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 7% 0%, rgb(255 255 255 / 92%), transparent 52%),
    linear-gradient(118deg, #fffaf1 0%, #f5ead9 60%, #ebdfcc 100%);
  box-shadow: 0 1.4rem 3.5rem rgb(49 55 41 / 12%), 0 0.25rem 0.8rem rgb(49 55 41 / 6%);
}
.hero-copy { position: relative; z-index: 1; align-self: center; padding: 2.4rem 1.2rem 2.4rem 2.5rem; }
.hero-kicker { margin: 0 0 0.65rem; color: #b56b12; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 850; }
.hero-copy h2 { margin: 0; color: #142c24; font-size: clamp(2.1rem, 4.4vw, 3.35rem); letter-spacing: -0.045em; line-height: 1.04; }
.hero-copy > p:not(.hero-kicker) { max-width: 31rem; margin: 0.8rem 0 1.1rem; color: #53615b; font-size: 1.02rem; }
.hero-cta { position: absolute; z-index: 3; left: 1rem; bottom: 1rem; min-height: 2.75rem; padding-inline: 1.15rem; border: 1px solid rgb(255 255 255 / 38%); border-radius: 999px; background: linear-gradient(135deg, #1c503b, #123b2c); box-shadow: 0 0.5rem 1.3rem rgb(10 28 20 / 28%); color: #fff; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.hero-cta:hover { transform: translateY(-2px); background: linear-gradient(135deg, #246447, #174a36); box-shadow: 0 0.75rem 1.5rem rgb(10 28 20 / 34%); }
.hero-cta:focus-visible { outline: 3px solid #f2c46f; outline-offset: 3px; }
.hero-cta span { margin-left: 0.55rem; font-size: 1.2rem; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; margin-top: 1.3rem; color: #2b3832; font-size: 0.8rem; font-weight: 650; }
.hero-highlights span { display: inline-flex; align-items: center; gap: 0.38rem; }
.hero-highlights b { color: #bb7618; font-size: 1rem; }
.hero-art { position: relative; display: grid; min-height: 20rem; place-items: center; overflow: hidden; background: linear-gradient(145deg, #d8c29e, #9eaa91 50%, #697f69); }
.hero-orbit { position: absolute; width: 17rem; height: 17rem; left: -4rem; top: 2rem; border-radius: 50%; background: #f0c986; opacity: 0.88; }
.hero-art::after { position: absolute; z-index: 2; content: ""; inset: 0; background: linear-gradient(90deg, rgb(20 44 36 / 4%), rgb(20 44 36 / 12%)); pointer-events: none; }
.hero-art img { position: absolute; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.hero-slide-controls { position: absolute; z-index: 4; right: 0.8rem; bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem; border: 1px solid rgb(255 255 255 / 42%); border-radius: 999px; background: rgb(22 35 29 / 66%); box-shadow: 0 0.45rem 1.2rem rgb(10 20 15 / 24%); backdrop-filter: blur(10px); }
.hero-slide-controls[hidden] { display: none; }
.hero-slide-controls > button { display: grid; width: 2.15rem; height: 2.15rem; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 18%); color: #fff; font-size: 1.35rem; line-height: 1; cursor: pointer; transition: background 150ms ease, transform 150ms ease; }
.hero-slide-controls > button:hover { background: rgb(255 255 255 / 36%); }
.hero-slide-indicators { display: flex; align-items: center; gap: 0.3rem; }
.hero-slide-indicator { width: 0.48rem; height: 0.48rem; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 56%); cursor: pointer; }
.hero-slide-indicator[aria-current="true"] { width: 0.9rem; border-radius: 999px; background: #fff; }
.welcome-hero.has-announcement-slides .hero-highlights,
.welcome-hero.has-announcement-slides .hero-note { display: none; }
.hero-placeholder { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 1rem; width: 76%; min-height: 12rem; border: 1px solid rgb(255 255 255 / 46%); border-radius: 18px; background: linear-gradient(145deg, rgb(255 251 242 / 88%), rgb(241 218 184 / 86%)); box-shadow: 0 1rem 2.5rem rgb(35 44 34 / 18%); color: #4b584e; font-family: var(--font-ui); font-size: 1.15rem; font-weight: 700; }
.hero-placeholder-mark { display: grid; width: 5rem; height: 5rem; place-items: center; border: 2px solid #bb7618; border-radius: 50%; color: #bb7618; font-size: 3rem; }
.available-welcome-hero.has-default-available-banner .hero-highlights,
.available-welcome-hero.has-default-available-banner .hero-note { display: none; }
.available-welcome-hero .hero-art img { object-position: center top; }
@media (max-width: 760px) {
  body:not(.page-admin) .welcome-hero.preorder-welcome-hero,
  body:not(.page-admin) .welcome-hero.available-welcome-hero {
    width: 100%;
    margin-inline: 0;
  }
}
@media (max-width: 640px) {
  .available-welcome-hero.has-default-available-banner .hero-copy h2 { max-width: 7.5rem; }
}
.hero-note { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; padding: 0.55rem 0.7rem; transform: rotate(-5deg); color: #18352a; font-family: var(--font-ui); font-size: 1rem; font-style: italic; text-shadow: 0 1px #fff; }
.hero-note span { color: #c9811b; font-size: 1.55rem; }

.orders-section { scroll-margin-top: 5rem; }
.section-heading { align-items: center; margin: 0 0 0.8rem; }
.section-heading .eyebrow { letter-spacing: 0.12em; }
.section-heading h2 { font-size: clamp(1.65rem, 3vw, 2rem); text-transform: capitalize; }
.catalog-tools { display: flex; gap: 0.55rem; align-items: center; }
.catalog-tools input { min-height: 2.65rem; border: 1px solid #e3d5c1; border-radius: 999px; background: #fffdf9; color: var(--ink); font: inherit; font-size: 0.86rem; }
.catalog-tools input { width: 12rem; padding: 0.55rem 0.85rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.batch-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 0.8rem; }
.batch + .batch { margin-top: 0; }
.batch { display: flex; flex-direction: column; gap: 0; padding: 0.48rem; border-color: #eadfce; border-radius: 17px; background: #fffdf9; box-shadow: 0 6px 20px rgb(70 52 27 / 6%); }
.batch:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgb(70 52 27 / 11%); }
.batch.is-closed { background: #f9f7f2; }
.product-cover { position: relative; height: 9.5rem; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #e7d1af, #c5c8ae 55%, #889982); }
.product-image-button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.product-image-button img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.product-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.2rem; color: #415147; background: radial-gradient(circle at 50% 35%, #f7ead3 0 18%, transparent 19%), linear-gradient(140deg, #e8d6bc, #b9c3aa); text-align: center; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 650; }
.product-placeholder > span:first-child { color: #b6751d; font-size: 2.1rem; }
.batch-date, .product-cover .pill { position: absolute; z-index: 2; top: 0.55rem; border-radius: 999px; padding: 0.28rem 0.55rem; background: #fffdf6; box-shadow: 0 2px 6px rgb(0 0 0 / 8%); font-size: 0.66rem; font-weight: 850; }
.batch-date { left: 0.55rem; color: #a45d0c; letter-spacing: 0.025em; }
.product-cover .pill { right: 0.55rem; text-transform: uppercase; letter-spacing: 0.025em; }
.product-cover .pill.is-open { background: #dff2e8; color: var(--green-deep); }
.product-cover .pill.is-closed { background: #ecebe7; color: #626862; }
.batch.is-closing-soon .product-cover .pill { background: #ffdc81; color: #614500; }
.product-details { display: flex; flex: 1; flex-direction: column; padding: 0.62rem 0.25rem 0.35rem; }
.batch-name { margin: 0; color: #17231e; font-family: var(--font-ui); font-size: 1rem; font-weight: 750; line-height: 1.25; }
.batch-meta { min-height: 1.2rem; margin: 0.28rem 0 0; overflow: hidden; color: #68716b; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.product-price { margin: 0.35rem 0 0; color: #b66d0e; font-size: 1.15rem; font-weight: 850; }
.batch-count { margin: 0.22rem 0 0.5rem; color: #6b756e; font-size: 0.73rem; }
.batch-count::before { content: "●"; margin-right: 0.35rem; color: #87978a; font-size: 0.6rem; }
.batch-toggle { width: 100%; min-height: 2.55rem; padding: 0.55rem 0.8rem; border: 0; border-radius: 10px; background: linear-gradient(110deg, var(--green), #07533f); color: #fff; text-align: center; font: inherit; font-size: 0.83rem; font-weight: 750; cursor: pointer; }
.batch-toggle:hover { background: var(--green-deep); }
.batch.is-closed .batch-toggle { background: #b8bcb8; cursor: pointer; }
.batch-dialog { width: min(92vw, 42rem); max-width: none; max-height: min(88vh, 52rem); overflow-y: auto; padding: 1.1rem; border: 1px solid #eadfce; border-radius: 18px; background: #fffdf9; color: var(--ink); box-shadow: 0 24px 80px rgb(0 0 0 / 28%); }
.batch-dialog::backdrop { background: rgb(11 28 21 / 68%); backdrop-filter: blur(3px); }
.customer-delete-dialog { width: min(92vw, 36rem); }
.customer-delete-choices { display: grid; gap: 0.7rem; margin: 1rem 0; padding: 0; border: 0; }
.customer-delete-choices legend { margin-bottom: 0.55rem; font-weight: 700; }
.customer-delete-choices label { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.customer-delete-choices input { margin: 0.25rem 0 0; accent-color: var(--green-deep); }
.customer-delete-choices span { display: grid; gap: 0.25rem; }
.customer-delete-choices small { color: var(--muted); line-height: 1.45; }
.batch-dialog.guest-preorder-dialog { width: min(92vw, 29rem); padding: 1.35rem; }
.guest-preorder-dialog .panel-title { margin: 0; color: #173d31; }
.guest-preorder-dialog p { margin: 0.75rem 0 1rem; color: #52645a; line-height: 1.55; }
.guest-preorder-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: flex-end; }
.guest-preorder-actions .btn { min-height: 2.7rem; }
.guest-preorder-dialog::backdrop { background: rgb(11 28 21 / 68%); backdrop-filter: blur(3px); }
.reviews-dialog { width: min(92vw, 36rem); }
.reviews-dialog .batch-dialog-header { align-items: center; margin-bottom: 0.8rem; }
.batch-dialog.reviews-dialog .panel-title { margin: 0; font-size: 1.1rem; }
.review-open-button { min-height: 2.3rem; margin-top: 0.55rem; padding: 0.35rem 0.65rem; font-size: 0.82rem; }
.review-actions { display: flex; align-items: center; gap: 1.75rem; min-width: 0; margin-top: 0.55rem; }
.review-actions .review-open-button { min-width: 0; margin-top: 0; }
.review-actions .product-info-control { margin-top: 0; }
.product-reaction-control { position: relative; display: inline-flex; align-items: center; }
.product-reaction-button {
  min-height: 2rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid #e6ece9;
  border-radius: 999px;
  background: #fff;
  color: #52615b;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.product-reaction-button:hover { border-color: var(--green-mid); background: #f1f8f5; color: var(--green-mid); }
.product-reaction-button:disabled { cursor: wait; opacity: 0.65; }
.product-reaction-picker {
  position: fixed;
  z-index: 100;
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid #e5ece8;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(16 24 40 / 18%);
}
.product-reaction-picker[hidden] { display: none; }
.product-reaction-picker button {
  min-height: 2.1rem;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: #f4f7f5;
  color: #253b31;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.product-reaction-picker button:hover { background: #e4f2e9; color: #145b38; }
.product-reaction-status { color: #9b3030; font-size: 0.78rem; }
.product-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin-top: 0.65rem; }
.product-share-heading { display: inline-flex; flex: none; align-items: center; gap: 0.35rem; white-space: nowrap; }
.product-share-label { color: #5b6b7c; font-size: 0.78rem; font-weight: 650; }
.share-icons { display: inline-flex; align-items: center; gap: 0.4rem; }
.share-icon-button { display: inline-grid; flex: none; width: 2.35rem; height: 2.35rem; padding: 0; place-items: center; border: 1px solid #dde7e2; border-radius: 50%; background: #fff; color: #1d4b3c; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
.product-share .share-icon-button { width: 1.8rem; height: 1.8rem; }
.product-share .share-icon-button svg { width: 0.9rem; height: 0.9rem; }
.share-icon-button:hover { border-color: var(--green-mid); background: #f1f8f5; color: var(--green-mid); transform: translateY(-1px); }
.share-icon-button:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 2px; }
.share-icon-button svg,
.share-menu-option svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.share-icon-button svg.is-filled,
.share-menu-option svg.is-filled { fill: currentColor; stroke: none; }
.share-icon-whatsapp { border-color: #25d366; background: #25d366; color: #fff; }
.share-icon-whatsapp:hover { border-color: #1ebe5b; background: #1ebe5b; color: #fff; }
.share-icon-button.is-copied { border-color: #07845b; background: #e7f6ef; color: #07845b; }
.batch-count-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0.2rem 0 0.6rem; }
body:not(.page-admin) .batch-count-row .batch-count { min-width: 0; margin: 0; }
.card-share { gap: 0.3rem; }
.card-share .share-icon-button { width: 2rem; height: 2rem; border-color: #e6ece9; color: #52615b; }
.card-share .share-icon-button svg { width: 0.95rem; height: 0.95rem; }
.share-menu { position: fixed; z-index: 1200; display: grid; min-width: 11rem; padding: 0.35rem; border: 1px solid #e0e8e4; border-radius: 12px; background: #fff; box-shadow: 0 14px 36px rgb(15 35 28 / 18%); }
.share-menu[hidden] { display: none; }
.share-menu-option { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.65rem; border: 0; border-radius: 8px; background: none; color: #1c2430; font: inherit; font-size: 0.88rem; text-align: left; cursor: pointer; }
.share-menu-option:hover,
.share-menu-option:focus-visible { background: #f1f7f4; outline: none; }
.share-menu-whatsapp svg { color: #25d366; }
.share-menu-telegram svg { color: #229ed9; }
.share-menu-facebook svg { color: #1877f2; }
.share-menu-email svg,
.share-menu-copy svg { color: var(--green-mid); }
.share-toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 1300; padding: 0.55rem 1rem; border-radius: 999px; background: #173d31; color: #fff; font-size: 0.85rem; font-weight: 650; box-shadow: 0 10px 28px rgb(0 0 0 / 22%); transform: translateX(-50%); animation: share-toast-in 0.18s ease-out; transition: opacity 0.3s; }
.app-update-toast { position: fixed; inset-inline: auto 1rem; bottom: 1rem; z-index: 1400; display: flex; align-items: center; gap: 1rem; width: min(26rem, calc(100vw - 2rem)); padding: 0.9rem 1rem; border: 1px solid rgb(255 255 255 / 16%); border-radius: 16px; background: #173d31; color: #fff; box-shadow: 0 12px 32px rgb(0 0 0 / 24%); animation: app-update-in 0.18s ease-out; }
.app-update-copy { display: grid; gap: 0.2rem; min-width: 0; font-size: 0.82rem; line-height: 1.4; }
.app-update-copy strong { font-size: 0.9rem; }
.app-update-copy span { color: rgb(255 255 255 / 82%); }
.app-update-actions { display: flex; align-items: center; gap: 0.4rem; flex: 0 0 auto; }
.app-update-refresh,
.app-update-dismiss { min-height: 2.5rem; border: 0; border-radius: 999px; padding: 0.45rem 0.75rem; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.app-update-refresh { background: #fff; color: #12533b; }
.app-update-dismiss { background: transparent; color: #fff; }
.app-update-refresh:focus-visible,
.app-update-dismiss:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes app-update-in { from { opacity: 0; transform: translateY(0.4rem); } }
.share-toast.is-leaving { opacity: 0; }
@keyframes share-toast-in { from { opacity: 0; transform: translate(-50%, 0.5rem); } }
.visually-hidden-copy { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
body:not(.page-admin) .share-toast.is-placed { right: auto; bottom: auto; transform: none; animation: share-toast-fade 0.18s ease-out; }
@keyframes share-toast-fade { from { opacity: 0; } }
.spotlight-dialog { width: min(25rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; overflow-y: auto; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 28px 70px rgb(7 40 30 / 32%); }
.spotlight-dialog[open] { animation: spotlight-in 0.22s ease-out; }
.spotlight-dialog::backdrop { background: rgb(9 30 23 / 60%); backdrop-filter: blur(2px); }
.momo-payment-dialog { position: fixed; inset: 50% auto auto 50%; width: min(32rem, calc(100% - 1.5rem)); max-height: min(calc(100vh - 1.5rem), calc(100dvh - 1.5rem)); margin: 0; padding: 1.5rem 1.2rem 1.1rem; overflow-y: auto; transform: translate(-50%, -50%); border: 0; border-radius: 20px; background: #fffdf9; color: var(--ink); box-shadow: 0 28px 70px rgb(7 40 30 / 32%); }
.momo-payment-dialog::backdrop { background: rgb(9 30 23 / 65%); backdrop-filter: blur(2px); }
.momo-payment-qr { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); justify-items: center; gap: 0.35rem; margin: 0.85rem 0; padding: 0.75rem; border: 1px solid #dce9e2; border-radius: 14px; background: #f7faf8; text-align: left; }
.momo-payment-qr h3, .momo-payment-help h3 { margin: 0; color: #173d31; font-size: 0.95rem; }
.momo-payment-qr h3 { display: flex; align-items: center; gap: 0.45rem; }
.momo-payment-app-icon { display: inline-grid; width: 1.8rem; height: 1.8rem; flex: 0 0 auto; place-items: center; border-radius: 0.5rem; background: var(--green); color: #fff; }
.momo-payment-app-icon svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.momo-payment-qr h3 { grid-column: 1 / -1; }
.momo-payment-qr-image { display: block; grid-column: 1; grid-row: 2 / span 2; width: min(100%, 9rem); height: auto; aspect-ratio: 372 / 383; border-radius: 8px; background: #fff; object-fit: contain; }
.momo-payment-qr-image[hidden] { display: none; }
.momo-payment-qr p, .momo-payment-help p { margin: 0; color: #5d6b64; font-size: 0.8rem; line-height: 1.4; }
.momo-payment-qr p { grid-column: 2; align-self: center; }
.momo-payment-qr-error:not(:empty) { color: #8b2e24; }
.momo-payment-guide { margin: 0.75rem 0; border: 1px solid #e5e9d8; border-radius: 11px; background: #fffaf0; }
.momo-payment-guide summary { padding: 0.65rem 0.75rem; color: #594914; font-size: 0.85rem; font-weight: 750; cursor: pointer; }
.momo-payment-guide ol { display: grid; gap: 0.45rem; margin: 0; padding: 0 0.8rem 0.8rem 2rem; color: #53635b; font-size: 0.8rem; line-height: 1.4; }
.momo-payment-guide li { padding-left: 0.1rem; }
.momo-payment-dialog h2 { margin: 0 2.2rem 0.25rem 0; color: #173d31; font-size: 1.25rem; }
.momo-payment-amount { margin: 0.9rem 0 0.2rem; color: #07533f; font-size: 2rem; font-weight: 850; letter-spacing: -0.03em; }
.momo-payment-instructions { margin: 0 0 0.9rem; color: #53635b; line-height: 1.45; }
.momo-payment-account { display: grid; grid-template-columns: 1fr auto; gap: 0.55rem 0.8rem; margin: 0 0 1rem; padding: 0.9rem; border: 1px solid #dce9e2; border-radius: 13px; background: #f4f8f5; }
.momo-payment-account dt { color: #627269; font-size: 0.8rem; }
.momo-payment-account dd { margin: 0; color: #173d31; font-weight: 750; text-align: right; overflow-wrap: anywhere; }
.momo-payment-number { display: grid; justify-items: end; gap: 0.4rem; }
.momo-payment-copy { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 2rem; padding: 0.35rem 0.55rem; border: 1px solid #c7d9cf; border-radius: 8px; background: #fff; color: #07533f; font: inherit; font-size: 0.76rem; font-weight: 700; cursor: pointer; }
.momo-payment-copy-icon { display: inline-flex; width: 1rem; height: 1rem; }
.momo-payment-copy-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.momo-payment-copy:disabled { cursor: wait; opacity: 0.7; }
.momo-payment-copy-status { display: block; min-height: 1em; margin-top: 0.2rem; color: #496457; font-size: 0.72rem; font-weight: 500; text-align: right; }
.momo-payment-account-help { margin: -0.65rem 0 0.8rem; color: #68756e; font-size: 0.75rem; }
.momo-payment-pay, .momo-payment-confirm { display: grid; width: 100%; min-height: 3rem; place-items: center; text-decoration: none; }
.momo-payment-pay { background: var(--green); color: #fff; }
.momo-payment-pay:hover { background: #07533f; }
.momo-payment-ussd-help { margin: 0.45rem 0 0.8rem; text-align: center; font-size: 0.78rem; line-height: 1.4; }
.momo-payment-confirm { border-color: var(--green-mid); color: var(--green-mid); }
.momo-payment-help { display: grid; gap: 0.5rem; margin-top: 0.9rem; padding-top: 0.85rem; border-top: 1px solid #e5e9e6; text-align: center; }
.momo-payment-contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.momo-payment-contact { min-height: 2.65rem; text-decoration: none; }
.review-open-button { display: none; }
@media (max-width: 600px) {
  .momo-payment-qr { display: none; }
  .momo-payment-dialog { width: min(26rem, calc(100% - 1rem)); max-height: min(calc(100vh - 1rem), calc(100dvh - 1rem)); padding: 1.35rem 1rem 1rem; }
  .momo-payment-number { gap: 0.35rem; }
  .momo-payment-copy { padding-inline: 0.45rem; }
}
.momo-verification-list:not(:empty) { display: grid; gap: 0.65rem; margin: 0.8rem 0 1rem; padding: 0.85rem; border: 1px solid #f1d797; border-radius: 12px; background: #fff9e9; }
.momo-verification-list h3 { margin: 0; color: #674b0b; font-size: 0.98rem; }
.momo-verification-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.7rem; border: 1px solid #eadfce; border-radius: 10px; background: #fff; }
.momo-verification-card > div { display: grid; gap: 0.2rem; min-width: 0; }
.momo-verification-card > .row-actions { display: flex; flex: none; }
.momo-verification-card strong { color: #173d31; }
.momo-verification-card span, .momo-verification-card small { color: #5b6b62; font-size: 0.82rem; }
.pending-momo-verification { display: grid; gap: 0.5rem; margin: 0 0 1.2rem; padding: 1rem; border: 1px solid #f1d797; border-radius: 12px; background: #fff9e9; }
.pending-momo-verification h3, .pending-momo-verification p { margin: 0; }
.pending-momo-verification h3 { color: #674b0b; font-size: 1rem; }
.pending-momo-verification td:nth-child(5) { min-width: 12rem; }
.pending-momo-verification td:last-child { white-space: nowrap; }
.pending-momo-verification .row-actions { flex-wrap: nowrap; }
.is-alert-target { outline: 3px solid #e8ae31 !important; outline-offset: 2px; }
@keyframes spotlight-in { from { opacity: 0; transform: scale(0.96); } }
.spotlight-close { position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2; display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); color: #173d31; font-size: 1.45rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / 16%); }
.spotlight-media { position: relative; min-height: 3.6rem; background: linear-gradient(135deg, var(--green-mid), #173d31); }
.spotlight-dialog.has-image .spotlight-media { background: #f3efe6; }
.spotlight-media img { display: block; width: 100%; height: 14rem; object-fit: cover; }
.spotlight-media img[hidden] { display: none; }
.spotlight-badge { position: absolute; bottom: -0.9rem; left: 1.1rem; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.42rem 0.8rem; border-radius: 999px; background: #f5b82e; color: #3b2a00; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; box-shadow: 0 6px 16px rgb(120 80 0 / 25%); }
.spotlight-badge svg { width: 0.95rem; height: 0.95rem; fill: currentColor; }
.spotlight-body { padding: 1.6rem 1.3rem 1.2rem; }
.spotlight-body h2 { margin: 0 0 0.5rem; color: #102a20; font-size: 1.3rem; line-height: 1.25; }
.spotlight-message { max-height: 9.5rem; margin: 0; overflow-y: auto; color: #3d4a43; font-size: 0.95rem; line-height: 1.5; white-space: pre-line; }
.spotlight-product { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; padding: 0.75rem 0.85rem; border: 1px solid #e6eee9; border-radius: 14px; background: #f7faf8; }
.spotlight-product > div { min-width: 0; }
.spotlight-product strong { display: block; overflow: hidden; color: #173d31; font-size: 0.92rem; text-overflow: ellipsis; white-space: nowrap; }
.spotlight-meta { display: block; margin-top: 0.15rem; color: #6b7a72; font-size: 0.78rem; }
.spotlight-price { flex: none; color: #b5600f; font-size: 1.1rem; font-weight: 800; }
.spotlight-actions { display: grid; gap: 0.5rem; margin-top: 1.1rem; }
.spotlight-actions .btn { width: 100%; }
.guide-ring { position: fixed; z-index: 1100; border-radius: 16px; pointer-events: none; animation: guide-ring-pulse 1.8s ease-in-out infinite; }
.guide-ring[hidden] { display: none; }
@keyframes guide-ring-pulse {
  0%, 100% { box-shadow: 0 0 0 3px #f5b82e, 0 0 0 3px rgb(245 184 46 / 50%), 0 0 0 9999px rgb(9 30 23 / 26%); }
  50% { box-shadow: 0 0 0 3px #f5b82e, 0 0 0 13px rgb(245 184 46 / 0%), 0 0 0 9999px rgb(9 30 23 / 26%); }
}
.guide-ring.has-tap::after { position: absolute; top: 50%; left: 50%; width: 2.8rem; height: 2.8rem; margin: -1.4rem 0 0 -1.4rem; border: 2px solid #fff; border-radius: 50%; background: rgb(255 255 255 / 45%); content: ""; animation: guide-tap 1.6s ease-out infinite; }
@keyframes guide-tap {
  0% { opacity: 1; transform: scale(0.7); box-shadow: 0 0 0 0 rgb(255 255 255 / 70%); }
  70% { opacity: 0.9; transform: scale(1); box-shadow: 0 0 0 18px rgb(255 255 255 / 0%); }
  100% { opacity: 0; transform: scale(1); }
}
.guide-tip { position: fixed; z-index: 1101; width: min(17.5rem, calc(100vw - 24px)); padding: 0.9rem 1rem 0.8rem; border-radius: 14px; background: #173d31; color: #fff; box-shadow: 0 16px 40px rgb(0 0 0 / 28%); }
.guide-tip.is-entering { animation: share-toast-fade 0.22s ease-out; }
.guide-tip.is-offscreen { visibility: hidden; }
.guide-tip-arrow { position: absolute; left: var(--arrow-left, 50%); width: 14px; height: 14px; margin-left: -7px; border-radius: 3px; background: inherit; transform: rotate(45deg); }
.guide-tip[data-placement="below"] .guide-tip-arrow { top: -6px; }
.guide-tip[data-placement="above"] .guide-tip-arrow { bottom: -6px; }
.guide-tip[data-placement="inside"] .guide-tip-arrow { display: none; }
.guide-tip-step { margin: 0 0 0.2rem; color: #f5c95c; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.guide-tip-step[hidden], .guide-tip-skip[hidden] { display: none; }
.guide-tip-title { display: block; font-size: 0.98rem; }
.guide-tip-message { margin: 0.3rem 0 0; color: #dcebe4; font-size: 0.87rem; line-height: 1.45; }
.guide-tip-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; margin-top: 0.75rem; }
.guide-tip-skip { margin-right: auto; padding: 0.3rem 0.2rem; border: 0; background: none; color: #b9d3c8; font-size: 0.82rem; font-weight: 650; cursor: pointer; }
.guide-tip .guide-tip-next { min-height: 2.1rem; padding: 0.35rem 1.05rem; background: #f5b82e; color: #2e2100; font-size: 0.85rem; box-shadow: none; }
.guide-tip .guide-tip-next:hover:not(:disabled) { background: #ffc947; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .guide-ring, .guide-ring.has-tap::after, .spotlight-dialog[open], .my-order-dialog[open] { animation: none; }
}
.invoice-dialog { width: min(94vw, 64rem); max-width: none; max-height: min(88vh, 54rem); overflow-y: auto; padding: 1.2rem; border: 1px solid #dce9e3; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgb(0 0 0 / 28%); }
.invoice-dialog::backdrop { background: rgb(11 28 21 / 68%); backdrop-filter: blur(3px); }
.invoice-dialog-heading { margin: 0 3rem 1rem 0; }
.invoice-dialog-heading h3 { margin: 0; color: #102849; font-size: 1.2rem; }
.invoice-dialog-heading p { margin: 0.35rem 0 0; color: var(--muted); }
.invoice-batch-list { display: grid; gap: 0.65rem; }
.invoice-batch-row { display: grid; grid-template-columns: minmax(10rem, 1.6fr) repeat(4, minmax(5.5rem, 0.7fr)) auto; align-items: center; gap: 0.7rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; }
.invoice-batch-name strong, .invoice-batch-name span { display: block; }
.invoice-batch-name strong { color: #102849; }
.invoice-batch-name span { margin-top: 0.2rem; color: var(--muted); font-size: 0.78rem; }
.invoice-batch-value { color: #30453c; font-size: 0.86rem; }
.invoice-batch-value small { display: block; color: var(--muted); }
.invoice-order-number { color: #102849; font-weight: 800; white-space: nowrap; }
.batch-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--line); }
.panel-title { margin: 0; font-size: 1.1rem; }
.close-batch-dialog { flex: 0 0 auto; min-height: 2.45rem; padding: 0.45rem 0.8rem; }
.batch-dialog .batch-panel { width: auto; margin: 0; padding: 0; border: 0; }
.batch-dialog .product-order-panel { margin-bottom: 0.9rem; }
.batch-dialog .order-form { margin-top: 0; padding-top: 0.9rem; }
.product-order-panel .order-list { margin: 0.3rem 0 0.7rem; padding-left: 0.75rem; }
.order-row { font-size: 0.85rem; }
.view-orders { min-height: 2.25rem; padding: 0.42rem 0.7rem; font-size: 0.78rem; }
.order-form { margin-top: 0.65rem; padding-top: 0.7rem; }
.order-form h3 { font-size: 1rem; }
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; margin: 1.2rem 0 1.8rem; padding: 0.85rem; border: 1px solid #d3e9dc; border-radius: 18px; background: linear-gradient(100deg, #e6f4ec, #f3f8ef); }
.trust-strip article { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0.55rem; border-right: 1px solid #d0e4d6; }
.trust-strip article:last-child { border-right: 0; }
.trust-strip article > span { display: grid; flex: 0 0 2.1rem; height: 2.1rem; place-items: center; border-radius: 50%; background: #fff1ce; color: #a46712; font-size: 1.1rem; font-weight: 900; }
.trust-strip strong, .trust-strip small { display: block; }
.trust-strip strong { color: #234133; font-family: var(--font-ui); font-size: 0.83rem; }
.trust-strip small { margin-top: 0.15rem; color: #718078; font-size: 0.67rem; }

@media (max-width: 680px) {
  .nav-inner { min-height: 3.4rem; gap: 0.5rem; }
  .nav-brand { display: none; }
  .nav-links { width: 100%; flex-wrap: wrap; justify-content: center; gap: 0; }
  .nav-link { padding: 0.45rem 0.5rem; font-size: 0.78rem; }
  .nav-user { display: none; }
  .dashboard-welcome { align-items: flex-start; flex-direction: column; padding: 1.1rem; }
  .stats-grid { gap: 0.45rem; }
  .stat-card { min-height: 4.5rem; padding: 0.7rem; }
  .stat-card strong { font-size: 1.3rem; }
  .stat-card span { font-size: 0.73rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-badge { align-self: flex-start; }
  .customer-panel #signup-form { grid-template-columns: minmax(0, 1fr); }
  .customer-panel #signup-form > * { grid-column: 1; }
  .telegram-draft-form { grid-template-columns: minmax(0, 1fr); }
  .telegram-draft-form > * { grid-column: 1; }
}

body.auth-welcome-open {
  overflow: hidden;
  padding: 0 !important;
}

.auth-welcome {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #002f27;
  touch-action: none;
}

.auth-welcome-screen {
  position: relative;
  display: flex;
  width: min(100%, 32rem);
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 18% 56%, rgb(10 112 83 / 21%), transparent 53%),
    linear-gradient(155deg, #003d31 0%, #004637 54%, #073c31 100%);
  color: #f7f5ef;
  box-shadow: 0 0 50px rgb(0 0 0 / 24%);
}

.auth-welcome-screen::before,
.auth-welcome-screen::after {
  position: absolute;
  z-index: -1;
  width: 19rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(18 118 88 / 20%);
  content: "";
  pointer-events: none;
}

.auth-welcome-screen::before { top: -13rem; right: -10rem; }
.auth-welcome-screen::after { bottom: 8rem; left: -16rem; }

.auth-welcome-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  flex-direction: column;
  margin: 2.4rem 0 0 2rem;
  color: #f8f6f0;
  text-decoration: none;
}

.auth-welcome-brand > span {
  font-size: clamp(2.4rem, 10vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.auth-welcome-brand strong { color: #f6b51f; font-weight: 800; }
.auth-welcome-brand small { margin-top: 0.36rem; color: #e5eee9; font-size: 1rem; letter-spacing: 0.01em; }

.auth-welcome-art {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-welcome-sun {
  position: absolute;
  right: -17%;
  bottom: -38%;
  width: 112%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #f9c13d, #eda90d);
}

.auth-welcome-container {
  position: absolute;
  z-index: 1;
  bottom: 13%;
  width: 24%;
  height: 27%;
  border: 2px solid rgb(255 255 255 / 13%);
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, transparent 0 1.15rem, rgb(7 38 31 / 18%) 1.2rem 1.3rem), #b44f2f;
  box-shadow: 0 1rem 1.2rem rgb(0 0 0 / 18%);
}

.auth-welcome-container-back { right: 9%; bottom: 19%; height: 35%; background-color: #a94c2f; }
.auth-welcome-container-front { left: 8%; width: 30%; height: 22%; background-color: #087b70; }

.auth-welcome-plane {
  position: absolute;
  z-index: 2;
  top: 20%;
  right: 8%;
  width: 38%;
  max-height: 6rem;
  filter: drop-shadow(0 0.5rem 0.45rem rgb(0 0 0 / 15%));
}

.auth-welcome-product-image {
  position: absolute;
  z-index: 3;
  bottom: 14%;
  left: 50%;
  width: 70%;
  max-height: 68%;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 1rem 0.8rem rgb(0 0 0 / 20%));
}

.auth-welcome-fallback {
  position: absolute;
  z-index: 3;
  bottom: 15%;
  left: 50%;
  width: min(42%, 12rem);
  max-height: 63%;
  transform: translateX(-50%);
  filter: drop-shadow(0 1rem 0.8rem rgb(0 0 0 / 19%));
}

.auth-welcome-platform {
  position: absolute;
  z-index: 4;
  right: 8%;
  bottom: 8%;
  left: 8%;
  height: 7%;
  border: 1px solid rgb(255 243 195 / 75%);
  border-radius: 50%;
  background: linear-gradient(#fff0bc, #d99713);
  box-shadow: 0 0.8rem 0 rgb(117 74 8 / 55%), 0 1.3rem 1rem rgb(0 0 0 / 15%);
}

.auth-welcome-sheet {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: clamp(13rem, 28svh, 16rem);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.2rem 1rem calc(1.6rem + env(safe-area-inset-bottom));
  border-radius: 2.5rem 2.5rem 0 0;
  background: linear-gradient(145deg, #fff 0%, #fbfcfb 100%);
  box-shadow: 0 -1rem 2rem rgb(0 0 0 / 12%);
  color: #103e34;
  text-align: center;
}

.auth-welcome-handle {
  width: 4.8rem;
  height: 0.35rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: #d9e0dc;
}

.auth-welcome-signin,
.auth-welcome-signup {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.auth-welcome-signin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
}

.auth-welcome-arrow {
  display: grid;
  width: 5.25rem;
  height: 5.25rem;
  place-items: center;
  border: 0.7rem solid #e7f5ef;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0.4rem 1.2rem rgb(8 121 87 / 17%);
  animation: welcome-nudge 1.8s ease-in-out infinite;
}

.auth-welcome-arrow svg { width: 1.9rem; height: 1.9rem; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.auth-welcome-signin strong { font-size: 1.22rem; font-weight: 750; letter-spacing: -0.025em; }
.auth-welcome-signup { margin-top: 0.25rem; padding: 0.2rem 0.4rem; color: #788a8b; font-size: 1rem; }
.auth-welcome-signup:hover { color: var(--green); text-decoration: underline; text-underline-offset: 0.2rem; }
.auth-welcome-available { margin-top: 0.4rem; padding: 0.25rem 0.4rem; border: 0; background: transparent; color: var(--green); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.auth-welcome-available:hover { text-decoration: underline; text-underline-offset: 0.2rem; }
.auth-welcome-signin:focus-visible,
.auth-welcome-signup:focus-visible,
.auth-welcome-available:focus-visible { outline: 3px solid #d9aa32; outline-offset: 4px; border-radius: 0.5rem; }

@keyframes welcome-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.3rem); }
}

@media (min-width: 540px) {
  .auth-welcome-screen { border-radius: 1.25rem; }
}

@media (max-height: 650px) {
  .auth-welcome-brand { margin-top: 1.25rem; }
  .auth-welcome-sheet { min-height: 11.5rem; padding-top: 0.8rem; }
  .auth-welcome-handle { margin-bottom: 0.65rem; }
  .auth-welcome-arrow { width: 4.35rem; height: 4.35rem; border-width: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-welcome-arrow { animation: none; }
}

.auth-welcome-screen {
  display: block;
  width: min(100%, 48rem);
  border-radius: 0;
}

.auth-welcome-brand {
  position: absolute;
  top: 4%;
  left: 8.5%;
  margin: 0;
}

.auth-welcome-brand > span { font-size: clamp(2.55rem, 8.7vw, 4.15rem); }
.auth-welcome-brand small { font-size: clamp(0.95rem, 3vw, 1.28rem); }

.auth-welcome-copy {
  position: absolute;
  z-index: 4;
  top: 14.5%;
  right: 8.5%;
  left: 8.5%;
  color: #f7f5ef;
}

.auth-welcome-copy h1 {
  margin: 0 0 0.75rem;
  color: #f7f5ef;
  font-family: var(--font-ui);
  font-size: clamp(2rem, 8.55vw, 4rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.auth-welcome-copy > p {
  max-width: 38rem;
  margin: 0;
  color: #dce9e4;
  font-size: clamp(1rem, 3.6vw, 1.75rem);
  line-height: 1.45;
}

.auth-welcome-benefits {
  display: grid;
  width: min(100%, 31rem);
  gap: clamp(0.7rem, 2.1vh, 1.65rem);
  margin: clamp(1.2rem, 3vh, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.auth-welcome-benefits li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(0.85rem, 4.9vw, 2.4rem);
}

.auth-benefit-icon {
  display: grid;
  width: clamp(3rem, 11.5vw, 5.5rem);
  height: clamp(3rem, 11.5vw, 5.5rem);
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #0d765b;
}

.auth-benefit-icon svg {
  width: 53%;
  height: 53%;
  fill: none;
  stroke: #f6f7f2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.auth-welcome-benefits li > span:last-child { display: grid; gap: 0.12rem; }
.auth-welcome-benefits strong { font-size: clamp(0.96rem, 3.5vw, 1.5rem); font-weight: 700; }
.auth-welcome-benefits small { color: #d3e3dc; font-size: clamp(0.82rem, 3vw, 1.25rem); }

.auth-welcome-art {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 13%;
  left: 0;
  display: block;
  height: 48%;
  min-height: 0;
  overflow: visible;
}

.auth-welcome-sun {
  right: -30%;
  bottom: -33%;
  width: 105%;
}

.auth-welcome-container-back { right: 0; bottom: 20%; width: 23%; height: 33%; }
.auth-welcome-container-front { bottom: 19%; left: 4%; width: 24%; height: 22%; }

.auth-welcome-plane { top: 27%; right: 7%; width: 39%; }

.auth-welcome-products { position: absolute; z-index: 3; right: -8%; bottom: 8%; left: -8%; height: 75%; }

.auth-welcome-product {
  position: absolute;
  bottom: 0;
  width: 33%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0.8rem 0.7rem rgb(0 0 0 / 18%));
  mix-blend-mode: multiply;
}

.auth-welcome-product-1 { left: 0; height: 72%; }
.auth-welcome-product-2 { left: 32%; width: 39%; }
.auth-welcome-product-3 { right: 0; height: 78%; }

.auth-welcome-fallback { bottom: 14%; }

.auth-welcome-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: clamp(10.5rem, 17vh, 16rem);
  padding: 1.1rem 1rem calc(1.1rem + env(safe-area-inset-bottom));
  border-radius: 2.5rem 2.5rem 0 0;
}

.auth-welcome-handle { margin-bottom: clamp(0.65rem, 1.9vh, 1.25rem); }
.auth-welcome-arrow { width: clamp(3.75rem, 11vw, 5.5rem); height: clamp(3.75rem, 11vw, 5.5rem); }
.auth-welcome-signin strong { font-size: clamp(1rem, 3.2vw, 1.3rem); }
.auth-welcome-signup { font-size: clamp(0.88rem, 2.7vw, 1.1rem); }

@media (min-width: 540px) {
  .auth-welcome-screen { border-radius: 0; }
}

@media (max-height: 740px) {
  .auth-welcome-copy { top: 13%; }
  .auth-welcome-benefits { gap: 0.55rem; margin-top: 0.9rem; }
  .auth-welcome-benefits li { gap: 0.8rem; }
  .auth-benefit-icon { width: 2.8rem; height: 2.8rem; }
  .auth-welcome-art { bottom: 14%; }
}

@media (max-width: 560px) {
  .cutoff-date-full { display: none; }
  .cutoff-date-mobile { display: inline; font-size: 0.72rem; }
  .batch-panel { padding: 0 0.85rem 1rem; }
  .product-row.has-image { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.55rem; }
  .product-image { height: 6rem; }
  .order-actions .btn { padding: 0.48rem 0.65rem; }
  .batch-dialog .order-actions { margin-left: 1.5rem; gap: 0.2rem 0.75rem; }
  .batch-toggle { padding: 0.95rem; }
  .admin-batch-summary { padding: 0.9rem; }
  .admin-batch-content { padding: 0.9rem; }
  .summary-hint { display: none; }
  .customer-signed-in #customer-signed-in { align-items: flex-start; flex-direction: column; }
}

:focus-visible {
  outline: 3px solid #c9821a;
  outline-offset: 2px;
}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body.printing-invoice { background: #fff; }
  body.printing-invoice .site-header,
  body.printing-invoice #payment-banner,
  body.printing-invoice #load-error,
  body.printing-invoice #customer-panel,
  body.printing-invoice #batch-list,
  body.printing-invoice #empty-state,
  body.printing-invoice .site-footer,
  body.printing-invoice .invoice-section > h2,
  body.printing-invoice .invoice-group > summary,
  body.printing-invoice .invoice-actions,
  body.printing-invoice .invoice-card:not(.print-target) {
    display: none !important;
  }
  body.printing-invoice main.wrap { width: 100%; max-width: none; margin: 0; padding: 0; }
  body.printing-invoice #customer-invoices { display: block !important; border: 0; box-shadow: none; padding: 0; }
  body.printing-invoice .invoice-card.print-target { border: 0; padding: 0; }
  body.printing-invoice .table-scroll { overflow: visible; }
  body.printing-invoice .invoice-table { width: 100%; min-width: 0; }
  body.printing-invoice .invoice-table thead { display: table-header-group; }
  body.printing-invoice .invoice-table tr { break-inside: avoid; display: table-row; }
  body.printing-invoice .invoice-table td { display: table-cell; padding: 0.38rem 0.4rem; }
  body.printing-invoice .invoice-table td[data-label]::before { content: none; }
  body.printing-invoice .invoice-detail-footer { grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

@media (max-width: 900px) {
  .batch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip article:nth-child(2) { border-right: 0; }
  .trust-strip article:nth-child(-n + 2) { border-bottom: 1px solid #d0e4d6; padding-bottom: 0.65rem; }
  .trust-strip article:nth-child(n + 3) { padding-top: 0.65rem; }
}

@media (max-width: 680px) {
  .header-content { min-height: 3rem; }
  .header-note { max-width: 11rem; text-align: right; font-size: 0.76rem; }
  .welcome-hero { grid-template-columns: 1fr; margin-top: 0.9rem; }
  .hero-copy { padding: 1.6rem 1.35rem; }
  .hero-copy h2 { font-size: clamp(2.15rem, 9vw, 3rem); }
  .hero-art { min-height: 13rem; }
  .hero-placeholder { min-height: 9.5rem; }
  .section-heading { align-items: stretch; }
  .catalog-tools { width: 100%; }
  .search-wrap { flex: 1 1 0; min-width: 0; }
  .catalog-tools input { width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
  .batch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .batch { min-width: 0; padding: 0.38rem; border-radius: 13px; }
  .product-cover { flex: 0 0 auto; height: clamp(5.6rem, 29vw, 8rem); border-radius: 9px; }
  .batch-date, .product-cover .pill { top: 0.35rem; padding: 0.22rem 0.36rem; font-size: 0.56rem; }
  .batch-date { left: 0.35rem; }
  .product-cover .pill { right: 0.35rem; }
  .product-details { min-width: 0; padding: 0.48rem 0.12rem 0.35rem; }
  .batch-name { font-size: 0.84rem; line-height: 1.2; overflow-wrap: anywhere; }
  .batch-meta { min-height: 1rem; margin-top: 0.22rem; font-size: 0.68rem; white-space: normal; overflow-wrap: anywhere; }
  .product-price { margin-top: 0.25rem; font-size: 0.98rem; }
  .batch-count { margin: 0.18rem 0 0.35rem; font-size: 0.63rem; line-height: 1.3; }
  .batch-count::before { margin-right: 0.2rem; }
  .batch > .batch-toggle { min-height: 2.25rem; margin-top: auto; padding: 0.48rem 0.25rem; border-radius: 8px; font-size: 0.72rem; }
  .batch > .batch-panel { width: calc(100% + 0.1rem); padding: 0.65rem 0.35rem 0.4rem; }
  .panel-title { font-size: 0.85rem; }
  .view-orders { width: 100%; padding-inline: 0.3rem; font-size: 0.68rem; }
  .batch-dialog .current-orders-heading { align-items: center; flex-direction: row; gap: 0.35rem; }
  .batch-dialog .current-orders-title { min-width: 0; font-size: 0.92rem; }
  .batch-dialog .view-orders {
    width: auto;
    min-height: 2.65rem;
    padding-inline: 0.55rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .order-form { padding-inline: 0.1rem; }
  .order-form label { font-size: 0.78rem; }
  .order-actions .btn { padding: 0.48rem 0.45rem; }
  .trust-strip { padding: 0.55rem; }
  .trust-strip article { padding-inline: 0.3rem; }
  .trust-strip article > span { flex-basis: 1.8rem; height: 1.8rem; }
  .trust-strip strong { font-size: 0.75rem; }
  .trust-strip small { font-size: 0.62rem; }
}

.batch-dialog {
  width: min(94vw, 58rem);
  max-height: min(92vh, 56rem);
  padding: 1.15rem;
  border-color: #ece9e2;
  border-radius: 18px;
  background: #fff;
}
.batch-dialog-header { align-items: flex-start; margin-bottom: 0.85rem; padding-bottom: 0.7rem; }
.batch-dialog-heading { min-width: 0; }
.batch-dialog .panel-title { color: #142a2d; font-size: 1.75rem; font-weight: 750; letter-spacing: -0.035em; }
.panel-subtitle { margin: 0.15rem 0 0; color: #738091; font-size: 0.88rem; }
.batch-dialog .close-batch-dialog {
  display: grid;
  width: 2.65rem;
  min-height: 2.65rem;
  place-items: center;
  padding: 0;
  border: 1px solid #e4e8e8;
  border-radius: 50%;
  background: #fff;
  color: #172821;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}
.batch-dialog-content { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr); gap: 0.9rem; align-items: start; }
.batch-dialog-overview { display: grid; gap: 0.8rem; min-width: 0; }
.dialog-product, .current-orders, .batch-dialog .order-form {
  min-width: 0;
  border: 1px solid #e9eceb;
  border-radius: 12px;
  background: #fff;
}
.dialog-product { position: relative; display: grid; grid-template-columns: minmax(12rem, 1.05fr) minmax(0, 0.95fr); gap: 1rem; align-items: start; padding: 0.75rem; }
.dialog-product-media { position: relative; display: grid; grid-column: 1; grid-row: 1; align-content: start; gap: 0.2rem; min-width: 0; }
.dialog-product-image-gallery, .dialog-product-placeholder { width: 100%; aspect-ratio: 1; height: auto; border-radius: 10px; }
.dialog-product-image-gallery { overflow: hidden; }
.dialog-product-gallery-footer { display: flex; grid-column: 1 / -1; align-items: center; gap: 0.5rem; min-width: 0; }
.dialog-product-thumbnails { display: flex; flex: 1 1 auto; justify-content: flex-start; gap: 0.35rem; min-width: 0; max-width: 100%; overflow: hidden; padding: 0.08rem 0.02rem 0.25rem; }
.dialog-product-thumbnails[hidden] { display: none; }
.dialog-product-thumbnail { position: relative; flex: 0 1 2.75rem; width: auto; min-width: 0; max-width: 2.75rem; height: 2.75rem; overflow: hidden; padding: 0.12rem; border: 1px solid #dce5e0; border-radius: 7px; background: #fff; cursor: pointer; }
.dialog-product-thumbnail.is-video { background: #263b32; }
.dialog-product-thumbnail img, .dialog-product-thumbnail video { display: block; width: 100%; height: 100%; border-radius: 4px; object-fit: cover; }
.dialog-product-thumbnail-video { position: absolute; right: 0.15rem; bottom: 0.15rem; display: grid; width: 1.15rem; height: 1.15rem; place-items: center; border: 1px solid rgba(255,255,255,0.8); border-radius: 50%; background: rgba(18,32,26,0.82); color: #fff; font-size: 0.55rem; line-height: 1; }
.dialog-product-thumbnail.is-active, .dialog-product-thumbnail[aria-current="true"] { border: 2px solid var(--green); padding: 0.06rem; }
.dialog-product-thumbnail:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.dialog-product-image-button { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; padding: 0; border: 0; border-radius: inherit; background: #f4f1e8; cursor: zoom-in; }
.dialog-product-image { display: block; width: 100%; height: 100%; border-radius: inherit; background: #f4f1e8; object-fit: contain; object-position: center; }
.dialog-product-date { position: absolute; z-index: 1; top: 0.25rem; left: 0.25rem; padding: 0.28rem 0.55rem; border: 1px solid #e9eceb; border-radius: 999px; background: #fffdf8; color: #b45f0c; font-size: 0.7rem; font-weight: 800; }
.dialog-product-placeholder { display: grid; place-items: center; background: #f4f1e8; color: #778078; font-size: 0.8rem; }
.dialog-product-details > .product-share { flex-wrap: nowrap; gap: 0.35rem; margin-top: 0.6rem; }
.dialog-product-details > .product-share .product-share-heading { min-width: 0; }
.dialog-product-details > .product-share .product-share-label { color: #5b6b7c; font-size: 0.68rem; }
.dialog-product-details > .product-share .share-icons { gap: 0.2rem; }
.dialog-product-details > .product-share .share-icon-button { width: 1.65rem; height: 1.65rem; }
.dialog-product-details > .product-share .share-icon-button svg { width: 0.82rem; height: 0.82rem; }
.product-info-control { position: relative; display: inline-flex; flex: none; align-items: center; }
.product-info-button { display: inline-grid; width: 1.65rem; height: 1.65rem; padding: 0; place-items: center; border: 1px solid #dce8e0; border-radius: 50%; background: #f5faf7; color: #176244; cursor: pointer; }
.product-info-button:hover, .product-info-button[aria-expanded="true"] { border-color: #9dcab0; background: #eaf5ee; }
.product-info-button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.product-info-button svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.product-info-panel { position: absolute; z-index: 5; bottom: calc(100% + 0.65rem); left: 0; width: min(19rem, calc(100vw - 3rem)); min-width: min(13rem, calc(100vw - 3rem)); padding: 0.75rem; border: 1px solid #d7e5dc; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgb(18 48 35 / 18%); }
.product-info-panel::after { position: absolute; bottom: -0.4rem; left: var(--product-info-arrow-x, 0.72rem); width: 0.72rem; height: 0.72rem; border-right: 1px solid #d7e5dc; border-bottom: 1px solid #d7e5dc; background: #fff; content: ""; transform: rotate(45deg); }
.product-info-panel.is-below::after { top: -0.4rem; bottom: auto; transform: rotate(225deg); }
.product-info-panel[hidden], .product-info-button[hidden] { display: none; }
.product-info-panel h4 { margin: 0 0 0.35rem; color: #173d31; font-family: inherit; font-size: 0.88rem; }
.product-info-description { margin: 0; color: #40564a; font-size: 0.82rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.product-info-attributes { display: grid; grid-template-columns: minmax(6rem, auto) minmax(0, 1fr); gap: 0.25rem 0.55rem; margin: 0.6rem 0 0; padding-top: 0.55rem; border-top: 1px solid #e3ece6; font-size: 0.75rem; }
.product-info-attributes dt { color: #718078; }
.product-info-attributes dd { margin: 0; color: #243e31; font-weight: 650; overflow-wrap: anywhere; }
.dialog-product-details { grid-column: 2; grid-row: 1; min-width: 0; }
.dialog-product-status { display: inline-flex; margin-bottom: 0.45rem; padding: 0.28rem 0.65rem; background: #e5f6ed; color: #07834f; font-size: 0.75rem; }
.dialog-product-status.is-soon { background: #fff1d0; color: #805b0d; }
.dialog-product-title-row { display: flex; align-items: flex-start; gap: 0.35rem; min-width: 0; }
.dialog-product-name { display: -webkit-box; min-width: 0; flex: 1; overflow: hidden; margin: 0; color: #172821; font-family: var(--font-ui); font-size: 1.2rem; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dialog-product-name.is-expanded { display: block; overflow: visible; }
.dialog-product-name-toggle { display: inline-grid; flex: 0 0 1.75rem; width: 1.75rem; height: 1.75rem; place-items: center; margin-top: -0.15rem; padding: 0; border: 1px solid #dce8e0; border-radius: 50%; background: #f5faf7; color: #176244; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.dialog-product-name-toggle:hover { border-color: #9dcab0; background: #eaf5ee; }
.dialog-product-name-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.dialog-product-name-toggle[hidden] { display: none; }
.dialog-product-spec { margin: 0.25rem 0 0; color: #738091; font-size: 0.88rem; }
.dialog-product-price { margin: 0.35rem 0 0; color: #bd5c0a; font-size: 1.55rem; font-weight: 800; line-height: 1.1; }
.dialog-product-price.has-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 0.25rem 0.55rem; color: #bd5c0a; font-size: 0.9rem; font-weight: 700; line-height: 1.35; }
.dialog-product-option-price { min-width: 0; white-space: nowrap; }
.dialog-product-count-row { display: flex; align-items: center; gap: 0.5rem; min-width: 0; margin-top: 0.4rem; }
.dialog-product-count { min-width: 0; margin: 0; color: #738091; font-size: 0.86rem; }
.dialog-product-count-row .product-info-control { margin-left: auto; }
.dialog-product-count::before {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.35rem;
  background: #82908b;
  content: "";
  vertical-align: -2px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='16' cy='9' r='2'/%3E%3Cpath d='M4 19c1-3 3-4.5 5-4.5S13.5 16 15 19M14 15c2 .1 4 1 5 3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='16' cy='9' r='2'/%3E%3Cpath d='M4 19c1-3 3-4.5 5-4.5S13.5 16 15 19M14 15c2 .1 4 1 5 3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.current-orders { padding: 0.7rem 0.8rem; }
.current-orders-heading { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.current-orders-title { margin: 0; color: #172821; font-family: var(--font-ui); font-size: 1rem; font-weight: 750; }
.batch-dialog .view-orders {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #a8cbb6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 90%), 0 0 14px rgb(69 153 104 / 22%), 0 2px 5px rgb(16 61 40 / 8%);
  color: #0b5838;
  font-size: 0.88rem;
  font-weight: 750;
}
.batch-dialog .view-orders::after { font-size: 0.78rem; }
.batch-dialog .view-orders[aria-expanded="true"]::after { content: "▲"; }
.batch-dialog .view-orders[aria-expanded="false"] {
  border-color: #dfc887;
  background: #fff;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 90%), 0 0 14px rgb(224 175 65 / 24%), 0 2px 5px rgb(16 61 40 / 8%);
  color: #6f4b0a;
}
.batch-dialog .view-orders[aria-expanded="false"]::after { content: "▼"; }
.batch-dialog .view-orders:focus-visible { outline: 3px solid #e1a62e; outline-offset: 2px; }
.batch-dialog .order-list { max-height: 18rem; overflow: auto; margin: 0.45rem 0 0; padding: 0; border: 0; list-style: none; }
.batch-dialog .order-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0; padding: 0.52rem 0.1rem; border-bottom: 1px solid #eef0ef; color: #172821; font-size: 0.88rem; }
.batch-dialog .order-row:last-child { border-bottom: 0; }
.batch-dialog .order-row.is-payment-confirmed-target { border-radius: 8px; background: #e4f4ed; box-shadow: 0 0 0 6px #e4f4ed; }
.batch-dialog .order-row.is-payment-confirmed-target:focus { outline: 2px solid #08735a; outline-offset: 3px; }
.batch-dialog .order-description { min-width: 0; }
.batch-dialog .order-actions { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 1rem; margin: 0 0 0 3rem; }
.batch-dialog .order-inline-action { min-height: 0; padding: 0; border: 0; background: transparent; color: var(--green-deep); font: inherit; font-size: 0.76rem; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.batch-dialog .order-inline-action:disabled { opacity: 0.6; cursor: not-allowed; }
.batch-dialog .order-form { margin: 0; padding: 0.85rem 0.95rem; background: #fbfbfa; }
.batch-dialog .signin-prompt { grid-column: 2; align-self: start; flex-direction: column; align-items: stretch; margin: 0; }
.batch-dialog .signin-prompt .btn { width: 100%; }
.batch-dialog .order-form h3 { margin: 0; color: #142a2d; font-family: var(--font-ui); font-size: 1.25rem; font-weight: 750; }
.order-instructions { margin: 0.15rem 0 0.75rem; font-size: 0.82rem; }
.batch-dialog .field { gap: 0.35rem; margin-bottom: 0.65rem; }
.batch-dialog .field label { color: #172821; font-size: 0.88rem; font-weight: 600; }
.batch-dialog .quantity-control { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3rem; min-height: 2.7rem; overflow: hidden; border: 1px solid #e3e7e6; border-radius: 10px; background: #fff; }
.batch-dialog .quantity-control input {
  width: 100%;
  min-width: 0;
  min-height: 2.6rem;
  padding: 0.4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  appearance: textfield;
}
.batch-dialog .quantity-control input::-webkit-inner-spin-button,
.batch-dialog .quantity-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.quantity-step { border: 0; background: #f5f6f5; color: #172821; font: inherit; font-size: 1.25rem; font-weight: 650; cursor: pointer; }
.quantity-step:hover { background: #eaf3ee; }
.quantity-step:focus-visible, .batch-dialog button:focus-visible { outline: 3px solid #77c9a0; outline-offset: -3px; }
.batch-dialog .option-variant-group + .option-variant-group { margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px solid #dfe7e2; }
.batch-dialog .option-variant-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin: 0; color: #24342e; font-size: 0.9rem; font-weight: 750; }
.batch-dialog .option-variant-price { flex: 0 0 auto; color: #bd5c0a; font-size: 0.82rem; font-weight: 750; }
.color-quantity-list { display: grid; gap: 0.1rem 0.75rem; grid-template-columns: 1fr; }
.batch-dialog .color-quantity-list { display: flex; flex-direction: column; gap: 0; }
.batch-dialog .option-quantity-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid #e1e6e3; }
.batch-dialog .option-quantity-row:last-child { padding-bottom: 0; border-bottom: 0; }
.batch-dialog .color-quantity-list .field { min-width: 0; margin-bottom: 0; gap: 0.25rem; }
.batch-dialog .color-quantity-list .field > label { min-height: 2.2em; overflow-wrap: anywhere; font-size: 0.78rem; line-height: 1.2; }
.batch-dialog .color-quantity-list .option-quantity-field { position: relative; padding-top: 0.65rem; }
.batch-dialog .color-quantity-list .option-quantity-field > .option-quantity-control { grid-template-columns: 2rem minmax(0, 1fr) 2rem; min-height: 2.4rem; }
.batch-dialog .color-quantity-list .option-quantity-label { position: absolute; z-index: 1; top: 0.65rem; left: 0.65rem; max-width: calc(100% - 1.3rem); min-height: 0; margin: 0; padding: 0 0.28rem; transform: translateY(-50%); overflow: hidden; background: transparent; color: #24342e; font-size: 0.72rem; font-weight: 650; line-height: 1; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.batch-dialog .color-quantity-list .option-quantity-control input { min-height: 2.3rem; padding: 0.2rem; }
.batch-dialog .color-quantity-list .option-quantity-control .quantity-step { font-size: 1.05rem; }
.batch-dialog .option-quantity-field { min-width: 0; }
.batch-dialog .option-quantity-field.has-option-image { display: grid; grid-template-columns: 3rem minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 0.45rem; padding-top: 0.15rem; }
.batch-dialog .option-quantity-image { grid-column: 1; grid-row: 1 / 3; width: 3rem; height: 3rem; overflow: hidden; padding: 0; border: 1px solid #dce5e0; border-radius: 7px; background: #f4f1e8; cursor: zoom-in; }
.batch-dialog .option-quantity-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.batch-dialog .color-quantity-list .option-quantity-field.has-option-image > .option-quantity-label { position: static; grid-column: 2; grid-row: 1; max-width: 100%; min-height: 0; margin: 0; padding: 0; transform: none; overflow: hidden; background: transparent; text-overflow: ellipsis; }
.batch-dialog .color-quantity-list .option-quantity-field.has-option-image > .option-quantity-control { grid-column: 2; grid-row: 2; }
.quantity-hint { margin: -0.15rem 0 0.5rem; font-size: 0.78rem; }
.batch-dialog .order-total { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin: 0.55rem 0 0.7rem; padding: 0.7rem 0 0; border-top: 1px solid #e5e8e7; color: #172821; font-size: 1.15rem; font-weight: 750; }
.order-total-value { color: #bd5c0a; font-size: 1.55rem; }
.batch-dialog .order-submit { width: 100%; min-height: 2.85rem; border-radius: 10px; }
.batch-dialog .order-submit-later { gap: 0.65rem; background: #08654e; font-size: 0.89rem; }
.batch-dialog .order-submit-now { justify-content: center; gap: 0.7rem; margin-top: 0.55rem; border-color: #aeb9b4; background: #f0f2f1; color: #61716b; box-shadow: none; }
.batch-dialog .order-submit-now:not(:disabled) { border-color: var(--green); background: var(--green); color: #fff; cursor: pointer; }
.batch-dialog .order-submit-now:not(:disabled):hover { background: #066748; }
.batch-dialog .order-submit-now:disabled { opacity: 0.65; cursor: not-allowed; }
.order-submit-icon { position: relative; display: inline-block; flex: 0 0 1.2rem; width: 1.2rem; height: 1rem; }
.cart-icon::before { position: absolute; top: 0.1rem; left: 0.08rem; width: 1rem; height: 0.62rem; border-radius: 2px; background: currentColor; content: ""; transform: skew(-9deg); }
.cart-icon::after { position: absolute; bottom: 0; left: 0.2rem; width: 0.22rem; height: 0.22rem; border-radius: 50%; background: currentColor; box-shadow: 0.66rem 0 currentColor; content: ""; }
.card-icon { height: 0.9rem; border: 2px solid var(--green); border-radius: 3px; }
.card-icon::before { position: absolute; top: 0.18rem; width: 100%; border-top: 2px solid var(--green); content: ""; }
.card-icon::after { position: absolute; right: 0.13rem; bottom: 0.12rem; width: 0.23rem; height: 0.13rem; border: 1px solid var(--green); border-radius: 2px; content: ""; }
.order-submit-now:not(:disabled) .card-icon { border-color: #fff; }
.order-submit-now:not(:disabled) .card-icon::before { border-color: #fff; }
.order-submit-now:not(:disabled) .card-icon::after { border-color: #fff; }
.order-submit-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; text-align: left; }
.order-submit-copy strong, .order-submit-copy small { display: block; }
.order-submit-copy strong { font-size: 0.88rem; }
.order-submit-copy small { color: #738091; font-size: 0.72rem; font-weight: 400; }
.order-submit-pending { font-size: 0.88rem; font-weight: 700; }
.pay-mode { font-weight: 800; }
.order-submit-later .pay-mode { color: #ffe14a; }
.order-submit-now:not(:disabled) .pay-mode { color: #9aefff; }
.order-submit-now:disabled .pay-mode { color: #0b5f78; }
.order-submit-now:not(:disabled) .order-submit-copy small { color: #d7f3ea; }
.batch-dialog .form-error:empty { display: none; }
.batch-dialog .payment-notice { margin: 0.5rem 0 0; font-size: 0.78rem; }
.related-products { grid-column: 1 / -1; min-width: 0; padding: 0.85rem 0.95rem; border: 1px solid #e9eceb; border-radius: 12px; background: #fff; }
.related-products[hidden] { display: none; }
.related-products h3 { margin: 0 0 0.7rem; color: #142a2d; font-family: var(--font-ui); font-size: 1.1rem; font-weight: 750; }
.related-products-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.7rem; }
@media (min-width: 701px) {
  .related-products-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.related-product { display: grid; align-content: start; gap: 0.3rem; min-width: 0; padding: 0.45rem; border: 1px solid #e9eceb; border-radius: 10px; background: #fbfbfa; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.related-product:hover, .related-product:focus-visible { border-color: var(--green, var(--green-mid)); box-shadow: 0 4px 14px rgb(13 107 76 / 12%); }
.related-product-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 7px; background: #f4f1e8; }
.related-product-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.related-product-media.is-empty { display: grid; place-items: center; color: #b9ad8f; font-size: 1.3rem; }
.related-product-name { overflow: hidden; color: #172821; font-size: 0.86rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.related-product-price { color: #bd5c0a; font-size: 0.9rem; font-weight: 800; }

@media (max-width: 700px) {
  .related-products { padding: 0.75rem; }
  .related-products-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
}

@media (max-width: 700px) {
  .batch-dialog { width: min(94vw, 38rem); max-height: 92vh; padding: 0.9rem; }
  .batch-dialog-content { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .batch-dialog .signin-prompt { grid-column: 1; }
  .dialog-product { grid-template-columns: minmax(10rem, 0.95fr) minmax(0, 1.05fr); gap: 0.75rem; }
  .product-share { gap: 0.2rem 0.35rem; }
  .product-share-heading { gap: 0.2rem; }
  .product-share-label { font-size: 0.62rem; }
  .product-info-button { width: 1.3rem; height: 1.3rem; }
  .review-actions { gap: 1.65rem; }
  .review-actions .review-open-button { padding-inline: 0.5rem; font-size: 0.74rem; }
  .dialog-product-image-gallery, .dialog-product-placeholder { aspect-ratio: 1; height: auto; }
  .batch-dialog .order-form { padding: 0.8rem; }
}

@media (max-width: 420px) {
  .batch-dialog { width: 96vw; padding: 0.7rem; border-radius: 14px; }
  .batch-dialog .panel-title { font-size: 1.45rem; }
  .panel-subtitle { max-width: 17rem; font-size: 0.78rem; }
  .dialog-product { grid-template-columns: minmax(8.5rem, 0.95fr) minmax(0, 1.05fr); gap: 0.55rem; padding: 0.5rem; }
  .dialog-product-image-gallery, .dialog-product-placeholder { aspect-ratio: 1; height: auto; }
  .dialog-product-thumbnails { gap: 0.22rem; }
  .dialog-product-thumbnail { flex-basis: 2.2rem; height: 2.2rem; }
  .dialog-product-details > .product-share { gap: 0.2rem; }
  .dialog-product-details > .product-share .product-share-label { font-size: 0.55rem; }
  .dialog-product-details > .product-share .share-icons { gap: 0.12rem; }
  .dialog-product-details > .product-share .share-icon-button { width: 1.4rem; height: 1.4rem; }
  .dialog-product-name { font-size: 1rem; }
  .dialog-product-price, .order-total-value { font-size: 1.3rem; }
  .dialog-product-price.has-options { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); font-size: 0.78rem; gap: 0.2rem 0.35rem; }
  .batch-dialog .option-quantity-row { gap: 0.45rem; padding: 0.5rem 0; }
  .batch-dialog .color-quantity-list .option-quantity-field { padding-top: 0.62rem; }
  .batch-dialog .color-quantity-list .option-quantity-field > .option-quantity-control { grid-template-columns: 1.55rem minmax(0, 1fr) 1.55rem; }
  .batch-dialog .color-quantity-list .option-quantity-label { top: 0.62rem; left: 0.45rem; max-width: calc(100% - 0.9rem); font-size: 0.67rem; }
  .batch-dialog .color-quantity-list .option-quantity-field.has-option-image { grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 0.35rem; }
  .batch-dialog .option-quantity-image { width: 2.4rem; height: 2.4rem; }
  .batch-dialog .option-quantity-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-product-count { font-size: 0.75rem; }
  .current-orders { padding: 0.6rem; }
  .current-orders-title { font-size: 0.9rem; }
  .batch-dialog .view-orders { min-height: 2rem; padding-inline: 0.5rem; }
}

/* Customer homepage typography uses the shared UI stack. */
body:not(.page-admin) {
  background: #f6f3ea;
  color: #1c1e1c;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.35;
}
body:not(.page-admin) h1,
body:not(.page-admin) h2,
body:not(.page-admin) h3,
body:not(.page-admin) .batch-name,
body:not(.page-admin) .hero-placeholder,
body:not(.page-admin) .hero-note,
body:not(.page-admin) .trust-strip strong {
  font-family: var(--font-ui);
}
body:not(.page-admin) .wrap { width: min(100% - 2.4rem, 72rem); }
body:not(.page-admin) .site-header {
  padding: 0;
  background: var(--header-dark);
  border-bottom: 3px solid #e0a83a;
  box-shadow: none;
}
body:not(.page-admin) .header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.6rem;
}
body:not(.page-admin) .site-brand { color: #f2c14b; text-decoration: none; }
body:not(.page-admin) .header-nav { display: flex; justify-content: center; align-items: center; gap: 0.35rem; }
body:not(.page-admin) .header-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #f7f7f5;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
body:not(.page-admin) .header-nav .nav-link.is-current { background: #e8b339; color: #1c3328; }
body:not(.page-admin) .nav-icon {
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 8h12l-1 12H7L6 8z'/%3E%3Cpath d='M9 8V7a3 3 0 0 1 6 0v1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 8h12l-1 12H7L6 8z'/%3E%3Cpath d='M9 8V7a3 3 0 0 1 6 0v1'/%3E%3C/svg%3E") center / contain no-repeat;
}
body:not(.page-admin) .nav-icon-box {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 8h18v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8z'/%3E%3Cpath d='M3 8l2.5-4h13L21 8'/%3E%3Cpath d='M10 12h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 8h18v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8z'/%3E%3Cpath d='M3 8l2.5-4h13L21 8'/%3E%3Cpath d='M10 12h4'/%3E%3C/svg%3E");
}
body:not(.page-admin) .nav-icon-invoice {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M7 3h8l4 4v14H7z'/%3E%3Cpath d='M15 3v4h4'/%3E%3Cpath d='M10 13h6M10 17h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M7 3h8l4 4v14H7z'/%3E%3Cpath d='M15 3v4h4'/%3E%3Cpath d='M10 13h6M10 17h4'/%3E%3C/svg%3E");
}
body:not(.page-admin) .nav-icon-person {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M5 19c1.5-3 4-4.5 7-4.5S17.5 16 19 19'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M5 19c1.5-3 4-4.5 7-4.5S17.5 16 19 19'/%3E%3C/svg%3E");
}
body:not(.page-admin) .account-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
body:not(.page-admin) .avatar {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 50%;
  background: #e7efe9 center / 1.15rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123f31' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M5 19c1.5-3 4-4.5 7-4.5S17.5 16 19 19'/%3E%3C/svg%3E");
  color: var(--header-dark);
  font-size: 14px;
  font-weight: 700;
}
body:not(.page-admin) .avatar.has-initial { background-image: none; background-color: #e7efe9; }
body:not(.page-admin) .account-copy { display: flex; flex-direction: column; line-height: 1.15; }
body:not(.page-admin) .account-copy strong { font-size: 14px; font-weight: 700; }
body:not(.page-admin) .account-copy small { color: #d7e4dc; font-size: 12px; }
body:not(.page-admin) .account-caret { color: #d7e4dc; font-size: 11px; }
body:not(.page-admin) .customer-notifications-count {
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: #d92d45;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}
body:not(.page-admin) .customer-notifications-count[hidden] { display: none; }
body:not(.page-admin) .welcome-hero {
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 0;
  margin: 1.15rem 0 1.6rem;
  border: 1px solid rgb(207 180 137 / 56%);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 7% 0%, rgb(255 255 255 / 92%), transparent 52%),
    linear-gradient(118deg, #fffaf1 0%, #f5ead9 60%, #ebdfcc 100%);
  box-shadow: 0 1.2rem 3rem rgb(49 55 41 / 11%), 0 0.25rem 0.8rem rgb(49 55 41 / 6%);
}
body:not(.page-admin) .hero-copy { padding: 1.7rem 1.4rem 1.7rem 1.8rem; }
body:not(.page-admin) .hero-kicker { margin-bottom: 0.45rem; color: #c4962a; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; }
body:not(.page-admin) .hero-copy h2 { color: #1c1e1c; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
body:not(.page-admin) .hero-lead { max-width: 36rem; margin: 0.7rem 0 0; color: #5e675f; font-size: 15px; }
body:not(.page-admin) .hero-highlights,
body:not(.page-admin) .hero-note { display: none; }
body:not(.page-admin) .hero-art {
  min-height: 13.5rem;
  background: #efe6d6;
}
body:not(.page-admin) .hero-orbit { display: none; }
body:not(.page-admin) .hero-placeholder {
  width: auto;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #6d756f;
  font-size: 13px;
  font-weight: 600;
}
body:not(.page-admin) .section-heading { align-items: end; margin: 0 0 0.9rem; }
body:not(.page-admin) .section-heading h2 { color: #1c1e1c; font-size: 22px; font-weight: 700; text-transform: none; }
body:not(.page-admin) .section-heading .help { color: #6d756f; font-size: 13px; }
body:not(.page-admin) .catalog-tools input {
  min-height: 2.4rem;
  border: 1px solid #e6e0d4;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}
body:not(.page-admin) .batch-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
body:not(.page-admin) .batch {
  padding: 0.65rem;
  border: 1px solid #eee7da;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(40 32 16 / 6%);
}
body:not(.page-admin) .batch:hover { transform: translateY(-2px); }
body:not(.page-admin) .product-cover { height: 11.5rem; border-radius: 12px; }
body:not(.page-admin) .product-cover .batch-date,
body:not(.page-admin) .product-cover .pill {
  top: 0.65rem;
  padding: 0.22rem 0.55rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
body:not(.page-admin) .product-cover .batch-date { left: 0.65rem; background: #145c40; color: #fff; }
body:not(.page-admin) .product-cover .pill.is-open { background: #e5f6ec; color: #1c8a4a; }
body:not(.page-admin) .product-cover .pill.is-soon,
body:not(.page-admin) .batch.is-closing-soon .product-cover .pill { background: #f8e3b0; color: #8a5a10; }
body:not(.page-admin) .product-cover .pill.is-closed { background: #ececec; color: #6b7280; }
body:not(.page-admin) .detail-status { display: none; }
body:not(.page-admin) .product-placeholder span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
body:not(.page-admin) .batch-name { color: #1c1e1c; font-size: 16px; font-weight: 700; }
body:not(.page-admin) .batch-meta { color: #6d756f; font-size: 13px; }
body:not(.page-admin) .product-price { margin-top: 0.35rem; color: #12382c; font-size: 18px; font-weight: 700; }
body:not(.page-admin) .batch-count { display: flex; align-items: center; gap: 0.35rem; margin: 0.25rem 0 0.65rem; color: #6d756f; font-size: 12px; }
body:not(.page-admin) .batch-count::before {
  content: "";
  width: 14px;
  height: 14px;
  margin: 0;
  background: #7b847e;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M5 19c1.5-3 4-4.5 7-4.5S17.5 16 19 19'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M5 19c1.5-3 4-4.5 7-4.5S17.5 16 19 19'/%3E%3C/svg%3E") center / contain no-repeat;
}
body:not(.page-admin) .batch > .batch-toggle {
  min-height: 2.55rem;
  border-radius: 10px;
  background: #146c43;
  font-size: 14px;
  font-weight: 700;
}
body:not(.page-admin) .batch > .batch-toggle::after { content: " →"; }
body:not(.page-admin) .batch.is-closed > .batch-toggle { background: #d5d5d5; color: #5f5f5f; }
body:not(.page-admin) .batch.is-closed > .batch-toggle::after { content: none; }
body:not(.page-admin) .trust-strip { display: none; }
body:not(.page-admin) .bottom-nav { display: none; }
html:not([data-route-ready]) body:not(.page-admin) { visibility: hidden; }
html[data-app-booting] body > :not(#app-boot-screen) { display: none !important; }
html[data-app-booting] body { overflow: hidden; }
body:not(.page-admin) .app-boot-screen { position: fixed; z-index: 10000; inset: 0; display: grid; align-content: center; justify-items: center; padding: 1.5rem; background: #f7faf8; color: #275844; font-size: 0.9rem; font-weight: 500; text-align: center; }
body:not(.page-admin) .app-boot-screen[hidden] { display: none; }
body:not(.page-admin) .app-boot-preorder,
body:not(.page-admin) .app-boot-ghana { display: none; width: min(100%, 28rem); justify-items: center; text-align: center; }
body:not(.page-admin):not([data-nav-context="available"]) .app-boot-preorder { display: grid; gap: 1.1rem; }
body:not(.page-admin)[data-nav-context="available"] .app-boot-ghana { display: grid; gap: 0.85rem; }
body:not(.page-admin) .app-boot-preorder { animation: app-boot-arrive 0.45s ease-out both; }
body:not(.page-admin) .app-boot-brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--green-deep); font-size: 1.55rem; letter-spacing: -0.045em; }
body:not(.page-admin) .app-boot-brand img { width: 3.5rem; height: 3.5rem; border-radius: 1.1rem; box-shadow: 0 0.8rem 2rem rgba(7, 61, 49, 0.16); }
body:not(.page-admin) .app-boot-brand strong { color: #c9821a; font-weight: 700; }
body:not(.page-admin) .app-boot-preorder-mark { width: 4.5rem; height: 0.25rem; border-radius: 99px; background: linear-gradient(90deg, var(--green), #c9821a); transform-origin: center; animation: app-boot-mark 1.6s ease-in-out infinite alternate; }
body:not(.page-admin) .app-boot-preorder-message { color: var(--green-deep); font-size: clamp(1.25rem, 4vw, 1.65rem); font-weight: 600; letter-spacing: -0.025em; }
body:not(.page-admin) .app-boot-ghana strong { color: var(--green-deep); font-size: 1.15rem; font-weight: 650; }
body:not(.page-admin) .app-boot-ghana > span:last-child { max-width: 22rem; color: #65766e; line-height: 1.55; }
body:not(.page-admin) .app-boot-spinner { width: 2rem; height: 2rem; border: 3px solid #dcebe3; border-top-color: #16845d; border-radius: 50%; animation: app-boot-spin 0.8s linear infinite; }
@keyframes app-boot-spin { to { transform: rotate(360deg); } }
@keyframes app-boot-arrive { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes app-boot-mark { from { transform: scaleX(0.55); opacity: 0.65; } to { transform: scaleX(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body:not(.page-admin) .app-boot-spinner,
  body:not(.page-admin) .app-boot-preorder-mark { animation: none; }
  body:not(.page-admin) .app-boot-spinner { border-top-color: #16845d; }
}
body:not([data-view="available"]):not([data-view="available-cart"]):not([data-view="available-orders"]) #available-goods { display: none !important; }
body:not([data-view="preorders"]) #preorder-most-ordered,
body:not([data-view="preorders"]) #preorder-factories { display: none !important; }
body[data-view="preorders"] #my-orders,
body[data-view="preorders"] #customer-panel,
body[data-view="preorders"] #customer-invoices,
body[data-view="available"] .preorder-welcome-hero,
body[data-view="available"] #orders-section,
body[data-view="available"] #my-orders,
body[data-view="available"] #customer-panel,
body[data-view="available"] #customer-invoices,
body[data-view="available"] .trust-strip,
body[data-view="available-cart"] .preorder-welcome-hero,
body[data-view="available-cart"] .available-welcome-hero,
body[data-view="available-cart"] #orders-section,
body[data-view="available-cart"] #my-orders,
body[data-view="available-cart"] #customer-panel,
body[data-view="available-cart"] #customer-invoices,
body[data-view="available-cart"] .trust-strip,
body[data-view="available-orders"] .preorder-welcome-hero,
body[data-view="available-orders"] .available-welcome-hero,
body[data-view="available-orders"] #orders-section,
body[data-view="available-orders"] #my-orders,
body[data-view="available-orders"] #customer-panel,
body[data-view="available-orders"] #customer-invoices,
body[data-view="available-orders"] .trust-strip,
body[data-view="orders"] .welcome-hero,
body[data-view="orders"] .available-welcome-hero,
body[data-view="orders"] #orders-section,
body[data-view="orders"] #customer-panel,
body[data-view="orders"] #customer-invoices,
body[data-view="invoices"] .welcome-hero,
body[data-view="invoices"] .available-welcome-hero,
body[data-view="invoices"] #orders-section,
body[data-view="invoices"] #my-orders,
body[data-view="invoices"] #customer-panel,
body[data-view="account"] .welcome-hero,
body[data-view="account"] .available-welcome-hero,
body[data-view="account"] #orders-section,
body[data-view="account"] #my-orders,
body[data-view="account"] #customer-invoices { display: none !important; }
body[data-view="available"] #available-goods,
body[data-view="available-cart"] #available-goods { display: block !important; }
.available-goods-section { padding-bottom: 1rem; }
.available-goods-section > .section-heading { align-items: center; margin-top: 1.2rem; }
.available-goods-section > .available-shop-header { padding-bottom: 0.6rem; border-bottom: 1px solid #e9eeeb; }
.available-shop-page-header { gap: 0.55rem; }
.available-shop-page-header h2,
.available-cart-page-heading h2 { margin: 0; color: #173d31; font-size: 1.05rem; font-weight: 650; line-height: 1.3; }
.available-shop-heading > .help { margin: 0.45rem 0 0; color: #65766e; font-size: 0.86rem; line-height: 1.4; }
.available-cart-page-heading { display: none; align-items: center; gap: 0.55rem; padding-bottom: 0.6rem; border-bottom: 1px solid #e9eeeb; }
.available-cart-page-heading-copy { display: grid; gap: 0.2rem; min-width: 0; }
.available-cart-page-subtitle { margin: 0; color: #65766e; font-size: 0.82rem; line-height: 1.4; }
.available-shop-actions { display: flex; align-items: center; gap: 0.6rem; }
.available-cart-link,
.available-orders-link { position: relative; display: grid; width: 3rem; height: 3rem; flex: 0 0 3rem; place-items: center; border: 1px solid #d7e7dd; border-radius: 50%; background: #fff; color: var(--green-deep); text-decoration: none; }
.available-cart-link .available-cart-icon { width: 1.5rem; height: 1.5rem; }
.available-orders-icon { display: block; width: 1.35rem; height: 1.35rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 3h12a2 2 0 0 1 2 2v16l-8-4-8 4V5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 3h12a2 2 0 0 1 2 2v16l-8-4-8 4V5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.available-cart-link .nav-icon-cart,
body:not(.page-admin) .nav-icon-cart { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 4h2l2.2 11.2a2 2 0 0 0 2 1.6h8.2a2 2 0 0 0 1.9-1.4L21 9H6'/%3E%3Ccircle cx='10' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 4h2l2.2 11.2a2 2 0 0 0 2 1.6h8.2a2 2 0 0 0 1.9-1.4L21 9H6'/%3E%3Ccircle cx='10' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3C/svg%3E"); }
.available-cart-count,
.available-orders-count { position: absolute; top: -0.15rem; right: -0.2rem; display: grid; min-width: 1.25rem; height: 1.25rem; place-items: center; padding: 0 0.2rem; border: 2px solid #fff; border-radius: 999px; background: #d89a13; color: #fff; font-size: 0.68rem; font-weight: 800; }
.available-cart-count[hidden],
.available-orders-count[hidden] { display: none; }
.available-shop-content { display: block; }
.available-cart-page { display: none; }
.available-paid-orders-page { display: none; }
body[data-view="available-cart"] .available-shop-heading,
body[data-view="available-cart"] .available-shop-content,
body[data-view="available-cart"] .available-shop-actions,
body[data-view="available-cart"] .available-cart-link,
body[data-view="available-cart"] .available-orders-link { display: none; }
body[data-view="available-cart"] .available-cart-page-heading { display: flex; }
body[data-view="available-cart"] .available-cart-page { display: block; }
body[data-view="available-cart"] #available-orders-page-title { display: none; }
body[data-view="available-orders"] #available-goods { display: block !important; }
body[data-view="available-orders"] .available-shop-heading,
body[data-view="available-orders"] .available-shop-content,
body[data-view="available-orders"] .available-shop-actions,
body[data-view="available-orders"] .available-cart-link,
body[data-view="available-orders"] .available-orders-link,
body[data-view="available-orders"] .available-cart-page,
body[data-view="available-orders"] #available-cart-page-title { display: none !important; }
body[data-view="available-orders"] .available-cart-page-heading { display: flex; }
body[data-view="available-orders"] .available-cart-page-heading-copy { display: none; }
body[data-view="available-orders"] #available-orders-page-title,
body[data-view="available-orders"] .available-paid-orders-page { display: block; }
.available-empty-state { max-width: 42rem; margin: 1rem auto; padding: 1.5rem; border: 1px solid #dce9df; border-radius: 16px; background: linear-gradient(135deg, #f4faf5, #fffdf7); color: #244b38; text-align: center; }
.available-empty-state strong { display: block; font-size: 1.1rem; }
.available-empty-state p { margin: 0.5rem 0 0; color: var(--muted); line-height: 1.6; }
.available-shop-content { color: #172d24; }
.available-shop-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.9fr); min-height: 19rem; margin: 0.7rem 0 1rem; overflow: hidden; border: 1px solid #eee1cb; border-radius: 18px; background: radial-gradient(ellipse at 75% 40%, #fff8eb 0, #f5e5cf 43%, #fbf5ec 100%); box-shadow: 0 10px 28px rgb(48 34 17 / 8%); }
.available-shop-hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 1.8rem clamp(1.2rem, 3vw, 2.2rem); }
.available-shop-kicker { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.5rem; color: #137347; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.17em; text-transform: uppercase; }
.available-shop-kicker span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #11834f; box-shadow: 0 0 0 4px rgb(17 131 79 / 12%); }
.available-shop-hero h1 { margin: 0; color: #132d24; font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 850; letter-spacing: -0.055em; line-height: 0.98; }
.available-shop-hero-copy > p:not(.available-shop-kicker) { max-width: 28rem; margin: 0.65rem 0 0.9rem; color: #59685f; font-size: 0.96rem; line-height: 1.45; }
.available-search { display: flex; width: min(100%, 29rem); min-height: 2.85rem; padding: 0.22rem; border: 1px solid #d9e1dc; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgb(23 45 36 / 8%); }
.available-search::before { align-self: center; width: 1.1rem; height: 1.1rem; flex: 0 0 1.1rem; margin-left: 0.55rem; background: #52665b; content: ""; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center / contain no-repeat; }
.available-search input { width: 100%; min-width: 0; padding: 0.4rem 0.6rem; border: 0; outline: 0; background: transparent; color: #172d24; font: inherit; font-size: 0.83rem; }
.available-search button { min-width: 5.7rem; padding: 0.4rem 0.8rem; border: 0; border-radius: 7px; background: var(--green-action); color: #fff; font: inherit; font-size: 0.82rem; font-weight: 750; cursor: pointer; }
.available-search button:hover { background: #075d3b; }
.available-hero-benefits { display: flex; flex-wrap: wrap; gap: 0.55rem 1.2rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.available-hero-benefits li { display: flex; align-items: center; gap: 0.48rem; }
.available-hero-benefits li > span { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: var(--green-action); color: #fff; font-size: 1rem; font-weight: 800; }
.available-hero-benefits strong,
.available-hero-benefits small { display: block; }
.available-hero-benefits strong { color: #203c2f; font-size: 0.72rem; }
.available-hero-benefits small { margin-top: 0.08rem; color: #66766d; font-size: 0.63rem; }
.available-hero-products { position: relative; min-height: 15rem; align-self: stretch; }
.available-hero-product { position: absolute; display: block; width: min(58%, 15rem); height: 75%; object-fit: cover; border: 5px solid rgb(255 255 255 / 88%); border-radius: 13px; box-shadow: 0 15px 28px rgb(44 31 15 / 22%); }
.available-hero-product-1 { z-index: 1; top: 17%; left: 2%; transform: rotate(-7deg); }
.available-hero-product-2 { z-index: 2; top: 10%; left: 28%; height: 83%; transform: rotate(2deg); }
.available-hero-product-3 { z-index: 1; top: 20%; right: 3%; transform: rotate(8deg); }
.available-hero-stamp { position: absolute; z-index: 3; top: 0.8rem; right: 0.9rem; display: grid; width: 5.8rem; height: 5.8rem; place-content: center; border: 2px dashed #fff; border-radius: 50%; outline: 2px solid var(--green-action); background: var(--green-action); color: #fff; font-size: 0.72rem; font-weight: 850; line-height: 1.15; text-align: center; text-transform: uppercase; transform: rotate(8deg); }
.available-hero-stamp span { margin-top: 0.25rem; color: #f4c744; font-size: 1.1rem; }
.available-categories { display: grid; grid-template-columns: repeat(9, minmax(5.5rem, 1fr)); gap: 0.55rem; overflow-x: auto; padding: 0.1rem 0 0.25rem; scrollbar-width: thin; }
.available-categories button { display: flex; min-height: 4.15rem; flex-direction: column; align-items: center; justify-content: center; gap: 0.18rem; padding: 0.45rem 0.35rem; border: 1px solid #eee9e2; border-radius: 10px; background: #fbfaf8; color: #293b31; font: inherit; font-size: 0.69rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background 140ms ease, color 140ms ease, transform 140ms ease; }
.available-categories button > span { color: #856144; font-size: 1.2rem; line-height: 1; }
.available-categories button:hover { transform: translateY(-2px); }
.available-categories button.is-active { border-color: var(--green-action); background: var(--green-action); color: #fff; box-shadow: 0 5px 12px rgb(8 116 71 / 18%); }
.available-categories button.is-active > span { color: #fff; }
.preorder-categories { grid-template-columns: repeat(9, minmax(5rem, 1fr)); }
.available-catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1.15rem 0 0.7rem; }
.available-catalog-heading h2 { margin: 0; color: #172d24; font-size: clamp(1.3rem, 2.5vw, 1.8rem); letter-spacing: -0.035em; }
.available-catalog-heading p { margin: 0.18rem 0 0; color: #69766f; font-size: 0.82rem; }
.available-catalog-heading label { display: flex; align-items: center; gap: 0.5rem; color: #526057; font-size: 0.78rem; white-space: nowrap; }
.available-catalog-heading select { min-height: 2.55rem; padding: 0.4rem 1.7rem 0.4rem 0.6rem; border: 1px solid #e1e6e2; border-radius: 9px; background: #fff; color: #253a2e; font: inherit; }
.available-catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 0.8rem; }
.available-product-card { min-width: 0; overflow: hidden; border: 1px solid #e7e9e5; border-radius: 13px; background: #fff; box-shadow: 0 5px 17px rgb(24 42 32 / 7%); transition: box-shadow 160ms ease, transform 160ms ease; }
.available-product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgb(24 42 32 / 12%); }
.available-product-cover { flex: 0 0 auto; }
.available-product-card .available-product-gallery { width: 100%; height: 100%; gap: 0; border-radius: inherit; }
.available-product-card-gallery { position: absolute; inset: 0; }
.available-product-card-gallery > .available-gallery-item { height: 100%; aspect-ratio: auto; }
.available-product-card-gallery .available-gallery-item > img,
.available-product-card-gallery .available-gallery-item > video { height: 100%; }
.available-product-card .available-product-image-placeholder { width: 100%; height: 100%; aspect-ratio: auto; border-radius: inherit; }
.available-product-gallery { display: flex; gap: 0.35rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.available-gallery-item { position: relative; flex: 0 0 100%; width: 100%; aspect-ratio: 1.15; scroll-snap-align: start; background: #edf3ef; }
.available-gallery-item > img,
.available-gallery-item > video,
.available-product-image-button { display: block; width: 100%; height: 100%; }
.available-gallery-item > img,
.available-gallery-item > video { object-fit: cover; }
.available-product-image-button { overflow: hidden; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.available-product-image-button:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.available-product-card .batch-count { min-height: 1rem; }
.available-product-card .product-details { padding: 0.6rem 0.65rem 0.7rem; }
.available-product-card .batch-name { min-height: 1.25rem; margin: 0; color: #24372d; font-size: 0.83rem; font-weight: 750; }
.available-product-card .batch-meta { display: none; }
.available-product-card .product-price { margin-top: 0.1rem; color: var(--green-action); font-size: 1rem; font-weight: 850; }
.available-product-card .batch-count { min-height: 1rem; margin: 0.15rem 0 0.45rem; color: #708077; font-size: 0.69rem; }
.available-product-card .batch-toggle { display: flex; width: calc(100% - 1.3rem); min-height: 2.45rem; justify-content: center; margin: 0 0.65rem 0.65rem; border-radius: 8px; background: var(--green-action); font-size: 0.78rem; }
.available-product-card .batch-toggle::after { margin-left: auto; content: "→"; }
.available-service-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 1.1rem 0 0.2rem; padding: 0.85rem 0.7rem; border: 1px solid #e8eee9; border-radius: 13px; background: #f3f8f4; }
.available-service-strip article { display: flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.2rem 0.4rem; }
.available-service-strip article + article { border-left: 1px solid #dfe8e1; }
.available-service-strip article > span { color: var(--green-action); font-size: 1.35rem; font-weight: 850; }
.available-service-strip strong,
.available-service-strip small { display: block; }
.available-service-strip strong { color: #294236; font-size: 0.72rem; }
.available-service-strip small { margin-top: 0.1rem; color: #6b7a71; font-size: 0.63rem; }
.available-product-dialog { width: min(92vw, 48rem); }
.available-product-dialog .available-dialog-product { grid-template-columns: minmax(7rem, 9.8rem) minmax(0, 1fr); }
.available-dialog-media { height: 9.8rem; }
.available-dialog-gallery { height: 100%; overflow: hidden; border-radius: 9px; }
.available-dialog-gallery > .available-gallery-item { height: 100%; aspect-ratio: auto; }
.available-dialog-gallery .available-gallery-item > img,
.available-dialog-gallery .available-gallery-item > video { height: 100%; }
.available-dialog-product .available-product-image-placeholder { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 9px; }
.available-dialog-description { margin: 0.45rem 0 0; color: #40564a; font-size: 0.84rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.available-dialog-order { display: grid; align-content: start; gap: 0.65rem; }
.available-dialog-order .current-orders-title { margin: 0; }
.available-dialog-label { display: grid; gap: 0.25rem; margin: 0; color: #40564a; font-size: 0.82rem; font-weight: 700; }
.available-dialog-label select,
.available-dialog-label input,
.available-checkout-form input,
.available-checkout-form select { width: 100%; min-width: 0; min-height: 2.65rem; padding: 0.5rem 0.65rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.available-dialog-options { display: grid; gap: 0.4rem; }
.available-dialog-option { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; min-height: 2.8rem; padding: 0.4rem 0.55rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.available-dialog-option input { width: 5.2rem; min-height: 2.2rem; }
.available-dialog-stock { margin: 0; color: var(--muted); font-size: 0.8rem; }
.available-dialog-order .form-error:empty { display: none; }
.available-dialog-add,
.available-dialog-checkout,
.available-dialog-cart-link { width: 100%; justify-content: center; text-align: center; text-decoration: none; }
.available-dialog-cart-link { display: flex; }
.available-dialog-confirmation { margin: 0; padding: 0.55rem 0.7rem; border-radius: 8px; background: #eaf5ef; color: var(--green-deep); font-size: 0.84rem; font-weight: 700; }
.available-dialog-confirmation[hidden] { display: none; }
.available-cart-benefits { display: flex; align-items: center; justify-content: flex-end; gap: clamp(1rem, 2.5vw, 2.2rem); min-height: 4.1rem; margin-bottom: 0.7rem; padding: 0 0.5rem; }
.available-cart-benefits > span { display: flex; align-items: center; gap: 0.55rem; color: #234b39; }
.available-cart-benefits > span > strong { display: grid; width: 1.8rem; height: 1.8rem; flex: 0 0 1.8rem; place-items: center; border: 2px solid var(--green-action); border-radius: 0.45rem; color: var(--green-action); font-size: 1.15rem; }
.available-cart-benefits > span > strong svg,
.available-checkout-delivery-note > span:first-child svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.available-cart-benefits > span > span { display: grid; gap: 0.08rem; }
.available-cart-benefits b { color: #174b36; font-size: 0.73rem; line-height: 1.2; }
.available-cart-benefits small { color: #68766e; font-size: 0.65rem; }
.available-cart-benefits .available-cart-benefits-brand { gap: 0.4rem; color: #075d40; font-size: 0.8rem; line-height: 1.05; }
.available-cart-benefits-brand > span { font-size: 1.35rem; }
.available-cart-section-heading .help,
.available-cart-local-badge { display: none; }
.available-clear-cart { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.35rem; padding: 0.35rem 0.65rem; border: 1px solid #e4eae5; border-radius: 8px; background: #fff; color: #354a3d; font: inherit; font-size: 0.74rem; font-weight: 700; cursor: pointer; }
.available-clear-cart:disabled { opacity: 0.5; cursor: default; }
.available-cart-line { grid-template-columns: 5rem minmax(9rem, 1.4fr) minmax(4.5rem, 0.55fr) auto minmax(4.8rem, 0.55fr) 2rem; grid-template-areas: "image copy unit actions total remove"; align-items: center; gap: 0.55rem clamp(0.45rem, 1.1vw, 1rem); }
.available-cart-line-copy > strong { overflow-wrap: anywhere; color: #24372d; font-size: 0.84rem; }
.available-cart-line-copy > small { color: #68766e; font-size: 0.68rem; }
.available-cart-line-copy .available-cart-line-stock { justify-self: start; padding: 0.16rem 0.42rem; border-radius: 999px; background: #e8f8ee; color: #167144; font-size: 0.62rem; font-weight: 750; text-transform: uppercase; }
.available-cart-line-copy .available-cart-line-option { justify-self: start; padding: 0.2rem 0.45rem; border-radius: 999px; background: #f0f2f1; color: #39463e; }
.available-cart-line-unit { grid-area: unit; color: #293d31; font-size: 0.8rem; white-space: nowrap; }
.available-cart-line-total { color: var(--green-action); font-size: 0.82rem; font-weight: 800; }
.available-cart-line-remove { grid-area: remove; justify-self: end; min-width: 1.8rem; min-height: 2rem; padding: 0; border: 0; background: transparent; color: #24704d; font-size: 1.1rem; cursor: pointer; }
.available-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0.75rem 0; color: #33443a; font-size: 0.82rem; }
.available-summary-row strong { color: #2b3d32; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.available-summary-delivery { align-items: flex-start; }
.available-summary-delivery span { display: grid; gap: 0.18rem; }
.available-summary-row small { color: #78847d; font-size: 0.67rem; }
.available-cart-total { justify-content: space-between; margin: 0.85rem 0 0.75rem; padding: 0.85rem 0; color: #202f26; font-size: 1rem; font-weight: 800; }
.available-cart-total strong { font-size: 1.2rem; }
.available-checkout-panel > h3 { margin-bottom: 0.8rem; }
.available-proceed-checkout { display: flex; width: 100%; min-height: 3rem; justify-content: center; border-radius: 9px; background: #056348; font-size: 0.9rem; font-weight: 800; }
.available-proceed-checkout:disabled { opacity: 0.55; cursor: default; }
.available-checkout-or { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin: 0.5rem 0; color: #89938d; font-size: 0.68rem; }
.available-checkout-or span { height: 1px; flex: 1; background: #edf0ed; }
.available-continue-shopping { display: flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: 0.45rem; border: 1px solid #a6cabc; border-radius: 9px; color: #176344; font-size: 0.83rem; font-weight: 750; text-decoration: none; }
.available-checkout-delivery-note { align-items: center; gap: 0.65rem; margin: 0.8rem 0 0; padding: 0.75rem; }
.available-checkout-delivery-note > span:first-child { flex: none; font-size: 1.45rem; }
.available-checkout-delivery-note > span:last-child { display: grid; gap: 0.2rem; }
.available-checkout-delivery-note strong { font-size: 0.78rem; }
.available-checkout-delivery-note small { color: #64756a; font-size: 0.66rem; }
.available-checkout-details { display: grid; gap: 0.55rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid #e9eeeb; }
.available-checkout-details > h4 { margin: 0; color: #20392d; font-size: 0.98rem; }
.available-checkout-details[hidden] { display: none; }
.available-checkout-form[hidden] { display: none; }
.available-cart-lower-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
.available-cart-lower-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; margin-bottom: 0.7rem; }
.available-cart-lower-heading h3 { margin: 0; color: #20392d; font-size: 1rem; font-weight: 800; }
.available-cart-lower-heading a { flex: none; color: #176344; font-size: 0.72rem; font-weight: 750; text-decoration: none; }
.available-orders { margin-top: 0; }
.available-cart-recommendation-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; }
.available-cart-recommendation { display: grid; min-width: 0; overflow: hidden; grid-template-rows: auto auto auto 1fr; gap: 0.32rem; padding: 0.35rem; border: 1px solid #edf0ed; border-radius: 10px; background: #fff; }
.available-cart-recommendation > img,
.available-cart-recommendation-placeholder { display: block; width: 100%; aspect-ratio: 1.18; overflow: hidden; border-radius: 7px; background: #f4f1e8; object-fit: cover; }
.available-cart-recommendation > strong { overflow: hidden; color: #24372d; font-size: 0.7rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.available-cart-recommendation > span:not(.available-cart-recommendation-placeholder) { color: #176344; font-size: 0.77rem; font-weight: 800; }
.available-cart-recommendation > .btn { width: 100%; min-height: 2rem; align-self: end; justify-content: center; padding: 0.25rem; font-size: 0.67rem; }
.available-cart-layout.is-empty + .available-cart-lower-layout { grid-template-columns: minmax(0, 1fr); }
.available-orders { margin-top: 1rem; }
.available-cart h3,
.available-orders h3 { margin-bottom: 0.2rem; }
.available-cart-lines,
.available-my-orders { display: grid; gap: 0.45rem; }
.available-cart-line,
.available-product-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 0.75rem; }
.available-product-share-button { min-height: 2.35rem; padding: 0.4rem 0.7rem; font-size: 0.78rem; }
.available-product-share-status { flex-basis: 100%; min-height: 1.1em; color: var(--green-action); font-size: 0.75rem; }
.available-order-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.available-cart-line-copy,
.available-order-copy { min-width: 0; }
.available-cart-line-copy strong,
.available-order-copy strong { display: block; }
.available-cart-line-copy small,
.available-order-copy small { color: var(--muted); }
.available-cart-line-actions { display: flex; align-items: center; gap: 0.4rem; }
.available-cart-line-actions button { min-width: 2rem; min-height: 2rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--green-deep); font: inherit; font-weight: 750; cursor: pointer; }
.available-cart-total { display: flex; justify-content: space-between; margin: 0.85rem 0; padding-top: 0.65rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
.available-cart-total strong { color: var(--green-deep); }
.available-checkout-form { display: grid; gap: 0.35rem; max-width: 30rem; }
.available-checkout-form #available-delivery-fields { display: grid; gap: 0.35rem; }
.available-checkout-form label { font-weight: 700; }
.available-checkout-form .help { margin: 0.2rem 0 0.55rem; }
.available-signin-note { margin: 0.75rem 0; padding: 0.75rem 1rem; border-radius: 10px; background: #fff7e8; color: #634611; }
.available-signin-note .text-link { border: 0; background: none; color: var(--green); font: inherit; font-weight: 750; text-decoration: underline; cursor: pointer; }
.available-order-warning { display: block; margin-top: 0.35rem; color: #9d2c2c; font-weight: 700; }
.available-admin-editor { margin: 1rem 0 1.4rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #f8fbf9; }
.available-admin-tabs { display: flex; gap: 0.35rem; margin: 0.9rem 0 0.75rem; padding: 0.3rem; overflow-x: auto; border: 1px solid #e2e9e4; border-radius: 11px; background: #f4f7f4; }
.available-admin-tab { flex: 1 0 auto; min-height: 2.65rem; padding: 0.5rem 0.8rem; border: 0; border-radius: 8px; background: transparent; color: #55675d; font: inherit; font-size: 0.88rem; font-weight: 750; white-space: nowrap; cursor: pointer; }
.available-admin-tab:hover { background: #eaf2ec; color: #174b36; }
.available-admin-tab.is-active { background: #0f6547; color: #fff; box-shadow: 0 2px 6px rgb(15 61 48 / 16%); }
.available-admin-tab:focus-visible { outline: 2px solid #f0b429; outline-offset: 2px; }
.available-admin-tab-panel[hidden] { display: none; }
.available-admin-tab-panel > section { margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #f8fbf9; }
.available-admin-tab-panel > section > h3 { margin: 0 0 0.75rem; }
.available-admin-editor h3,
.available-admin-columns h3 { margin-bottom: 0.65rem; }
.available-admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.available-admin-form > label { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.available-admin-form input:not([type="checkbox"]),
.available-admin-form textarea,
.available-admin-form select,
.available-admin-order-control select { width: 100%; min-width: 0; padding: 0.55rem 0.65rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.available-admin-form textarea { resize: vertical; }
.available-admin-form small { color: var(--muted); font-weight: 400; }
.available-admin-form > small#available-admin-category-help { grid-column: 1 / -1; margin-top: -0.55rem; }
.available-admin-category-create { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.5rem; }
.available-admin-category-create > label { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.available-admin-category-create input { width: 100%; min-width: 0; padding: 0.55rem 0.65rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.available-admin-category-create p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.8rem; }
.available-admin-category-create p.is-error { color: var(--danger); }
.available-admin-media { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.65rem; min-width: 0; margin: 0; padding: 0.8rem; border: 1px solid var(--line); border-radius: 10px; }
.available-admin-media > legend { padding: 0 0.35rem; font-weight: 750; }
.available-admin-media > small { grid-column: 1 / -1; }
.available-admin-media-slot { display: grid; align-content: start; gap: 0.45rem; min-width: 0; padding: 0.65rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.available-admin-media-slot > label { display: grid; gap: 0.2rem; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.available-admin-media-slot input:not([type="file"]),
.available-admin-media-slot select { width: 100%; min-width: 0; padding: 0.5rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
.available-admin-media-slot [data-media-preview] { width: 100%; max-height: 10rem; object-fit: contain; border-radius: 7px; background: #edf3ef; }
.available-admin-media-slot [data-clear-media] { justify-self: start; }
.available-admin-description,
.available-admin-options,
.available-admin-actions { grid-column: 1 / -1; }
.available-admin-option-images { display: grid; grid-column: 1 / -1; gap: 0.55rem; margin: 0; padding: 0.75rem; border: 1px solid var(--line); border-radius: 10px; }
.available-admin-option-images > legend { padding: 0 0.35rem; font-weight: 750; }
.available-admin-option-images > small { color: var(--muted); }
.available-admin-option-image-list { display: grid; gap: 0.45rem; }
.available-admin-option-image-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.7fr); align-items: center; gap: 0.75rem; color: var(--ink); font-size: 0.85rem; }
.available-admin-option-image-row select { width: 100%; min-width: 0; min-height: 2.4rem; padding: 0.4rem 0.55rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
.available-admin-active { display: flex !important; align-items: center; gap: 0.4rem !important; }
.available-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.available-admin-actions .form-error { flex-basis: 100%; margin: 0; }
.available-admin-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.available-admin-products,
.available-admin-orders { display: grid; gap: 0.6rem; }
.available-admin-product,
.available-admin-order { min-width: 0; padding: 0.8rem; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.available-admin-product-heading,
.available-admin-order-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.available-admin-product-heading > img { width: 3.5rem; height: 3.5rem; border-radius: 8px; object-fit: cover; }
.available-admin-product-heading > div { flex: 1; min-width: 0; }
.available-admin-product-heading strong,
.available-admin-product-heading small { display: block; overflow-wrap: anywhere; }
.available-admin-product-heading small,
.available-admin-product > p,
.available-admin-order > small { color: var(--muted); }
.available-admin-product > p,
.available-admin-order > p { margin: 0.45rem 0; overflow-wrap: anywhere; }
.available-admin-option-list { display: grid; gap: 0.2rem; margin: 0.55rem 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.85rem; }
.available-admin-product-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.available-admin-product-actions .btn { min-height: 2.2rem; padding: 0.35rem 0.65rem; font-size: 0.82rem; }
.available-admin-order-status { flex: none; padding: 0.2rem 0.55rem; border-radius: 999px; background: #eaf5ef; color: var(--green-deep); font-size: 0.72rem; font-weight: 750; }
.available-admin-order-status.is-pending_payment,
.available-admin-order-status.is-expired,
.available-admin-order-status.is-payment_failed { background: #fff2d9; color: #744500; }
.available-stock-conflict { padding: 0.5rem; border-radius: 7px; background: #fff0f0; color: #9d2c2c; font-size: 0.78rem; font-weight: 800; }
.available-admin-order-control { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.55rem; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
body:not(.page-admin) .customer-nav { gap: 0.1rem; }
body:not(.page-admin) .customer-nav .nav-link { padding-inline: 0.55rem; }
body:not(.page-admin) .header-account-actions { position: relative; display: flex; align-items: center; justify-self: end; gap: 0.8rem; min-width: 0; }
body:not(.page-admin) .customer-alerts-wrapper { position: relative; flex: none; }
body:not(.page-admin) .customer-alerts-button {
  position: relative;
  display: grid;
  flex: none;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  cursor: pointer;
}
body:not(.page-admin) .customer-alerts-button:hover { background: rgb(255 255 255 / 20%); }
body:not(.page-admin) .customer-alerts-button:focus-visible { outline: 2px solid #f2c14b; outline-offset: 2px; }
body:not(.page-admin) .customer-alerts-button svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body:not(.page-admin) .customer-alerts-count {
  position: absolute;
  top: -0.25rem;
  right: -0.3rem;
  display: inline-grid;
  min-width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  padding: 0 0.25rem;
  border: 2px solid var(--header-dark);
  border-radius: 999px;
  background: #d92d45;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}
body:not(.page-admin) .customer-alerts-count[hidden] { display: none; }
body:not(.page-admin) .customer-alerts-popup {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.65rem);
  right: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(70vh, 32rem);
  overflow: hidden;
  border: 1px solid #dce8e1;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 38px rgb(10 32 23 / 24%);
}
body:not(.page-admin) .customer-alerts-popup[hidden] { display: none; }
body:not(.page-admin) .customer-transient-alert {
  position: fixed;
  z-index: 200;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  left: max(0.75rem, env(safe-area-inset-left));
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: auto;
  max-width: 26rem;
  margin-left: auto;
  padding: 0.8rem 0.9rem;
  border: 1px solid #dce8e1;
  border-left: 4px solid #08735a;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 38px rgb(10 32 23 / 24%);
  font-size: 0.88rem;
  line-height: 1.45;
}
body:not(.page-admin) .customer-transient-alert[hidden] { display: none; }
body:not(.page-admin) .customer-transient-alert.is-warn { border-left-color: #c17b00; }
body:not(.page-admin) .customer-transient-alert.is-error { border-left-color: #bd3543; }
body:not(.page-admin) .customer-transient-alert.is-highlighted { align-items: center; border-color: #b8e2c8; border-left: 4px solid #08735a; background: linear-gradient(135deg, #f1fff6, #fff); animation: customer-order-added-toast 180ms ease-out both; }
body:not(.page-admin) .customer-transient-alert-icon { display: grid; flex: 0 0 1.65rem; width: 1.65rem; height: 1.65rem; place-items: center; border-radius: 50%; background: #08735a; color: #fff; font-size: 1rem; font-weight: 800; }
body:not(.page-admin) .customer-transient-alert-copy { display: grid; flex: 1; gap: 0.12rem; }
body:not(.page-admin) .customer-transient-alert-copy strong { color: #075b45; font-size: 0.96rem; }
body:not(.page-admin) .customer-transient-alert-message { flex: 1; }
@keyframes customer-order-added-toast {
  from { opacity: 0; transform: translateY(-0.45rem) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.page-admin) .customer-transient-alert.is-highlighted { animation: none; }
}
body:not(.page-admin) .customer-transient-alert button {
  flex: none;
  padding: 0 0.2rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
body:not(.page-admin) .customer-transient-alert button:focus-visible { outline: 2px solid #08735a; outline-offset: 2px; }
body:not(.page-admin) .customer-alerts-popup-header { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; padding: 0.7rem 0.8rem; border-bottom: 1px solid #e6eee9; }
body:not(.page-admin) .customer-alerts-popup-header strong { color: #173d31; font-size: 0.94rem; }
body:not(.page-admin) .customer-alerts-popup-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.15rem; }
body:not(.page-admin) .customer-alerts-popup-header button { min-height: 2.25rem; padding: 0.3rem 0.45rem; border: 0; border-radius: 6px; background: transparent; color: #08735a; font: inherit; font-size: 0.76rem; font-weight: 750; cursor: pointer; }
body:not(.page-admin) .customer-alerts-popup-header button:hover { background: #eaf5ef; }
body:not(.page-admin) .customer-alerts-popup-header button:disabled { color: #66756d; cursor: default; opacity: 0.7; }
body:not(.page-admin) #customer-alerts-status:not(:empty) { padding: 0.45rem 0.75rem 0; font-size: 0.76rem; }
body:not(.page-admin) .customer-alerts-list { display: grid; align-content: start; gap: 0.4rem; overflow-y: auto; padding: 0.5rem; }
body:not(.page-admin) .customer-alerts-list .customer-notifications-empty { padding: 1.2rem 0.7rem; border: 0; font-size: 0.82rem; }
body:not(.page-admin) .my-order-list { display: grid; gap: 0.7rem; }
@media (max-width: 680px) {
  .available-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .available-admin-columns { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .available-catalog { grid-template-columns: 1fr; }
  .available-admin-form { grid-template-columns: 1fr; }
  .available-admin-description,
  .available-admin-options,
  .available-admin-actions { grid-column: auto; }
}
@media (max-width: 900px) {
  .available-shop-hero { grid-template-columns: minmax(0, 1.1fr) minmax(15rem, 0.85fr); }
  .available-hero-benefits { gap: 0.45rem 0.75rem; }
  .available-hero-benefits li > span { width: 1.8rem; height: 1.8rem; }
  body:not(.page-admin) .available-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .available-shop-hero { grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.75fr); min-height: 18rem; }
  .available-shop-hero-copy { padding: 1.35rem 1rem; }
  .available-shop-hero h1 { font-size: clamp(2rem, 6vw, 2.7rem); }
  .available-hero-products { min-height: 13rem; }
  .available-hero-product { width: 62%; }
  .available-hero-stamp { top: 0.55rem; right: 0.55rem; width: 4.9rem; height: 4.9rem; font-size: 0.62rem; }
  .available-service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .available-service-strip article { justify-content: flex-start; padding: 0.4rem; }
  .available-service-strip article:nth-child(3) { border-left: 0; }
  .available-service-strip article:nth-child(n+3) { border-top: 1px solid #dfe8e1; }
  body:not(.page-admin) .available-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  body:not(.page-admin) .available-product-card {
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  body:not(.page-admin) .available-product-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  body:not(.page-admin) .available-product-card .product-details { padding: 0.55rem 0.6rem 0.4rem; }
  body:not(.page-admin) .available-product-card .batch-toggle { align-self: stretch; padding: 0.55rem 0; }
  .available-product-dialog .available-dialog-product { grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr); }
  .available-dialog-media { height: 8rem; }
}
@media (max-width: 420px) {
  .available-shop-hero { display: block; min-height: 0; }
  .available-shop-hero-copy { padding: 1.35rem 1rem 0.8rem; }
  .available-shop-hero-copy > p:not(.available-shop-kicker) { max-width: 22rem; font-size: 0.88rem; }
  .available-hero-benefits { gap: 0.5rem; }
  .available-hero-benefits li { flex: 1 1 8.3rem; }
  .available-hero-benefits li > span { width: 1.65rem; height: 1.65rem; font-size: 0.85rem; }
  .available-hero-products { min-height: 10.5rem; margin: 0.2rem 1rem 0.8rem; }
  .available-hero-product { width: 42%; height: 83%; }
  .available-hero-product-1 { left: 7%; }
  .available-hero-product-2 { left: 29%; }
  .available-hero-product-3 { right: 7%; }
  .available-hero-stamp { top: auto; right: 0.8rem; bottom: 0.8rem; width: 4.25rem; height: 4.25rem; font-size: 0.55rem; }
  .available-catalog-heading { align-items: flex-start; flex-direction: column; gap: 0.55rem; }
  .available-catalog-heading label { align-self: stretch; justify-content: space-between; }
  .available-catalog-heading select { flex: 1; }
  .available-categories { grid-template-columns: repeat(9, 5.2rem); }
  .available-service-strip article { gap: 0.4rem; }
  .available-service-strip article > span { font-size: 1.1rem; }
  .available-service-strip strong { font-size: 0.66rem; }
  .available-service-strip small { font-size: 0.58rem; }
  .available-dialog-media { height: 6.5rem; }
}
@media (max-width: 350px) {
  body:not(.page-admin) .available-catalog { grid-template-columns: 1fr; }
}
.my-order-rows { margin: 0; padding: 0; list-style: none; }
.my-order-row { display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 3.3rem; padding: 0.7rem 0.1rem; border: 0; border-bottom: 1px solid #eee7da; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.my-order-rows li:last-child .my-order-row { border-bottom: 0; }
.my-order-row::after { flex: none; width: 0.5rem; height: 0.5rem; margin-right: 0.2rem; border-top: 2px solid #9aa79f; border-right: 2px solid #9aa79f; content: ""; transform: rotate(45deg); }
.my-order-row-name { flex: 1; min-width: 0; color: #173d31; font-size: 15px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.my-order-row:hover .my-order-row-name, .my-order-row:focus-visible .my-order-row-name { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.my-order-payment-reminder { display: grid; gap: 0.55rem; margin: 0.2rem 0 0.65rem; padding: 0.7rem; border: 1px solid #f0d9a9; border-radius: 10px; background: #fff8e9; color: #604716; }
.my-order-payment-reminder p { margin: 0; font-size: 0.82rem; line-height: 1.45; }
.my-order-payment-reminder-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.my-order-payment-reminder-actions .btn { min-height: 2.4rem; padding: 0.45rem 0.7rem; font-size: 0.8rem; }
.my-order-state { flex: none; display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.my-order-state[hidden] { display: none; }
.my-order-state.is-paid { background: #e2f4ea; color: #16774a; }
.my-order-state.is-paying { background: #e6eefb; color: #2a5aa6; }
.my-order-state.is-unpaid { background: #fff1d6; color: #8a5a00; }
.my-order-state.is-updating { background: #fff3d8; color: #805000; }
.my-order-state.is-purchased { background: #eef3f1; color: #3d5a4d; letter-spacing: 0.02em; text-transform: none; }
.my-order-group-footer .my-order-pay-all { justify-self: stretch; width: 100%; }
.my-order-dialog { width: min(26rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; overflow-y: auto; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 28px 70px rgb(7 40 30 / 32%); }
.my-order-dialog[open] { animation: spotlight-in 0.22s ease-out; }
.my-order-dialog::backdrop { background: rgb(9 30 23 / 60%); backdrop-filter: blur(2px); }
.my-order-dialog-media { position: relative; height: 15rem; background: #f3efe6; }
.my-order-dialog-media[hidden] { display: none; }
.my-order-dialog-gallery { position: absolute; inset: 0; touch-action: pan-y; }
.my-order-dialog-gallery .gallery-media { position: absolute; inset: 0; overflow: hidden; }
.my-order-dialog-image-button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.my-order-dialog-image-button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.my-order-dialog-media-hint { position: absolute; bottom: 0.7rem; left: 0.7rem; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgb(20 31 26 / 72%); color: #fff; font-size: 0.75rem; font-weight: 700; pointer-events: none; }
.my-order-dialog-body { padding: 1.1rem 1.3rem 1.3rem; }
.my-order-dialog-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.my-order-dialog-body h2 { margin: 0.6rem 0 0; color: #102a20; font-size: 1.3rem; line-height: 1.25; }
.my-order-dialog-spec { margin: 0.2rem 0 0; color: #6b7a72; font-size: 0.9rem; }
.my-order-dialog-spec[hidden] { display: none; }
.my-order-dialog-details { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 1rem 0 0; border: 1px solid #e6eee9; border-radius: 14px; background: #f7faf8; }
.my-order-dialog-details dt, .my-order-dialog-details dd { margin: 0; padding: 0.6rem 0.85rem; border-bottom: 1px solid #e6eee9; font-size: 0.9rem; }
.my-order-dialog-details dt { color: #5f6f67; }
.my-order-dialog-details dd { color: #173d31; font-weight: 700; text-align: right; }
.my-order-dialog-details dt:nth-last-of-type(1), .my-order-dialog-details dd:nth-last-of-type(1) { border-bottom: 0; }
.my-order-dialog-actions { display: grid; gap: 0.65rem; margin-top: 1.1rem; }
.my-order-dialog-actions .btn { width: 100%; }
.my-order-dialog-actions .my-order-action-button { display: inline-flex; justify-content: center; align-items: center; gap: 0.55rem; min-height: 2.9rem; padding: 0.65rem 0.9rem; }
.my-order-dialog-actions .my-order-action-button svg { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; }
.my-order-dialog-actions .my-order-delete { border-color: #ead6d3; background: #fff8f7; color: #8a352b; }
.my-order-dialog-actions .my-order-delete:hover { border-color: #d7aaa4; background: #fff0ed; color: #74281f; }
.my-order-dialog-actions .help { margin: 0; font-size: 0.88rem; }
.my-order-quantity-stage { position: relative; min-width: 0; min-height: 2.8rem; overflow: hidden; }
.my-order-change-trigger { transition: transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1), opacity 180ms ease; }
.my-order-quantity-stage.is-editing .my-order-change-trigger { position: absolute; top: 0; left: 0; transform: translateX(-110%); opacity: 0; pointer-events: none; }
.my-order-quantity-editor { position: absolute; inset: 0 auto auto 0; width: 100%; margin: 0; transform: translateX(110%); opacity: 0; transition: transform 300ms cubic-bezier(0.2, 0.75, 0.25, 1), opacity 180ms ease; }
.my-order-quantity-editor.is-entering { visibility: hidden; }
.my-order-quantity-stage.is-editing .my-order-quantity-editor { position: relative; transform: translateX(0); opacity: 1; }
.my-order-quantity-field { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(8rem, 10rem); align-items: center; gap: 0.55rem; width: 100% !important; margin: 0 0 0.55rem !important; }
.my-order-quantity-field > label { min-width: 0; margin: 0; color: #34483e; font-size: 0.82rem; font-weight: 700; overflow-wrap: anywhere; }
.my-order-quantity-field .quantity-control { display: grid; grid-template-columns: 2.35rem minmax(2.5rem, 1fr) 2.35rem; min-height: 2.65rem; overflow: hidden; border: 1px solid #d5e3d9; border-radius: 10px; background: #fff; box-shadow: 0 2px 7px rgb(22 54 39 / 6%); }
.my-order-quantity-field .quantity-control input { width: 100%; min-width: 0; min-height: 2.6rem; padding: 0.35rem; border: 0; border-radius: 0; background: transparent; color: #173d31; font-weight: 750; text-align: center; appearance: textfield; }
.my-order-quantity-field .quantity-control input::-webkit-inner-spin-button,
.my-order-quantity-field .quantity-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.my-order-quantity-field .quantity-step { background: #edf5ef; color: #176244; font-size: 1.2rem; transition: background-color 140ms ease, color 140ms ease; }
.my-order-quantity-field .quantity-step:hover { background: #dceee2; color: #0e5034; }
.my-order-quantity-field .quantity-step:active { background: #c7e5d1; }
.my-order-quantity-editor .form-error:empty { display: none; }
.my-order-dialog-paid { margin: 0; padding: 0.7rem 0.85rem; border-radius: 12px; background: #e2f4ea; color: #16774a; font-weight: 700; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .my-order-change-trigger,
  .my-order-quantity-editor,
  .my-order-quantity-field .quantity-step { transition: none; }
}
body:not(.page-admin):not(.customer-signed-in) #customer-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
body:not(.page-admin):not(.customer-signed-in) #customer-panel-title,
body:not(.page-admin):not(.customer-signed-in) #customer-panel-help { display: none; }
body:not(.page-admin):not(.customer-signed-in)[data-view="account"] .header-nav,
body:not(.page-admin):not(.customer-signed-in)[data-view="account"] .header-account-actions,
body:not(.page-admin):not(.customer-signed-in)[data-view="account"] .site-footer:not(.customer-legal-footer) { display: none; }
body:not(.page-admin):not(.customer-signed-in)[data-view="account"] main.wrap { padding-top: 1.4rem; }
body:not(.page-admin) .auth-card {
  width: min(100%, 39.5rem);
  margin: 1.8rem auto;
  padding: 2rem 2.15rem;
  border: 1px solid #e1e8e5;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #fdfefd);
  box-shadow: 0 14px 42px rgb(20 52 41 / 9%);
}
body:not(.page-admin) .auth-heading { margin-bottom: 1.35rem; }
body:not(.page-admin) .auth-heading h2 {
  margin: 0;
  color: #0c3029;
  font-family: var(--font-ui);
  font-size: clamp(1.8rem, 4vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}
body:not(.page-admin) .auth-heading p { margin: 0.35rem 0 0; color: #697d83; font-size: 1.05rem; }
body:not(.page-admin) .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 1.55rem;
  padding: 3px;
  border: 1px solid #e0e7e7;
  border-radius: 999px;
  background: #fff;
}
body:not(.page-admin) .auth-tab {
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #164b3d;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
body:not(.page-admin) .auth-tab[aria-pressed="true"] {
  background: linear-gradient(110deg, var(--green), #06664d);
  color: #fff;
  box-shadow: 0 3px 8px rgb(8 121 87 / 18%);
}
body:not(.page-admin) .auth-tabs #show-signup { order: 1; }
body:not(.page-admin) .auth-tabs #show-login { order: 2; }
body:not(.page-admin) .auth-card #signup-form,
body:not(.page-admin) .auth-card #customer-login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: none;
}
body:not(.page-admin) .auth-card #signup-form > *,
body:not(.page-admin) .auth-card #customer-login-form > * { grid-column: 1; }
body:not(.page-admin) .auth-card #signup-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.1rem;
}
body:not(.page-admin) .auth-card #signup-form > .auth-signup-name,
body:not(.page-admin) .auth-card #signup-form > .auth-signup-name-help,
body:not(.page-admin) .auth-card #signup-form > .auth-signup-pin,
body:not(.page-admin) .auth-card #signup-form > .auth-signup-submit { grid-column: 1 / -1; }
body:not(.page-admin) .auth-card #signup-form > .auth-signup-location { grid-column: 1; }
body:not(.page-admin) .auth-card #signup-form > .auth-signup-phone { grid-column: 2; }
body:not(.page-admin) .auth-card .field { gap: 0.42rem; margin-bottom: 1rem; }
body:not(.page-admin) .auth-card .field label { color: #1b3834; font-size: 0.92rem; font-weight: 700; }
body:not(.page-admin) .auth-card .field > input,
body:not(.page-admin) .auth-input-wrap {
  min-height: 3.45rem;
  border: 1px solid #dce4e8;
  border-radius: 13px;
  background: linear-gradient(110deg, #f8f9fb, #fbfcfd);
}
body:not(.page-admin) .auth-card .field > input { width: 100%; padding: 0 0.9rem; }
body:not(.page-admin) .auth-input-wrap { display: flex; align-items: center; gap: 0.8rem; padding: 0 0.9rem; }
body:not(.page-admin) .auth-input-wrap:focus-within,
body:not(.page-admin) .auth-card .field > input:focus {
  border-color: #168a68;
  outline: 3px solid rgb(22 138 104 / 12%);
}
body:not(.page-admin) .auth-input-wrap > svg {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: #155344;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
body:not(.page-admin) .auth-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 3.25rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #182e2a;
  font: inherit;
  font-size: 0.98rem;
}
body:not(.page-admin) .auth-input-wrap input:focus { outline: 0; }
body:not(.page-admin) .auth-input-wrap input::placeholder { color: #7d8c94; opacity: 1; }
body:not(.page-admin) .auth-pin-toggle {
  display: grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2.4rem;
  place-items: center;
  border: 0;
  background: transparent;
  color: #627982;
  cursor: pointer;
}
body:not(.page-admin) .auth-pin-toggle svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
body:not(.page-admin) .auth-card form > button[type="submit"] {
  min-height: 3.5rem;
  margin-top: 0.05rem;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--green), #06664d);
  font-size: 1.05rem;
  font-weight: 750;
}
body:not(.page-admin) .auth-divider { display: flex; align-items: center; gap: 0.8rem; margin: 0.95rem 0; color: #71858b; font-size: 0.85rem; font-weight: 700; }
body:not(.page-admin) .auth-divider::before,
body:not(.page-admin) .auth-divider::after { height: 1px; flex: 1; background: #e1e8e8; content: ""; }
body:not(.page-admin) .auth-create-account {
  display: flex;
  width: 100%;
  min-height: 3.6rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid #22a17b;
  border-radius: 14px;
  background: #f8fcfa;
  color: #087254;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
body:not(.page-admin) .auth-create-account:hover { transform: translateY(-1px); border-color: var(--green); background: #edf8f3; }
body:not(.page-admin) .auth-create-account svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
body:not(.page-admin) .auth-card .form-error { margin: 0.55rem 0 0; }
body:not(.page-admin) .auth-card .name-suggestions { grid-column: 1; }
body:not(.page-admin) .auth-card .auth-signup-name-help { margin: -0.35rem 0 0.55rem; color: #687d85; font-size: 0.78rem; }
body:not(.page-admin) .auth-card .auth-pin-help { margin: -0.2rem 0 0; color: #687d85; font-size: 0.8rem; font-weight: 400; }
body:not(.page-admin) .auth-card .auth-signup-submit { grid-column: 1 / -1 !important; }
body:not(.page-admin) .auth-card .auth-signup-submit[type="submit"] { display: flex; align-items: center; justify-content: center; gap: 0.8rem; }
body:not(.page-admin) .auth-card .auth-signup-submit[type="submit"] span { font-size: 1.35rem; font-weight: 400; }
body:not(.page-admin) .profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid #e5ede9; }
body:not(.page-admin) .profile-heading-title { display: flex; align-items: center; gap: 0.8rem; }
body:not(.page-admin) .profile-heading-title > div { display: grid; gap: 0.15rem; }
body:not(.page-admin) .profile-heading-title h2 { margin: 0; color: #102849; font-size: 1.4rem; }
body:not(.page-admin) .profile-heading-title p { margin: 0; color: var(--muted); font-size: 0.9rem; }
body:not(.page-admin) .profile-heading-icon,
body:not(.page-admin) .profile-detail-icon { display: inline-block; flex: 0 0 2.8rem; width: 2.8rem; height: 2.8rem; padding: 0.75rem; border-radius: 50%; background-color: #e4f4ed; color: #08735a; }
body:not(.page-admin) .profile-signout { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.7rem; border-color: #dce9e3; background: #fff; color: #174936; }
body:not(.page-admin) .profile-signout > span { font-size: 1.2rem; }
body:not(.page-admin) .profile-overview { display: grid; grid-template-columns: 1fr; align-items: center; gap: 1rem; padding: 0.2rem 0.35rem 1rem; }
body:not(.page-admin) .profile-identity { display: flex; align-items: center; gap: 1rem; min-width: 0; }
body:not(.page-admin) .profile-avatar-wrap { position: relative; flex: 0 0 5.4rem; }
body:not(.page-admin) .profile-avatar { display: grid; width: 5.4rem; height: 5.4rem; place-items: center; border-radius: 50%; background: #e9f5f1; color: #075b43; font-size: 2.4rem; font-weight: 800; }
body:not(.page-admin) .profile-camera { position: absolute; right: 0; bottom: 0; display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border: 2px solid white; border-radius: 50%; background: #08735a; color: white; font-size: 0.9rem; }
body:not(.page-admin) .profile-identity-copy { min-width: 0; }
body:not(.page-admin) .profile-identity-copy > strong { display: block; margin-bottom: 0.45rem; color: #102849; font-size: 1.35rem; }
body:not(.page-admin) .profile-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
body:not(.page-admin) .profile-chips > span { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.6rem; border-radius: 999px; background: #eef7f3; color: #164c3b; font-size: 0.82rem; }
body:not(.page-admin) .profile-chips > span > span:first-child { color: #08735a; }
body:not(.page-admin) .profile-member-since { display: flex; align-items: center; gap: 0.4rem; margin: 0.45rem 0 0; color: var(--muted); font-size: 0.84rem; }
body:not(.page-admin) .profile-member-since > span:first-child { color: #4d657b; }
body:not(.page-admin) .profile-status { display: flex; align-items: flex-start; gap: 0.8rem; padding: 1rem; border-radius: 14px; background: #eff8f4; }
body:not(.page-admin) .profile-status-icon { display: grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #07845b; color: white; font-weight: 800; }
body:not(.page-admin) .profile-status > div { display: grid; gap: 0.25rem; }
body:not(.page-admin) .profile-status > div > span { color: #38564b; font-size: 0.84rem; }
body:not(.page-admin) .profile-status strong { color: #07845b; font-size: 1.05rem; }
body:not(.page-admin) .profile-status small { color: var(--muted); font-size: 0.82rem; }
body:not(.page-admin) .profile-details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.25rem; }
body:not(.page-admin) .profile-settings-group { margin-top: 0.9rem; padding: 0.9rem; border: 1px solid #e3ece8; border-radius: 14px; background: #fbfdfb; }
body:not(.page-admin) .profile-settings-heading { display: grid; gap: 0.2rem; margin-bottom: 0.7rem; }
body:not(.page-admin) .profile-settings-heading h3 { margin: 0; color: #173d31; font-size: 1rem; }
body:not(.page-admin) .profile-settings-heading p { margin: 0; color: var(--muted); font-size: 0.82rem; }
body:not(.page-admin) .profile-hub-group { margin-top: 0.9rem; padding: 0; border: 0; background: transparent; }
body:not(.page-admin) .profile-hub-list { display: grid; gap: 0.85rem; }
body:not(.page-admin) .profile-hub-section { display: grid; gap: 0; padding: 0.45rem 1rem; overflow: hidden; border: 1px solid #e3ece8; border-radius: 16px; background: #fff; }
body:not(.page-admin) .profile-hub-section h4 { margin: 0; padding: 0.55rem 0.25rem; color: #1a4337; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
body:not(.page-admin) .profile-hub-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.8rem; width: 100%; min-height: 3.15rem; padding: 0.6rem 0.25rem; border: 0; border-bottom: 1px solid #e6ebe8; border-radius: 0; background: transparent; color: #1a2d27; text-align: left; text-decoration: none; cursor: pointer; }
body:not(.page-admin) .profile-hub-section > .profile-hub-row:last-child { border-bottom: 0; }
body:not(.page-admin) .profile-hub-row:hover { background: #f7faf8; }
body:not(.page-admin) .profile-hub-icon { display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: 50%; background: transparent; color: #234b3c; font-size: 1.12rem; filter: grayscale(1); }
body:not(.page-admin) .profile-hub-copy { display: grid; min-width: 0; }
body:not(.page-admin) .profile-hub-copy strong { color: #173d31; font-size: 0.98rem; font-weight: 500; }
body:not(.page-admin) .profile-hub-row-invite-earn { margin-block: 0.3rem; padding-inline: 0.55rem; border: 0; border-radius: 12px; background: transparent; }
body:not(.page-admin) .profile-hub-row-invite-earn:hover { background: transparent; }
body:not(.page-admin) .profile-hub-row-invite-earn .profile-hub-icon { background: #d9f0df; color: var(--green); filter: none; }
body:not(.page-admin) .profile-hub-row-invite-earn .profile-hub-copy strong { color: #8f2635; font-weight: 750; }
body:not(.page-admin) .profile-hub-copy small { margin-top: 0.12rem; color: #62756b; font-size: 0.76rem; }
body:not(.page-admin) .profile-hub-chevron { color: #5d726b; font-size: 1.3rem; font-weight: 700; }
body:not(.page-admin) .profile-hub-row-ghost { border: 1px solid #e3ece8; border-radius: 14px; background: #fff; }
body:not(.page-admin) .profile-hub-row-ghost .profile-hub-icon { color: #5d726b; }
body:not(.page-admin) .profile-hub-row-ghost .profile-hub-copy strong { color: #44584e; }
body:not(.page-admin) .profile-hub-row-ghost:hover { border-color: #bcd4c8; }
body:not(.page-admin) .profile-hub-title-block { margin: 0.35rem 0 0; }
body:not(.page-admin) .profile-hub-section .customer-notifications-count { justify-self: end; margin-right: 0.2rem; }
body:not(.page-admin) .profile-detail-screen { display: grid; gap: 0.8rem; margin-top: 0.9rem; padding: 0.8rem; border: 1px solid #dfeae6; border-radius: 14px; background: #fff; }
body:not(.page-admin) .profile-detail-screen.is-pushing { animation: profileDetailPush 0.28s cubic-bezier(0.2, 0.7, 0.3, 1); }
body:not(.page-admin) .profile-detail-screen.is-popping { animation: profileDetailPop 0.22s ease-out; }
@keyframes profileDetailPush {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes profileDetailPop {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.page-admin) .profile-detail-screen.is-pushing,
  body:not(.page-admin) .profile-detail-screen.is-popping { animation: none; }
}
body:not(.page-admin) .profile-detail-header { display: flex; align-items: center; gap: 0.55rem; }
body:not(.page-admin) .profile-back-button { display: grid; width: 2.5rem; min-width: 2.5rem; height: 2.5rem; min-height: 2.5rem; padding: 0; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #173d31; }
body:not(.page-admin) .profile-back-button:hover { background: #f1f5f2; }
body:not(.page-admin) .profile-back-button span { display: none; }
body:not(.page-admin) .profile-back-button svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
body:not(.page-admin) .profile-detail-header h3 { margin: 0; color: #173d31; font-size: 1.05rem; font-weight: 650; line-height: 1.3; }
body:not(.page-admin) .profile-detail-intro { display: none; }
body.customer-profile-detail-open .profile-detail-screen > .profile-detail-header { padding-bottom: 0.6rem; border-bottom: 1px solid #e9eeeb; }
body.customer-profile-detail-open .profile-detail-screen > .profile-detail-content > .profile-detail-intro { display: block; margin: 0 0 0.1rem; color: #65766e; font-size: 0.86rem; line-height: 1.4; }
body:not(.page-admin) .profile-detail-content { display: grid; gap: 0.8rem; align-content: start; }
body:not(.page-admin) .profile-detail-subheading { margin: 0.2rem 0 0; color: #1a4337; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
body:not(.page-admin).customer-profile-detail-open .profile-detail-header h3,
body:not(.page-admin) .invite-earn-panel h1,
body:not(.page-admin) .invite-earn-panel h2,
body:not(.page-admin) .invite-earn-panel h3,
body:not(.page-admin) .invite-earn-panel code { font-family: inherit; }
body:not(.page-admin) .profile-detail-note { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
body:not(.page-admin) .profile-detail-note .text-link { font: inherit; }
body:not(.page-admin) .profile-help-steps { display: grid; gap: 0.55rem; margin: 0; padding-left: 1.2rem; color: #31473e; font-size: 0.92rem; line-height: 1.5; }
body:not(.page-admin) .profile-help-steps strong { color: #173d31; }
body:not(.page-admin) .profile-detail-content .app-settings-heading h4 { margin: 0; color: #102849; font-size: 1.05rem; }
body:not(.page-admin) .profile-detail-content .app-settings-heading p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.85rem; }
body:not(.page-admin) .profile-detail-content .profile-help-panel { grid-template-columns: auto minmax(0, 1fr); margin-top: 0; }
body:not(.page-admin) .profile-detail-content .profile-contact-links { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
body:not(.page-admin) .profile-detail-content .legal-layout { margin: 0; padding: 0; border: 0; background: transparent; }
body:not(.page-admin) .profile-detail-content .legal-layout ul,
body:not(.page-admin) .profile-detail-content .legal-layout ol { padding-left: 1.2rem; }
body:not(.page-admin) #profile-detail-edit .customer-pin-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; max-width: none; }
body:not(.page-admin) #profile-detail-edit .customer-pin-form > h3 { display: none; }
body:not(.page-admin) #profile-detail-edit .customer-pin-form > label { grid-row: 1; color: #4c5c70; font-size: 0.82rem; font-weight: 650; }
body:not(.page-admin) #profile-detail-edit .customer-pin-form > input { width: 100%; min-width: 0; min-height: 2.8rem; padding: 0.55rem 0.7rem; border: 1px solid #d9e5df; border-radius: 9px; }
body:not(.page-admin) #profile-detail-edit .customer-pin-form > div,
body:not(.page-admin) #profile-detail-edit .customer-pin-form > .form-error { grid-column: 1 / -1; }
body:not(.page-admin) #profile-detail-edit .customer-pin-form > div { margin-top: 0.1rem; }
body:not(.page-admin) .invite-earn-panel { gap: 0.9rem; }
body:not(.page-admin) .invite-earn-top { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.8rem; align-items: stretch; }
body:not(.page-admin) .invite-earn-balance {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  grid-template-areas: "icon title" "icon amount" "icon note" "action action";
  align-content: center;
  align-items: center;
  gap: 0.25rem 0.65rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--header-dark);
  border-radius: 14px;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 7px, rgb(255 255 255 / 3%) 7px, rgb(255 255 255 / 3%) 8px),
    var(--header-dark);
  color: #fff;
}
body:not(.page-admin) .invite-earn-balance-heading { display: contents; color: #d8f3e3; font-size: 0.78rem; font-weight: 650; }
body:not(.page-admin) .invite-earn-balance-heading > span:last-child { grid-area: title; }
body:not(.page-admin) .invite-earn-balance-icon { display: grid; grid-area: icon; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: 12px; background: rgb(255 255 255 / 14%); color: #e8fff0; }
body:not(.page-admin) .invite-earn-balance-icon svg { width: 1.35rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
body:not(.page-admin) .invite-earn-balance > strong { grid-area: amount; color: #fff; font-size: clamp(1.7rem, 3vw, 2rem); line-height: 1.05; }
body:not(.page-admin) .invite-earn-balance > small { grid-area: note; color: #d8f3e3; font-size: 0.73rem; line-height: 1.3; }
body:not(.page-admin) .invite-earn-shop-button { grid-area: action; display: flex; justify-content: center; gap: 0.4rem; min-height: 2.6rem; margin-top: 0.55rem; padding: 0.5rem 0.8rem; border-color: #e1f8e9; background: #e1f8e9; color: var(--header-dark); font-size: 0.84rem; font-weight: 750; text-decoration: none; }
body:not(.page-admin) .invite-earn-shop-button:hover { background: #fff; }
body:not(.page-admin) .invite-earn-tools-grid,
body:not(.page-admin) .invite-earn-activity-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.9fr); gap: 0.8rem; min-width: 0; }
body:not(.page-admin) .invite-earn-card { display: grid; align-content: start; gap: 0.7rem; min-width: 0; padding: 1rem; border: 1px solid #e3eae5; border-radius: 15px; background: #fff; box-shadow: 0 4px 14px rgb(20 55 42 / 4%); }
body:not(.page-admin) .invite-earn-share { display: grid; align-content: start; gap: 0.55rem; min-width: 0; padding: 1rem; border: 1px solid #d2ead8; border-radius: 15px; background: #eef9f0; }
body:not(.page-admin) .invite-earn-code-card { grid-column: 1 / -1; }
body:not(.page-admin) .invite-earn-compact-heading { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: #173d31; font-family: inherit; font-size: 0.88rem; font-weight: 650; }
body:not(.page-admin) .invite-earn-heading-icon { flex: 0 0 1.3rem; width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; color: var(--green); }
body:not(.page-admin) .invite-earn-section-open { display: flex; align-items: center; gap: 0.65rem; width: 100%; min-width: 0; padding: 0.2rem 0; border: 0; border-radius: 8px; background: transparent; color: #173d31; font: inherit; text-align: left; cursor: pointer; }
body:not(.page-admin) .invite-earn-section-open:hover { background: #f4faf5; }
body:not(.page-admin) .invite-earn-section-open:focus-visible { outline: 2px solid #08735a; outline-offset: 3px; }
body:not(.page-admin) .invite-earn-section-open-copy { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 0.45rem; min-width: 0; }
body:not(.page-admin) .invite-earn-section-open-copy > strong { color: #173d31; font-size: 0.98rem; font-weight: 800; }
body:not(.page-admin) .invite-earn-section-open-copy > .invite-earn-list-limit { white-space: nowrap; }
body:not(.page-admin) .invite-earn-section-chevron { flex: 0 0 1.15rem; width: 1.15rem; height: 1.15rem; fill: none; stroke: #718079; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
body:not(.page-admin) .invite-earn-code-card { border-color: #d2ead8; background: #eef9f0; }
body:not(.page-admin) .invite-earn-card-heading { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
body:not(.page-admin) .invite-earn-card-icon { display: grid; flex: 0 0 2.4rem; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: 50%; font-size: 1.25rem; font-weight: 800; }
body:not(.page-admin) .invite-earn-link-icon { background: #e3f4e8; color: var(--green); }
body:not(.page-admin) .invite-earn-code-icon { background: #fff0e8; color: #b5422b; }
body:not(.page-admin) .invite-earn-card-heading h3,
body:not(.page-admin) .invite-earn-section-heading h3 { margin: 0; color: #173d31; font-family: inherit; font-size: 0.98rem; font-weight: 800; }
body:not(.page-admin) .invite-earn-card-heading p,
body:not(.page-admin) .invite-earn-section-heading p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
body:not(.page-admin) .invite-earn-link-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-width: 0; overflow: hidden; border: 1px solid #ded8ca; border-radius: 9px; background: #efebe2; }
body:not(.page-admin) .invite-earn-link-row input { width: 100%; min-width: 0; min-height: 2.75rem; padding: 0.5rem 0.65rem; border: 0; border-radius: 0; outline-offset: -2px; background: transparent; color: #6b746e; font-size: 0.82rem; }
body:not(.page-admin) .invite-earn-share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; width: 100%; }
body:not(.page-admin) .invite-earn-share-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; min-width: 0; min-height: 2.8rem; padding: 0.5rem 0.45rem; border-radius: 7px; font-size: 0.8rem; font-weight: 750; }
body:not(.page-admin) .invite-earn-inline-copy { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 2.5rem; margin: 0; padding: 0.45rem 0.55rem; border: 1px solid #b9d9c3; border-radius: 7px; background: transparent; color: #07533f; font-size: 0.82rem; font-weight: 750; white-space: nowrap; }
body:not(.page-admin) .invite-earn-inline-copy:hover { background: #e2f1e7; }
body:not(.page-admin) .invite-earn-copy-icon { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
body:not(.page-admin) .invite-earn-whatsapp { border: 1px solid #b9d9c3; border-radius: 7px; background: transparent; color: #07533f; text-decoration: none; }
body:not(.page-admin) .invite-earn-whatsapp:hover { background: #e2f1e7; }
body:not(.page-admin) .invite-earn-whatsapp svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
body:not(.page-admin) .invite-earn-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-width: 0; overflow: hidden; border: 1px solid #ded8ca; border-radius: 9px; background: #efebe2; }
body:not(.page-admin) .invite-earn-code-row code { display: block; min-width: 0; overflow: hidden; padding: 0.65rem 0.7rem; background: transparent; color: #6b746e; font-family: inherit; font-size: 0.82rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
body:not(.page-admin) .invite-earn-code-copy { display: grid; width: 2rem; height: 1.8rem; margin: 0 0.25rem; padding: 0.25rem; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #07533f; }
body:not(.page-admin) .invite-earn-code-copy:hover { background: #e2f1e7; }
body:not(.page-admin) .invite-earn-code-copy .invite-earn-copy-icon { width: 1rem; height: 1rem; }
body:not(.page-admin) .invite-earn-tip { display: flex; gap: 0.45rem; margin: 0; padding: 0.6rem 0.7rem; border: 1px solid #f2e7d3; border-radius: 9px; background: #fff9ef; color: #66502c; font-size: 0.76rem; line-height: 1.45; }
body:not(.page-admin) .invite-earn-tip strong { color: #a75c10; }
body:not(.page-admin) .invite-earn-section { gap: 0.55rem; }
body:not(.page-admin) .invite-earn-list-limit { flex: none; color: #51565b; font-size: 0.7rem; font-weight: 500; }
body:not(.page-admin) .invite-earn-full-list { gap: 0.8rem; }
body:not(.page-admin) .invite-earn-full-list .invite-earn-list li { padding-block: 0.85rem; }
body:not(.page-admin) .invite-earn-preview-list li:nth-child(n + 4) { display: none; }
body:not(.page-admin) .invite-earn-empty-state { display: grid; min-height: 7.2rem; align-content: center; justify-items: center; gap: 0.2rem; padding: 0.75rem; border-radius: 9px; background: #efebe2; color: #2e3338; text-align: center; }
body:not(.page-admin) .invite-earn-empty-state[hidden] { display: none; }
body:not(.page-admin) .invite-earn-empty-state svg { width: 2.3rem; height: 2.1rem; margin-bottom: 0.1rem; fill: none; stroke: #b88e3c; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; }
body:not(.page-admin) .invite-earn-empty-state strong { font-size: 0.82rem; font-weight: 700; }
body:not(.page-admin) .invite-earn-empty-state p { max-width: 20rem; margin: 0; color: #55585a; font-size: 0.69rem; line-height: 1.25; }
body:not(.page-admin) .invite-earn-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
body:not(.page-admin) .invite-earn-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.3rem 0.75rem; min-width: 0; padding: 0.7rem 0; border-bottom: 1px solid #e9eeeb; }
body:not(.page-admin) .invite-earn-list li:last-child { border-bottom: 0; padding-bottom: 0; }
body:not(.page-admin) .invite-earn-list li > * { min-width: 0; overflow-wrap: anywhere; }
body:not(.page-admin) .invite-earn-list li > strong { grid-column: 1; color: #173d31; font-size: 0.86rem; }
body:not(.page-admin) .invite-earn-list li > span { grid-column: 1; color: #65766e; font-size: 0.77rem; line-height: 1.4; }
body:not(.page-admin) .invite-earn-list li > time { grid-column: 2; grid-row: 1 / span 2; color: #65766e; font-size: 0.72rem; text-align: right; }
body:not(.page-admin) .invite-earn-list li[data-status="rewarded"] > span { color: #176b42; font-weight: 700; }
body:not(.page-admin) .invite-earn-list li[data-status="ordered"] > span { color: #245f99; font-weight: 700; }
body:not(.page-admin) .invite-earn-list li[data-status="reconciliation_required"] > span { color: #a13d2f; font-weight: 700; }
body:not(.page-admin) .invite-earn-history-list li > strong { color: #176b42; text-align: right; }
body:not(.page-admin) .invite-earn-history-list li[data-entry-type="redeemed"] > strong,
body:not(.page-admin) .invite-earn-history-list li[data-entry-type="reversed"] > strong { color: #a13d2f; }
body:not(.page-admin) .invite-earn-history-list li[data-entry-type="reconciliation_required"] > strong { color: #a05b12; }
body:not(.page-admin) .customer-referral-directory { gap: 1rem; }
body:not(.page-admin) .customer-referral-directory > .profile-detail-note { margin: 0; color: #5f7067; font-size: 0.86rem; line-height: 1.5; }
body:not(.page-admin) .customer-referral-link-card { display: grid; gap: 0.7rem; min-width: 0; padding: 1rem; border: 1px solid #d5e9dc; border-radius: 15px; background: linear-gradient(120deg, #f2faf5, #fff); box-shadow: 0 5px 18px rgb(20 55 42 / 5%); }
body:not(.page-admin) .customer-referral-link-heading { display: flex; align-items: center; gap: 0.65rem; }
body:not(.page-admin) .customer-referral-link-icon { display: grid; flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 11px; background: #dff2e7; color: #08735a; font-size: 1.1rem; font-weight: 800; }
body:not(.page-admin) .customer-referral-link-heading > span:last-child { display: grid; gap: 0.1rem; }
body:not(.page-admin) .customer-referral-link-heading strong { color: #173d31; font-size: 0.98rem; font-weight: 800; }
body:not(.page-admin) .customer-referral-link-heading small { color: #64776c; font-size: 0.76rem; }
body:not(.page-admin) .customer-referral-link-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; }
body:not(.page-admin) .customer-referral-link-field { display: flex; min-width: 0; overflow: hidden; border: 1px solid #d8e3dc; border-radius: 10px; background: #fff; }
body:not(.page-admin) .customer-referral-link-field input { width: 100%; min-width: 0; min-height: 2.8rem; padding: 0.6rem 0.75rem; border: 0; background: transparent; color: #405349; font: inherit; font-size: 0.8rem; }
body:not(.page-admin) .customer-referral-link-field button { display: grid; flex: 0 0 2.65rem; place-items: center; border-left: 1px solid #e6eee8; background: #f7faf8; color: #24523d; cursor: pointer; }
body:not(.page-admin) .customer-referral-link-field button svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
body:not(.page-admin) .customer-referral-link-field button:hover { background: #edf6f0; }
body:not(.page-admin) .customer-referral-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 2.8rem; padding: 0.55rem 0.9rem; border: 1px solid #08735a; border-radius: 10px; background: #08735a; color: #fff; font-size: 0.78rem; font-weight: 750; text-decoration: none; white-space: nowrap; transition: background-color 150ms ease, transform 150ms ease; }
body:not(.page-admin) .customer-referral-whatsapp:hover { background: #075a47; transform: translateY(-1px); }
body:not(.page-admin) .customer-referral-whatsapp svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
body:not(.page-admin) .customer-referral-link-card > .profile-detail-note { min-height: 0; color: #256b4b; font-size: 0.72rem; }
body:not(.page-admin) .customer-referral-link-card > .profile-detail-note:empty { display: none; }
body:not(.page-admin) .customer-referral-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
body:not(.page-admin) .customer-referral-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: center; gap: 0.14rem 0.65rem; min-width: 0; min-height: 6rem; padding: 0.85rem; border: 1px solid transparent; border-radius: 14px; box-shadow: 0 3px 12px rgb(20 55 42 / 3%); }
body:not(.page-admin) .customer-referral-stat > span { display: grid; grid-row: 1 / span 2; width: 2.45rem; height: 2.45rem; place-items: center; border-radius: 10px; background: rgb(255 255 255 / 75%); font-size: 1.15rem; }
body:not(.page-admin) .customer-referral-stat > strong { min-width: 0; overflow-wrap: anywhere; color: #182a23; font-size: 1.08rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
body:not(.page-admin) .customer-referral-stat > small { color: #65756c; font-size: 0.7rem; line-height: 1.25; }
body:not(.page-admin) .customer-referral-stat.stat-referrals { border-color: #d5eadc; background: linear-gradient(135deg, #f0faf3, #e5f5eb); color: #08735a; }
body:not(.page-admin) .customer-referral-stat.stat-orders { border-color: #d9e8f5; background: linear-gradient(135deg, #f2f8fd, #e8f2fb); color: #286ea6; }
body:not(.page-admin) .customer-referral-stat.stat-earned { border-color: #f0e5cd; background: linear-gradient(135deg, #fffbf2, #fff4df); color: #a86912; }
body:not(.page-admin) .customer-referral-stat.stat-credit { border-color: #e4dff0; background: linear-gradient(135deg, #f8f6fc, #efebf8); color: #7052a0; }
body:not(.page-admin) .customer-referral-tabs { display: flex; gap: 1.1rem; border-bottom: 1px solid #e5ece7; }
body:not(.page-admin) .customer-referral-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 3rem; padding: 0.55rem 0.75rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #68786f; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
body:not(.page-admin) .customer-referral-tabs button.is-active { border-bottom-color: #08735a; color: #075b45; }
body:not(.page-admin) .customer-referral-tabs button span { font-size: 0.68rem; }
body:not(.page-admin) .customer-referral-tab-panel[hidden] { display: none; }
body:not(.page-admin) .customer-referral-list-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.38fr); gap: 0.55rem; }
body:not(.page-admin) .customer-referral-search,
body:not(.page-admin) .customer-referral-filter { display: flex; align-items: center; min-width: 0; min-height: 2.8rem; gap: 0.5rem; padding: 0 0.75rem; border: 1px solid #dce6df; border-radius: 10px; background: #fff; color: #5a6b60; box-shadow: 0 2px 7px rgb(20 55 42 / 3%); }
body:not(.page-admin) .customer-referral-search svg { flex: 0 0 1rem; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
body:not(.page-admin) .customer-referral-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #24382e; font: inherit; font-size: 0.78rem; }
body:not(.page-admin) .customer-referral-search input::placeholder { color: #8b9790; }
body:not(.page-admin) .customer-referral-filter::before { flex: 0 0 auto; content: "▽"; color: #415649; font-size: 0.72rem; }
body:not(.page-admin) .customer-referral-filter select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #44564c; font: inherit; font-size: 0.76rem; }
body:not(.page-admin) #invite-earn-referrals-full-status { font-size: 0.69rem; }
body:not(.page-admin) .customer-referral-list { gap: 0.55rem; }
body:not(.page-admin) .customer-referral-list > li.customer-referral-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; padding: 0.9rem; border: 1px solid #dce9e0; border-radius: 15px; background: linear-gradient(135deg, #fff 0%, #f5fbf7 58%, #f0f8f3 100%); box-shadow: 0 5px 18px rgb(20 55 42 / 6%), inset 0 1px 0 rgb(255 255 255 / 90%); transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
body:not(.page-admin) .customer-referral-list > li.customer-referral-item:hover { transform: translateY(-1px); border-color: #b8d6c3; box-shadow: 0 9px 24px rgb(20 55 42 / 9%), inset 0 1px 0 rgb(255 255 255 / 90%); }
body:not(.page-admin) .customer-referral-item-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.7rem; }
body:not(.page-admin) .customer-referral-avatar { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: 12px; background: #e3f4e9; color: #176b48; font-size: 0.78rem; font-weight: 800; }
body:not(.page-admin) .customer-referral-avatar.avatar-1 { background: #e0f2ff; color: #2473ad; }
body:not(.page-admin) .customer-referral-avatar.avatar-2 { background: #fff0e5; color: #ad622c; }
body:not(.page-admin) .customer-referral-avatar.avatar-3 { background: #f1e9ff; color: #764ab5; }
body:not(.page-admin) .customer-referral-name { display: grid; min-width: 0; gap: 0.12rem; }
body:not(.page-admin) .customer-referral-name strong { color: #20372b; font-size: 0.86rem; line-height: 1.35; overflow-wrap: anywhere; }
body:not(.page-admin) .customer-referral-name small { color: #718077; font-size: 0.7rem; }
body:not(.page-admin) .customer-referral-status { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.32rem 0.62rem; border-radius: 999px; background: linear-gradient(135deg, #e8f7ed, #dff1e6); color: #16764c; font-size: 0.69rem; font-weight: 750; white-space: nowrap; }
body:not(.page-admin) .customer-referral-status::before { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: currentColor; content: ""; }
body:not(.page-admin) .customer-referral-status.status-ordered { background: #eaf3ff; color: #326a9d; }
body:not(.page-admin) .customer-referral-status.status-rewarded { background: #e6f7eb; color: #167246; }
body:not(.page-admin) .customer-referral-status.status-ended { background: #fff4df; color: #a66313; }
body:not(.page-admin) .customer-referral-status.status-review { background: #fff0ed; color: #af4237; }
body:not(.page-admin) .customer-referral-track { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 2.25rem; padding: 0.4rem 0.7rem; border: 1px solid #08735a; border-radius: 9px; background: linear-gradient(135deg, #168b64, #08664d); color: #fff; font: inherit; font-size: 0.74rem; font-weight: 750; cursor: pointer; white-space: nowrap; box-shadow: 0 3px 9px rgb(8 115 90 / 18%); }
body:not(.page-admin) .customer-referral-track:hover { border-color: #075a47; background: linear-gradient(135deg, #117452, #075a47); }
body:not(.page-admin) .customer-referral-track > span { font-size: 1rem; line-height: 1; }
body:not(.page-admin) .customer-referral-item-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #edf1ee; }
body:not(.page-admin) .customer-referral-item-metric { display: flex; align-items: flex-start; gap: 0.5rem; min-width: 0; padding: 0.7rem 0.55rem 0.15rem; }
body:not(.page-admin) .customer-referral-item-metric + .customer-referral-item-metric { border-left: 1px solid #edf1ee; }
body:not(.page-admin) .customer-referral-item-metric > span:first-child { display: grid; flex: 0 0 1.75rem; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: 8px; background: #eef6f1; color: #176b48; font-size: 0.85rem; }
body:not(.page-admin) .customer-referral-item-metric > span:last-child { display: grid; min-width: 0; gap: 0.08rem; }
body:not(.page-admin) .customer-referral-item-metric small { color: #748178; font-size: 0.65rem; line-height: 1.35; }
body:not(.page-admin) .customer-referral-item-metric strong { color: #24382e; font-size: 0.77rem; line-height: 1.3; overflow-wrap: anywhere; }
body:not(.page-admin) .customer-referral-rewards-list > li { padding-block: 0.75rem; }
.customer-referral-directory :focus-visible { outline: 2px solid #138055; outline-offset: 2px; }
body:not(.page-admin) .customer-referral-track-dialog {
  width: min(44rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(88vh, 52rem);
  padding: 1.2rem;
  overflow-y: auto;
  border: 1px solid #e0e9e3;
  border-radius: 22px;
  background: linear-gradient(155deg, #fff 0%, #fff 57%, #f4faf6 100%);
  color: #20372b;
  box-shadow: 0 26px 75px rgb(9 37 27 / 28%);
}
body:not(.page-admin) .customer-referral-track-dialog::backdrop { background: rgb(9 30 23 / 58%); backdrop-filter: blur(3px); }
body:not(.page-admin) .customer-referral-track-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.8rem; }
body:not(.page-admin) .customer-referral-track-avatar { display: grid; width: 4rem; height: 4rem; place-items: center; border-radius: 50%; background: #e1f4e8; color: #08735a; font-size: 1.25rem; font-weight: 800; }
body:not(.page-admin) .customer-referral-track-person { display: grid; min-width: 0; gap: 0.35rem; }
body:not(.page-admin) .customer-referral-track-person h2 { margin: 0; color: #142f24; font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
body:not(.page-admin) .customer-referral-track-person > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
body:not(.page-admin) .customer-referral-track-person time { color: #77867e; font-size: 0.75rem; }
body:not(.page-admin) .customer-referral-track-close { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #52645a; font: inherit; font-size: 1.5rem; cursor: pointer; }
body:not(.page-admin) .customer-referral-track-close:hover { background: #f0f5f2; }
body:not(.page-admin) .customer-referral-track-share { display: grid; gap: 0.5rem; margin-top: 1rem; }
body:not(.page-admin) .customer-referral-track-share > button,
body:not(.page-admin) .customer-referral-track-whatsapp { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.55rem 0.75rem; border: 1px solid #dce7df; border-radius: 10px; background: linear-gradient(135deg, #fff, #f2f8f4); color: #253b30; font: inherit; font-size: 0.82rem; font-weight: 700; text-decoration: none; cursor: pointer; }
body:not(.page-admin) .customer-referral-track-share > button:hover { background: #eef6f0; }
body:not(.page-admin) .customer-referral-track-whatsapp { border-color: #08735a; background: #08735a; color: #fff; }
body:not(.page-admin) .customer-referral-track-whatsapp:hover { background: #075a47; }
body:not(.page-admin) .customer-referral-track-share svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
body:not(.page-admin) #customer-referral-track-copy-status { min-height: 0; margin: 0; color: #176b48; font-size: 0.75rem; }
body:not(.page-admin) #customer-referral-track-copy-status:empty { display: none; }
body:not(.page-admin) .customer-referral-track-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; margin-top: 0.85rem; }
body:not(.page-admin) .customer-referral-track-metric { display: flex; align-items: center; gap: 0.55rem; min-width: 0; min-height: 4.4rem; padding: 0.65rem; border: 1px solid #e4ebe6; border-radius: 12px; background: #fff; }
body:not(.page-admin) .customer-referral-track-metric > span:first-child { display: grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-items: center; border-radius: 9px; background: #e8f5ed; color: #08735a; font-size: 1rem; }
body:not(.page-admin) .customer-referral-track-metric > span:last-child { display: grid; min-width: 0; gap: 0.12rem; }
body:not(.page-admin) .customer-referral-track-metric strong { color: #1d3429; font-size: 0.88rem; overflow-wrap: anywhere; }
body:not(.page-admin) .customer-referral-track-metric small { color: #718077; font-size: 0.67rem; }
body:not(.page-admin) .customer-referral-track-metric.metric-orders > span:first-child { background: #eaf3ff; color: #286ea6; }
body:not(.page-admin) .customer-referral-track-metric.metric-rewards > span:first-child { background: #fff5df; color: #a86912; }
body:not(.page-admin) .customer-referral-track-metric.metric-credit > span:first-child { background: #eff0ff; color: #6558aa; }
body:not(.page-admin) .customer-referral-track-tabs { display: flex; gap: 0.5rem; margin-top: 0.9rem; border-bottom: 1px solid #e5ece7; }
body:not(.page-admin) .customer-referral-track-tabs button { min-height: 2.8rem; padding: 0.55rem 0.7rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #68786f; font: inherit; font-size: 0.77rem; font-weight: 700; cursor: pointer; }
body:not(.page-admin) .customer-referral-track-tabs button.is-active { border-bottom-color: #08735a; background: linear-gradient(180deg, transparent 48%, #eef8f1 100%); color: #075b45; }
body:not(.page-admin) .customer-referral-track-content { display: grid; gap: 0.35rem; min-width: 0; padding-top: 0.55rem; }
body:not(.page-admin) .customer-referral-track-entry { position: relative; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: start; gap: 0.65rem; min-width: 0; padding: 0.9rem; border: 1px solid #e4eee7; border-radius: 14px; background: linear-gradient(115deg, #fff, #f7fbf8); box-shadow: 0 3px 12px rgb(20 55 42 / 4%); }
body:not(.page-admin) .customer-referral-track-entry:not(:last-child)::after { position: absolute; top: 3.3rem; bottom: -0.35rem; left: 2.05rem; width: 1px; background: linear-gradient(#c9dfd1, #e9f1ec); content: ""; }
body:not(.page-admin) .customer-referral-track-marker { z-index: 1; display: grid; width: 2.3rem; height: 2.3rem; place-items: center; border-radius: 50%; background: #eaf3ff; color: #286ea6; font-size: 0.9rem; }
body:not(.page-admin) .customer-referral-track-entry.entry-reward .customer-referral-track-marker { background: #fff5df; color: #b47818; }
body:not(.page-admin) .customer-referral-track-entry-copy { display: grid; min-width: 0; gap: 0.24rem; }
body:not(.page-admin) .customer-referral-track-entry-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 0.65rem; color: #1d3429; font-size: 0.82rem; }
body:not(.page-admin) .customer-referral-track-entry-heading > strong:first-child { font-weight: 750; }
body:not(.page-admin) .customer-referral-track-entry-amount { color: #12804d; white-space: nowrap; }
body:not(.page-admin) .customer-referral-track-entry-copy p { margin: 0; color: #344b3e; font-size: 0.77rem; line-height: 1.4; overflow-wrap: anywhere; }
body:not(.page-admin) .customer-referral-track-entry-copy small,
body:not(.page-admin) .customer-referral-track-entry time { color: #78867e; font-size: 0.68rem; line-height: 1.4; }
body:not(.page-admin) .customer-referral-track-entry time { max-width: 7rem; text-align: right; }
body:not(.page-admin) .customer-referral-track-empty { margin: 0; padding: 1.25rem 0.5rem; color: #718077; font-size: 0.82rem; text-align: center; }
.customer-referral-track-dialog :focus-visible { outline: 2px solid #08735a; outline-offset: 2px; }
@media (max-width: 600px) {
  body:not(.page-admin) .customer-referral-track-dialog { width: 100%; max-height: 94vh; margin: auto 0 0; padding: 1.15rem 1rem calc(1rem + env(safe-area-inset-bottom)); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 22px 22px 0 0; }
  body:not(.page-admin) .customer-referral-track-header { gap: 0.65rem; }
  body:not(.page-admin) .customer-referral-track-avatar { width: 3.5rem; height: 3.5rem; }
  body:not(.page-admin) .customer-referral-track-person h2 { font-size: 1.05rem; }
  body:not(.page-admin) .customer-referral-track-entry { grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.55rem; }
  body:not(.page-admin) .customer-referral-track-entry time { grid-column: 2; text-align: left; }
  body:not(.page-admin) .customer-referral-track-marker { width: 2.1rem; height: 2.1rem; }
  body:not(.page-admin) .customer-referral-track-entry:not(:last-child)::after { top: 3.15rem; left: 1.95rem; }
}
body:not(.page-admin) .invite-earn-rules { overflow: hidden; border: 1px solid #d9eaf5; border-radius: 13px; background: #edf7fc; }
body:not(.page-admin) .invite-earn-rules > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.65rem; min-height: 3.5rem; padding: 0.75rem 0.9rem; color: #173d31; cursor: pointer; list-style: none; }
body:not(.page-admin) .invite-earn-rules > summary::-webkit-details-marker { display: none; }
body:not(.page-admin) .invite-earn-rules-icon { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 50%; background: #fff5d8; font-size: 1rem; }
body:not(.page-admin) .invite-earn-rules > summary strong,
body:not(.page-admin) .invite-earn-rules > summary small { display: block; }
body:not(.page-admin) .invite-earn-rules > summary strong { font-size: 0.88rem; }
body:not(.page-admin) .invite-earn-rules > summary small { margin-top: 0.12rem; color: #65766e; font-size: 0.73rem; }
body:not(.page-admin) .invite-earn-rules-chevron { width: 0.55rem; height: 0.55rem; transform: rotate(45deg); border-right: 2px solid #426153; border-bottom: 2px solid #426153; transition: transform 140ms ease; }
body:not(.page-admin) .invite-earn-rules[open] .invite-earn-rules-chevron { transform: rotate(225deg); }
body:not(.page-admin) .invite-earn-rules-body { padding: 0 0.9rem 0.9rem; color: #40574a; font-size: 0.8rem; line-height: 1.45; }
body:not(.page-admin) .invite-earn-rules-body ol { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; counter-reset: invite-step; }
body:not(.page-admin) .invite-earn-rules-body li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.1rem 0.6rem; align-items: start; counter-increment: invite-step; }
body:not(.page-admin) .invite-earn-rules-body li::before { content: counter(invite-step); display: grid; grid-column: 1; grid-row: 1 / span 2; width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 50%; background: #078453; color: #fff; font-size: 0.72rem; font-weight: 750; }
body:not(.page-admin) .invite-earn-rules-body li > strong { grid-column: 2; color: #1b3027; font-size: 0.78rem; line-height: 1.35; }
body:not(.page-admin) .invite-earn-rules-body li > span { grid-column: 2; color: #5c6c64; font-size: 0.72rem; line-height: 1.4; }
body:not(.page-admin) .invite-earn-rules-body > p { margin: 0.75rem 0 0; padding-top: 0.65rem; border-top: 1px solid #d6e8f1; color: #65766e; font-size: 0.69rem; line-height: 1.45; }
body:not(.page-admin) .invite-earn-rules-body strong { color: #173d31; }
body:not(.page-admin) .invite-earn-panel :focus-visible { outline: 3px solid #d9951a; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  body:not(.page-admin) .invite-earn-rules-chevron { transition: none; }
}
.referral-credit-option { display: flex; align-items: flex-start; gap: 0.55rem; min-width: 0; padding: 0.7rem; border: 1px solid #cfe1d5; border-radius: 10px; background: #f5faf6; color: #244a3b; font-size: 0.88rem; line-height: 1.4; }
.referral-credit-option input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: 0.1rem 0 0; accent-color: #176c4d; }
.referral-credit-option span { min-width: 0; overflow-wrap: anywhere; }
.referral-credit-summary { margin: -0.35rem 0 0; color: #276346; font-size: 0.82rem; font-weight: 650; }
.admin-referral-report { display: grid; gap: 1rem; margin-top: 1.25rem; color: #24352d; }
.admin-referral-dashboard-heading,
.admin-referral-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-referral-dashboard-heading h3,
.admin-referral-table-heading h4,
.admin-referral-card-heading h4,
.admin-referral-explainer h4 { margin: 0; color: #173d31; }
.admin-referral-dashboard-heading h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -0.035em; }
.admin-referral-dashboard-heading p,
.admin-referral-table-heading p { margin: 0.25rem 0 0; color: #6b7971; font-size: 0.86rem; }
.admin-referral-dashboard-actions { display: flex; align-items: end; justify-content: flex-end; gap: 0.6rem; }
.admin-referral-period,
.admin-referral-status-filter { display: grid; gap: 0.3rem; color: #65746b; font-size: 0.71rem; font-weight: 700; }
.admin-referral-period select,
.admin-referral-table-controls input,
.admin-referral-status-filter select { min-height: 2.5rem; padding: 0.55rem 0.7rem; border: 1px solid #dce6df; border-radius: 9px; background: #fff; color: #25372e; font: inherit; }
.admin-referral-dashboard-actions .btn { min-height: 2.5rem; white-space: nowrap; }
.admin-referral-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
.admin-referral-metric { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; min-width: 0; min-height: 7rem; padding: 0.9rem; border: 1px solid #e2eae5; border-radius: 13px; background: #fff; box-shadow: 0 3px 12px rgb(28 62 44 / 3%); }
.admin-referral-metric > div { display: grid; gap: 0.4rem; min-width: 0; }
.admin-referral-metric > div > span { color: #67766d; font-size: 0.72rem; font-weight: 700; }
.admin-referral-metric strong { overflow-wrap: anywhere; color: #193f31; font-size: clamp(1.05rem, 2vw, 1.45rem); letter-spacing: -0.035em; line-height: 1.1; }
.admin-referral-metric small { color: #8a968e; font-size: 0.67rem; line-height: 1.35; }
.admin-referral-metric-icon { display: grid; flex: 0 0 2.1rem; width: 2.1rem; height: 2.1rem; place-items: center; border-radius: 10px; background: #eaf5ee; color: #14734b; font-size: 1rem; font-weight: 800; }
.admin-referral-metric.metric-people { background: #effaf3; }
.admin-referral-metric.metric-gift { background: #eff6ff; }
.admin-referral-metric.metric-earned { background: #fff8e8; }
.admin-referral-metric.metric-used { background: #f5f0ff; }
.admin-referral-metric.metric-reversed { background: #fff0f1; }
.admin-referral-metric.metric-pending { background: #f5f6f7; }
.admin-referral-metric.metric-balance { background: #eaf8ef; }
.metric-gift .admin-referral-metric-icon { background: #deedff; color: #1676d2; }
.metric-earned .admin-referral-metric-icon { background: #fff0cc; color: #bb7200; }
.metric-used .admin-referral-metric-icon { background: #eadfff; color: #7141c8; }
.metric-reversed .admin-referral-metric-icon { background: #ffe0e2; color: #d53b3b; }
.metric-pending .admin-referral-metric-icon { background: #e9edef; color: #62717a; }
.metric-balance .admin-referral-metric-icon { background: #d9f1e1; color: #08754c; }
.metric-earned .admin-referral-metric-icon { font-size: 0.61rem; }
.metric-used .admin-referral-metric-icon { background: #eff4ff; color: #4266a1; }
.metric-reversed .admin-referral-metric-icon,
.metric-pending .admin-referral-metric-icon { background: #fff5e8; color: #a46313; }
.admin-referral-activity-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 0.85fr); gap: 0.8rem; align-items: stretch; }
.admin-referral-activity-card,
.admin-referral-explainer,
.admin-referral-table-card { min-width: 0; padding: 1rem; border: 1px solid #e2eae5; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px rgb(28 62 44 / 3%); }
.admin-referral-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.admin-referral-card-heading h4,
.admin-referral-explainer h4,
.admin-referral-table-heading h4 { font-size: 0.96rem; }
.admin-referral-card-heading > span { color: #748178; font-size: 0.72rem; }
.admin-referral-chart { min-width: 0; margin-top: 0.7rem; }
.admin-referral-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.admin-referral-chart-gridline { stroke: #e8eee9; stroke-width: 1; }
.admin-referral-chart-axis,
.admin-referral-chart-date { fill: #8a968e; font-family: inherit; font-size: 10px; }
.admin-referral-chart-referrals,
.admin-referral-chart-rewards { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.admin-referral-chart-referrals { stroke: #168454; }
.admin-referral-chart-rewards { stroke: #e3a43b; }
.admin-referral-chart-point-referrals { fill: #168454; stroke: #fff; stroke-width: 1.5; }
.admin-referral-chart-point-rewards { fill: #e3a43b; stroke: #fff; stroke-width: 1.5; }
.admin-referral-chart-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 0.3rem; color: #65746b; font-size: 0.71rem; }
.admin-referral-chart-legend span { display: inline-flex; align-items: center; gap: 0.38rem; }
.admin-referral-chart-legend span::before { width: 0.48rem; height: 0.48rem; border-radius: 50%; background: #168454; content: ""; }
.admin-referral-chart-legend .legend-rewards::before { background: #e3a43b; }
.admin-referral-data-note { display: block; margin-top: 0.55rem; color: #87938a; text-align: center; }
.admin-referral-explainer { background: linear-gradient(145deg, #f4faf5, #fff); }
.admin-referral-explainer > p { margin: 0.6rem 0 0; color: #596c60; font-size: 0.79rem; line-height: 1.55; }
.admin-referral-steps { display: grid; gap: 0.7rem; margin: 1rem 0; padding: 0; list-style: none; }
.admin-referral-steps li { display: grid; gap: 0.15rem; padding-left: 0.7rem; border-left: 2px solid #b8dfc6; }
.admin-referral-steps strong { color: #285640; font-size: 0.76rem; }
.admin-referral-steps small { color: #708078; font-size: 0.7rem; line-height: 1.4; }
.admin-referral-rules { padding-top: 0.7rem; border-top: 1px solid #dfeae2; }
.admin-referral-rules summary { color: #176b48; cursor: pointer; font-size: 0.74rem; font-weight: 750; }
.admin-referral-rules p { margin: 0.55rem 0 0; color: #68776e; font-size: 0.71rem; line-height: 1.5; }
.admin-referral-table-card { padding: 0; overflow: hidden; }
.admin-referral-table-heading { padding: 1rem 1rem 0.8rem; }
.admin-referral-table-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.admin-referral-filter-toggle { display: none; }
.admin-referral-table-controls { display: flex; align-items: end; justify-content: flex-end; gap: 0.55rem; }
.admin-referral-table-controls input { width: min(17rem, 35vw); font-size: 0.78rem; }
.admin-referral-status-filter select { min-width: 8.5rem; font-size: 0.78rem; }
.admin-referral-result-count { margin: 0; padding: 0.65rem 1rem; color: #77847c; font-size: 0.72rem; }
.admin-referral-table-scroll { max-width: 100%; overflow-x: auto; border-top: 1px solid #edf1ee; }
.admin-referral-table { width: 100%; min-width: 980px; border-collapse: collapse; text-align: left; }
.admin-referral-table th { padding: 0.65rem 0.55rem; background: #f7faf8; color: #6b7971; font-size: 0.66rem; font-weight: 750; white-space: nowrap; }
.admin-referral-table td { padding: 0.7rem 0.55rem; border-top: 1px solid #edf1ee; color: #4b5b52; font-size: 0.73rem; vertical-align: middle; white-space: nowrap; }
.admin-referral-table td:first-child,
.admin-referral-table th:first-child { padding-left: 1rem; }
.admin-referral-table td:last-child,
.admin-referral-table th:last-child { padding-right: 1rem; text-align: right; }
.admin-referral-person { display: flex; align-items: center; gap: 0.5rem; min-width: 9.5rem; }
.admin-referral-avatar { display: grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #eaf5ee; color: #176b48; font-size: 0.77rem; font-weight: 800; }
.admin-referral-person-referrer .admin-referral-avatar { background: #eff3fb; color: #4f6490; }
.admin-referral-person-copy { display: grid; gap: 0.15rem; min-width: 0; }
.admin-referral-person-copy strong { max-width: 10rem; overflow: hidden; color: #35483d; font-size: 0.72rem; text-overflow: ellipsis; }
.admin-referral-person-copy small,
.admin-referral-table td small { display: block; margin-top: 0.16rem; color: #849088; font-size: 0.66rem; }
.admin-referral-status-badge { display: inline-flex; padding: 0.24rem 0.48rem; border-radius: 999px; background: #eef2ef; color: #68766e; font-size: 0.65rem; font-weight: 750; text-transform: capitalize; }
.admin-referral-status-badge.status-active,
.admin-referral-status-badge.status-rewarded { background: #e7f5eb; color: #167247; }
.admin-referral-status-badge.status-ordered { background: #eef3ff; color: #4d65a0; }
.admin-referral-status-badge.status-review { background: #fff0e7; color: #a45421; }
.admin-referral-status-badge.status-cancelled,
.admin-referral-status-badge.status-refunded { background: #fceced; color: #a1434a; }
.admin-referral-view-button { min-height: 1.9rem; padding: 0.25rem 0.6rem; font-size: 0.68rem; }
.admin-referral-details { display: grid; gap: 0.3rem; padding: 0.35rem 0; white-space: normal; }
.admin-referral-details p { margin: 0; color: #58695f; font-size: 0.72rem; line-height: 1.45; }
.admin-referral-order-details { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.admin-referral-order-details p { padding: 0.35rem 0.5rem; border-radius: 7px; background: #f5f8f6; }
.admin-referral-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; border-top: 1px solid #edf1ee; }
.admin-referral-pagination { display: flex; align-items: center; gap: 0.25rem; padding: 0.55rem 1rem; }
.admin-referral-page-button { display: grid; min-width: 1.9rem; height: 1.9rem; padding: 0 0.35rem; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #516158; cursor: pointer; font: inherit; font-size: 0.72rem; }
.admin-referral-page-button:hover:not(:disabled) { background: #f1f6f2; }
.admin-referral-page-button.is-current { border-color: #d9eadf; background: #eaf5ee; color: #176b48; font-weight: 800; }
.admin-referral-page-button:disabled { color: #bbc4bd; cursor: not-allowed; }
.admin-referral-report :focus-visible { outline: 3px solid #d9951a; outline-offset: 2px; }
@media (max-width: 760px) {
  .admin-referral-dashboard-heading,
  .admin-referral-table-heading { align-items: stretch; flex-direction: column; }
  .admin-referral-dashboard-actions { justify-content: flex-start; }
  .admin-referral-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-referral-activity-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-referral-table-controls { justify-content: flex-start; }
  .admin-referral-table-controls input { width: min(100%, 20rem); }
}
@media (max-width: 520px) {
  .admin-referral-dashboard-heading > div:first-child { display: none; }
  .admin-referral-dashboard-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; width: 100%; }
  .admin-referral-period { min-width: 0; }
  .admin-referral-period select { width: 100%; min-height: 2.7rem; }
  .admin-referral-dashboard-actions .btn { align-self: end; min-height: 2.7rem; }
  .admin-referral-metrics { gap: 0.55rem; }
  .admin-referral-metric { min-height: 6.2rem; padding: 0.7rem; border-radius: 11px; }
  .admin-referral-metric.metric-balance { grid-column: 1 / -1; min-height: 5.5rem; }
  .admin-referral-metric-icon { flex-basis: 1.8rem; width: 1.8rem; height: 1.8rem; }
  .admin-referral-metric strong { font-size: 1.05rem; }
  .admin-referral-metric > div > span { font-size: 0.67rem; }
  .admin-referral-metric small { font-size: 0.63rem; }
  .admin-referral-activity-card,
  .admin-referral-explainer,
  .admin-referral-table-card { border-radius: 12px; }
  .admin-referral-table-heading { display: grid; gap: 0.65rem; padding: 0.8rem; }
  .admin-referral-table-top { align-items: center; }
  .admin-referral-table-heading h4 { font-size: 0.9rem; }
  .admin-referral-table-heading p { display: none; }
  .admin-referral-filter-toggle { display: inline-flex; align-items: center; min-height: 2rem; padding: 0.35rem 0.65rem; font-size: 0.7rem; }
  .admin-referral-table-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .admin-referral-table-controls input { width: 100%; min-height: 2.55rem; }
  .admin-referral-status-filter { display: none; }
  .admin-referral-table-controls.filters-open .admin-referral-status-filter { display: grid; }
  .admin-referral-table-scroll { overflow: visible; border-top: 0; }
  .admin-referral-table { display: block; min-width: 0; }
  .admin-referral-table thead { display: none; }
  .admin-referral-table tbody { display: grid; gap: 0.55rem; padding: 0 0.55rem; }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid #e7ece8;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 8px rgb(28 62 44 / 3%);
  }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    min-width: 0;
    padding: 0.52rem 0.65rem;
    border-top: 1px solid #f0f3f1;
    font-size: 0.7rem;
    white-space: normal;
  }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td::before {
    flex: 0 0 auto;
    color: #78867e;
    content: attr(data-label);
    font-size: 0.65rem;
  }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(1) { display: none; }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    padding-top: 0.7rem;
    border-top: 0;
  }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(2)::before { display: none; }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(5) { grid-column: 1; grid-row: 4; }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(6) { grid-column: 2; grid-row: 4; }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(7) { grid-column: 1; grid-row: 5; }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(8) { grid-column: 2; grid-row: 5; }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(9) { grid-column: 1 / -1; grid-row: 6; }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(10) {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    border-top: 0;
  }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(10)::before { display: none; }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(11) {
    grid-column: 1 / -1;
    grid-row: 7;
    justify-content: stretch;
    padding: 0.55rem 0.65rem;
  }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(11)::before { display: none; }
  .admin-referral-table tbody > tr:not(.admin-referral-detail-row) > td:nth-child(11) button { width: 100%; min-height: 2.3rem; }
  .admin-referral-person { min-width: 0; }
  .admin-referral-person-copy strong { max-width: 11rem; }
  .admin-referral-table tbody > .admin-referral-detail-row { display: block; }
  .admin-referral-detail-row td { display: block; padding: 0.55rem; white-space: normal; }
  .admin-referral-table-footer { align-items: center; flex-direction: row; gap: 0.2rem; }
  .admin-referral-result-count { padding: 0.6rem 0.75rem; font-size: 0.67rem; }
  .admin-referral-pagination { align-self: auto; gap: 0.1rem; padding: 0.45rem 0.6rem; }
  .admin-referral-page-button { min-width: 1.7rem; height: 1.7rem; }
}
@media (max-width: 760px) {
  body:not(.page-admin) .invite-earn-top,
  body:not(.page-admin) .invite-earn-tools-grid,
  body:not(.page-admin) .invite-earn-activity-grid { grid-template-columns: minmax(0, 1fr); }
  body:not(.page-admin) .invite-earn-top { gap: 0.65rem; }
  body:not(.page-admin) .invite-earn-activity-grid { gap: 0.65rem; }
}
@media (max-width: 520px) {
  body:not(.page-admin) .customer-referral-directory { gap: 0.85rem; }
  body:not(.page-admin) .customer-referral-directory > .profile-detail-note { font-size: 0.78rem; }
  body:not(.page-admin) .customer-referral-link-card { padding: 0.8rem; border-radius: 13px; }
  body:not(.page-admin) .customer-referral-link-controls { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  body:not(.page-admin) .customer-referral-link-field input { padding-inline: 0.65rem; font-size: 0.73rem; }
  body:not(.page-admin) .customer-referral-link-field button { flex-basis: 2.5rem; }
  body:not(.page-admin) .customer-referral-whatsapp { width: 100%; min-height: 2.65rem; font-size: 0.75rem; }
  body:not(.page-admin) .customer-referral-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  body:not(.page-admin) .customer-referral-stat { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 0.14rem 0.5rem; min-height: 5.2rem; padding: 0.65rem; border-radius: 12px; }
  body:not(.page-admin) .customer-referral-stat > span { grid-row: 1 / span 2; width: 1.9rem; height: 1.9rem; font-size: 0.9rem; }
  body:not(.page-admin) .customer-referral-stat > strong { font-size: 0.9rem; }
  body:not(.page-admin) .customer-referral-stat > small { font-size: 0.63rem; }
  body:not(.page-admin) .customer-referral-tabs { gap: 0.25rem; }
  body:not(.page-admin) .customer-referral-tabs button { flex: 1; min-height: 2.75rem; padding-inline: 0.35rem; font-size: 0.75rem; }
  body:not(.page-admin) .customer-referral-list-controls { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  body:not(.page-admin) .customer-referral-search,
  body:not(.page-admin) .customer-referral-filter { min-height: 2.65rem; gap: 0.4rem; padding-inline: 0.65rem; }
  body:not(.page-admin) .customer-referral-search input,
  body:not(.page-admin) .customer-referral-filter select { font-size: 0.73rem; }
  body:not(.page-admin) .customer-referral-item-heading { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.45rem; }
  body:not(.page-admin) .customer-referral-avatar { width: 2.2rem; height: 2.2rem; font-size: 0.7rem; }
  body:not(.page-admin) .customer-referral-name strong { font-size: 0.78rem; }
  body:not(.page-admin) .customer-referral-name small { font-size: 0.63rem; }
  body:not(.page-admin) .customer-referral-status { padding: 0.25rem 0.45rem; font-size: 0.61rem; }
  body:not(.page-admin) .customer-referral-track { min-height: 2rem; padding: 0.3rem 0.5rem; font-size: 0.68rem; }
  body:not(.page-admin) .customer-referral-status { grid-column: 2; grid-row: 2; justify-self: start; }
  body:not(.page-admin) .customer-referral-track { grid-column: 3; grid-row: 1 / span 2; }
  body:not(.page-admin) .customer-referral-item-metric { gap: 0.35rem; padding-inline: 0.35rem; }
  body:not(.page-admin) .customer-referral-item-metric > span:first-child { flex-basis: 1.5rem; width: 1.5rem; height: 1.5rem; font-size: 0.75rem; }
  body:not(.page-admin) .customer-referral-item-metric small { font-size: 0.58rem; }
  body:not(.page-admin) .customer-referral-item-metric strong { font-size: 0.69rem; }
  body:not(.page-admin) .invite-earn-panel { gap: 0.7rem; }
  body:not(.page-admin) .invite-earn-card-heading p,
  body:not(.page-admin) .invite-earn-tip,
  body:not(.page-admin) .invite-earn-section-heading p,
  body:not(.page-admin) .invite-earn-rules > summary small { display: none; }
  body:not(.page-admin) .invite-earn-balance { padding: 0.85rem; }
  body:not(.page-admin) .invite-earn-card { padding: 0.4rem 0; }
  body:not(.page-admin) .invite-earn-share { gap: 0.45rem; padding: 0; border: 0; border-radius: 0; background: transparent; }
  body:not(.page-admin) .invite-earn-code-card { gap: 0.45rem; }
  body:not(.page-admin) .invite-earn-compact-heading { font-size: 0.78rem; }
  body:not(.page-admin) .invite-earn-empty-state { min-height: 5rem; }
  body:not(.page-admin) .invite-earn-empty-state svg { width: 2rem; height: 1.75rem; }
  body:not(.page-admin) .invite-earn-empty-state strong { font-size: 0.76rem; }
  body:not(.page-admin) .invite-earn-empty-state p { font-size: 0.63rem; }
  body:not(.page-admin) .invite-earn-rules-body { padding: 0 0.75rem 0.75rem; }
}
@media (max-width: 380px) {
  body.customer-profile-detail-open .profile-detail-header { gap: 0.35rem; }
  body.customer-profile-detail-open .profile-back-button { width: 2.25rem; min-width: 2.25rem; height: 2.25rem; min-height: 2.25rem; }
  body.customer-profile-detail-open .profile-detail-header h3 { font-size: 1rem; white-space: nowrap; }
  body:not(.page-admin) .customer-referral-link-card { padding: 0.7rem; }
  body:not(.page-admin) .customer-referral-item-heading { grid-template-columns: auto minmax(0, 1fr) auto; }
  body:not(.page-admin) .customer-referral-track { grid-column: 3; grid-row: 1; }
  body:not(.page-admin) .customer-referral-status { grid-column: 2; grid-row: 2; justify-self: start; }
  body:not(.page-admin) .customer-referral-item-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.page-admin) .customer-referral-item-metric { gap: 0.25rem; padding-inline: 0.2rem; }
  body:not(.page-admin) .customer-referral-item-metric > span:first-child { display: none; }
  body:not(.page-admin) .customer-referral-item-metric small { font-size: 0.55rem; }
  body:not(.page-admin) .customer-referral-item-metric strong { font-size: 0.64rem; }
  body:not(.page-admin) .invite-earn-link-row input { padding-inline: 0.45rem; font-size: 0.73rem; }
  body:not(.page-admin) .invite-earn-code-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem; }
  body:not(.page-admin) .invite-earn-code-row .btn { padding-inline: 0.5rem; font-size: 0.73rem; }
  body:not(.page-admin) .invite-earn-list li { gap: 0.25rem 0.4rem; }
  body:not(.page-admin) .invite-earn-list li > time { font-size: 0.66rem; }
}

body.customer-profile-detail-open #customer-panel {
  margin-block: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.customer-profile-detail-open .profile-overview { display: none; }
body.customer-profile-detail-open .profile-detail-screen {
  margin: 0;
  padding: 1.4rem;
  border: 1px solid #e7ece9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgb(20 55 42 / 6%);
}
@media (max-width: 760px) {
  body.customer-profile-detail-open main.wrap { padding-top: 0.45rem; overflow-x: clip; }
  body.customer-profile-detail-open .profile-detail-screen {
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid #e7ece9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgb(20 55 42 / 6%);
  }
  body.customer-profile-detail-open .profile-detail-header { grid-template-columns: 2.75rem minmax(0, 1fr); align-items: center; gap: 0.15rem 0.7rem; }
  body.customer-profile-detail-open .profile-back-button { width: 2.75rem; min-width: 2.75rem; height: 2.75rem; min-height: 2.75rem; }
  body.customer-profile-detail-open .profile-back-button svg { width: 1.2rem; height: 1.2rem; }
  body.customer-profile-detail-open .profile-detail-header h3 { font-size: 1.05rem; }
  body.customer-profile-detail-open .profile-detail-intro { font-size: 0.82rem; line-height: 1.3; }
  body:not(.page-admin) .invite-earn-panel { gap: 0.55rem; }
  body:not(.page-admin) .invite-earn-top,
  body:not(.page-admin) .invite-earn-tools-grid,
  body:not(.page-admin) .invite-earn-activity-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.55rem; }
  body:not(.page-admin) .invite-earn-balance { gap: 0.25rem 0.6rem; padding: 0.75rem; border-radius: 12px; }
  body:not(.page-admin) .invite-earn-balance > strong { font-size: 1.65rem; }
  body:not(.page-admin) .invite-earn-shop-button { min-height: 2.45rem; }
  body:not(.page-admin) .invite-earn-card {
    gap: 0.45rem;
    padding: 0.4rem 0;
    border: 0;
    border-bottom: 1px solid #e8e2d6;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body:not(.page-admin) .invite-earn-card-heading { gap: 0.45rem; }
  body:not(.page-admin) .invite-earn-card-icon { display: none; }
  body:not(.page-admin) .invite-earn-card-heading h3,
  body:not(.page-admin) .invite-earn-section-heading h3 { font-size: 0.92rem; }
  body:not(.page-admin) .invite-earn-section { gap: 0.35rem; }
  body:not(.page-admin) .invite-earn-rules { border: 1px solid #d9eaf5; border-radius: 12px; background: #edf7fc; }
  body:not(.page-admin) .invite-earn-rules > summary { min-height: 2.8rem; padding: 0.55rem 0; }
  body:not(.page-admin) .invite-earn-rules-body { padding: 0 0.75rem 0.75rem; }
}
body:not(.page-admin) .profile-detail-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; min-width: 0; padding: 0.85rem; border: 1px solid #e3ece8; border-radius: 13px; background: #fff; box-shadow: 0 3px 12px rgb(20 55 42 / 3%); }
body:not(.page-admin) .profile-detail-icon { flex-basis: 2.55rem; width: 2.55rem; height: 2.55rem; padding: 0.62rem; text-align: center; }
body:not(.page-admin) .profile-location-icon { color: #067360; }
body:not(.page-admin) .profile-detail-copy { display: grid; min-width: 0; gap: 0.2rem; }
body:not(.page-admin) .profile-detail-copy > span { color: #4c5c70; font-size: 0.85rem; }
body:not(.page-admin) .profile-detail-copy > strong { overflow-wrap: anywhere; color: #26384b; font-size: 1rem; font-weight: 500; }
body:not(.page-admin) .profile-edit-button { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2.2rem; padding: 0.35rem 0.6rem; border: 1px solid #e0eae5; border-radius: 999px; background: #fff; color: #174936; font: inherit; font-size: 0.8rem; cursor: pointer; }
body:not(.page-admin) .profile-edit-form { display: grid; grid-column: 1 / -1; gap: 0.4rem; width: 100%; }
body:not(.page-admin) .profile-edit-form label { color: #465b51; font-size: 0.8rem; font-weight: 650; }
body:not(.page-admin) .profile-edit-form input { width: 100%; min-width: 0; min-height: 2.45rem; padding: 0.5rem 0.7rem; border: 1px solid #d9e5df; border-radius: 9px; font: inherit; }
body:not(.page-admin) .profile-edit-form > div { display: flex; gap: 0.4rem; }
body:not(.page-admin) .profile-edit-form .btn { min-height: 2rem; padding: 0.35rem 0.7rem; font-size: 0.8rem; }
body:not(.page-admin) .profile-edit-form .form-error { margin: 0; font-size: 0.8rem; }
body:not(.page-admin) .profile-edit-form.is-saving { outline: 2px solid #e2bd70; outline-offset: 2px; border-radius: 12px; }
body:not(.page-admin) .profile-active-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.45rem 0.65rem; border-radius: 999px; background: #e9f6f0; color: #08735a; font-size: 0.78rem; white-space: nowrap; }
body:not(.page-admin) .profile-active-badge > span { display: grid; width: 1rem; height: 1rem; place-items: center; border-radius: 50%; background: #07845b; color: white; font-size: 0.68rem; }
body:not(.page-admin) .profile-help-panel { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(23rem, 0.9fr); align-items: center; gap: 0.8rem; margin-top: 0.85rem; padding: 0.8rem 0.9rem; border-radius: 13px; background: #fffaf0; }
body:not(.page-admin) .profile-help-icon { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: 50%; background: #fff0c7; color: #b67a00; font-size: 1.4rem; }
body:not(.page-admin) .profile-help-copy { display: grid; gap: 0.2rem; min-width: 0; }
body:not(.page-admin) .profile-help-copy strong { color: #152d48; font-size: 1rem; }
body:not(.page-admin) .profile-help-copy > span { color: var(--muted); font-size: 0.82rem; }
body:not(.page-admin) .profile-contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
body:not(.page-admin) .profile-contact-button { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-width: 0; min-height: 3rem; padding: 0.35rem; border: 1px solid #138362; border-radius: 10px; color: #08735a; text-decoration: none; font-weight: 700; }
body:not(.page-admin) .profile-contact-button > span:first-child { font-size: 1.2rem; }
body:not(.page-admin) .profile-contact-button > span:last-child { display: grid; gap: 0.05rem; }
body:not(.page-admin) .profile-contact-button small { color: inherit; font-size: 0.7rem; font-weight: 400; }
body:not(.page-admin) .profile-call-button { background: #08735a; color: white; }
body:not(.page-admin) .profile-whatsapp-button { background: #fff; }
body:not(.page-admin) .app-settings { display: grid; gap: 0.6rem; margin-top: 0.9rem; padding: 0.9rem; border: 1px solid #d6ebe2; border-radius: 14px; background: #f5fbf8; }
body:not(.page-admin) .app-settings-heading { display: flex; align-items: center; gap: 0.7rem; }
body:not(.page-admin) .app-settings-heading img { flex: 0 0 auto; border-radius: 11px; }
body:not(.page-admin) .app-settings-heading h3 { margin: 0; color: #102849; font-size: 1.1rem; }
body:not(.page-admin) .app-settings-heading p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.85rem; }
body:not(.page-admin) .customer-notifications-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 4.15rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d6e8df;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
body:not(.page-admin) .customer-notifications-button:hover { border-color: #9ac9b4; background: #f8fcfa; }
body:not(.page-admin) .customer-notifications-button:active { transform: scale(0.99); }
body:not(.page-admin) .customer-notifications-button-icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 50%; background: #e4f4ed; color: #08735a; }
body:not(.page-admin) .customer-notifications-button-icon svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body:not(.page-admin) .customer-notifications-button-copy { display: grid; gap: 0.2rem; min-width: 0; }
body:not(.page-admin) .customer-notifications-button-copy strong { color: #26384b; font-size: 0.98rem; }
body:not(.page-admin) .customer-notifications-button-copy small { color: var(--muted); font-size: 0.8rem; }
body:not(.page-admin) .customer-notifications-chevron { color: #718079; font-size: 1.6rem; line-height: 1; }
body:not(.page-admin) .profile-detail-notifications { gap: 0.65rem; min-width: 0; }
body:not(.page-admin) .customer-notifications-description { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
body:not(.page-admin) .customer-notifications-menu { position: relative; display: inline-flex; }
body:not(.page-admin) .profile-detail-header > .customer-notifications-menu { display: none; margin-left: auto; }
body.customer-notifications-open .profile-detail-header > .customer-notifications-menu { display: inline-flex; }
body:not(.page-admin) .customer-notifications-menu > summary { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; list-style: none; border: 1px solid #dce6df; border-radius: 11px; background: #fff; color: #294b3a; font-size: 1.5rem; font-weight: 800; line-height: 1; cursor: pointer; }
body:not(.page-admin) .customer-notifications-menu > summary::-webkit-details-marker { display: none; }
body:not(.page-admin) .customer-notifications-menu > summary:hover,
body:not(.page-admin) .customer-notifications-menu[open] > summary { border-color: #9dcab0; background: #f2f8f4; }
body:not(.page-admin) .customer-notifications-menu > summary:focus-visible,
body:not(.page-admin) .customer-notifications-menu-panel :focus-visible { outline: 2px solid #08735a; outline-offset: 2px; }
body:not(.page-admin) .customer-notifications-menu-panel { position: absolute; z-index: 20; top: calc(100% + 0.35rem); right: 0; display: grid; min-width: 13rem; gap: 0.25rem; padding: 0.45rem; border: 1px solid #e0e8e2; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgb(20 55 42 / 14%); }
body:not(.page-admin) .customer-notifications-menu:not([open]) > .customer-notifications-menu-panel { display: none; }
body:not(.page-admin) .customer-notifications-menu-panel > button { min-height: 2.45rem; padding: 0.55rem 0.7rem; border: 0; border-radius: 8px; background: transparent; color: #253b30; font: inherit; font-size: 0.84rem; font-weight: 650; text-align: left; cursor: pointer; }
body:not(.page-admin) .customer-notifications-menu-panel > button:hover { background: #f2f8f4; }
body:not(.page-admin) .customer-notifications-menu-panel > button[data-notifications-clear-read] { color: #9a3d31; }
body:not(.page-admin) .customer-notifications-menu-panel > button:disabled { color: #87948d; cursor: not-allowed; }
body:not(.page-admin) .customer-notifications-controls { display: grid; gap: 0.8rem; min-width: 0; padding: 0; border: 0; background: transparent; }
body:not(.page-admin) .customer-notifications-status-tabs { display: flex; min-width: 0; gap: 0.2rem; padding: 0.25rem; border-radius: 13px; background: #e7e9e2; }
body:not(.page-admin) .customer-notifications-status-tabs button { display: inline-flex; flex: 1 1 0; justify-content: center; align-items: center; gap: 0.4rem; min-width: 0; min-height: 2.55rem; padding: 0.4rem 0.45rem; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #52635a; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
body:not(.page-admin) .customer-notifications-status-tabs button:hover { background: rgb(255 255 255 / 45%); }
body:not(.page-admin) .customer-notifications-status-tabs button.is-active { border-color: #e5e8e1; background: #fff; color: var(--header-dark); box-shadow: 0 1px 3px rgb(20 55 42 / 8%); }
body:not(.page-admin) .customer-notifications-status-tabs button span { display: grid; min-width: 1.25rem; height: 1.25rem; place-items: center; padding: 0 0.25rem; border-radius: 999px; background: rgb(20 84 58 / 11%); font-size: 0.7rem; }
body:not(.page-admin) .customer-notifications-status-tabs button:focus-visible,
body:not(.page-admin) .customer-notifications-search input:focus-visible,
body:not(.page-admin) .customer-notifications-reset:focus-visible { outline: 2px solid #08735a; outline-offset: 2px; }
body:not(.page-admin) .customer-notifications-search-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.55rem; min-width: 0; }
body:not(.page-admin) .customer-notifications-search { display: flex; align-items: center; gap: 0.45rem; min-width: 0; min-height: 2.25rem; padding: 0 0.65rem; border: 1px solid #dce6e0; border-radius: 9px; background: #fff; color: #65766d; }
body:not(.page-admin) .customer-notifications-search > span { font-size: 1.2rem; line-height: 1; }
body:not(.page-admin) .customer-notifications-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #263b31; font: inherit; font-size: 0.84rem; line-height: 1.2; }
body:not(.page-admin) .customer-notifications-category-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; min-width: 0; }
body:not(.page-admin) .customer-notifications-category-chips button { min-height: 2.2rem; padding: 0.4rem 0.85rem; border: 1px solid #e0e8e2; border-radius: 999px; background: #fff; color: #294b3a; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
body:not(.page-admin) .customer-notifications-category-chips button:hover { border-color: #9dcab0; background: #f3f8f5; }
body:not(.page-admin) .customer-notifications-category-chips button.is-active { border-color: var(--header-dark); background: var(--header-dark); color: #fff; }
body:not(.page-admin) .customer-notifications-category-chips button:focus-visible { outline: 2px solid #08735a; outline-offset: 2px; }
@media (max-width: 680px) {
  body:not(.page-admin) .customer-notifications-category-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 2px 4px;
    margin: -2px -2px -4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  body:not(.page-admin) .customer-notifications-category-chips::-webkit-scrollbar { display: none; }
  body:not(.page-admin) .customer-notifications-category-chips button { flex: 0 0 auto; }
}
body:not(.page-admin) .customer-notifications-list { display: grid; gap: 0.65rem; width: 100%; min-width: 0; margin: 0; }
body:not(.page-admin) .customer-notifications-group-heading { margin: 0.4rem 0 0; color: #6c7b73; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
body:not(.page-admin) .customer-notification-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 0.45rem; min-width: 0; }
body:not(.page-admin) .customer-notification-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 0.7rem; width: 100%; min-width: 0; padding: 0.9rem; border: 1px solid #e2eae5; border-radius: 13px; background: #fff; color: inherit; box-shadow: 0 3px 12px rgb(20 55 42 / 3%); font: inherit; text-align: left; cursor: pointer; }
body:not(.page-admin) .customer-notification-card.is-unread { border-color: #b6daca; background: #f2faf6; }
body:not(.page-admin) .customer-notification-card:hover { border-color: #8ec1a7; background: #f5fbf8; }
body:not(.page-admin) .customer-notification-card:focus-visible { outline: 2px solid #08735a; outline-offset: 2px; }
body:not(.page-admin) .customer-notification-card.is-selected { box-shadow: 0 0 0 3px rgb(8 115 90 / 18%); }
body:not(.page-admin) .customer-notification-card.is-compact { gap: 0.55rem; padding: 0.65rem; border-radius: 10px; box-shadow: none; }
body:not(.page-admin) .customer-notification-card.is-compact .customer-notification-icon { width: 1.9rem; height: 1.9rem; font-size: 0.9rem; }
body:not(.page-admin) .customer-notification-icon { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: 50%; background: #e4f4ed; color: #08735a; font-size: 1.1rem; font-weight: 800; }
body:not(.page-admin) .customer-notification-copy { display: grid; gap: 0.35rem; min-width: 0; overflow-wrap: anywhere; }
body:not(.page-admin) .customer-notification-copy strong { color: #173d31; font-size: 0.95rem; }
body:not(.page-admin) .customer-notification-copy .customer-notification-amount { color: #173d31; font-size: 0.92rem; }
body:not(.page-admin) .customer-notification-copy > span { color: #465a50; font-size: 0.88rem; line-height: 1.45; overflow-wrap: anywhere; }
body:not(.page-admin) .customer-notification-card.is-compact .customer-notification-copy > span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 0.78rem; }
body:not(.page-admin) .customer-notification-card.is-compact.is-expanded .customer-notification-copy > span { display: block; overflow: visible; -webkit-line-clamp: unset; }
body:not(.page-admin) .customer-notification-card.is-compact .customer-notification-copy strong { font-size: 0.84rem; }
body:not(.page-admin) .customer-notification-card.is-compact .customer-notification-copy time { font-size: 0.68rem; }
body:not(.page-admin) .customer-notification-copy time { color: #76817b; font-size: 0.74rem; }
body:not(.page-admin) .customer-notification-action { color: #08735a; font-size: 0.78rem; font-weight: 750; }
body:not(.page-admin) .customer-notification-unread { width: 0.55rem; height: 0.55rem; margin-top: 0.35rem; border-radius: 50%; background: #0a8a62; }
body:not(.page-admin) .customer-notification-delete { display: grid; align-self: start; width: 2.4rem; height: 2.4rem; place-items: center; padding: 0; border: 1px solid #e2eae5; border-radius: 8px; background: #fff; color: #8b2e24; cursor: pointer; }
body:not(.page-admin) .customer-notification-delete svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body:not(.page-admin) .customer-notification-delete:hover { border-color: #d9aaa5; background: #fff8f7; }
body:not(.page-admin) .customer-notification-delete:disabled { cursor: wait; opacity: 0.65; }
body:not(.page-admin) .customer-notifications-empty { margin: 0; padding: 2rem 1rem; border: 1px dashed #cddbd3; border-radius: 14px; color: var(--muted); text-align: center; }
body:not(.page-admin) .customer-notifications-reset { margin-top: 0.7rem; padding: 0.35rem 0.6rem; border: 0; border-radius: 7px; background: #e7f4ed; color: #126344; font: inherit; font-size: 0.82rem; font-weight: 750; cursor: pointer; }
body:not(.page-admin) .customer-notifications-status { width: 100%; margin: 0; color: #8b2e24; font-size: 0.88rem; }
body:not(.page-admin) .customer-notifications-status:empty { display: none; }
body:not(.page-admin) .customer-notifications-status[data-tone="success"] { color: #176746; }
body:not(.page-admin) .customer-alerts-list .customer-notification-copy > span { font-size: 0.78rem; }
body:not(.page-admin) .customer-alerts-list .customer-notification-action { font-size: 0.72rem; }
@media (max-width: 680px) {
  body:not(.page-admin) .customer-alerts-popup {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 4.3rem);
    right: max(0.5rem, env(safe-area-inset-right));
    width: min(24rem, calc(100vw - 1rem));
    max-height: calc(100dvh - 5rem - env(safe-area-inset-top));
  }
  body:not(.page-admin) .customer-alerts-popup-header { align-items: flex-start; }
  body:not(.page-admin) .customer-alerts-popup-actions { max-width: 70%; }
  body:not(.page-admin) .profile-detail-header > .customer-notifications-menu > summary { width: 2.8rem; height: 2.8rem; }
  body:not(.page-admin) .customer-notification-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.55rem; padding: 0.75rem; }
}
body:not(.page-admin) .app-setting { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.5rem 0.75rem; padding: 0.8rem; border: 1px solid #e3ece8; border-radius: 12px; background: #fff; transition: box-shadow 0.3s, border-color 0.3s; }
body:not(.page-admin) .app-setting.app-setting-stacked { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
body:not(.page-admin) .app-setting.is-highlighted { border-color: #08735a; box-shadow: 0 0 0 3px rgb(8 115 90 / 20%); }
body:not(.page-admin) .app-setting-icon { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: 50%; background: #e4f4ed; color: #08735a; }
body:not(.page-admin) .app-setting-icon svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body:not(.page-admin) .app-setting-copy { display: grid; gap: 0.2rem; min-width: 0; }
body:not(.page-admin) .app-setting-copy > strong { color: #26384b; font-size: 1rem; }
body:not(.page-admin) .app-setting-status { color: var(--muted); font-size: 0.86rem; }
body:not(.page-admin) .app-setting-status[data-tone="on"] { color: #07845b; font-weight: 700; }
body:not(.page-admin) .app-setting-status[data-tone="warn"] { color: #a45a00; font-weight: 700; }
body:not(.page-admin) .app-setting-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }
body:not(.page-admin) .app-setting-actions .btn { min-height: 2.75rem; white-space: nowrap; }
body:not(.page-admin) .app-setting-actions:not(:has(.btn:not([hidden]))) { display: none; }
body:not(.page-admin) .app-setting-help { grid-column: 2 / -1; color: #33485c; font-size: 0.88rem; }
body:not(.page-admin) .app-setting-help p { margin: 0; }
body:not(.page-admin) .app-setting-help ol { display: grid; gap: 0.3rem; margin: 0.35rem 0 0; padding-left: 1.3rem; }
body:not(.page-admin) .app-setting-help p + ol { margin-top: 0.45rem; }
body:not(.page-admin) .app-setting-help strong { color: #102849; }
body:not(.page-admin) .app-setting-choices { display: grid; }
body:not(.page-admin) .app-setting-choice { display: flex; min-width: 0; min-height: 2.8rem; align-items: center; gap: 0.7rem; padding: 0.55rem 0.25rem; border-top: 1px solid #e8eeeb; color: #33423b; font-size: 0.9rem; font-weight: 600; line-height: 1.35; cursor: pointer; }
body:not(.page-admin) .app-setting-choice:focus-within { outline: 2px solid #08735a; outline-offset: 2px; }
body:not(.page-admin) .app-setting-choice input[type="checkbox"] { flex: 0 0 1.1rem; width: 1.1rem; min-width: 1.1rem; height: 1.1rem; min-height: 1.1rem; margin: 0; accent-color: #08735a; }
body:not(.page-admin) .app-setting-choice span { min-width: 0; overflow-wrap: anywhere; }
body:not(.page-admin) .text-size-choices { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body:not(.page-admin) .text-size-choices .btn { min-width: 0; padding-inline: 0.45rem; white-space: normal; }

.pull-refresh-indicator {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #dce9e3;
  border-radius: 999px;
  background: #fff;
  color: var(--header-dark);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgb(12 47 34 / 16%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.pull-refresh-indicator.is-visible {
  opacity: 1;
  transform: translate(-50%, var(--pull-distance, 0px));
}
.pull-refresh-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid #dce9e3;
  border-top-color: #16834b;
  border-radius: 50%;
}
.pull-refresh-indicator.is-refreshing .pull-refresh-spinner { animation: pull-refresh-spin 0.7s linear infinite; }
@keyframes pull-refresh-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  body:not(.page-admin) .batch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  /* Keep mobile browsers from zooming the page when a field receives focus. */
  input:not([type="file"]),
  select,
  textarea { font-size: 16px !important; }
  input:not([type="file"]),
  select,
  textarea { min-width: 0; max-width: 100%; }
  body:not(.page-admin) { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); font-size: 15px; }
  body:not(.page-admin) .wrap { width: min(100% - 1.4rem, 72rem); }
  body:not(.page-admin):not(.customer-signed-in) #customer-panel { padding: 0; }
  body:not(.page-admin) .auth-card { margin: 1rem auto; padding: 1.35rem 1.1rem; border-radius: 16px; }
  body:not(.page-admin) .auth-heading { margin-bottom: 1.05rem; }
  body:not(.page-admin) .auth-heading p { font-size: 0.94rem; }
  body:not(.page-admin) .auth-tabs { margin-bottom: 1.25rem; }
  body:not(.page-admin) .auth-tab { min-height: 2.8rem; }
  body:not(.page-admin) .auth-card #signup-form { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  body:not(.page-admin) .auth-card #signup-form > * { grid-column: 1 !important; }
  body:not(.page-admin) .auth-card .field { margin-bottom: 0.85rem; }
  body:not(.page-admin) .auth-input-wrap,
  body:not(.page-admin) .auth-card .field > input { min-height: 3.2rem; }
  body:not(.page-admin) .auth-input-wrap input { height: 3rem; font-size: 16px; }
  body:not(.page-admin) .auth-card form > button[type="submit"] { min-height: 3.2rem; }
  body:not(.page-admin) .auth-create-account { min-height: 3.2rem; }
  body:not(.page-admin) #customer-panel { padding: 0.9rem; }
  body:not(.page-admin) .profile-heading { align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; }
  body:not(.page-admin) .profile-heading-title { gap: 0.5rem; }
  body:not(.page-admin) .profile-heading-title h2 { font-size: 1.05rem; }
  body:not(.page-admin) .profile-heading-title p { font-size: 0.74rem; }
  body:not(.page-admin) .profile-heading-icon { flex-basis: 2.2rem; width: 2.2rem; height: 2.2rem; padding: 0.55rem; }
  body:not(.page-admin) .profile-signout { min-height: 2.2rem; padding: 0.35rem 0.5rem; font-size: 0.68rem; white-space: nowrap; }
  body:not(.page-admin) .profile-overview { grid-template-columns: 1fr; gap: 0.7rem; padding: 0 0 0.8rem; }
  body:not(.page-admin) .profile-identity { gap: 0.65rem; }
  body:not(.page-admin) .profile-avatar-wrap,
  body:not(.page-admin) .profile-avatar { flex-basis: 3.8rem; width: 3.8rem; height: 3.8rem; }
  body:not(.page-admin) .profile-avatar { font-size: 1.8rem; }
  body:not(.page-admin) .profile-camera { width: 1.45rem; height: 1.45rem; }
  body:not(.page-admin) .profile-identity-copy > strong { margin-bottom: 0.3rem; font-size: 1.1rem; }
  body:not(.page-admin) .profile-chips { gap: 0.28rem; }
  body:not(.page-admin) .profile-chips > span { padding: 0.28rem 0.45rem; font-size: 0.72rem; }
  body:not(.page-admin) .profile-member-since { margin-top: 0.3rem; font-size: 0.74rem; }
  body:not(.page-admin) .profile-status { gap: 0.55rem; padding: 0.65rem; }
  body:not(.page-admin) .profile-status-icon { flex-basis: 1.7rem; width: 1.7rem; height: 1.7rem; }
  body:not(.page-admin) .profile-status > div { grid-template-columns: auto 1fr; align-items: center; gap: 0.1rem 0.5rem; }
  body:not(.page-admin) .profile-status > div > span { font-size: 0.75rem; }
  body:not(.page-admin) .profile-status strong { font-size: 0.9rem; }
  body:not(.page-admin) .profile-status small { grid-column: 1 / -1; font-size: 0.72rem; }
  body:not(.page-admin) .profile-details-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  body:not(.page-admin) .profile-settings-group { margin-top: 0.7rem; padding: 0.7rem; }
  body:not(.page-admin) .profile-hub-group { margin-top: 0.7rem; }
  body:not(.page-admin) .profile-hub-section { padding-inline: 0.8rem; }
  body:not(.page-admin) .profile-hub-row { min-height: 3rem; padding-inline: 0.2rem; }
  body:not(.page-admin) .profile-hub-icon { width: 1.8rem; height: 1.8rem; font-size: 1rem; }
  body:not(.page-admin) .profile-detail-screen { margin-top: 0.7rem; padding: 0.7rem; }
  body.customer-profile-detail-open #customer-panel { padding: 0; }
  body.customer-profile-detail-open .profile-detail-screen { margin-top: 0; padding: 0.8rem; }
  body:not(.page-admin) .profile-settings-heading { margin-bottom: 0.55rem; }
  body:not(.page-admin) .profile-settings-heading h3 { font-size: 0.92rem; }
  body:not(.page-admin) .profile-settings-heading p { font-size: 0.72rem; }
  body:not(.page-admin) .profile-security-group .customer-pin-form { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  body:not(.page-admin) .profile-security-group .customer-pin-form > label { grid-row: auto; margin-top: 0.35rem; }
  body:not(.page-admin) .profile-security-group .customer-pin-form > div,
  body:not(.page-admin) .profile-security-group .customer-pin-form > .form-error { grid-column: 1; }
  body:not(.page-admin) .profile-security-group .customer-pin-form > div .btn { min-height: 2.6rem; }
  body:not(.page-admin) #profile-detail-edit .customer-pin-form { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  body:not(.page-admin) #profile-detail-edit .customer-pin-form > label { grid-row: auto; margin-top: 0.35rem; }
  body:not(.page-admin) #profile-detail-edit .customer-pin-form > div,
  body:not(.page-admin) #profile-detail-edit .customer-pin-form > .form-error { grid-column: 1; }
  body:not(.page-admin) #profile-detail-edit .customer-pin-form > div .btn { min-height: 2.6rem; }
  body:not(.page-admin) .profile-detail-card { gap: 0.5rem; padding: 0.6rem; }
  body:not(.page-admin) .profile-detail-icon { flex-basis: 2.25rem; width: 2.25rem; height: 2.25rem; padding: 0.55rem; }
  body:not(.page-admin) .profile-detail-copy > span { font-size: 0.75rem; }
  body:not(.page-admin) .profile-detail-copy > strong { font-size: 0.9rem; }
  body:not(.page-admin) .profile-edit-button { min-height: 2rem; font-size: 0.74rem; }
  body:not(.page-admin) .profile-help-panel { grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem; padding: 0.65rem; }
  body:not(.page-admin) .profile-help-icon { width: 2.2rem; height: 2.2rem; font-size: 1.15rem; }
  body:not(.page-admin) .profile-help-copy strong { font-size: 0.9rem; }
  body:not(.page-admin) .profile-help-copy > span { font-size: 0.72rem; }
  body:not(.page-admin) .profile-contact-links { grid-column: 1 / -1; gap: 0.4rem; }
  body:not(.page-admin) .profile-contact-button { gap: 0.25rem; min-height: 2.7rem; padding: 0.25rem; font-size: 0.78rem; }
  body:not(.page-admin) .profile-contact-button small { font-size: 0.62rem; }
  body:not(.page-admin) .app-settings { padding: 0.65rem; }
  body:not(.page-admin) .app-settings-heading h3 { font-size: 1rem; }
  body:not(.page-admin) .app-settings-heading p { font-size: 0.78rem; }
  body:not(.page-admin) .app-setting { grid-template-columns: auto minmax(0, 1fr); padding: 0.65rem; }
  body:not(.page-admin) .app-setting-icon { width: 2.25rem; height: 2.25rem; }
  body:not(.page-admin) .app-setting-copy > strong { font-size: 0.92rem; }
  body:not(.page-admin) .app-setting-status { font-size: 0.8rem; }
  body:not(.page-admin) .app-setting-actions,
  body:not(.page-admin) .app-setting-help { grid-column: 1 / -1; }
  body:not(.page-admin) .app-setting-actions .btn { flex: 1 1 auto; min-height: 3rem; font-size: 1rem; }
  body:not(.page-admin) .app-setting-help { font-size: 0.84rem; }
  body:not(.page-admin) .invoice-section { padding: 0.9rem; }
  body:not(.page-admin) .invoice-section > h2 { font-size: 1.2rem; }
  body:not(.page-admin) .invoice-list { gap: 0.65rem; }
  body:not(.page-admin) .invoice-group > summary { gap: 0.35rem; padding: 0.75rem 0.65rem; }
  body:not(.page-admin) .invoice-group-label { gap: 0.4rem; }
  body:not(.page-admin) .invoice-group-label > span:first-child { font-size: 0.88rem; }
  body:not(.page-admin) .invoice-item-count { padding: 0.2rem 0.45rem; font-size: 0.68rem; }
  body:not(.page-admin) .invoice-group .cutoff-group-date { font-size: 0.72rem; }
  body:not(.page-admin) .invoice-group .cutoff-group-date::before { display: none; }
  body:not(.page-admin) .cutoff-date-full { display: none; }
  body:not(.page-admin) .cutoff-date-mobile { display: inline; font-size: 0.72rem; }
  body:not(.page-admin) .invoice-card { padding: 0.7rem; }
  body:not(.page-admin) .invoice-heading { align-items: flex-start; }
  body:not(.page-admin) .invoice-identity { gap: 0.55rem; }
  body:not(.page-admin) .invoice-card-icon { width: 2.7rem; height: 2.7rem; padding: 0.7rem; }
  body:not(.page-admin) .invoice-heading h3 { font-size: 0.88rem; overflow-wrap: anywhere; }
  body:not(.page-admin) .invoice-dates { font-size: 0.72rem; }
  body:not(.page-admin) .invoice-status { padding: 0.3rem 0.5rem; font-size: 0.68rem; }
  body:not(.page-admin) .invoice-bill-to { font-size: 0.8rem; }
  body:not(.page-admin) .invoice-table th,
  body:not(.page-admin) .invoice-table td { padding: 0.28rem 0.2rem; font-size: 0.7rem; }
  body:not(.page-admin) .invoice-table th { font-size: 0.62rem; }
  body:not(.page-admin) .invoice-table th:last-child { padding-inline: 0.1rem; font-size: 0.55rem; }
  body:not(.page-admin) .invoice-item { gap: 0.3rem; }
  body:not(.page-admin) .invoice-product-image,
  body:not(.page-admin) .invoice-product-placeholder { flex-basis: 1.85rem; width: 1.85rem; height: 1.85rem; }
  body:not(.page-admin) .invoice-detail-footer { grid-template-columns: 1fr; gap: 0.65rem; }
  body:not(.page-admin) .invoice-totals-panel { grid-row: 1; }
  body:not(.page-admin) .invoice-contact { grid-row: 2; padding: 0.5rem; }
  body:not(.page-admin) .invoice-contact-heading strong { font-size: 0.72rem; }
  body:not(.page-admin) .invoice-contact-heading span { font-size: 0.65rem; }
  body:not(.page-admin) .invoice-contact-links { gap: 0.3rem; }
  body:not(.page-admin) .invoice-contact-button { gap: 0.25rem; min-height: 2rem; font-size: 0.72rem; }
  body:not(.page-admin) .invoice-contact-button small { font-size: 0.6rem; }
  body:not(.page-admin) .invoice-document-actions { gap: 0.25rem; margin-top: 0.35rem; }
  body:not(.page-admin) .invoice-document-actions .btn { min-height: 1.7rem; padding: 0.22rem 0.12rem; font-size: 0.62rem; }
  body:not(.page-admin) .invoice-actions { gap: 0.4rem; }
  body:not(.page-admin) .invoice-actions .invoice-pay-button { flex: 1 1 auto; min-width: 8rem; padding-inline: 0.55rem; font-size: 0.78rem; }
  body:not(.page-admin) .site-header { padding-top: env(safe-area-inset-top); }
  body:not(.page-admin) .header-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(0.45rem, 3vw, 0.9rem);
    min-height: 4.1rem;
  }
  body:not(.page-admin) .header-nav,
  body:not(.page-admin) .account-caret,
  body:not(.page-admin) .site-footer:not(.customer-legal-footer) { display: none; }
  body:not(.page-admin) .customer-legal-footer { display: none; }
  body:not(.page-admin)[data-view]:not(.legal-footer-flow) .bottom-nav { bottom: calc(0.55rem + env(safe-area-inset-bottom)); }
  body:not(.page-admin)[data-view]:not(.legal-footer-flow) main.wrap { padding-bottom: calc(9rem + env(safe-area-inset-bottom)); }
  body:not(.page-admin) .header-account-actions { gap: 0.5rem; }
  body:not(.page-admin) .site-brand { min-width: 0; max-width: 100%; }
  body:not(.page-admin) .account-chip { max-width: calc(100vw - 10rem); gap: 0.4rem; }
  body:not(.page-admin) .customer-alerts-button { width: 2.4rem; height: 2.4rem; }
  body:not(.page-admin) .avatar { flex: 0 0 1.95rem; width: 1.95rem; height: 1.95rem; }
  body:not(.page-admin) .account-copy { min-width: 0; max-width: 100%; }
  body:not(.page-admin) .account-copy strong,
  body:not(.page-admin) .account-copy small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body:not(.page-admin) .welcome-hero {
    grid-template-columns: 1.15fr 0.9fr;
    margin: 0.75rem 0 1rem;
    border-radius: 16px;
  }
  body:not(.page-admin) .hero-copy { padding: 0.95rem 0.35rem 0.95rem 0.9rem; }
  body:not(.page-admin) .hero-kicker { margin-bottom: 0.3rem; font-size: 10px; }
  body:not(.page-admin) .hero-copy h2 { font-size: 22px; line-height: 1.12; }
  body:not(.page-admin) .hero-lead { margin-top: 0.4rem; font-size: 12px; line-height: 1.35; }
  body:not(.page-admin) .hero-highlights {
    display: grid;
    gap: 0.35rem;
    margin: 0.7rem 0 0;
    padding: 0;
    list-style: none;
    color: #3d4a43;
    font-size: 11px;
    font-weight: 600;
  }
  body:not(.page-admin) .hero-highlights li { display: flex; align-items: center; gap: 0.4rem; }
  body:not(.page-admin) .hero-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    background: #f3d48a center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5a10' stroke-width='2'%3E%3Cpath d='M3 8h18v11H3z'/%3E%3Cpath d='M3 8l2-4h14l2 4'/%3E%3C/svg%3E");
  }
  body:not(.page-admin) .hero-icon-tag {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5a10' stroke-width='2'%3E%3Cpath d='M12 3l8 4-8 14L4 7z'/%3E%3C/svg%3E");
  }
  body:not(.page-admin) .hero-icon-people {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5a10' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='2.5'/%3E%3Ccircle cx='16' cy='9' r='2'/%3E%3Cpath d='M4 18c1-2.5 3-3.5 5-3.5s4 1 5 3.5M14 14.5c1.2 0 2.8.6 3.8 2.5'/%3E%3C/svg%3E");
  }
  body:not(.page-admin) .hero-art { min-height: 100%; }
  body:not(.page-admin) .hero-note {
    display: block;
    right: 0.45rem;
    bottom: 0.55rem;
    padding: 0;
    color: #6b5428;
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.15;
    text-align: right;
    transform: rotate(-8deg);
  }
  body:not(.page-admin) .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.65rem;
  }
  body:not(.page-admin) .section-heading .help { grid-column: 1 / -1; }
  body:not(.page-admin) .catalog-tools {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    width: 100%;
  }
  body:not(.page-admin) .search-wrap { display: block; grid-row: 1; width: 100%; }
  body:not(.page-admin) .catalog-tools input { width: 100%; min-width: 0; }
  body:not(.page-admin) .section-heading h2 { font-size: 20px; }
  body:not(.page-admin) .section-heading .help { font-size: 13px; }
  body:not(.page-admin) .batch-list { grid-template-columns: 1fr; gap: 0.75rem; }
  body:not(.page-admin) .batch {
    display: grid;
    grid-template-columns: 7.4rem minmax(0, 1fr);
    column-gap: 0.7rem;
    align-items: stretch;
    padding: 0.65rem;
  }
  body:not(.page-admin) .product-cover {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: auto;
    min-height: 8.6rem;
  }
  body:not(.page-admin) .product-cover .batch-date,
  body:not(.page-admin) .product-cover .pill { display: none; }
  body:not(.page-admin) .product-details { grid-column: 2; display: flex; flex-direction: column; padding: 0.1rem 0 0; }
  body:not(.page-admin) .detail-status { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; margin-bottom: 0.15rem; }
  body:not(.page-admin) .detail-status .batch-date,
  body:not(.page-admin) .detail-status .pill { position: static; box-shadow: none; }
  body:not(.page-admin) .detail-status .batch-date { padding: 0; background: transparent; color: #1c8a4a; font-size: 11px; }
  body:not(.page-admin) .detail-status .pill { font-size: 10px; }
  body:not(.page-admin) .batch-name { font-size: 16px; }
  body:not(.page-admin) .batch-meta { font-size: 12px; white-space: normal; }
  body:not(.page-admin) .product-price { font-size: 16px; }
  body:not(.page-admin) .batch-count { margin-bottom: 0.45rem; font-size: 12px; }
  body:not(.page-admin) .batch > .batch-toggle {
    grid-column: 2;
    width: 100%;
    min-height: 2.35rem;
    margin-top: 0;
    font-size: 13px;
  }
  body:not(.page-admin) .bottom-nav {
    position: fixed;
    z-index: 30;
    inset-inline: max(0.625rem, calc((100vw - 34rem) / 2));
    bottom: calc(0.5rem + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: auto;
    max-width: 34rem;
    padding: 0.35rem;
    border: 1px solid rgb(226 233 228 / 90%);
    border-radius: 0;
    background: rgb(255 255 255 / 88%);
    box-shadow: 0 8px 28px rgb(20 36 29 / 18%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: none;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
  }

  body:not(.page-admin) .bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    min-width: 0;
    min-height: 3.55rem;
    border-radius: 0;
    color: #4d5b52;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    padding: 0.3rem 0.12rem;
  }
  body:not(.page-admin) .bottom-nav .nav-link.is-current { background: #edf0ee; color: #0b5838; }
  body:not(.page-admin) .bottom-nav .nav-icon { width: 22px; height: 22px; }
  body:not(.page-admin) .bottom-nav-menu-item { position: relative; display: grid; min-width: 0; place-items: center; }
  body:not(.page-admin) .bottom-nav .bottom-menu-toggle { width: 100%; border: 0; background: transparent; cursor: pointer; }
  body:not(.page-admin) .bottom-nav .bottom-nav-menu-icon {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 6px currentColor, 0 12px currentColor;
  }
  body:not(.page-admin) .bottom-nav-menu {
    position: absolute;
    z-index: 1;
    bottom: calc(100% + 0.65rem);
    left: 50%;
    display: grid;
    min-width: max-content;
    max-width: min(15rem, calc(100vw - 2rem));
    gap: 0.15rem;
    padding: 0.4rem;
    border: 1px solid #e2e9e4;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 8px 26px rgb(20 36 29 / 20%);
    transform: translateX(-50%);
  }
  body:not(.page-admin) .bottom-nav-menu[hidden] { display: none; }
  body:not(.page-admin) .bottom-nav-menu > a,
  body:not(.page-admin) .bottom-nav-menu > button {
    display: block;
    width: 100%;
    min-height: 2.7rem;
    padding: 0.65rem 0.8rem;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: #263d32;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
  }
  body:not(.page-admin) .bottom-nav-menu > a:hover,
  body:not(.page-admin) .bottom-nav-menu > button:hover,
  body:not(.page-admin) .bottom-nav-menu > a:focus-visible,
  body:not(.page-admin) .bottom-nav-menu > button:focus-visible { background: #edf5ef; outline: none; }
  body:not(.page-admin) .bottom-nav .bottom-menu-toggle { color: #4d5b52; }
  .announcement-storefront-picker { align-items: flex-start; flex-direction: column; }
  body:not(.page-admin) .available-shop-header { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  body:not(.page-admin) .available-shop-page-header h2 { font-size: 1.05rem; }
  body:not(.page-admin) .available-shop-heading > .help { font-size: 0.8rem; }
  body:not(.page-admin) .available-cart-page-heading { gap: 0.4rem; }
  body:not(.page-admin) .available-cart-page-heading h2 { font-size: 1.05rem; }
  body:not(.page-admin) .available-goods-section > .section-heading { flex-direction: row; align-items: center; }
  body:not(.page-admin) .available-cart-link,
  body:not(.page-admin) .available-orders-link { flex-basis: 2.8rem; width: 2.8rem; height: 2.8rem; }
  body:not(.page-admin) .share-toast { bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
  .app-update-toast { inset-inline: 0.75rem; bottom: calc(5.6rem + env(safe-area-inset-bottom)); width: auto; gap: 0.5rem; padding: 0.7rem; }
  .page-admin .app-update-toast { bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
  .app-update-copy { font-size: 0.75rem; }
  .app-update-actions { gap: 0.2rem; }
  .app-update-refresh,
  .app-update-dismiss { min-height: 2.7rem; padding-inline: 0.6rem; }
}

.auth-welcome {
  display: block;
  background: #003b30;
}

.auth-welcome-screen {
  width: 100%;
  height: 100%;
  background: #003b30;
  box-shadow: none;
}

.auth-welcome-image {
  position: absolute;
  top: 0;
  bottom: clamp(12rem, 20vh, 20rem);
  left: 50%;
  display: block;
  width: 150%;
  height: calc(100% - clamp(12rem, 20vh, 20rem));
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
}

.auth-welcome-brand {
  position: absolute;
  z-index: 2;
  top: max(1.25rem, env(safe-area-inset-top));
  left: max(1.25rem, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.25rem;
  margin: 0;
  color: #f8f6f0;
  text-decoration: none;
}

.auth-welcome-brand > .auth-welcome-logo {
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
}

.auth-welcome-brand > .auth-welcome-brand-copy {
  display: grid;
  gap: 0.08rem;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: normal;
  line-height: normal;
}

.auth-welcome-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  font-size: clamp(1.5rem, 5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
}

.auth-welcome-logo > strong { color: #f6b51f; font-weight: 800; }
.auth-welcome-brand-copy { display: grid; gap: 0.08rem; }
.auth-welcome-brand-copy > small { color: #e5eee9; font-size: clamp(0.88rem, 2.4vw, 1rem); line-height: 1.15; }

@media (max-height: 650px) {
  .auth-welcome-image {
    bottom: 10.5rem;
    height: calc(100% - 10.5rem);
  }
}

.available-popular {
  margin: 1.1rem 0 1.25rem;
}

.available-popular-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.available-popular-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.available-popular-controls {
  display: flex;
  gap: 0.4rem;
}

.available-popular-controls button {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #dce5df;
  border-radius: 50%;
  background: #fff;
  color: #214b38;
  cursor: pointer;
}

.available-popular-slide {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 6.2rem;
  padding: 0.65rem 0.85rem;
  overflow: hidden;
  border: 1px solid #e5ebe6;
  border-radius: 1rem;
  background: linear-gradient(105deg, #f4f8f4, #fff 65%);
}

.available-popular-slide img {
  width: 5.4rem;
  height: 4.8rem;
  border-radius: 0.7rem;
  background: #fff;
  object-fit: cover;
}

.available-popular-copy {
  min-width: 0;
}

.available-popular-copy strong,
.available-popular-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.available-popular-copy strong {
  color: #1d3026;
  font-size: 0.92rem;
}

.available-popular-copy span {
  margin-top: 0.3rem;
  color: #68756d;
  font-size: 0.8rem;
}

.available-popular-order {
  min-height: 2.4rem;
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: #214b38;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.available-popular-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  min-height: 1.1rem;
  margin-top: 0.45rem;
}

.available-popular-dots button {
  width: 0.42rem;
  height: 0.42rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9d2cc;
  cursor: pointer;
}

.available-popular-dots button[aria-current="true"] {
  width: 1.15rem;
  border-radius: 999px;
  background: #214b38;
}

@media (max-width: 560px) {
  .available-popular-slide {
    grid-template-columns: 4.4rem minmax(0, 1fr) auto;
    gap: 0.65rem;
    min-height: 5.6rem;
    padding: 0.55rem;
  }

  .available-popular-slide img {
    width: 4.4rem;
    height: 4.35rem;
  }

  .available-popular-order {
    padding-inline: 0.65rem;
  }

}

.auth-welcome-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: clamp(12rem, 20vh, 20rem);
  padding: 1.2rem 1rem calc(1.4rem + env(safe-area-inset-bottom));
  border-radius: 2.5rem 2.5rem 0 0;
}

.auth-welcome-handle { margin-bottom: 1rem; }
.auth-welcome-arrow { width: 5rem; height: 5rem; }
.auth-welcome-signin strong { font-size: 1.2rem; }
.auth-welcome-signup { margin-top: 0.25rem; font-size: 1rem; }
.auth-welcome-available { margin-top: 0.35rem; font-size: 0.9rem; }

@media (min-width: 681px) {
  .auth-welcome { display: none !important; }
  body.auth-welcome-open { overflow: auto; padding-bottom: initial !important; }
}

@media (min-width: 540px) {
  .auth-welcome-screen { border-radius: 0; }
}

@media (max-height: 650px) {
  .auth-welcome-sheet { min-height: 10.5rem; padding-top: 0.7rem; }
  .auth-welcome-handle { margin-bottom: 0.6rem; }
  .auth-welcome-arrow { width: 4.25rem; height: 4.25rem; }
}

/* Staff workspace */
body.admin-shell {
  background: #f3f5f4;
  color: #1c2430;
}
body.admin-shell h1,
body.admin-shell h2,
body.admin-shell h3,
body.admin-shell .admin-batch-name {
  font-family: var(--font-ui);
  letter-spacing: -0.02em;
}
.admin-shell svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.admin-login-brand { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 0.8rem; font-size: 1.7rem; letter-spacing: -0.03em; }
.admin-login-name { color: #14382c; font-weight: 800; }
.admin-login-brand span { color: #14382c; font-weight: 800; }
.admin-login-brand strong { color: #e0a31a; font-weight: 800; }
.admin-app { display: flex; min-height: 100vh; }
.admin-side {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 248px;
  height: 100vh;
  flex: 0 0 248px;
  padding: 1.15rem 0.85rem 0.9rem;
  background: #0f3d30;
  color: #e7f2ec;
}
.admin-brand { display: block; padding: 0.2rem 0.75rem 1.15rem; color: inherit; text-decoration: none; }
.admin-brand-lockup { display: flex; align-items: center; gap: 0.65rem; }
.admin-brand-icon { display: block; width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; border-radius: 0.65rem; object-fit: cover; }
.admin-logo { display: inline-flex; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.logo-sam { color: #fff; }
.logo-dart { color: #f5b942; }
.admin-brand small { display: block; margin-top: 0.28rem; color: #b7c9c0; font-size: 0.78rem; }
.side-links { display: grid; align-content: start; flex: 1 1 auto; min-height: 0; gap: 0.15rem; overflow-y: auto; scrollbar-color: rgba(215, 231, 223, 0.35) transparent; scrollbar-width: thin; }
.side-foot { display: grid; gap: 0.15rem; }
.side-foot { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.side-group-heading { margin: 0.9rem 0 0.3rem; padding: 0 0.75rem; color: #a9c9b9; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.12em; line-height: 1.2; text-transform: uppercase; }
.side-group-heading:first-child { margin-top: 0; }
.side-group-heading:not(:first-child) { padding-top: 0.6rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.side-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.62rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d7e7df;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.side-link svg { flex: 0 0 auto; }
.side-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.side-link.is-current { background: #1f8f57; color: #fff; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: auto;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #f0b429;
  color: #3d2e00;
  font-size: 0.72rem;
  font-weight: 800;
}
.nav-badge.is-zero { background: #5c6d66; color: #fff; }
.side-backdrop { display: none; }
.admin-main { flex: 1; min-width: 0; }
.admin-top {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 74px;
  padding: 0.85rem 1.4rem;
  background: rgba(243, 245, 244, 0.92);
  backdrop-filter: blur(10px);
}
.side-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e3e8e5;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.admin-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.45rem;
  max-width: 520px;
  min-height: 42px;
  margin-right: auto;
  padding: 0 0.85rem;
  border: 1px solid #e3e8e5;
  border-radius: 999px;
  background: #fff;
  color: #98a2a8;
}
.admin-shell .admin-search input {
  width: 100%;
  min-height: 0;
  padding: 0.4rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.admin-shell .admin-search input:focus { outline: 0; border: 0; box-shadow: none; }
.admin-search kbd {
  flex: 0 0 auto;
  border: 1px solid #e4e9e6;
  border-radius: 6px;
  padding: 0.08rem 0.35rem;
  color: #98a2a8;
  font-family: inherit;
  font-size: 0.72rem;
  white-space: nowrap;
}
.alert-wrap, .user-wrap { position: relative; }
.bell-btn, .admin-user {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.bell-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}
.bell-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #e23b3b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}
.admin-user { display: flex; align-items: center; gap: 0.55rem; padding: 0.2rem; }
.staff-avatar, .welcome-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #dceee4;
  color: #1f7a4d;
  font-weight: 800;
}
.admin-user-copy { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.admin-user-copy strong { font-size: 0.9rem; }
.admin-user-copy small, .caret { color: #8b9793; font-size: 0.75rem; }
.alert-pop, .user-pop, .more-pop {
  position: absolute;
  z-index: 12;
  min-width: 11rem;
  padding: 0.35rem;
  border: 1px solid #e6eeea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
}
.alert-pop {
  position: fixed;
  top: 0;
  right: 12px;
  width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}
.alert-pop .staff-payment-alert-item { white-space: normal; line-height: 1.35; }
.alert-pop .staff-payment-alert-item .alert-time { display: block; color: #8b9793; font-size: 0.7rem; font-weight: 500; }
.staff-notifications-list { display: grid; gap: 0.65rem; }
.staff-notification-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0.55rem; padding: 0.65rem; border: 1px solid #e6eeea; border-radius: 10px; background: #fff; }
.staff-notification-entry .staff-payment-alert-item { width: 100%; min-width: 0; white-space: normal; line-height: 1.4; text-align: left; }
.staff-notification-entry .staff-payment-alert-item .alert-time { display: block; margin-top: 0.2rem; color: #8b9793; font-size: 0.72rem; }
.staff-notifications-view-all { margin: 0.25rem 0; }
.staff-notifications-empty { margin: 0; padding: 1.5rem; border: 1px dashed #cddbd3; border-radius: 12px; color: #718079; text-align: center; }
.alert-pop .staff-push-status { margin: 0.3rem 0.55rem; font-size: 0.75rem; }
.alert-pop [data-enable-staff-push] { border-top: 1px solid #edf1ef; color: #17663e; font-weight: 700; }
.alert-pop [data-enable-staff-push]:disabled { cursor: default; opacity: 0.7; }
.user-pop { right: 0; top: calc(100% + 0.35rem); }
.alert-pop button, .user-pop button, .more-pop button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.alert-pop button:hover, .user-pop button:hover, .more-pop button:hover { background: #f3f7f5; }
.more-pop button.is-danger { color: #b42318; }
.more-pop button.is-danger:hover { background: #fff1f0; }
.alert-pop p { margin: 0.35rem 0.55rem; color: #6d7b84; font-size: 0.86rem; }
.admin-content { padding: 0.35rem 1.4rem 2rem; }
.admin-shell .status-line { margin: 0 0 0.7rem; }
.admin-shell .status-line:empty { display: none; }
.dash-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0.9rem; }
.welcome-card, .date-card, .panel {
  border: 1px solid #e7eeea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.welcome-card, .date-card { display: flex; align-items: center; gap: 0.85rem; min-height: 92px; padding: 1rem 1.15rem; }
.welcome-card h2 { margin: 0; font-size: 1.28rem; font-weight: 750; }
.welcome-card p, .date-card span { color: #7d8b86; }
.welcome-card p { margin: 0.2rem 0 0; font-size: 0.92rem; }
.date-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eef8f2;
  color: #1f8a52;
}
.date-card { justify-content: flex-start; }
.date-card div { display: flex; flex-direction: column; }
.date-kicker { font-size: 0.78rem; }
.date-card strong { color: #1c2430; font-size: 1rem; font-weight: 750; }
#admin-date-sub { font-size: 0.82rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; margin: 0.9rem 0; }
.stat-card {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  min-height: 108px;
  padding: 0.95rem 1rem;
  border-radius: 16px;
}
.stat-card.tone-green { background: #e5f6ec; }
.stat-card.tone-amber { background: #fff3e4; }
.stat-card.tone-blue { background: #eef3fb; }
.stat-card.tone-pink { background: #fdecef; }
.stat-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}
.stat-card.tone-green .stat-ico { color: #1f8a52; }
.stat-card.tone-amber .stat-ico { color: #e39b18; }
.stat-card.tone-blue .stat-ico { color: #3b6fd8; }
.stat-card.tone-pink .stat-ico { color: #d4537a; }
.stat-label { color: #5c6b78; font-size: 0.84rem; font-weight: 650; }
.stat-card strong { display: block; margin-top: 0.1rem; color: #1b2430; font-size: 1.7rem; line-height: 1.05; }
.stat-trend { display: block; margin-top: 0.35rem; font-size: 0.78rem; font-weight: 700; }
.stat-trend.up { color: #1b9a4b; }
.stat-trend.down { color: #d14343; }
.stat-trend.warn { color: #d08912; }
.stat-trend.muted { color: #6b7c8f; font-weight: 650; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.86fr); gap: 0.9rem; margin-top: 0.9rem; }
.panel { padding: 1rem 1.05rem 0.75rem; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.35rem; }
.panel-head.with-action { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
.view-intro { margin: 0.2rem 0 0.8rem; }
.panel-head h2 { margin: 0; font-size: 1.02rem; font-weight: 750; }
.panel-head p { margin: 0.15rem 0 0; color: #8b9793; font-size: 0.82rem; }
.text-link {
  border: 0;
  background: transparent;
  color: #6b7780;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.text-link:hover { color: #1f7a4d; }
.create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #149154;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.create-btn:hover { background: #117a46; }
.admin-shell .dash-table { overflow-x: auto; }
.admin-shell .dash-table table { min-width: 560px; }
.admin-shell .dash-table th {
  background: transparent;
  color: #98a2a8;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}
.admin-shell .dash-table td,
.admin-shell .dash-table th {
  padding: 0.72rem 0.4rem;
  border-bottom: 1px solid #f0f3f1;
  vertical-align: middle;
}
.admin-shell .dash-table tbody tr:nth-child(even) td,
.admin-shell .dash-table tr.is-paid td { background: transparent; }
.admin-shell .tracker-head { align-items: center; flex-wrap: wrap; }
.admin-shell .tracker-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.admin-shell .tracker-tools .batch-sort { margin: 0; }
.admin-shell .tracker-months { display: flex; gap: 0.45rem; overflow-x: auto; padding: 0.8rem 0 0.55rem; }
.admin-shell .tracker-month {
  flex: 0 0 auto;
  border: 1px solid #dce7e1;
  border-radius: 999px;
  background: #fff;
  color: #52635a;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.admin-shell .tracker-month[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.admin-shell .tracker-summary,
.admin-shell .online-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; padding: 0.65rem 0 0.85rem; }
.admin-shell .tracker-stat,
.admin-shell .online-stat { min-width: 0; border: 1px solid #e7eeea; border-radius: 12px; background: #f8fbf9; padding: 0.75rem 0.85rem; }
.admin-shell .tracker-stat small,
.admin-shell .online-stat small { display: block; color: #7d8983; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.admin-shell .tracker-stat strong,
.admin-shell .online-stat strong { display: block; margin-top: 0.22rem; color: #173c2d; font-size: 1rem; }
.admin-shell .tracker-table table { min-width: 620px; }
.admin-shell .tracker-table th,
.admin-shell .tracker-table td { white-space: nowrap; }
.admin-shell .tracker-customer td { background: #f6faf7; font-weight: 650; }
.admin-shell .tracker-status { font-weight: 750; }
.admin-shell .tracker-status.paid { color: #16834b; }
.admin-shell .tracker-status.partial,
.admin-shell .tracker-status.paying { color: #aa6b13; }
.admin-shell .tracker-status.unpaid { color: #bd3c32; }
.admin-shell .online-groups { display: grid; gap: 1rem; }
.admin-shell .online-group h3 { margin: 0 0 0.55rem; font-family: inherit; font-size: 0.9rem; }
.admin-shell .online-list { display: grid; gap: 0.5rem; }
.admin-shell .online-person { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.65rem; align-items: center; border: 1px solid #e7eeea; border-radius: 12px; background: #fff; padding: 0.7rem 0.85rem; }
.admin-shell .online-person-main { display: flex; align-items: flex-start; gap: 0.6rem; min-width: 0; }
.admin-shell .online-dot { width: 0.58rem; height: 0.58rem; flex: 0 0 auto; margin-top: 0.35rem; border-radius: 50%; background: #17a65c; box-shadow: 0 0 0 3px #e5f7ed; }
.admin-shell .online-dot.recent { background: #a3aaa6; box-shadow: 0 0 0 3px #eef1ef; }
.admin-shell .online-person-copy { min-width: 0; }
.admin-shell .online-person-copy strong { display: block; }
.admin-shell .online-person-copy small,
.admin-shell .online-person-meta { display: block; color: #78867f; font-size: 0.74rem; }
.admin-shell .online-person-meta { text-align: right; white-space: nowrap; }
.who { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; }
.who-sub { display: block; max-width: 13rem; margin-top: 0.1rem; padding-left: 0.1rem; color: #8b9793; font-size: 0.72rem; font-weight: 500; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}
.av-0 { background: #7c6cf0; }
.av-1 { background: #3aaa6d; }
.av-2 { background: #3b82f6; }
.av-3 { background: #e25b8a; }
.av-4 { background: #1aa6a6; }
.status-pending { color: #e0a000; font-weight: 750; }
.admin-shell #admin-customers tr.is-optimistic-pending { background: #fff8e9; }
.admin-mutation-pending { display: block; margin-top: 0.12rem; color: #805000; font-size: 0.72rem; font-weight: 750; }
.status-processing, .status-paid, .status-partial { font-weight: 750; }
.status-processing { color: #3b82f6; }
.status-paid, .status-partial { color: #1b9a4b; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.35rem; }
.view-btn, .open-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 0;
  border-radius: 999px;
  background: #e8f1ff;
  color: #3b6fd8;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  padding: 0.32rem 0.75rem;
  min-height: 1.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.view-btn:hover:not(:disabled), .open-pill:hover { background: #d9e8ff; box-shadow: 0 2px 8px rgb(59 111 216 / 18%); }
.view-btn:active:not(:disabled), .open-pill:active { transform: translateY(1px); box-shadow: none; }
.view-btn:focus-visible, .open-pill:focus-visible { outline: 2px solid #3b6fd8; outline-offset: 2px; }
.view-btn:disabled { cursor: not-allowed; opacity: 0.6; box-shadow: none; transform: none; }
.view-btn-verify { background: #e0f4ea; color: #0c7a55; }
.view-btn-verify:hover:not(:disabled) { background: #cdeedd; box-shadow: 0 2px 8px rgb(12 122 85 / 20%); }
.view-btn-verify:focus-visible { outline-color: #0c7a55; }
.view-btn-danger { background: #fdecec; color: var(--danger); }
.view-btn-danger:hover:not(:disabled) { background: #fbdcdc; box-shadow: 0 2px 8px rgb(157 44 44 / 16%); }
.view-btn-danger:focus-visible { outline-color: var(--danger); }
.delete-order-btn { color: #a83232; }
.delete-order-btn:hover:not(:disabled) { background: #fee2e2; }
.delete-order-btn:disabled { color: #7d8388; cursor: not-allowed; opacity: 0.68; }
.dialog-actions { justify-content: flex-end; gap: 0.5rem; margin-top: 0.9rem; }
.more-menu { position: relative; display: inline-flex; }
.more-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.more-btn:hover { background: #f3f5f4; }
.more-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.more-pop { right: 0; top: 100%; }
.batch-open, .batch-closed {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.14rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
}
.batch-open { background: #e5f6ec; color: #1c8a4a; }
.batch-closed { background: #f1f2f1; color: #6b7280; }
.product-cell { display: flex; align-items: center; gap: 0.6rem; font-weight: 750; }
.product-thumb, .letter-thumb {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}
.letter-thumb { display: grid; place-items: center; color: #fff; font-weight: 800; }
.tone-0 { background: #d7b08a; }
.tone-1 { background: #e07a93; }
.tone-2 { background: #7d8cff; }
.tone-3 { background: #54b38a; }
.cutoff-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0;
  border-top: 1px solid #f1f4f2;
}
.cutoff-row:first-child { border-top: 0; }
.date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #e7f6ee;
  color: #1f7a4d;
  line-height: 1;
}
.date-badge.alt { background: #e5f3ea; }
.date-badge span { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; }
.date-badge strong { margin-top: 0.18rem; font-size: 1.12rem; }
.cutoff-copy strong { display: block; font-size: 0.92rem; }
.cutoff-copy small { display: block; color: #8b9793; font-size: 0.78rem; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; padding: 0.35rem 0 0.45rem; }
.qa {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 0.8rem;
  border: 1px solid #eef2f0;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.qa:hover { border-color: #d5e4db; background: #fbfefc; }
.qa strong { display: block; font-size: 0.88rem; }
.qa small { display: block; margin-top: 0.12rem; color: #8b9793; font-size: 0.75rem; }
.qa-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  font-size: 1.25rem;
  font-weight: 700;
}
.qa-ico.amber { background: #fff4e0; color: #e0a000; }
.qa-ico.blue { background: #e7f1ff; color: #3b82f6; }
.qa-ico.gold { background: #fff6df; color: #d39b16; }
.qa-ico.sky { background: #e7f6ff; color: #2f89c5; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.8rem; }
.product-card {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid #e7eeea;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  text-align: left;
}
.product-card:hover { border-color: #cfe0d6; }
.product-cover { display: grid; place-items: center; height: 132px; background: #f6f3ec; color: #fff; font-size: 1.6rem; font-weight: 800; }
.product-cover img { width: 100%; height: 132px; object-fit: cover; }
.product-cover .product-image-gallery .product-image-button img { height: 100%; }
.product-card .body { padding: 0.75rem 0.85rem 0.9rem; }
.product-card .body strong { display: block; }
.product-card .body small { color: #6d7b84; }
.product-card-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; font-weight: 750; cursor: pointer; }
.product-card .product-views { display: block; margin-top: 0.2rem; color: #496b5b; }
.product-card .product-delete { margin-top: 0.65rem; }
.settings-list { display: grid; gap: 0.8rem; margin: 0.4rem 0 0.2rem; }
.settings-list div { display: grid; gap: 0.15rem; }
.settings-list dt { color: #8b9793; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.settings-list dd { margin: 0; }
.default-product-sort-form { display: grid; justify-items: start; gap: 0.55rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e5ebe7; }
.default-product-sort-form h3, .default-product-sort-form p { margin: 0; }
.default-product-sort-form > label { color: #52615b; font-size: 0.82rem; font-weight: 650; }
.default-product-sort-form select { min-width: min(100%, 18rem); min-height: 2.55rem; padding: 0.45rem 0.65rem; border: 1px solid #cfddd5; border-radius: 8px; background: #fff; color: #1c2430; font: inherit; }
.default-product-sort-form input { width: min(100%, 18rem); min-height: 2.55rem; padding: 0.45rem 0.65rem; border: 1px solid #cfddd5; border-radius: 8px; background: #fff; color: #1c2430; font: inherit; }
.default-product-sort-form .form-error:empty { display: none; }
.announcement-settings { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #e5ebe7; }
.announcement-settings-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; margin-bottom: 0.8rem; }
.announcement-settings-heading h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.announcement-settings-heading p { margin: 0; color: #6d7b84; font-size: 0.78rem; }
.announcement-editor { display: grid; gap: 0.75rem; }
.announcement-slide-editor { padding: 0.8rem; border: 1px solid #e2ebe6; border-radius: 10px; background: #fbfcfb; }
.announcement-slide-heading { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.55rem; font-size: 0.82rem; }
.announcement-slide-reorder { display: flex; gap: 0.35rem; }
.announcement-slide-reorder .btn { min-height: 1.8rem; padding: 0.25rem 0.5rem; font-size: 0.68rem; }
.announcement-slide-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 0.65rem; }
.announcement-slide-form .field { min-width: 0; margin: 0 0 0.55rem; }
.announcement-slide-form .field label, .announcement-slide-image-field > label { display: flex; flex-direction: column; gap: 0.28rem; color: #52615b; font-size: 0.72rem; font-weight: 650; }
.announcement-slide-form input:not([type="file"]), .announcement-slide-form textarea, .announcement-slide-form select { width: 100%; min-height: 2.35rem; margin: 0; padding: 0.45rem 0.6rem; border: 1px solid #cfddd5; border-radius: 7px; font: inherit; font-size: 0.78rem; }
.announcement-slide-form textarea { min-height: 4.5rem; resize: vertical; }
.announcement-slide-image-field { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.55rem; }
.announcement-slide-image-field > label { flex: 1; }
.announcement-slide-image-field input[type="file"] { display: block; max-width: 100%; margin-top: 0.25rem; font-size: 0.72rem; }
.announcement-slide-preview { width: 7rem; height: 4.2rem; flex: 0 0 7rem; border: 1px solid #e2e9e5; border-radius: 7px; object-fit: cover; background: #f1f4f2; }
.announcement-slide-preview-empty { display: grid; place-items: center; color: #75817b; font-size: 0.68rem; }
.announcement-slide-form > .btn { justify-self: start; }
.announcement-slide-form > .form-error { grid-column: 1 / -1; margin: 0; font-size: 0.74rem; }
.promote-panel + .promote-panel { margin-top: 1.2rem; }
.promote-panel .panel-head { align-items: flex-start; gap: 1rem; }
.promote-panel .panel-head p { max-width: 44rem; }
.promote-panel .panel-head > .btn { flex: none; white-space: nowrap; }
.promote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 1.5rem; align-items: start; }
.promote-form { display: grid; gap: 0.3rem; }
.promote-form > label:not(.promote-check), .guide-editor > label { color: #52615b; font-size: 0.76rem; font-weight: 700; }
.promote-form input[type="text"], .promote-form select, .promote-form textarea,
.guide-editor input[type="text"], .guide-editor textarea { width: 100%; min-height: 2.45rem; margin: 0 0 0.45rem; padding: 0.5rem 0.65rem; border: 1px solid #cfddd5; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 0.86rem; }
.guide-editor input[type="text"], .guide-editor textarea { display: block; margin-top: 0.28rem; font-weight: 400; }
.promote-form textarea, .guide-editor textarea { min-height: 4.2rem; resize: vertical; line-height: 1.45; }
.promote-form .help { margin: -0.2rem 0 0.4rem; font-size: 0.74rem; }
.promote-check { display: flex; align-items: flex-start; gap: 0.55rem; margin: 0.25rem 0; color: #22332c; font-size: 0.84rem; font-weight: 650; cursor: pointer; }
.promote-check input { flex: none; width: 1.05rem; height: 1.05rem; min-height: 0; margin: 0.1rem 0 0; accent-color: var(--green); }
.promote-check small { display: block; margin-top: 0.1rem; color: #6d7b84; font-size: 0.74rem; font-weight: 500; }
.promote-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.promote-status:empty, .promote-panel .form-error:empty { display: none; }
.promote-status { margin: 0.5rem 0 0; padding: 0.6rem 0.75rem; border-radius: 8px; background: #edf8f3; color: #0b5838; font-size: 0.8rem; }
.spotlight-current { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 0 0 1rem; padding: 0.7rem 0.85rem; border: 1px solid #cfe7da; border-radius: 10px; background: #f1faf5; color: #0b5838; font-size: 0.84rem; font-weight: 650; }
.spotlight-current[hidden] { display: none; }
.spotlight-current.is-inactive { border-color: #eadfc4; background: #fffaf0; color: #7a5a12; }
.spotlight-current p { margin: 0; }
.spotlight-current .btn { flex: none; min-height: 2rem; padding: 0.3rem 0.8rem; font-size: 0.78rem; }
.spotlight-preview { position: sticky; top: 1rem; }
.spotlight-preview-label { margin: 0 0 0.45rem; color: #8b9793; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; }
.spotlight-preview-card { position: relative; width: 100%; max-height: none; overflow: hidden; border: 1px solid #e3ebe6; box-shadow: 0 16px 40px rgb(7 40 30 / 14%); }
.spotlight-preview-card .spotlight-media img { height: 11rem; }
.spotlight-preview-card .spotlight-body h2 { font-size: 1.1rem; }
.spotlight-preview-card .spotlight-message { font-size: 0.86rem; }
.spotlight-preview-card .spotlight-actions .btn { display: grid; place-items: center; pointer-events: none; }
.guides-editor { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0.8rem; }
.guide-editor { display: grid; gap: 0.2rem; padding: 0.85rem; border: 1px solid #e2ebe6; border-radius: 12px; background: #fbfcfb; transition: opacity 0.15s; }
.guide-editor.is-off { opacity: 0.62; }
.guide-editor-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem; margin-bottom: 0.4rem; }
.guide-editor-toggle { display: inline-flex; align-items: center; gap: 0.45rem; color: #173d31; font-size: 0.86rem; font-weight: 750; cursor: pointer; }
.guide-editor-toggle input { width: 1.05rem; height: 1.05rem; min-height: 0; margin: 0; accent-color: var(--green); }
.guide-editor-place { margin: 0; color: #6d7b84; font-size: 0.74rem; }
.guide-editor-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.guide-editor-foot .promote-check { font-size: 0.76rem; font-weight: 600; }
.guide-editor-restore { min-height: 1.9rem; padding: 0.25rem 0.65rem; font-size: 0.74rem; }
@media (max-width: 900px) {
  .promote-grid { grid-template-columns: minmax(0, 1fr); }
  .spotlight-preview { position: static; max-width: 24rem; }
}
.admin-shell .mode { margin: 0; color: inherit; font-size: 0.95rem; }
.admin-shell .mode.is-live { color: #3d2a00; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.7rem; margin-bottom: 0.8rem; }
.report-card { padding: 0.85rem 0.9rem; border-radius: 12px; background: #f6f8f7; }
.report-card span { display: block; color: #6d7b84; font-size: 0.8rem; }
.report-card strong { font-size: 1.15rem; }
.admin-shell #view-invoices table,
.admin-shell .admin-batch .table-scroll table { min-width: 680px; }
.admin-shell .admin-batch { background: #fff; }
.empty-note { margin: 0.8rem 0; color: #6d7b84; }

.batches-panel { overflow: hidden; }
.batches-panel .panel-head { margin-bottom: 0.8rem; }
.batches-panel .panel-head h2 { font-size: 1.2rem; }
.admin-shell .batches-panel .panel-head.with-action { grid-template-columns: minmax(0, 1fr) auto; }
.admin-shell .create-btn { border: 0; font-family: inherit; cursor: pointer; }
.batch-create-panel { margin: 0 0 0.9rem; padding: 1rem; border: 1px solid #e2ebe6; border-radius: 12px; background: #f8fbf9; }
.batch-create-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.7rem; }
.batch-create-heading h3 { margin: 0; font-size: 1rem; }
.batch-create-heading p { margin: 0.2rem 0 0; color: #7d8b86; font-size: 0.78rem; }
.batch-create-close { padding: 0.35rem 0.65rem; border: 1px solid #e1e8e4; border-radius: 8px; background: #fff; color: #52615b; font: inherit; font-size: 0.78rem; cursor: pointer; }
.batch-paste-field { margin-bottom: 0.7rem; }
.batch-paste-field textarea { min-height: 4rem; margin: 0; padding: 0.55rem 0.7rem; border-color: #dce5e0; border-radius: 9px; font-size: 0.82rem; }
.batch-paste-actions { display: flex; align-items: center; gap: 0.6rem; }
.batch-paste-actions .btn { min-height: 32px; padding: 0.35rem 0.65rem; font-size: 0.75rem; }
.batch-paste-actions .form-error { margin: 0; font-size: 0.75rem; }
.batch-create-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 0.8rem; }
.batch-create-form .field { min-width: 0; margin-bottom: 0.65rem; }
.batch-create-form .batch-create-description,
.admin-product-info-form .admin-product-description { grid-column: 1 / -1; }
.batch-create-form .field label { font-size: 0.78rem; }
.batch-create-form select[multiple],
.admin-product-info-form select[multiple],
.available-admin-form select[multiple] { min-height: 6rem; }
.admin-product-info-form select { width: 100%; min-height: 2.5rem; padding: 0.5rem 0.65rem; border: 1px solid #cfddd5; border-radius: 8px; background: #fff; color: #1c2430; font: inherit; font-size: 0.82rem; }
.admin-shell .batch-create-form input:not([type="file"]) { min-height: 40px; padding: 0.5rem 0.65rem; font-size: 0.82rem; }
.batch-create-form .help { margin: 0; font-size: 0.7rem; }
.batch-create-colors, .batch-create-image, .batch-create-submit { grid-column: 1 / -1; }
.admin-shell .batch-create-form input[type="file"] { min-height: 40px; padding: 0.35rem; font-size: 0.75rem; }
.batch-create-submit { display: flex; align-items: center; gap: 0.7rem; }
.batch-create-submit .btn { min-height: 38px; }
.batch-create-submit .form-error { margin: 0; font-size: 0.76rem; }
.batch-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}
.batch-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid #e8eeeb;
  border-radius: 12px;
  background: #f7f9f8;
}
.batch-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0.3rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #52615b;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.batch-filter span {
  min-width: 1.25rem;
  padding: 0.03rem 0.3rem;
  border-radius: 999px;
  background: #e9efec;
  color: #52615b;
  text-align: center;
  font-size: 0.7rem;
}
.batch-filter.is-current { background: var(--green); color: #fff; }
.batch-filter.is-current span { background: #fff; color: var(--green); }
.batch-sort {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid #e8eeeb;
  border-radius: 10px;
  background: #fff;
  color: #52615b;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.batch-sort select {
  min-height: 30px;
  padding: 0 0.2rem;
  border: 0;
  background: transparent;
  color: #27352f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.batch-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  margin: 0 0 0.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e5ece8;
  border-radius: 11px;
  background: #f8faf9;
  color: #52615b;
  font-size: 0.78rem;
}
.batch-select-page, .batch-bulk-date { display: inline-flex; align-items: center; gap: 0.4rem; }
.batch-bulk-toolbar input[type="checkbox"], .batch-row-select { width: 16px; height: 16px; accent-color: var(--green); cursor: pointer; }
.batch-bulk-date input { min-height: 32px; padding: 0.25rem 0.4rem; border: 1px solid #dce5e0; border-radius: 7px; background: #fff; color: #27352f; font: inherit; }
.batch-selection-count { margin-right: auto; font-weight: 750; color: #27352f; }
.batch-bulk-toolbar .btn { min-height: 32px; padding: 0.35rem 0.65rem; font-size: 0.74rem; }
.batch-selection-clear { min-height: 32px; padding: 0.3rem 0.55rem; border: 1px solid #dce5e0; border-radius: 7px; background: #fff; color: #52615b; font: inherit; font-size: 0.74rem; cursor: pointer; }
.batch-bulk-toolbar button:disabled { opacity: 0.5; cursor: not-allowed; }
.batch-bulk-error { flex: 1 0 100%; margin: 0; color: #a33131; font-size: 0.74rem; }
.batch-cutoff-group { margin: 0 0 0.7rem; border: 1px solid #e5ece8; border-radius: 12px; background: #fff; overflow: hidden; }
.batch-cutoff-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 0.7rem; min-height: 42px; padding: 0.55rem 0.8rem; color: #27352f; cursor: pointer; list-style: none; }
.batch-cutoff-group > summary::-webkit-details-marker { display: none; }
.batch-cutoff-group > summary::after { content: "+"; order: 1; color: var(--green); font-size: 1.1rem; }
.batch-cutoff-group[open] > summary::after { content: "−"; }
.batch-cutoff-group > summary strong { font-size: 0.82rem; }
.batch-cutoff-group > summary span { margin-left: auto; color: #78857f; font-size: 0.72rem; }
.batch-cutoff-group[open] .batch-table-scroll { border: 0; border-top: 1px solid #edf1ef; border-radius: 0; }
.batch-group-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.7rem; padding: 0.5rem 0.7rem; border-top: 1px solid #edf1ef; }
.batch-group-footer .batch-pagination { margin-left: auto; }
#view-batches .batch-list { display: block; }
.batch-list, .batch-table-scroll { width: 100%; min-width: 0; }
.batch-table-scroll { overflow-x: auto; border: 1px solid #e8eeeb; border-radius: 12px; }
.admin-shell .batch-table { width: 100%; min-width: 0; table-layout: fixed; }
.batch-table th:nth-child(1), .batch-table td:nth-child(1) { width: 5%; }
.batch-table th:nth-child(2), .batch-table td:nth-child(2) { width: 5%; }
.batch-table th:nth-child(3), .batch-table td:nth-child(3) { width: 27%; }
.batch-table th:nth-child(4), .batch-table td:nth-child(4) { width: 13%; }
.batch-table th:nth-child(5), .batch-table td:nth-child(5) { width: 8%; }
.batch-table th:nth-child(6), .batch-table td:nth-child(6) { width: 16%; }
.batch-table th:nth-child(7), .batch-table td:nth-child(7) { width: 13%; }
.batch-table th:nth-child(8), .batch-table td:nth-child(8) { width: 13%; }
.batch-table th { padding: 0.65rem 0.55rem; white-space: nowrap; font-size: 0.68rem; }
.batch-table td { padding: 0.58rem 0.55rem; vertical-align: middle; font-size: 0.78rem; }
.batch-table tbody tr { transition: background 120ms ease; }
.batch-table tbody tr:hover td,
.batch-table tbody tr:focus-visible td { background: #f4faf6; }
.batch-table tbody tr:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.batch-table td:first-child { color: #66756e; }
.batch-table td:nth-child(4),
.batch-table td:nth-child(5) { white-space: nowrap; }
.batch-product-button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.batch-product-button .product-thumb,
.batch-product-button .letter-thumb {
  width: 38px;
  height: 38px;
  border: 1px solid #e9eeeb;
  border-radius: 8px;
  background-color: #f1f4f2;
}
.batch-product-copy { display: grid; gap: 0.08rem; min-width: 0; }
.batch-product-copy strong {
  overflow: hidden;
  color: #1b2430;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.batch-product-copy small {
  overflow: hidden;
  color: #8b9793;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.batch-open, .batch-closed, .batch-purchased {
  display: inline-flex;
  border-radius: 7px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 750;
  white-space: nowrap;
}
.batch-open { background: #e5f6ec; color: #1c8a4a; }
.batch-closed { background: #eef0ef; color: #64716b; }
.batch-purchased { background: #e7f1ff; color: #2768bd; }
.batch-table .more-menu { display: flex; justify-content: center; }
.batch-table .more-btn { font-size: 1.25rem; }
.batch-empty { padding: 1rem 0.4rem; }
.batch-list-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.1rem 0.05rem;
}
.panel-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.admin-batch-pictures .product-image-controls { flex: 1 1 12rem; }
.admin-batch-pictures .product-image-controls input[type="file"] { width: 100%; }
.batch-results { color: #78857f; font-size: 0.75rem; }
.batch-pagination { display: flex; gap: 0.3rem; }
.batch-page-btn {
  min-width: 30px;
  height: 30px;
  border: 1px solid #e5ebe8;
  border-radius: 7px;
  background: #fff;
  color: #596861;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.batch-page-btn.is-current { border-color: var(--green); background: var(--green); color: #fff; }
.batch-page-btn:disabled { color: #b2bdb7; cursor: default; }
.batch-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(900px, calc(100% - 2rem));
  max-width: 900px;
  max-height: 88vh;
  padding: 1.2rem;
  overflow: auto;
  border: 1px solid #dce7e1;
  border-radius: 16px;
  background: #f4f7f6;
  color: var(--ink);
  box-shadow: 0 24px 70px rgb(8 24 18 / 25%);
}
.batch-dialog::backdrop { background: rgb(10 25 19 / 48%); backdrop-filter: blur(2px); }
.batch-dialog-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: -0.55rem -0.55rem -2.4rem 0;
  border: 1px solid #e5ebe8;
  border-radius: 50%;
  background: #fff;
  color: #34443c;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.batch-dialog-close:hover { background: #edf5f0; }
.batch-dialog .admin-batch {
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.batch-dialog .admin-batch-summary {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.1rem 0 0.85rem;
}
.admin-batch-cover {
  display: grid;
  place-items: center;
  width: 7rem;
  height: 5.2rem;
  border: 1px solid #e7eeea;
  border-radius: 10px;
  background: #f1f4f2;
  object-fit: cover;
}
.admin-batch-cover-placeholder { color: var(--green); font-size: 1.8rem; font-weight: 800; }
.admin-batch-summary-copy { display: grid; gap: 0.12rem; min-width: 0; }
.batch-dialog .admin-batch-name { color: #1c2430; font-size: 1.12rem; }
.admin-batch-variant, .admin-batch-dates { color: #7d8b86; font-size: 0.76rem; }
.admin-batch-status { align-self: start; }
.batch-dialog .admin-batch-content { padding: 0.1rem 0 0; border-top: 0; }
.admin-batch-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; margin: 0 0 0.9rem; }
.admin-batch-metric { display: flex; align-items: center; gap: 0.55rem; min-width: 0; padding: 0.62rem; border: 1px solid #edf0ef; border-radius: 10px; background: #f8f9f8; }
.admin-batch-metric-icon { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; flex: 0 0 auto; border-radius: 50%; background: #e3f4e9; }
.admin-batch-metric-icon::after { width: 0.48rem; height: 0.48rem; border: 2px solid currentColor; border-radius: 2px; content: ""; }
.metric-green .admin-batch-metric-icon { color: #15864c; }
.metric-amber .admin-batch-metric-icon { background: #fff0d9; color: #e99114; }
.metric-red .admin-batch-metric-icon { background: #fde7e7; color: #e24f4f; }
.admin-batch-metric-copy { display: grid; min-width: 0; }
.admin-batch-metric-copy strong { overflow: hidden; color: #1c2430; font-size: 0.88rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-batch-metric-copy small { color: #7d8b86; font-size: 0.68rem; }
.admin-batch-tabs { display: flex; justify-content: space-between; align-items: center; gap: 0.7rem; min-height: 42px; border-bottom: 1px solid #e7eeea; }
.admin-batch-tab-list, .admin-batch-export-actions { display: flex; align-items: center; gap: 0.25rem; }
.admin-batch-tab { min-height: 40px; padding: 0.45rem 0.55rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #697771; font: inherit; font-size: 0.75rem; font-weight: 650; cursor: pointer; }
.admin-batch-tab[aria-selected="true"] { border-bottom-color: var(--green); color: var(--green); }
.admin-view-tabs { display: flex; gap: 0.25rem; overflow-x: auto; margin: 0 0 1rem; border-bottom: 1px solid #e7eeea; scrollbar-width: thin; }
.admin-view-tab { flex: 0 0 auto; min-height: 2.65rem; padding: 0.55rem 0.8rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #697771; font: inherit; font-size: 0.82rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.admin-view-tab:hover { color: var(--green); }
.admin-view-tab.is-active,
.admin-view-tab[aria-selected="true"] { border-bottom-color: var(--green); color: var(--green); }
.admin-view-tab:focus-visible { outline: 2px solid #77c9a0; outline-offset: -3px; }
.admin-view-tab-panel[hidden] { display: none; }
.statistics-panel > .admin-view-tab-panel > .panel { padding: 0; border: 0; box-shadow: none; }
.admin-batch-export-actions .btn { min-height: 30px; padding: 0.28rem 0.5rem; font-size: 0.69rem; white-space: nowrap; }
.admin-batch-tab-panel { min-height: 8rem; padding: 0.85rem 0; }
.admin-batch-tab-panel[hidden] { display: none; }
.admin-batch .table-scroll { max-height: 24rem; overflow: auto; }
.admin-batch-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin: 0; }
.admin-batch-info-grid > div { padding: 0.7rem; border: 1px solid #edf0ef; border-radius: 9px; background: #fafbfa; }
.admin-batch-info-grid dt { color: #7d8b86; font-size: 0.68rem; }
.admin-batch-info-grid dd { margin: 0.15rem 0 0; color: #1c2430; font-size: 0.82rem; font-weight: 650; overflow-wrap: anywhere; }
.admin-product-info-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 0.8rem; max-width: 48rem; }
.admin-product-info-form .field { min-width: 0; margin: 0 0 0.65rem; }
.admin-product-info-form .field label { display: flex; flex-direction: column; gap: 0.3rem; color: #52615b; font-size: 0.74rem; }
.admin-product-info-form input, .admin-product-info-form textarea { width: 100%; min-height: 2.5rem; margin: 0; padding: 0.5rem 0.65rem; border: 1px solid #cfddd5; border-radius: 8px; background: #fff; color: #1c2430; font: inherit; font-size: 0.82rem; }
.admin-product-info-form textarea { min-height: 6rem; resize: vertical; }
.admin-product-info-form input:disabled, .admin-product-info-form textarea:disabled { background: #f1f4f2; color: #75817b; cursor: not-allowed; }
.admin-product-info-form > .help, .admin-product-info-form > .form-error { grid-column: 1 / -1; margin: 0 0 0.5rem; font-size: 0.74rem; }
.admin-product-info-form > .btn { justify-self: start; }
.batch-create-related, .admin-product-info-form > .related-picker { grid-column: 1 / -1; }
.related-picker { min-width: 0; margin: 0 0 0.8rem; padding: 0.75rem; border: 1px solid #dfe8e3; border-radius: 10px; background: #fbfdfc; }
.related-picker legend { padding: 0 0.3rem; color: #1c2430; font-size: 0.8rem; font-weight: 700; }
.related-picker > .help { margin: 0 0 0.55rem; font-size: 0.72rem; }
.related-picker-toolbar { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.related-picker-toolbar input[type="search"] { flex: 1 1 auto; min-width: 0; }
.related-picker-count { flex: none; color: #52615b; font-size: 0.74rem; font-weight: 700; }
.related-picker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.35rem; max-height: 15rem; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.related-picker-list li[hidden] { display: none; }
.related-picker .related-picker-option { display: flex; flex-direction: row; align-items: center; gap: 0.55rem; min-height: 3rem; padding: 0.4rem 0.55rem; border: 1px solid #e7eeea; border-radius: 8px; background: #fff; color: #1c2430; font-size: 0.78rem; cursor: pointer; }
.related-picker .related-picker-option:has(input:checked) { border-color: var(--green-mid); background: #eef7f2; }
.related-picker .related-picker-option:has(input:disabled) { cursor: not-allowed; opacity: 0.55; }
.admin-shell .related-picker input[type="checkbox"], .admin-product-info-form .related-picker input[type="checkbox"] { flex: none; width: 1.05rem; height: 1.05rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--green-mid); }
.related-picker .product-thumb, .related-picker .letter-thumb { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 6px; object-fit: cover; }
.related-picker-copy { display: grid; min-width: 0; }
.related-picker-copy strong, .related-picker-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-picker-copy small { color: #6a7771; font-size: 0.7rem; }
.related-picker-empty { margin: 0.4rem 0 0; font-size: 0.74rem; }
.customer-alerts-summary { margin: 0 0 0.8rem; padding: 0.65rem 0.8rem; border: 1px solid #dfe8e3; border-radius: 9px; background: #f6faf8; color: #3f4d47; font-size: 0.78rem; line-height: 1.45; }
.customer-alerts-summary strong { color: #1c2430; }
.alerts-badge { display: inline-block; padding: 0.18rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 750; white-space: nowrap; }
.alerts-badge.is-on { background: #e4f5ed; color: var(--green-mid); }
.alerts-badge.is-off { background: #f1f2f1; color: #7a8580; }
.viewers-trigger { padding: 0; border: 0; border-bottom: 1px dashed currentColor; background: none; color: inherit; font: inherit; cursor: help; }
.viewers-trigger:hover, .viewers-trigger[aria-expanded="true"] { color: var(--green-mid); }
.viewers-trigger:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 2px; border-radius: 2px; }
.viewers-popover { position: fixed; inset: auto; z-index: 1000; margin: 0; width: min(20rem, calc(100vw - 16px)); max-height: min(24rem, calc(100vh - 16px)); overflow-y: auto; padding: 0.8rem; border: 1px solid #dfe8e3; border-radius: 12px; background: #fff; color: #1c2430; box-shadow: 0 14px 40px rgb(15 35 28 / 18%); font-size: 0.78rem; text-align: left; }
.viewers-popover[hidden] { display: none; }
.viewers-popover-title { display: block; font-size: 0.86rem; }
.viewers-popover-stats { display: block; margin-top: 0.1rem; color: #6a7771; font-size: 0.72rem; }
.viewers-popover-heading { margin: 0.7rem 0 0.35rem; color: #7d8b86; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; }
.viewers-popover-list { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.viewers-popover-list li { display: flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.2rem; border-radius: 7px; }
.viewers-popover-list li:hover { background: #f6faf8; }
.viewers-popover-list .avatar-dot { width: 24px; height: 24px; font-size: 0.68rem; }
.viewers-popover-who { display: grid; flex: 1 1 auto; min-width: 0; }
.viewers-popover-who span, .viewers-popover-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewers-popover-who span { font-weight: 700; }
.viewers-popover-who small, .viewers-popover-when { color: #6a7771; font-size: 0.7rem; }
.viewers-popover-when { display: grid; flex: none; justify-items: end; gap: 0.05rem; }
.viewers-popover-when strong { color: #1c2430; font-size: 0.72rem; }
.viewers-popover-list .avatar-dot.av-guest { background: #eef1f0; color: #6a7771; }
.viewers-popover-note { margin: 0.6rem 0 0; color: #6a7771; }
.viewers-popover-note.error { color: #b42318; }
.viewers-popover-guests { margin: 0.7rem 0 0; padding-top: 0.6rem; border-top: 1px solid #edf0ef; color: #52615b; line-height: 1.4; }
.viewers-popover-guests strong { color: #1c2430; }
.update-notice { position: fixed; z-index: 1001; left: 50%; bottom: 1rem; display: flex; align-items: center; gap: 0.8rem; max-width: calc(100vw - 2rem); padding: 0.6rem 0.6rem 0.6rem 1rem; border-radius: 12px; background: #1c2430; color: #fff; box-shadow: 0 14px 40px rgb(0 0 0 / 25%); font-size: 0.84rem; transform: translateX(-50%); }
.update-notice .btn { flex: none; min-height: 0; padding: 0.45rem 0.9rem; }
.admin-batch-pictures { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.8rem; }
.admin-batch-picture-preview { width: 8rem; height: 6.4rem; border: 1px solid #e7eeea; border-radius: 9px; background: #f1f4f2; object-fit: cover; }
.admin-batch-pictures iframe.admin-batch-picture-preview { border: 0; }
.product-image-gallery .gallery-media, .dialog-product-image-gallery .gallery-media { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.gallery-media > video, .gallery-media > iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: inherit; background: #111; object-fit: contain; }
.gallery-media > .product-image-button { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-image-gallery .gallery-media > video, .product-image-gallery .gallery-media > iframe { object-fit: cover; }
.admin-batch-pictures .product-image-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; min-width: 8rem; margin: 0; padding: 0.75rem; border: 1px dashed #dce5e0; border-radius: 10px; }
.admin-batch-pictures .product-image-controls label { font-size: 0.74rem; }
.admin-batch-pictures .product-image-controls input[type="file"] { max-width: 14rem; font-size: 0.68rem; }
.admin-batch-pictures .product-image-controls .help { margin: 0; font-size: 0.68rem; }
.admin-batch-footer { display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0.7rem 0 0; border-top: 1px solid #e7eeea; }
.admin-batch-footer .btn { min-height: 36px; padding-inline: 0.8rem; font-size: 0.75rem; }
.admin-batch-tab-panel > .help { margin: 0 0 0.7rem; }

@media (max-width: 1100px) {
  .admin-shell .dash-hero { grid-template-columns: 1fr; }
  .admin-shell .stat-row { grid-template-columns: 1fr 1fr; }
  .admin-shell .dash-grid,
  .admin-shell .panel-head.with-action { grid-template-columns: minmax(0, 1fr); }
  .admin-shell .panel-head.with-action .create-btn { justify-self: start; }
  .admin-shell .tracker-summary,
  .admin-shell .online-summary { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .admin-shell .tracker-tools { width: 100%; }
  .admin-shell .tracker-tools .btn { width: 100%; }
  .admin-shell .online-person { grid-template-columns: minmax(0, 1fr); }
  .admin-shell .online-person-meta { padding-left: 1.15rem; text-align: left; }
  .admin-product-info-form { grid-template-columns: minmax(0, 1fr); }
  .announcement-slide-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .admin-shell .admin-side {
    position: fixed;
    transform: translateX(-105%);
    transition: transform 160ms ease;
  }
  .admin-shell .admin-top { z-index: 46; }
  .admin-shell .admin-side.is-open { transform: none; }
  .admin-shell .admin-side.is-open + .side-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    background: rgba(8, 24, 18, 0.4);
  }
  .admin-shell .side-toggle { display: inline-flex; }
  .admin-shell .admin-search kbd { display: none; }
  .admin-shell .admin-user-copy small, .admin-shell .caret { display: none; }
  .admin-shell .stat-row, .admin-shell .quick-grid { grid-template-columns: 1fr; }
  .admin-shell .admin-content, .admin-shell .admin-top { padding-left: 0.9rem; padding-right: 0.9rem; }
}

.welcome-hero.has-announcement-full-image {
  position: relative;
  display: block;
  min-height: clamp(9rem, 20vw, 17rem);
  aspect-ratio: 4.2 / 1;
  border: 0;
  background: #efe6d6;
}
.welcome-hero.has-announcement-full-image .hero-copy { display: none; }
.welcome-hero.has-announcement-full-image .hero-art {
  position: absolute;
  inset: 0;
  min-height: 100%;
}
.welcome-hero.has-announcement-full-image .hero-art::after { background: linear-gradient(90deg, rgb(11 27 19 / 20%), transparent 58%), linear-gradient(0deg, rgb(11 27 19 / 38%), transparent 44%); }

.announcement-storefront-picker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0;
  color: #405248;
  font-size: 0.85rem;
  font-weight: 700;
}
.announcement-storefront-picker select {
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #d8e1db;
  border-radius: 0.55rem;
  background: #fff;
  color: #23392e;
  font: inherit;
}
.bottom-nav-menu > a,
.bottom-nav-menu > button { display: flex !important; align-items: center; gap: 0.65rem; }
.bottom-menu-item-icon {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  background: currentColor center / contain no-repeat;
}
.bottom-menu-icon-store {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5838' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18v10H3zM2 10l2-6h16l2 6M8 20v-6h8v6'/%3E%3C/svg%3E");
}
.bottom-menu-icon-preorder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5838' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16l-1 13H5L4 7zM9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E");
}
.bottom-menu-icon-invite {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5838' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20v-2a6 6 0 0 1 12 0v2M18 8v6m-3-3h6'/%3E%3C/svg%3E");
}
.bottom-menu-icon-contact {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5838' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v12H9l-5 4zM8 10h8m-8 4h5'/%3E%3C/svg%3E");
}

@media (max-width: 640px) {
  .welcome-hero.has-announcement-full-image {
    min-height: 7rem;
    aspect-ratio: 2.5 / 1;
  }
}

@media (max-width: 760px) {
  .invoice-batch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invoice-batch-name { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .admin-shell .batches-panel .panel-head.with-action { grid-template-columns: 1fr; }
  .batch-create-form { grid-template-columns: minmax(0, 1fr); }
  .batch-create-colors, .batch-create-image, .batch-create-submit { grid-column: auto; }
  .batch-toolbar { align-items: stretch; flex-direction: column; }
  .batch-filters { justify-content: space-between; }
  .batch-filter { flex: 1 1 auto; justify-content: center; padding-inline: 0.4rem; }
  .batch-sort { align-self: flex-end; }
  .batch-bulk-toolbar { align-items: stretch; }
  .batch-selection-count { flex: 1 0 100%; }
  .batch-bulk-date { flex: 1 1 100%; justify-content: space-between; }
  .batch-bulk-date input { flex: 1; }
  .batch-bulk-toolbar .btn, .batch-selection-clear { flex: 1 1 auto; }
  .batch-bulk-toolbar #batch-delete-selected { flex: 1 1 auto; }
  .batch-list-footer { align-items: flex-start; flex-direction: column; }
  .batch-dialog { width: calc(100% - 1rem); max-height: 94vh; padding: 0.8rem; }
  .invoice-dialog { width: calc(100% - 1rem); max-height: 94vh; padding: 0.8rem; }
  .batch-dialog .admin-batch-summary { padding-inline: 0; }
  .batch-dialog .admin-batch-summary { grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 0.5rem; }
  .admin-batch-cover { width: 4.5rem; height: 4.2rem; }
  .admin-batch-dates { font-size: 0.66rem; }
  .admin-batch-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; }
  .admin-batch-metric { padding: 0.45rem; }
  .admin-batch-tabs { align-items: stretch; flex-direction: column; gap: 0.35rem; padding-bottom: 0.4rem; }
  .admin-batch-tab-list { justify-content: space-between; }
  .admin-batch-tab { padding-inline: 0.4rem; font-size: 0.69rem; }
  .admin-batch-export-actions { flex-wrap: wrap; }
  .admin-batch-export-actions .btn { flex: 1 1 auto; }
  .admin-batch-info-grid { grid-template-columns: 1fr; }
  .admin-batch-footer .btn { flex: 1 1 auto; }
  .admin-shell .batch-table { min-width: 0; }
  .batch-table th { padding: 0.5rem 0.2rem; font-size: 0.56rem; letter-spacing: 0; }
  .batch-table td { padding: 0.45rem 0.2rem; font-size: 0.65rem; overflow-wrap: anywhere; }
  .batch-product-button { gap: 0.25rem; }
  .batch-product-button .product-thumb,
  .batch-product-button .letter-thumb { width: 28px; height: 28px; border-radius: 6px; }
  .batch-product-copy strong { font-size: 0.64rem; }
  .batch-product-copy small { display: none; }
  .batch-table .more-btn { width: 22px; height: 26px; padding: 0; }
}

.install-prompt {
  position: fixed;
  z-index: 40;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.8rem;
  border: 1px solid #d7e6dc;
  border-radius: 16px;
  background: #fff;
  color: var(--green-deep);
  box-shadow: 0 12px 32px rgb(7 61 49 / 16%);
}
.install-prompt[hidden] { display: none; }
.install-prompt img { width: 42px; height: 42px; border-radius: 10px; }
.install-prompt strong { display: block; font-size: 0.95rem; }
.install-prompt p { margin: 0.15rem 0 0; color: #3d4a43; font-size: 0.82rem; }
.install-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-left: auto; }
.install-actions .btn { white-space: nowrap; }
@media (max-width: 760px) {
  .install-prompt {
    bottom: calc(4.6rem + env(safe-area-inset-bottom));
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-admin .install-prompt { bottom: calc(0.8rem + env(safe-area-inset-bottom)); }
  .install-actions { width: 100%; margin-left: 0; }
  .install-actions .btn { flex: 1; }
}
@media print {
  .install-prompt { display: none; }
}
.product-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.product-pagination[hidden] { display: none; }
.product-pagination span { color: #3d4a43; font-size: 0.9rem; }
.product-pagination .btn:disabled { opacity: 0.45; cursor: default; }
.product-page-numbers { display: flex; align-items: center; gap: 0.35rem; }
.product-page-number {
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.35rem;
  border: 1px solid #cbd7cf;
  border-radius: 0.65rem;
  background: #fff;
  color: var(--green-deep);
  font: inherit;
  cursor: pointer;
}
.product-page-number.is-current {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #fff;
}
.product-page-number:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }
.alerts-prompt {
  width: min(24rem, calc(100% - 2rem));
  padding: 1.6rem 1.4rem 1.2rem;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--green-deep);
  text-align: center;
  box-shadow: 0 24px 60px rgb(7 61 49 / 28%);
}
.alerts-prompt::backdrop { background: rgb(9 30 23 / 55%); }
.alerts-prompt-icon { position: relative; display: inline-block; margin-bottom: 0.9rem; }
.alerts-prompt-icon img { display: block; width: 72px; height: 72px; border-radius: 18px; }
.alerts-prompt-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.35rem;
}
.alerts-prompt-count[hidden] { display: none; }
.alerts-prompt h2 { margin: 0 0 0.45rem; font-size: 1.25rem; }
.alerts-prompt p { margin: 0; color: #3d4a43; font-size: 0.95rem; line-height: 1.45; }
.alerts-prompt-actions { display: grid; gap: 0.5rem; margin-top: 1.2rem; }
.alerts-prompt-actions .btn { width: 100%; }
.alerts-prompt-actions .btn[hidden] { display: none; }
.alerts-prompt-status:empty { display: none; }
.alerts-prompt .alerts-prompt-status { margin-top: 0.8rem; font-size: 0.85rem; }

.legal-page { min-height: 100vh; background: var(--page-bg, #f5f7f5); }
.legal-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.5rem; }
.legal-header nav, .customer-legal-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.legal-header a, .customer-legal-footer a { color: var(--green-deep, var(--header-dark)); font-weight: 700; text-decoration: none; }
.legal-header nav a { color: #fff; }
.legal-header a:hover, .customer-legal-footer a:hover { text-decoration: underline; }
.legal-home-row { padding-top: 0.75rem; }
.legal-home-button { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.75rem; padding: 0.65rem 1rem; border: 1px solid #0c6048; border-radius: 7px; background: #0c6048; color: #fff; font-weight: 750; text-decoration: none; box-shadow: 0 2px 5px rgb(18 63 49 / 16%); }

/* Keep customer and staff alerts on the same compact, operational card system. */
.notification-card-copy { display: grid; gap: 0.3rem; min-width: 0; overflow-wrap: anywhere; text-align: left; }
.notification-card-title { color: #173d31; font-size: 0.88rem; font-weight: 800; line-height: 1.3; }
.notification-card-body { color: #465a50; font-size: 0.82rem; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.notification-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.7rem; min-width: 0; }
.notification-card-time { color: #718079; font-size: 0.7rem; font-weight: 550; }
.notification-card-state { padding: 0.13rem 0.42rem; border: 1px solid #b9d9c8; border-radius: 999px; background: #edf7f1; color: #176746; font-size: 0.64rem; font-weight: 800; line-height: 1.2; }
.notification-card-indicator { display: block; width: 0.22rem; min-height: 100%; border-radius: 999px; background: transparent; }
.customer-notification-card.notification-card {
  grid-template-columns: 0.22rem minmax(0, 1fr);
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.72rem 0.78rem;
  border-radius: 11px;
  box-shadow: 0 1px 4px rgb(20 55 42 / 4%);
}
.customer-notification-card.notification-card.is-unread {
  border-color: #c8dfd1;
  border-left-color: #08735a;
  background: #f4faf6;
}
.customer-notification-card.notification-card.is-unread .notification-card-indicator,
.staff-notification-entry.is-unread .notification-card-indicator { background: #08735a; }
.customer-notification-card.notification-card:hover { border-color: #8ec1a7; background: #f5fbf8; }
.customer-notification-card.notification-card:focus-visible,
.staff-payment-alert-item.notification-card:focus-visible { outline: 2px solid #08735a; outline-offset: 2px; }
.customer-notification-card.notification-card.is-selected { box-shadow: 0 0 0 3px rgb(8 115 90 / 18%); }
.customer-notification-card.notification-card.is-compact { gap: 0.55rem; padding: 0.58rem 0.62rem; border-radius: 9px; }
.customer-notification-card.notification-card.is-compact .notification-card-title { font-size: 0.8rem; }
.customer-notification-card.notification-card.is-compact .notification-card-body { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 0.74rem; }
.customer-notification-card.notification-card.is-compact.is-expanded .notification-card-body { display: block; overflow: visible; -webkit-line-clamp: unset; }
.customer-alerts-list .customer-notification-card.notification-card .notification-card-body { font-size: 0.74rem; }
.customer-alerts-list .customer-notification-card.notification-card .notification-card-meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.68rem; line-height: normal; }
.customer-notification-card.notification-card.is-compact .notification-card-time,
.customer-notification-card.notification-card.is-compact .notification-card-action { font-size: 0.66rem; }
.customer-notification-card.notification-card .customer-notification-action { color: #08735a; font-weight: 750; }
.staff-notification-entry { padding: 0; border: 0; border-radius: 0; background: transparent; }
.staff-payment-alert-item.notification-card {
  display: grid;
  grid-template-columns: 0.22rem minmax(0, 1fr);
  align-items: stretch;
  gap: 0.6rem;
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.72rem;
  border: 1px solid #e1e9e4;
  border-radius: 11px;
  background: #fff;
  color: inherit;
  white-space: normal;
  line-height: 1.4;
}
.staff-notification-entry.is-unread .staff-payment-alert-item.notification-card {
  border-color: #c8dfd1;
  background: #f4faf6;
}
.staff-payment-alert-item.notification-card:hover { background: #f5fbf8; border-color: #8ec1a7; }
.staff-payment-alert-item.notification-card .notification-card-title { display: block; }
.staff-payment-alert-item.notification-card .notification-card-time { display: block; }
.alert-pop .staff-notification-entry { padding: 0; border: 0; background: transparent; }
.alert-pop .staff-payment-alert-item.notification-card { padding: 0.8rem; border-radius: 13px; }
.alert-pop .staff-payment-alert-item.notification-card .notification-card-title { font-size: 0.9rem; }
.alert-pop .staff-payment-alert-item.notification-card .notification-card-body { font-size: 0.82rem; }
.alert-pop .staff-payment-alert-item.notification-card .notification-card-meta { gap: 0.55rem; }
.staff-notifications-list .staff-notification-entry { grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 0.55rem; }
.staff-notifications-list .notification-card-body { font-size: 0.84rem; }
.staff-payment-alert-item.notification-card .staff-notification-card-action { color: #08735a; font-weight: 800; white-space: nowrap; }
.staff-payment-alert-item.notification-card.staff-order-alert-card {
  display: grid;
  grid-template-columns: 0.25rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgb(20 55 42 / 5%);
}
.staff-notification-entry.is-unread .staff-payment-alert-item.staff-order-alert-card { border-color: #c8dfd1; background: #f7fbf8; }
.staff-order-alert-content { display: grid; gap: 0.85rem; min-width: 0; color: #172821; text-align: left; white-space: normal; }
.staff-order-alert-heading { display: grid; grid-template-columns: 3.3rem minmax(0, 1fr) auto; align-items: center; gap: 0.8rem; min-width: 0; }
.staff-order-alert-icon { display: grid; width: 3.3rem; height: 3.3rem; place-items: center; border-radius: 50%; background: #fff0d8; color: #c84908; font-size: 1.45rem; }
.staff-order-alert-heading-copy { display: grid; gap: 0.15rem; min-width: 0; }
.staff-order-alert-title { color: #142130; font-size: 1.15rem; font-weight: 850; line-height: 1.25; overflow-wrap: anywhere; }
.staff-order-alert-customer-name { color: #1458a6; }
.staff-order-alert-subtitle { color: #68788e; font-size: 0.9rem; }
.staff-order-alert-status { justify-self: end; padding: 0.45rem 0.75rem; border-radius: 999px; background: #fff0d8; color: #c84908; font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
.staff-order-alert-status.is-paid { background: #e6f5eb; color: #08734a; }
.staff-order-alert-product { display: grid; grid-template-columns: 7rem minmax(0, 1fr); align-items: center; gap: 1rem; min-width: 0; }
.staff-order-alert-image { display: block; width: 7rem; aspect-ratio: 1; object-fit: cover; border: 1px solid #e5e8e9; border-radius: 10px; background: #f6f7f5; }
.staff-order-alert-product-details { display: grid; gap: 0.7rem; min-width: 0; }
.staff-order-alert-product-name { color: #142130; font-size: 1.1rem; font-weight: 800; overflow-wrap: anywhere; }
.staff-order-alert-metrics { display: grid; grid-template-columns: minmax(4.5rem, 0.7fr) minmax(8rem, 1.25fr) minmax(7rem, 0.8fr); min-width: 0; }
.staff-order-alert-metric { display: grid; gap: 0.25rem; min-width: 0; padding: 0.1rem 0.8rem; border-left: 1px solid #dfe6eb; }
.staff-order-alert-metric:first-child { padding-left: 0; border-left: 0; }
.staff-order-alert-metric small { color: #68788e; font-size: 0.78rem; }
.staff-order-alert-metric strong { color: #293b52; font-size: 0.92rem; overflow-wrap: anywhere; }
.staff-order-alert-metric:nth-child(2) strong { color: #bf3d0b; font-size: 1rem; }
.staff-order-alert-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; min-width: 0; padding-top: 0.7rem; border-top: 1px solid #e4eaf0; }
.staff-order-alert-customer { color: #607087; font-size: 0.88rem; overflow-wrap: anywhere; }
.staff-order-alert-action { flex: none; padding: 0.7rem 1.1rem; border-radius: 11px; background: #12834f; color: white; font-size: 0.9rem; font-weight: 800; }
.staff-order-alert-card:hover .staff-order-alert-action { background: #0d7143; }
@media (max-width: 680px) {
  .staff-order-alert-heading { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.6rem; }
  .staff-order-alert-icon { width: 2.6rem; height: 2.6rem; }
  .staff-order-alert-status { grid-column: 2; justify-self: start; }
  .staff-order-alert-product { grid-template-columns: 5rem minmax(0, 1fr); gap: 0.7rem; }
  .staff-order-alert-image { width: 5rem; }
  .staff-order-alert-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 0; }
  .staff-order-alert-metric:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .staff-order-alert-title { font-size: 1rem; }
  .staff-order-alert-footer { align-items: stretch; flex-direction: column; }
  .staff-order-alert-action { text-align: center; }
}
.legal-home-button:hover { background: #094c39; color: #fff; text-decoration: none; }
.legal-home-button:focus-visible { outline: 3px solid #e0a000; outline-offset: 3px; }
.legal-home-button svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.legal-layout { display: grid; grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr); gap: 1.25rem; align-items: start; padding-top: 1.25rem; padding-bottom: 2rem; }
.legal-toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; padding: 1rem; }
.legal-toc summary { color: var(--green-deep, var(--header-dark)); font-weight: 800; cursor: pointer; }
.legal-toc #legal-toc-links { display: grid; gap: 0.5rem; margin-top: 0.8rem; }
.legal-toc a { color: #52615b; font-size: 0.82rem; line-height: 1.35; text-decoration: none; }
.legal-toc a:hover { color: var(--green-deep, var(--header-dark)); text-decoration: underline; }
.legal-anchor { display: block; scroll-margin-top: 1rem; }
.legal-table-wrap { max-width: 100%; overflow-x: auto; }
.legal-document table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.legal-document th, .legal-document td { padding: 0.45rem 0.6rem; border: 1px solid #e5ebe7; text-align: left; vertical-align: top; }
.legal-document th { background: #f5f7f5; color: var(--green-deep, var(--header-dark)); }
.legal-document { min-width: 0; padding: clamp(1.1rem, 4vw, 2.5rem); color: #293630; line-height: 1.7; overflow-wrap: anywhere; }

/* Ghana Shop storefront, product details, cart, and checkout */
.available-shop-page-header { align-items: center; }
.available-shop-header { padding: 0.7rem 0 0.85rem; }
.available-shop-heading > .help { max-width: 36rem; }
.available-shop-hero { grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr); min-height: 20rem; }
.available-shop-hero:not(.has-featured-products) { grid-template-columns: 1fr; }
.available-hero-products:not(.has-featured-products) { display: none; }
.available-hero-product { background: #fff; }
.available-categories { grid-template-columns: repeat(9, minmax(0, 1fr)); overflow: visible; padding: 0.3rem 0; }
.available-categories button { min-width: 0; min-height: 4.8rem; gap: 0.35rem; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgb(24 42 32 / 5%); }
.available-categories button > span { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 8px; background: #f5eee5; color: #8b5834; font-size: 1.1rem; }
.available-categories button.is-active > span { background: rgb(255 255 255 / 16%); color: #fff; }
.available-catalog-heading { margin-top: 1.5rem; }
.available-catalog-heading h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.available-product-card { display: flex; flex-direction: column; }
.available-product-cover { position: relative; width: 100%; height: auto; aspect-ratio: 1.15; overflow: hidden; background: #f4f1e8; }
.available-product-card .available-product-card-gallery { position: absolute; inset: 0; }
.available-product-card .available-product-card-gallery .available-gallery-item { flex-basis: 100%; }
.available-product-card .product-details { display: flex; flex-direction: column; flex: 1; padding: 0.8rem 0.85rem 0.45rem; }
.available-product-card .batch-name { display: -webkit-box; min-height: 2.35em; overflow: hidden; font-size: 0.96rem; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.available-product-card .product-price { margin-top: 0.3rem; font-size: 1.15rem; }
.available-product-card .batch-count { margin-top: 0.2rem; margin-bottom: 0; }
.available-product-card .product-cover .pill { position: absolute; z-index: 2; top: 0.55rem; left: 0.55rem; width: auto; padding: 0.28rem 0.55rem; border: 1px solid rgb(255 255 255 / 78%); border-radius: 999px; background: #f0fff5; color: #08613c; box-shadow: 0 2px 8px rgb(17 43 29 / 15%); font-size: 0.68rem; font-weight: 800; }
.available-product-card .product-cover .pill.is-closed { background: #fff3ef; color: #8e3a2e; }
.available-product-card .batch-toggle { width: calc(100% - 1.7rem); min-height: 2.65rem; margin: auto 0.85rem 0.85rem; font-size: 0.84rem; }
.available-product-card .batch-toggle::after { margin-left: 0.35rem; }
.available-service-strip { margin-top: 1.5rem; padding: 1rem 0.8rem; background: #eff7f1; }
.available-service-strip article { min-width: 0; }
.available-service-strip article > span { display: grid; width: 2.25rem; height: 2.25rem; flex: 0 0 2.25rem; place-items: center; border-radius: 9px; background: #fff; box-shadow: 0 2px 8px rgb(8 116 71 / 8%); }
.available-cart-page { padding-top: 0.35rem; }
.available-cart-page-heading { min-height: 3.6rem; }
.available-cart-page-heading h2 { font-size: 1.2rem; font-weight: 800; }
.available-cart-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.8fr); align-items: start; gap: 1rem; margin-top: 1rem; }
.available-cart-layout.is-empty { grid-template-columns: minmax(0, 1fr); }
.available-cart-layout.is-empty .available-checkout-panel { display: none; }
.available-cart-layout.is-empty .available-checkout-delivery-note { display: none; }
.available-cart-layout > .available-cart { grid-column: 1; grid-row: 1 / span 2; }
.available-cart-layout > .available-checkout-panel { grid-column: 2; grid-row: 1; }
.available-cart-layout > .available-checkout-delivery-note { grid-column: 2; grid-row: 2; }
.available-cart,
.available-checkout-panel,
.available-orders,
.available-paid-orders-page { min-width: 0; padding: clamp(1rem, 2.5vw, 1.4rem); border: 1px solid #e8ebe7; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgb(24 42 32 / 6%); }
.available-cart,
.available-orders { margin-top: 0; }
.available-cart-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.45rem; }
.available-cart-section-heading h3,
.available-checkout-panel > h3 { margin: 0; color: #20392d; font-size: 1.15rem; font-weight: 800; }
.available-cart-section-heading .help { margin: 0.25rem 0 0; font-size: 0.78rem; }
.available-cart-local-badge { display: inline-flex; flex: none; align-items: center; gap: 0.35rem; padding: 0.42rem 0.65rem; border-radius: 9px; background: #eff8f1; color: #276042; font-size: 0.7rem; font-weight: 750; }
.available-cart-local-badge > span { font-size: 1rem; }
.available-cart-lines { gap: 0; }
.available-cart-line { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; grid-template-areas: "image copy actions" "image copy total"; align-items: center; gap: 0.45rem 0.8rem; min-width: 0; padding: 0.85rem 0; border-bottom: 1px solid #edf0ed; }
.available-cart-line-media { grid-area: image; width: 5rem; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #f4f1e8; }
.available-cart-line-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.available-cart-line-media.is-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #f4efe6, #edf5ef); }
.available-cart-line-media.is-placeholder::before { width: 1.65rem; height: 1.65rem; background: #6a8874; content: ""; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 20'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 20'/%3E%3C/svg%3E") center / contain no-repeat; }
.available-cart-line-copy { display: grid; grid-area: copy; gap: 0.14rem; align-content: center; }
.available-cart-line-copy strong { overflow-wrap: anywhere; color: #24372d; font-size: 0.84rem; }
.available-cart-line-copy small { font-size: 0.7rem; }
.available-cart-line-copy .available-cart-line-price { color: var(--green-action); font-size: 0.86rem; }
.available-cart-line-copy .available-cart-line-stock { color: #28764a; }
.available-cart-line-actions { grid-area: actions; justify-self: end; gap: 0; padding: 0.1rem; border: 1px solid #e4eae5; border-radius: 8px; background: #fff; }
.available-cart-line-actions button { min-width: 2rem; min-height: 1.9rem; border: 0; border-radius: 6px; color: #32483b; font-size: 0.9rem; }
.available-cart-line-actions button[data-cart-action="remove"] { margin-left: 0.3rem; color: #68766e; }
.available-cart-line-quantity { min-width: 1.8rem; color: #273c30; font-size: 0.78rem; font-weight: 750; text-align: center; }
.available-cart-line-total { grid-area: total; justify-self: end; color: #32483b; font-size: 0.78rem; font-weight: 750; }
.available-cart-total { align-items: center; margin: 0.95rem 0 0; padding: 0.9rem 0; border-top: 1px solid #edf0ed; color: #58665e; font-size: 0.85rem; }
.available-cart-total strong { color: var(--green-action); font-size: 1.05rem; }
.available-checkout-panel { position: sticky; top: 1rem; }
.available-checkout-panel > h3 { margin-bottom: 0.35rem; }
.available-checkout-delivery-note { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.9rem; padding: 0.65rem 0.7rem; border-radius: 9px; background: #eff8f1; color: #315b42; font-size: 0.74rem; line-height: 1.35; }
.available-checkout-delivery-note > span { color: var(--green-action); font-size: 1.25rem; }
.available-checkout-form { max-width: none; gap: 0.55rem; }
.available-fulfillment-choice { display: grid; gap: 0.45rem; margin: 0 0 0.25rem; padding: 0; border: 0; }
.available-fulfillment-choice legend { margin-bottom: 0.35rem; color: #34473b; font-size: 0.78rem; font-weight: 750; }
.available-fulfillment-choice > label,
.available-checkout-contact > label,
.available-checkout-contact #available-delivery-fields > label { color: #48584e; font-size: 0.73rem; font-weight: 750; }
.available-checkout-form input,
.available-checkout-form select { min-height: 2.8rem; border-color: #dfe7e1; border-radius: 9px; font-size: 0.85rem; }
.available-checkout-contact { display: grid; gap: 0.4rem; }
.available-checkout-contact #available-delivery-fields { display: grid; gap: 0.4rem; }
.available-checkout-form .referral-credit-option { margin: 0.25rem 0; }
.available-checkout-form .help { margin: 0.15rem 0 0.3rem; font-size: 0.72rem; }
.available-checkout-form .legal-order-acknowledgement { margin: 0.2rem 0; font-size: 0.68rem; }
.available-checkout-form #available-checkout-button { width: 100%; min-height: 2.9rem; justify-content: center; border-radius: 9px; font-size: 0.87rem; font-weight: 800; }
.available-cart-section-heading .help,
.available-cart-local-badge { display: none; }
.available-cart-line { display: grid; width: 100%; grid-template-columns: 5rem minmax(9rem, 1.4fr) minmax(4.5rem, 0.55fr) auto minmax(4.8rem, 0.55fr) 2rem; grid-template-areas: "image copy unit actions total remove"; align-items: center; gap: 0.55rem clamp(0.45rem, 1.1vw, 1rem); }
.available-cart-line-copy > strong { overflow-wrap: anywhere; color: #24372d; font-size: 0.84rem; }
.available-cart-line-copy > small { color: #68766e; font-size: 0.68rem; }
.available-cart-line-copy .available-cart-line-stock { justify-self: start; padding: 0.16rem 0.42rem; border-radius: 999px; background: #e8f8ee; color: #167144; font-size: 0.62rem; font-weight: 750; text-transform: uppercase; }
.available-cart-line-copy .available-cart-line-option { justify-self: start; padding: 0.2rem 0.45rem; border-radius: 999px; background: #f0f2f1; color: #39463e; }
.available-cart-line-unit { grid-area: unit; color: #293d31; font-size: 0.8rem; white-space: nowrap; }
.available-cart-line-total { color: var(--green-action); font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
.available-cart-line-remove { grid-area: remove; justify-self: end; min-width: 1.8rem; min-height: 2rem; padding: 0; border: 0; background: transparent; color: #24704d; font-size: 1.1rem; cursor: pointer; }
.available-cart-total { display: flex; justify-content: space-between; margin: 0.85rem 0 0.75rem; padding: 0.85rem 0; color: #202f26; font-size: 1rem; font-weight: 800; }
.available-cart-total strong { color: var(--green-action); font-size: 1.2rem; }
.available-checkout-panel > h3 { margin-bottom: 0.8rem; }
.available-checkout-delivery-note { align-items: center; gap: 0.65rem; margin: 0.8rem 0 0; padding: 0.75rem; }
.available-checkout-delivery-note > span:first-child { flex: none; font-size: 1.45rem; }
.available-checkout-delivery-note > span:last-child { display: grid; gap: 0.2rem; }
.available-checkout-delivery-note strong { font-size: 0.78rem; }
.available-checkout-delivery-note small { color: #64756a; font-size: 0.66rem; }
.available-orders { margin-top: 0; }
.available-orders { margin-top: 1rem; }
.available-order-card { align-items: flex-start; padding: 0.8rem 0; }
.available-orders-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.available-orders-page-heading h3 { margin: 0; color: #20392d; font-size: clamp(1.25rem, 2vw, 1.65rem); }
.available-orders-page-heading p { margin: 0.35rem 0 0; color: #6a786f; font-size: 0.86rem; }
.available-orders-page-mark { display: grid; flex: none; width: 3rem; height: 3rem; place-items: center; border: 1px solid #dce9df; border-radius: 50%; background: #f2f8f3; color: #176344; font-size: 0.78rem; font-weight: 850; }
.available-order-filters { display: flex; gap: 0.45rem; overflow-x: auto; padding: 0.1rem 0 0.65rem; scrollbar-width: thin; }
.available-order-filter { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.45rem; min-height: 2.45rem; padding: 0.45rem 0.75rem; border: 1px solid #e5eae6; border-radius: 999px; background: #fff; color: #526158; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.available-order-filter > span { display: grid; min-width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 999px; background: #f0f3f0; color: #59675f; font-size: 0.67rem; }
.available-order-filter:hover { border-color: #b9d2c0; background: #f8fbf8; }
.available-order-filter.is-active { border-color: #176344; background: #176344; color: #fff; }
.available-order-filter.is-active > span { background: rgb(255 255 255 / 18%); color: #fff; }
.available-order-filter:focus-visible,
.available-order-search:focus-within,
.available-order-sort select:focus-visible,
.available-history-order-actions button:focus-visible,
.available-history-details summary:focus-visible { outline: 2px solid var(--green-action); outline-offset: 2px; }
.available-orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.25rem 0 0.3rem; }
.available-order-search { display: flex; flex: 1 1 25rem; align-items: center; gap: 0.55rem; min-width: 0; max-width: 38rem; min-height: 2.8rem; padding: 0 0.8rem; border: 1px solid #e2e8e3; border-radius: 9px; background: #fff; }
.available-order-search svg { flex: none; width: 1.05rem; height: 1.05rem; fill: none; stroke: #78867d; stroke-width: 1.8; stroke-linecap: round; }
.available-order-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #26392e; font: inherit; font-size: 0.8rem; }
.available-order-search input::placeholder { color: #89958d; }
.available-order-sort { display: flex; flex: none; align-items: center; gap: 0.4rem; color: #68766e; font-size: 0.76rem; font-weight: 700; }
.available-order-sort select { min-height: 2.75rem; max-width: 10.5rem; padding: 0 0.65rem; border: 1px solid #e2e8e3; border-radius: 9px; background: #fff; color: #34483b; font: inherit; font-size: 0.77rem; }
.available-order-results { min-height: 1rem; margin: 0.25rem 0 0.55rem; color: #7a877f; font-size: 0.72rem; }
.available-my-orders { gap: 0.7rem; }
.available-history-order { min-width: 0; padding: 1rem; border: 1px solid #e6ebe7; border-radius: 13px; background: #fff; }
.available-history-order-main { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr) auto; align-items: center; gap: 0.9rem; }
.available-history-order-media { display: grid; width: 5.25rem; aspect-ratio: 1; place-items: center; overflow: hidden; border: 1px solid #edf0ed; border-radius: 10px; background: #f6f6f1; }
.available-history-order-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.available-history-order-media.is-placeholder { background: linear-gradient(145deg, #f4efe6, #edf5ef); }
.available-history-order-media.is-placeholder::before { width: 1.75rem; height: 1.75rem; background: #6a8874; content: ""; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 20'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 20'/%3E%3C/svg%3E") center / contain no-repeat; }
.available-history-order-copy { min-width: 0; }
.available-history-order-eyebrow { color: #718077; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.07em; }
.available-history-order-copy h4 { overflow: hidden; margin: 0.17rem 0; color: #26392e; font-size: 0.96rem; text-overflow: ellipsis; white-space: nowrap; }
.available-history-order-copy p { overflow: hidden; margin: 0; color: #69776e; font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.available-history-order-date { display: block; margin-top: 0.35rem; color: #849087; font-size: 0.69rem; }
.available-history-order-side { display: grid; justify-items: end; gap: 0.32rem; }
.available-history-status { display: inline-flex; align-items: center; min-height: 1.55rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: #eef4ef; color: #41644d; font-size: 0.65rem; font-weight: 750; white-space: nowrap; }
.available-history-status.is-processing { background: #fff4df; color: #866015; }
.available-history-status.is-delivery { background: #eaf2ff; color: #335c98; }
.available-history-status.is-completed { background: #e9f7ed; color: #217042; }
.available-history-status.is-payment-issue { background: #fbeeee; color: #9a4040; }
.available-history-order-total { color: #253b2e; font-size: 0.92rem; white-space: nowrap; }
.available-history-fulfillment { color: #758178; font-size: 0.68rem; }
.available-order-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 1rem 0 0; padding: 0; list-style: none; }
.available-order-progress li { position: relative; display: grid; grid-template-rows: 0.8rem auto; justify-items: start; gap: 0.25rem; min-width: 0; color: #9aa49d; font-size: 0.66rem; }
.available-order-progress li::before { position: relative; z-index: 1; width: 0.65rem; height: 0.65rem; border: 2px solid #dfe5e0; border-radius: 50%; background: #fff; content: ""; }
.available-order-progress li:not(:last-child)::after { position: absolute; top: 0.29rem; right: 0; left: 0.8rem; height: 2px; background: #e5eae6; content: ""; }
.available-order-progress li.is-complete { color: #567162; }
.available-order-progress li.is-complete::before { border-color: #278054; background: #278054; }
.available-order-progress li.is-complete:not(:last-child)::after { background: #8fc5a1; }
.available-order-progress li.is-current { color: #176344; font-weight: 800; }
.available-order-progress li.is-current::before { box-shadow: 0 0 0 3px #dff0e4; }
.available-order-progress li.is-payment-issue { display: block; grid-column: 1 / -1; color: #9a4040; font-weight: 750; }
.available-order-progress li.is-payment-issue::before,
.available-order-progress li.is-payment-issue::after { display: none; }
.available-order-progress li span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.available-history-order-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid #edf0ed; }
.available-history-details summary { color: #176344; font-size: 0.75rem; font-weight: 750; cursor: pointer; }
.available-history-detail-content { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(10rem, 0.75fr); gap: 1rem; margin: 0.65rem 0 0; padding: 0.75rem; border-radius: 9px; background: #f8faf8; }
.available-history-detail-items { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.available-history-detail-items li { display: flex; justify-content: space-between; gap: 0.75rem; color: #56655b; font-size: 0.73rem; }
.available-history-detail-items li strong { flex: none; color: #304438; }
.available-history-detail-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 0.6rem; margin: 0; font-size: 0.7rem; }
.available-history-detail-facts dt { color: #7a877f; }
.available-history-detail-facts dd { overflow-wrap: anywhere; margin: 0; color: #34483b; font-weight: 650; }
.available-history-order-actions button { min-height: 2.2rem; padding: 0.4rem 0.7rem; border: 1px solid #176344; border-radius: 7px; background: #176344; color: #fff; font: inherit; font-size: 0.73rem; font-weight: 750; cursor: pointer; }
.available-history-order-actions button:hover { background: #104d35; }
.available-order-empty { padding: 2rem 1rem; border: 1px dashed #dce5de; border-radius: 12px; background: #fafcf9; text-align: center; }
.available-order-empty strong { color: #34483b; font-size: 0.94rem; }
.available-order-empty p { margin: 0.35rem 0 0; color: #758178; font-size: 0.78rem; }
.available-order-empty .btn { margin-top: 0.8rem; }
@media (max-width: 600px) {
  .available-orders-page-heading { align-items: flex-start; }
  .available-orders-page-heading p { max-width: 19rem; font-size: 0.77rem; line-height: 1.4; }
  .available-orders-page-mark { width: 2.5rem; height: 2.5rem; font-size: 0.68rem; }
  .available-orders-toolbar { align-items: stretch; flex-direction: column; gap: 0.5rem; }
  .available-order-search { flex-basis: auto; max-width: none; min-height: 2.65rem; }
  .available-order-sort { justify-content: flex-end; }
  .available-order-sort select { min-height: 2.5rem; }
  .available-history-order { padding: 0.75rem; }
  .available-history-order-main { grid-template-columns: 3.9rem minmax(0, 1fr); align-items: start; gap: 0.55rem 0.7rem; }
  .available-history-order-media { width: 3.9rem; grid-row: 1 / span 2; border-radius: 8px; }
  .available-history-order-copy { align-self: center; }
  .available-history-order-copy h4 { font-size: 0.85rem; }
  .available-history-order-copy p { font-size: 0.68rem; }
  .available-history-order-date { margin-top: 0.25rem; font-size: 0.64rem; }
  .available-history-order-side { display: flex; grid-column: 2; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 0.5rem; }
  .available-history-status { min-height: 1.4rem; padding-inline: 0.42rem; font-size: 0.6rem; }
  .available-history-order-total { font-size: 0.83rem; }
  .available-history-fulfillment { width: 100%; text-align: right; }
  .available-order-progress { margin-top: 0.85rem; }
  .available-order-progress li { font-size: 0.58rem; }
  .available-history-order-actions { justify-content: space-between; gap: 0.75rem; }
  .available-history-detail-content { grid-template-columns: minmax(0, 1fr); gap: 0.65rem; }
  .available-history-detail-items li { font-size: 0.68rem; }
}
.available-product-dialog { width: min(94vw, 74rem); max-height: min(92vh, 66rem); padding: 1.25rem; border: 1px solid #e6eae5; border-radius: 17px; background: #fff; }
.available-product-dialog .batch-dialog-header { align-items: center; }
.available-product-dialog .panel-title { margin: 0; color: #253a2e; font-size: 1.15rem; font-weight: 800; }
.available-product-dialog .panel-subtitle { max-width: none; margin: 0.25rem 0 0; color: #67766d; font-size: 0.78rem; }
.available-product-dialog .available-dialog-content { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.95fr); gap: 1.4rem; max-height: calc(min(92vh, 66rem) - 5rem); overflow-y: auto; }
.available-product-dialog .available-dialog-product { display: contents; }
.available-product-dialog .available-dialog-media { position: relative; display: grid; grid-column: 1; grid-row: 1 / span 2; grid-template-rows: minmax(0, 1fr) auto; align-content: start; gap: 0.65rem; width: 100%; height: auto; min-width: 0; padding: 0; border: 0; background: transparent; }
.available-product-dialog .available-dialog-gallery { position: relative; display: flex; width: 100%; height: 27rem; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; border: 1px solid #edf0ed; border-radius: 14px; background: #f7f7f3; scrollbar-width: none; }
.available-product-dialog .available-dialog-media > .available-product-image-placeholder { display: grid; place-items: center; min-height: 27rem; border-radius: 14px; background: #f7f7f3; color: #52715e; }
.available-product-dialog .available-dialog-gallery::-webkit-scrollbar { display: none; }
.available-product-dialog .available-dialog-gallery > .available-gallery-item { flex: 0 0 100%; width: 100%; height: 100%; aspect-ratio: auto; scroll-snap-align: start; }
.available-product-dialog .available-dialog-gallery .available-product-image-button > img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.available-dialog-thumbnails { display: flex; gap: 0.35rem; overflow-x: auto; }
.available-dialog-thumbnail { flex: 0 0 4.25rem; width: 4.25rem; height: 4.25rem; overflow: hidden; padding: 0; border: 1px solid #e2e8e3; border-radius: 8px; background: #f4f1e8; cursor: pointer; }
.available-dialog-thumbnail:focus-visible { outline: 2px solid var(--green-action); outline-offset: 2px; }
.available-dialog-thumbnail.is-active { border: 2px solid var(--green-action); }
.available-dialog-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.available-dialog-gallery-controls { position: absolute; inset: 50% 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 0.65rem; pointer-events: none; transform: translateY(-50%); }
.available-dialog-gallery-arrow { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid #e3e9e4; border-radius: 50%; background: rgb(255 255 255 / 92%); color: #2e4537; font-size: 1.55rem; line-height: 1; cursor: pointer; pointer-events: auto; }
.available-dialog-gallery-arrow:disabled { opacity: 0.45; cursor: default; }
.available-dialog-image-count { padding: 0.25rem 0.55rem; border-radius: 999px; background: rgb(255 255 255 / 92%); color: #32463a; font-size: 0.72rem; }
.available-product-dialog .available-dialog-product .dialog-product-details { grid-column: 2; grid-row: 1; min-width: 0; padding: 0; }
.available-product-dialog .dialog-product-status { margin-bottom: 0.55rem; }
.available-product-dialog .dialog-product-name { color: #273a30; font-size: 1.8rem; line-height: 1.2; }
.available-product-dialog .dialog-product-price { margin: 0.45rem 0; color: var(--green-action); font-size: 1.75rem; }
.available-product-dialog .available-dialog-description { display: -webkit-box; width: 100%; margin: 0.65rem 0; padding: 0; overflow: hidden; border: 0; background: transparent; color: #59675e; font: inherit; font-size: 0.87rem; line-height: 1.55; text-align: left; text-overflow: ellipsis; cursor: pointer; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.available-product-dialog .available-dialog-description:focus-visible { border-radius: 4px; outline: 2px solid var(--green-action); outline-offset: 3px; }
.available-product-dialog .available-dialog-order { display: grid; grid-column: 2; grid-row: 2; align-content: start; gap: 0.65rem; margin: 0; padding: 0; border: 0; background: transparent; }
.available-product-dialog .available-dialog-order .current-orders-title { margin: 0; color: #2d4436; font-size: 1rem; }
.available-product-dialog .available-dialog-options { display: grid; gap: 0.5rem; }
.available-product-dialog .available-dialog-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.65rem; min-height: 4.5rem; padding: 0.45rem 0.55rem; border: 1px solid #e5eae6; border-radius: 10px; }
.available-dialog-option-select { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); align-items: center; gap: 0.65rem; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.available-dialog-option-select:focus-visible { border-radius: 7px; outline: 2px solid var(--green-action); outline-offset: 2px; }
.available-dialog-option-select.is-selected .available-dialog-option-name { color: var(--green-action); }
.available-dialog-option-image { display: grid; place-items: center; width: 3.35rem; height: 3.35rem; overflow: hidden; border-radius: 7px; background: #f4f1e8; color: #52715e; font-size: 0.8rem; font-weight: 800; }
.available-dialog-option-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.available-dialog-option-copy { display: grid; gap: 0.2rem; min-width: 0; }
.available-dialog-option-name { overflow-wrap: anywhere; color: #304238; font-size: 0.82rem; font-weight: 700; }
.available-dialog-option-copy small { color: #6b786f; font-size: 0.7rem; }
.available-dialog-quantity-control { display: grid; grid-template-columns: 2rem 2.1rem 2rem; align-items: center; overflow: hidden; border: 1px solid #dce5de; border-radius: 7px; }
.available-dialog-quantity-step { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; background: #f5f8f5; color: #176244; font-size: 1.1rem; cursor: pointer; }
.available-dialog-quantity-step:disabled { color: #9ca79f; cursor: default; }
.available-dialog-quantity-control input { width: 2.1rem; min-height: 2rem; padding: 0; border: 0; border-right: 1px solid #e5eae6; border-left: 1px solid #e5eae6; border-radius: 0; text-align: center; }
.available-dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.available-dialog-actions .btn { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.8rem; justify-content: center; padding: 0.5rem; border-radius: 9px; font-size: 0.78rem; }
.available-dialog-action-icon { display: inline-grid; place-items: center; font-size: 1rem; line-height: 1; }
.available-dialog-actions .available-dialog-checkout { border: 1px solid #d8e5dc; background: #f3f8f4; color: #176244; }
.available-dialog-actions .available-dialog-checkout:hover { background: #e7f2eb; }
.available-product-dialog .available-dialog-cart-link { min-height: 2.5rem; border-radius: 9px; font-size: 0.78rem; }
.available-dialog-information { grid-column: 1 / -1; margin-top: 0.15rem; border-top: 1px solid #e8eee9; }
.available-dialog-info-tabs { display: flex; gap: 1.25rem; overflow-x: auto; border-bottom: 1px solid #e8eee9; }
.available-dialog-info-tab { flex: 0 0 auto; padding: 0.8rem 0.15rem 0.65rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #65736a; font: inherit; font-size: 0.82rem; cursor: pointer; }
.available-dialog-info-tab[aria-selected="true"] { border-color: var(--green-action); color: #176244; font-weight: 800; }
.available-dialog-info-panel { padding: 0.85rem 0.15rem 0.2rem; color: #59675e; font-size: 0.82rem; line-height: 1.55; }

@media (max-width: 1000px) {
  .available-categories { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .available-shop-header { padding: 0.45rem 0 0.65rem; }
  .available-shop-hero { grid-template-columns: minmax(0, 1.1fr) minmax(8rem, 0.7fr); min-height: 17.5rem; }
  .available-shop-hero:not(.has-featured-products) { grid-template-columns: minmax(0, 1fr); }
  .available-shop-hero-copy { padding: 1rem 0.85rem; }
  .available-shop-hero h1 { max-width: 12rem; font-size: clamp(1.65rem, 6vw, 2.25rem); }
  .available-shop-hero-copy > p:not(.available-shop-kicker) { max-width: 17rem; font-size: 0.79rem; }
  .available-hero-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; margin-top: 0.75rem; }
  .available-hero-benefits li { gap: 0.35rem; }
  .available-hero-benefits li > span { width: 1.55rem; height: 1.55rem; flex: 0 0 1.55rem; font-size: 0.78rem; }
  .available-hero-benefits strong { font-size: 0.6rem; }
  .available-hero-benefits small { font-size: 0.54rem; }
  .available-hero-products { min-height: 13rem; }
  .available-hero-product { width: 76%; height: 66%; }
  .available-hero-product-1 { top: 18%; left: 0; }
  .available-hero-product-2 { top: 14%; left: 17%; height: 72%; }
  .available-hero-product-3 { top: 21%; right: -5%; }
  .available-hero-stamp { top: auto; right: 0.5rem; bottom: 0.55rem; width: 3.9rem; height: 3.9rem; font-size: 0.49rem; }
  .preorder-categories { display: flex; overflow-x: auto; gap: 0.45rem; padding: 0.2rem 0 0.45rem; }
  .preorder-categories button { flex: 0 0 5rem; min-height: 4.1rem; }
  .available-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
  .available-categories button { min-height: 4.25rem; padding: 0.35rem 0.15rem; font-size: 0.61rem; }
  .available-categories button > span { width: 1.65rem; height: 1.65rem; font-size: 0.95rem; }
  .available-catalog-heading { align-items: center; flex-direction: row; gap: 0.5rem; margin-top: 1.05rem; }
  .available-catalog-heading h2 { font-size: 1.25rem; }
  .available-catalog-heading p { max-width: 12rem; font-size: 0.69rem; }
  .available-catalog-heading label { gap: 0.25rem; font-size: 0.66rem; }
  .available-catalog-heading select { min-height: 2.3rem; padding: 0.3rem 1.2rem 0.3rem 0.35rem; font-size: 0.67rem; }
  body:not(.page-admin) .available-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  body:not(.page-admin) .available-product-card { display: flex; flex-direction: column; padding: 0; }
  body:not(.page-admin) .available-product-cover { width: 100%; height: auto; aspect-ratio: 0.94; }
  body:not(.page-admin) .available-product-card .product-details { padding: 0.55rem 0.58rem 0.3rem; }
  body:not(.page-admin) .available-product-card .batch-name { min-height: 2.3em; font-size: 0.77rem; }
  body:not(.page-admin) .available-product-card .product-price { margin-top: 0.2rem; font-size: 0.93rem; }
  body:not(.page-admin) .available-product-card .batch-count { font-size: 0.62rem; }
  body:not(.page-admin) .available-product-card .batch-toggle { width: calc(100% - 1.16rem); min-height: 2.25rem; margin: auto 0.58rem 0.58rem; font-size: 0.7rem; }
  .available-service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; padding: 0.55rem; }
  .available-service-strip article { gap: 0.4rem; padding: 0.45rem 0.25rem; }
  .available-service-strip article > span { width: 1.8rem; height: 1.8rem; flex-basis: 1.8rem; font-size: 1rem; }
  .available-service-strip article:nth-child(3) { border-left: 0; }
  .available-service-strip article:nth-child(n+3) { border-top: 1px solid #dfe8e1; }
  .available-service-strip strong { font-size: 0.62rem; }
  .available-service-strip small { font-size: 0.55rem; }
  .available-cart-benefits { display: none; }
  body[data-view="available-cart"] .available-cart-page-heading { align-items: flex-start; padding-bottom: 0.5rem; }
  body[data-view="available-cart"] .available-cart-page-heading-copy { gap: 0.12rem; }
  body[data-view="available-cart"] .available-cart-page-subtitle { max-width: 24rem; font-size: 0.68rem; line-height: 1.35; }
  .available-cart-benefits { display: flex; justify-content: flex-start; min-height: 0; margin: 0 0 0.6rem; padding: 0.65rem 0.75rem; border: 1px solid #e2eee5; border-radius: 12px; background: #eff8f1; }
  .available-cart-benefits > span:not(:first-child) { display: none; }
  .available-cart-benefits > span > strong { width: 2.1rem; height: 2.1rem; flex-basis: 2.1rem; border: 0; font-size: 1rem; }
  .available-cart-benefits > span > strong svg { width: 1.8rem; height: 1.8rem; }
  .available-cart-benefits b { font-size: 0.78rem; }
  .available-cart-benefits small { font-size: 0.67rem; }
  .available-cart-layout { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; margin-top: 0.6rem; }
  .available-cart-layout > .available-cart,
  .available-cart-layout > .available-checkout-panel,
  .available-cart-layout > .available-checkout-delivery-note { grid-column: 1; grid-row: auto; }
  .available-cart,
  .available-checkout-panel,
  .available-orders,
  .available-paid-orders-page { padding: 0.85rem; border-radius: 13px; }
  .available-cart-section-heading h3,
  .available-checkout-panel > h3 { font-size: 1rem; }
  .available-cart-local-badge { padding: 0.35rem 0.45rem; font-size: 0.61rem; }
  .available-cart-line { grid-template-columns: 5.4rem minmax(0, 1fr) 2rem; grid-template-areas: "image copy copy" "image unit unit" "image actions remove"; gap: 0.35rem 0.6rem; padding: 0.65rem; border: 1px solid #edf0ed; border-radius: 11px; background: #fff; }
  .available-cart-line-media { width: 5.4rem; align-self: stretch; }
  .available-cart-line-copy { align-self: end; }
  .available-cart-line-copy > strong { order: 1; }
  .available-cart-line-copy > .available-cart-line-stock { order: 0; }
  .available-cart-line-copy > .available-cart-line-option { order: 2; font-size: 0.64rem; }
  .available-cart-line-copy > .available-cart-line-description { display: none; }
  .available-cart-line-copy > strong { font-size: 0.76rem; }
  .available-cart-line-copy > small { font-size: 0.64rem; }
  .available-cart-line-unit { align-self: start; color: #142c22; font-size: 0.78rem; font-weight: 800; }
  .available-cart-line-actions button { min-width: 1.8rem; min-height: 1.8rem; }
  .available-cart-line-quantity { min-width: 1.4rem; }
  .available-cart-line-total { display: none; }
  .available-cart-line-remove { min-width: 1.8rem; min-height: 1.8rem; }
  .available-cart-line-remove { align-self: center; }
  .available-checkout-panel { position: static; }
  .available-checkout-delivery-note { margin: 0; padding: 0.8rem; border: 1px solid #e2eee5; border-radius: 12px; background: #eff8f1; }
  .available-checkout-delivery-note > span:first-child { display: grid; width: 2rem; height: 2rem; flex: 0 0 2rem; place-items: center; }
  .available-checkout-delivery-note > span:first-child svg { width: 1.7rem; height: 1.7rem; }
  .available-checkout-delivery-note strong { font-size: 0.8rem; }
  .available-checkout-delivery-note small { font-size: 0.68rem; line-height: 1.4; }
  .available-cart-lower-layout { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-top: 0.75rem; }
  .available-cart-recommendations { order: 1; }
  .available-cart-recommendation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .available-cart-recommendation > img,
  .available-cart-recommendation-placeholder { aspect-ratio: 1.45; }
  .available-cart-recommendation > strong { font-size: 0.68rem; }
  .available-cart-recommendation > span:not(.available-cart-recommendation-placeholder) { font-size: 0.72rem; }
  .available-cart-recommendation > .btn { min-height: 2.15rem; font-size: 0.66rem; }
  .available-orders { order: 2; }
  .available-orders { margin-top: 0; }
  .available-product-dialog { position: fixed; inset: 0; top: 0; left: 0; display: none; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; flex-direction: column; margin: 0; padding: 0; overflow: hidden; transform: none; border: 0; border-radius: 0; background: #fff; }
  .available-product-dialog[open] { display: flex; }
  .available-product-dialog .batch-dialog-header { flex: none; gap: 0.6rem; margin: 0; padding: max(0.75rem, env(safe-area-inset-top)) 0.9rem 0.65rem; border-bottom: 1px solid #edf0ed; }
  .available-product-dialog .batch-dialog-header > .batch-dialog-heading { min-width: 0; }
  .available-product-dialog .panel-title { font-size: 0.93rem; }
  .available-product-dialog .panel-subtitle { display: none; }
  .available-product-dialog .close-batch-dialog { width: 2.35rem; min-width: 2.35rem; height: 2.35rem; padding: 0; border-radius: 50%; font-size: 1.3rem; }
  .available-product-dialog .available-dialog-content { display: flex; flex: 1; flex-direction: column; gap: 0.75rem; min-height: 0; max-height: none; overflow-y: auto; padding: 0.75rem 0.85rem calc(0.8rem + env(safe-area-inset-bottom)); }
  .available-product-dialog .available-dialog-product { display: contents; }
  .available-product-dialog .available-dialog-media { display: grid; grid-template-rows: auto auto; gap: 0.4rem; width: 100%; height: auto; }
  .available-product-dialog .available-dialog-gallery { width: 100%; height: clamp(13rem, 36vh, 19rem); border-radius: 11px; background: #f4f1e8; }
  .available-product-dialog .available-dialog-media > .available-product-image-placeholder { min-height: clamp(13rem, 36vh, 19rem); border-radius: 11px; }
  .available-product-dialog .available-dialog-gallery > .available-gallery-item { height: 100%; }
  .available-dialog-thumbnails { gap: 0.45rem; }
  .available-dialog-thumbnail { flex-basis: 3.5rem; width: 3.5rem; height: 3.5rem; border-radius: 8px; }
  .available-product-dialog .available-dialog-gallery-controls { inset: 50% 0 auto; }
  .available-product-dialog .available-dialog-product .dialog-product-details { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 0.25rem 0.6rem; }
  .available-product-dialog .dialog-product-status { grid-column: 1 / -1; justify-self: start; margin: 0 0 0.1rem; }
  .available-product-dialog .dialog-product-name { grid-column: 1; font-size: 1.25rem; }
  .available-product-dialog .dialog-product-price { grid-column: 2; grid-row: 2; margin: 0; font-size: 1.2rem; white-space: nowrap; }
  .available-product-dialog .available-dialog-description { grid-column: 1 / -1; margin-top: 0.3rem; font-size: 0.8rem; }
  .available-product-dialog .available-dialog-order { gap: 0.5rem; }
  .available-product-dialog .available-dialog-option { min-height: 3.85rem; padding: 0.35rem 0.4rem; font-size: 0.74rem; }
  .available-product-dialog .available-dialog-option-image { width: 2.8rem; height: 2.8rem; }
  .available-product-dialog .available-dialog-option-select { grid-template-columns: 2.9rem minmax(0, 1fr); gap: 0.45rem; }
  .available-product-dialog .available-dialog-option input { min-height: 2rem; }
  .available-product-dialog .available-dialog-info-tabs { gap: 0.85rem; }
  .available-product-dialog .available-dialog-info-tab { font-size: 0.75rem; }
  .available-dialog-actions { position: sticky; z-index: 2; bottom: calc(-0.8rem - env(safe-area-inset-bottom)); grid-template-columns: minmax(0, 1fr); gap: 0.4rem; margin: 0 -0.85rem; padding: 0.55rem 0.85rem calc(0.55rem + env(safe-area-inset-bottom)); border-top: 1px solid #e8eee9; background: rgb(255 255 255 / 96%); }
  .available-dialog-actions .btn { min-height: 2.75rem; font-size: 0.82rem; }
  .available-product-dialog .available-dialog-cart-link { min-height: 2.35rem; }
}
@media (max-width: 390px) {
  .available-shop-hero.has-featured-products { display: grid; min-height: 17rem; grid-template-columns: minmax(0, 1.08fr) minmax(6.5rem, 0.72fr); }
  .available-shop-hero.has-featured-products .available-shop-hero-copy { padding: 1rem 0.75rem 0.8rem; }
  .available-shop-hero.has-featured-products .available-shop-hero h1 { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .available-shop-hero.has-featured-products .available-shop-hero-copy > p:not(.available-shop-kicker) { font-size: 0.7rem; }
  .available-shop-hero.has-featured-products .available-search { min-height: 2.45rem; }
  .available-shop-hero.has-featured-products .available-search button { min-width: 4rem; padding-inline: 0.45rem; font-size: 0.69rem; }
  .available-shop-hero.has-featured-products .available-search input { padding-inline: 0.35rem; font-size: 0.67rem; }
  .available-shop-hero.has-featured-products .available-hero-benefits { grid-template-columns: 1fr; gap: 0.3rem; margin-top: 0.55rem; }
  .available-shop-hero.has-featured-products .available-hero-benefits li > span { width: 1.35rem; height: 1.35rem; flex-basis: 1.35rem; }
  .available-shop-hero.has-featured-products .available-hero-benefits strong { font-size: 0.56rem; }
  .available-shop-hero.has-featured-products .available-hero-benefits small { font-size: 0.5rem; }
  .available-shop-hero.has-featured-products .available-hero-products { min-height: 13rem; margin: 0; }
  .available-shop-hero.has-featured-products .available-hero-product { width: 80%; height: 67%; }
  .available-shop-hero.has-featured-products .available-hero-product-1 { left: -2%; }
  .available-shop-hero.has-featured-products .available-hero-product-2 { left: 10%; }
  .available-shop-hero.has-featured-products .available-hero-product-3 { right: -11%; }
  .available-shop-hero:not(.has-featured-products) { display: block; min-height: 0; }
  .available-shop-hero:not(.has-featured-products) .available-shop-hero-copy { padding: 1.1rem 0.9rem 1.2rem; }
  .available-hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .available-hero-stamp { width: 3.4rem; height: 3.4rem; font-size: 0.43rem; }
  .available-catalog-heading { align-items: flex-start; }
  .available-catalog-heading label { flex-direction: column; align-items: flex-end; }
  .available-catalog-heading select { max-width: 8.3rem; }
  .available-cart-line { grid-template-columns: 4.9rem minmax(0, 1fr) 2rem; grid-template-areas: "image copy copy" "image unit unit" "image actions remove"; gap: 0.35rem 0.45rem; }
  .available-cart-line-media { width: 4.9rem; align-self: center; }
  .available-cart-line-actions button[data-cart-action="remove"] { margin-left: 0.1rem; }
  .available-cart-local-badge { max-width: 8rem; white-space: nowrap; }
}
.legal-document h1 { margin: 0 0 1rem; color: var(--green-deep, var(--header-dark)); font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; }
.legal-document h2 { margin: 2rem 0 0.65rem; padding-top: 0.9rem; border-top: 1px solid #e5ebe7; color: var(--green-deep, var(--header-dark)); font-size: clamp(1.12rem, 2.5vw, 1.35rem); line-height: 1.35; scroll-margin-top: 1rem; }
.legal-document p { margin: 0.7rem 0; }
.legal-document ul { display: grid; gap: 0.4rem; margin: 0.7rem 0; padding-left: 1.35rem; }
.legal-document li { padding-left: 0.15rem; }
.legal-document blockquote { margin: 1rem 0; padding: 0.8rem 1rem; border-left: 4px solid #e0a000; border-radius: 0 8px 8px 0; background: #fff8e9; color: #5e4a21; font-weight: 650; }
.legal-document .legal-meta { margin: 0.25rem 0; color: #64716b; font-size: 0.9rem; }
.legal-document .legal-meta + h2 { margin-top: 1.5rem; }
.legal-layout + .customer-legal-footer { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
.legal-order-acknowledgement { margin: 0.65rem 0; color: #52615b; font-size: 0.82rem; line-height: 1.45; }
.legal-order-acknowledgement a, .account-agreement a { color: var(--green-deep, var(--header-dark)); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.account-agreement { display: flex; align-items: flex-start; gap: 0.55rem; margin: 0.75rem 0; color: #52615b; font-size: 0.82rem; line-height: 1.45; }
.account-agreement input { flex: 0 0 1.1rem; width: 1.1rem; min-width: 1.1rem; min-height: 1.1rem; height: 1.1rem; margin-top: 0.2rem; padding: 0; accent-color: var(--green); }
.account-agreement span { min-width: 0; overflow-wrap: anywhere; }
.preorder-shipping-disclosure { margin: 0.65rem 0; padding: 0.7rem 0.8rem; border: 1px solid #f0d59a; border-radius: 9px; background: #fff8e9; color: #654d1d; font-size: 0.84rem; font-weight: 650; line-height: 1.45; }
@media (max-width: 760px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; padding-top: 0.75rem; }
  .legal-toc { position: static; max-height: 42vh; }
  .legal-header { min-height: 4rem; }
  .legal-header nav { justify-content: flex-end; gap: 0.7rem; font-size: 0.8rem; }
  .legal-layout + .customer-legal-footer { flex-direction: column; }
}

.draft-recovery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  min-width: 0;
  margin: 0.75rem 0;
  padding: 0.8rem;
  border: 1px solid #d7e4dc;
  border-radius: 10px;
  background: #f5f8f5;
  color: #31443a;
}
.draft-recovery[hidden] { display: none; }
.draft-recovery p { flex: 1 1 100%; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.draft-recovery .btn, .draft-recovery .text-link { max-width: 100%; }

/* Compact Ghana Shop masthead matching the mobile storefront reference */
.available-shop-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(12rem, 0.9fr);
  min-height: 13.5rem;
  margin: 0.55rem 0 0;
  border-color: #eee1cb;
  border-radius: 14px;
  background: #f8eddf;
  box-shadow: none;
}
.available-shop-hero:not(.has-featured-products) { grid-template-columns: 1fr; min-height: auto; }
.available-shop-hero-copy { justify-content: flex-start; padding: 1rem 0.9rem 0.85rem; }
.available-shop-kicker { margin-bottom: 0.25rem; font-size: 0.62rem; letter-spacing: 0.13em; }
.available-shop-hero h1 { max-width: 14rem; font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.055em; line-height: 0.92; }
.available-shop-hero-copy > p:not(.available-shop-kicker) { max-width: 15rem; margin: 0.35rem 0 0; font-size: 0.73rem; line-height: 1.25; }
.available-hero-products { min-height: 13rem; overflow: hidden; }
.available-hero-product { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; box-shadow: none; object-fit: contain; object-position: center; }
.available-hero-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; margin: 0; padding: 0.4rem 0 0.55rem; list-style: none; }
.available-hero-benefits li { min-width: 0; gap: 0.38rem; padding: 0.32rem 0.42rem; border-radius: 9px; background: #eff7f1; }
.available-hero-benefits li > span { width: 1.7rem; height: 1.7rem; flex: 0 0 1.7rem; border-radius: 7px; font-size: 0.82rem; }
.available-hero-benefits strong { font-size: 0.66rem; }
.available-hero-benefits small { font-size: 0.58rem; line-height: 1.15; }
.available-search { width: 100%; min-height: 2.55rem; margin: 0 0 1rem; padding: 0.2rem 0.25rem 0.2rem 0.15rem; border-color: #e3e5e1; border-radius: 9px; box-shadow: 0 3px 10px rgb(23 45 36 / 6%); }
.available-search::before { margin-left: 0.55rem; }
.available-search input { font-size: 0.76rem; }
.available-search button { display: grid; width: 2.1rem; min-width: 2.1rem; height: 2.1rem; place-items: center; padding: 0; border-radius: 7px; }
.available-search button > span { width: 1rem; height: 1rem; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center / contain no-repeat; }
.available-categories { margin-top: 0.2rem; }
.preorder-categories { margin: 0.25rem 0 0.6rem; }

@media (max-width: 760px) {
  .available-shop-hero,
  .available-shop-hero.has-featured-products { grid-template-columns: minmax(0, 1.05fr) minmax(7.5rem, 0.75fr); min-height: 9.1rem; }
  .available-shop-hero:not(.has-featured-products) { grid-template-columns: 1fr; min-height: auto; }
  .available-shop-hero-copy { justify-content: center; padding: 0.7rem 0.3rem 0.65rem 0.7rem; }
  .available-shop-kicker { gap: 0.3rem; margin-bottom: 0.2rem; font-size: 0.54rem; letter-spacing: 0.1em; }
  .available-shop-kicker span { width: 0.36rem; height: 0.36rem; }
  .available-shop-hero h1 { max-width: 8rem; font-size: clamp(1.25rem, 5.7vw, 1.65rem); line-height: 0.92; }
  .available-shop-hero-copy > p:not(.available-shop-kicker) { max-width: 9rem; margin-top: 0.25rem; font-size: 0.59rem; line-height: 1.2; }
  .available-hero-products { min-height: 9.1rem; }
  .available-hero-product { object-position: center 35%; }
  .available-hero-benefits { gap: 0.25rem; padding: 0.35rem 0 0.45rem; }
  .available-hero-benefits li { gap: 0.28rem; padding: 0.25rem 0.3rem; }
  .available-hero-benefits li > span { width: 1.35rem; height: 1.35rem; flex-basis: 1.35rem; font-size: 0.68rem; }
  .available-hero-benefits strong { font-size: 0.55rem; line-height: 1.1; }
  .available-hero-benefits small { font-size: 0.49rem; }
  .available-search { min-height: 2.5rem; margin-bottom: 0.8rem; }
  .available-search input { font-size: 0.71rem; }
}

@media (max-width: 390px) {
  .available-shop-hero,
  .available-shop-hero.has-featured-products { grid-template-columns: minmax(0, 1fr) minmax(6.2rem, 0.72fr); min-height: 8.8rem; }
  .available-shop-hero.has-featured-products .available-hero-products { min-height: 8.8rem; }
  .available-shop-hero:not(.has-featured-products) { display: block; min-height: auto; }
  .available-shop-hero-copy { padding-left: 0.55rem; }
  .available-shop-hero h1 { font-size: clamp(1.16rem, 5.5vw, 1.38rem); }
  .available-shop-hero-copy > p:not(.available-shop-kicker) { max-width: 7.5rem; font-size: 0.55rem; }
  .available-hero-products { min-height: 8.8rem; }
  .available-hero-benefits li { padding-inline: 0.22rem; }
  .available-hero-benefits li > span { width: 1.2rem; height: 1.2rem; flex-basis: 1.2rem; }
  .available-hero-benefits strong { font-size: 0.5rem; }
  .available-hero-benefits small { font-size: 0.45rem; }
}

/* Dedicated Ghana Shop storefront and its page-specific mobile navigation */
body[data-view="available"] .available-shop-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin: 0.45rem 0 0;
  padding: 0 0 0.55rem;
  border: 0;
}
body[data-view="available"] .available-shop-page-header,
body[data-view="available"] .available-shop-heading > .help { display: none; }
.available-mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem; }
.available-mode-switch a {
  display: flex;
  min-width: 0;
  min-height: 3.35rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #edf0e8;
  border-radius: 14px;
  background: #f3f4ee;
  color: #173d31;
  text-decoration: none;
}
.available-mode-switch a.is-current { border-color: var(--green-action); background: var(--green-action); color: #fff; }
.available-mode-icon { display: block; width: 1.55rem; height: 1.55rem; flex: 0 0 1.55rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 8h18v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8z'/%3E%3Cpath d='M3 8l2.5-4h13L21 8'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 8h18v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8z'/%3E%3Cpath d='M3 8l2.5-4h13L21 8'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E") center / contain no-repeat; }
.available-mode-icon-preorder { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12h15M11 5l7 7-7 7'/%3E%3Cpath d='M17 5h4v14h-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12h15M11 5l7 7-7 7'/%3E%3Cpath d='M17 5h4v14h-4'/%3E%3C/svg%3E"); }
.available-mode-switch strong,
.available-mode-switch small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.available-mode-switch strong { font-size: 0.94rem; line-height: 1.2; }
.available-mode-switch small { margin-top: 0.08rem; font-size: 0.75rem; opacity: 0.84; }
body[data-view="available"] .available-shop-hero { min-height: 22rem; margin: 0.45rem 0 0; border-radius: 18px; }
body[data-view="available"] .available-shop-hero-copy { padding: 1.4rem clamp(1.1rem, 4vw, 2.6rem); }
body[data-view="available"] .available-shop-hero h1 { max-width: 13ch; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 0.98; }
body[data-view="available"] .available-shop-hero-copy > p:not(.available-shop-kicker) { max-width: 24rem; font-size: clamp(0.95rem, 1.6vw, 1.2rem); line-height: 1.35; }
body[data-view="available"] .available-search {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  width: calc(100% - 2.2rem);
  min-height: 3.75rem;
  margin: -1.9rem 1.1rem 0.9rem;
  padding: 0.35rem 0.4rem 0.35rem 0.2rem;
  border-radius: 999px;
  box-shadow: 0 7px 22px rgb(23 45 36 / 13%);
}
body[data-view="available"] .available-search input { padding-inline: 0.8rem; font-size: 1rem; }
body[data-view="available"] .available-search button { width: 2.8rem; min-width: 2.8rem; height: 2.8rem; border-radius: 50%; }
body[data-view="available"] .available-hero-benefits { gap: 0.65rem; margin: 0 0 1rem; padding: 0.25rem 0; }
body[data-view="available"] .available-hero-benefits li { gap: 0.65rem; padding: 0.45rem 0.55rem; background: transparent; }
body[data-view="available"] .available-hero-benefits li > span { width: 2.5rem; height: 2.5rem; flex-basis: 2.5rem; border-radius: 50%; }
body[data-view="available"] .available-hero-benefits strong { font-size: 0.85rem; }
body[data-view="available"] .available-hero-benefits small { font-size: 0.75rem; }
body[data-view="available"] #available-signin-note { display: none; }
body[data-view="available"] .available-categories { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.55rem; }
body[data-view="available"] .available-categories button { min-width: 0; min-height: 6.2rem; border-radius: 14px; font-size: 0.87rem; }
body[data-view="available"] .available-categories button > span { font-size: 1.6rem; }
body[data-view="available"] .available-catalog-heading { margin-top: 1.35rem; }
body[data-view="available"] .available-catalog-heading h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
body:not(.page-admin) .available-bottom-nav { display: none; }

body[data-view="available"] .available-shop-header {
  grid-template-columns: minmax(0, 1fr);
}

body[data-view="available"] .available-mode-switch {
  display: block;
  width: 100%;
}

body[data-view="available"] .available-mode-switch .available-mode-cta {
  display: grid;
  width: 100%;
  min-height: 4.3rem;
  gap: 0.15rem;
  padding: 0.45rem 0.9rem;
  border-color: #dbe8de;
  border-radius: 0.9rem;
  background: linear-gradient(105deg, #f5faf5, #fff);
  color: #173d31;
}

body[data-view="available"] .available-mode-prompt {
  display: block;
  color: #8b641e;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
}

body[data-view="available"] .available-mode-cta-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.6rem;
}

body[data-view="available"] .available-mode-cta-main > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

body[data-view="available"] .available-mode-switch .available-mode-cta strong {
  font-size: 0.9rem;
}

body[data-view="available"] .available-mode-switch .available-mode-cta small:not(.available-mode-prompt) {
  margin-top: 0.08rem;
  font-size: 0.72rem;
}

body[data-view="available"] .available-mode-arrow {
  color: var(--green-action);
  font-size: 1.7rem;
  line-height: 1;
}

.available-header-cart {
  display: none;
}

body[data-view="available"] .available-header-cart {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 2.65rem;
}

body[data-view="available-cart"] .available-header-cart,
body[data-view="available-orders"] .available-header-cart {
  display: none;
}

body[data-view="available"] .available-popular {
  margin: 0.55rem 0 0.75rem;
}

body[data-view="available"] .available-popular-slides {
  grid-auto-columns: 4.7rem;
  gap: 0.45rem;
  padding-bottom: 0.35rem;
}

body[data-view="available"] .available-popular-slide {
  width: 4.7rem;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 50%;
}

body[data-view="available"] .available-categories {
  grid-auto-columns: 4.55rem;
  gap: 0.4rem;
  padding: 0.1rem 0.05rem 0.45rem;
}

body[data-view="available"] .available-categories button {
  min-height: 4.25rem;
  gap: 0.28rem;
  padding: 0.4rem 0.25rem;
  border-radius: 0.7rem;
  font-size: 0.64rem;
}

body[data-view="available"] .available-categories button > span {
  width: 1.35rem;
  height: 1.35rem;
  flex-basis: 1.35rem;
  font-size: 1rem;
}

@media (max-width: 760px) {
  body[data-view="available"] .site-header .header-nav { display: none; }
  body[data-view="available"] .available-shop-header { gap: 0.4rem; }
  body[data-view="available"] .available-mode-switch .available-mode-cta { min-height: 3.8rem; }
  body[data-view="available"] .available-header-cart { width: 2.4rem; height: 2.4rem; flex-basis: 2.4rem; }
  body[data-view="available"] .available-shop-hero { grid-template-columns: minmax(0, 1.1fr) minmax(8rem, 0.9fr); min-height: 23rem; margin-top: 0.35rem; }
  body[data-view="available"] .available-shop-hero-copy { justify-content: flex-start; padding: 1.4rem 0.2rem 1rem 1rem; }
  body[data-view="available"] .available-shop-kicker { margin-bottom: 0.45rem; font-size: 0.72rem; letter-spacing: 0.16em; }
  body[data-view="available"] .available-shop-hero h1 { max-width: 8ch; font-size: clamp(2.15rem, 9vw, 3rem); line-height: 0.97; }
  body[data-view="available"] .available-shop-hero-copy > p:not(.available-shop-kicker) { max-width: 13rem; margin-top: 0.55rem; font-size: clamp(0.78rem, 3.5vw, 0.98rem); }
  body[data-view="available"] .available-hero-products { min-height: 23rem; }
  body[data-view="available"] .available-shop-hero.has-featured-products .available-hero-product { right: -2.2rem; left: auto; width: 150%; height: 100%; max-width: none; object-position: center; transform: scale(1.15); transform-origin: right center; }
  body[data-view="available"] .available-search { width: calc(100% - 1.3rem); min-height: 3.6rem; margin: -1.8rem 0.65rem 0.55rem; }
  body[data-view="available"] .available-search input { font-size: 0.91rem; }
  body[data-view="available"] .available-hero-benefits { gap: 0.05rem; margin-bottom: 0.8rem; }
  body[data-view="available"] .available-hero-benefits li { flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.4rem 0.35rem; }
  body[data-view="available"] .available-hero-benefits li > span { width: 2.15rem; height: 2.15rem; flex-basis: 2.15rem; }
  body[data-view="available"] .available-hero-benefits strong { font-size: 0.72rem; line-height: 1.15; }
  body[data-view="available"] .available-hero-benefits small { font-size: 0.65rem; line-height: 1.25; }
  body[data-view="available"] .available-bottom-nav,
  body[data-view="available-cart"] .available-bottom-nav,
  body[data-view="available-orders"] .available-bottom-nav,
  body[data-view="account"][data-nav-context="available"] .available-bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body[data-view="available"] .available-bottom-nav .nav-link,
  body[data-view="available-cart"] .available-bottom-nav .nav-link,
  body[data-view="available-orders"] .available-bottom-nav .nav-link {
    position: relative;
    min-height: 3.45rem;
    font-size: 0.62rem;
  }
  .available-bottom-count {
    position: absolute;
    top: 0.12rem;
    right: calc(50% - 1.15rem);
    display: grid;
    min-width: 0.95rem;
    height: 0.95rem;
    place-items: center;
    padding: 0 0.15rem;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #d89a13;
    color: #fff;
    font-size: 0.56rem;
    font-weight: 800;
  }
  .available-bottom-count[hidden] { display: none; }
  body[data-view="available"] .bottom-nav:not(.available-bottom-nav) { display: none; }
  body[data-view="available-cart"] .bottom-nav:not(.available-bottom-nav),
  body[data-view="available-orders"] .bottom-nav:not(.available-bottom-nav) { display: none; }
  body[data-view="account"][data-nav-context="available"] .bottom-nav:not(.available-bottom-nav) { display: none; }
}

@media (max-width: 390px) {
  body[data-view="available"] .available-popular-slides { grid-auto-columns: 4.1rem; }
  body[data-view="available"] .available-popular-slide { width: 4.1rem; }
  body[data-view="available"] .available-categories { grid-auto-columns: 4.2rem; }
}

@media (max-width: 390px) {
  body[data-view="available"] .available-shop-hero,
  body[data-view="available"] .available-shop-hero.has-featured-products { grid-template-columns: minmax(0, 1.08fr) minmax(7rem, 0.82fr); min-height: 21rem; }
  body[data-view="available"] .available-hero-products { min-height: 21rem; }
  body[data-view="available"] .available-shop-hero-copy { padding-left: 0.8rem; }
  body[data-view="available"] .available-shop-hero h1 { font-size: clamp(1.95rem, 8.5vw, 2.55rem); }
  body[data-view="available"] .available-shop-hero-copy > p:not(.available-shop-kicker) { max-width: 10rem; font-size: 0.76rem; }
  body[data-view="available"] .available-categories button { font-size: 0.64rem; }
}

body[data-view="available"] .available-search {
  width: min(100%, 40rem);
  margin: 0.4rem auto 1rem;
}

body[data-view="available"] .available-categories {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 6.3rem;
  max-width: 48rem;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.55rem;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
}

body[data-view="available"] .available-categories button {
  display: flex;
  min-width: 0;
  min-height: 2.65rem;
  flex-direction: row;
  border-radius: 999px;
  font-size: 0.76rem;
  scroll-snap-align: start;
}

body[data-view="available"] .available-categories button > span {
  font-size: 1rem;
}

@media (max-width: 560px) {
  body[data-view="available"] .available-categories {
    grid-auto-columns: minmax(4.25rem, 5.1rem);
    gap: 0.45rem;
  }
}

@media (max-width: 760px) {
  body[data-view="available"] .available-shop-hero,
  body[data-view="available"] .available-shop-hero.has-featured-products {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    min-height: 12.5rem;
  }

  body[data-view="available"] .available-shop-hero-copy {
    min-width: 0;
    padding: 0.85rem 0.25rem 0.85rem 0.9rem;
  }

  body[data-view="available"] .available-shop-hero h1 {
    max-width: none;
    font-size: clamp(1.55rem, 7.2vw, 2.1rem);
    line-height: 0.94;
  }

  body[data-view="available"] .available-shop-hero-copy > p:not(.available-shop-kicker) {
    max-width: none;
    margin-top: 0.45rem;
    font-size: clamp(0.68rem, 3.1vw, 0.82rem);
    line-height: 1.25;
  }

  body[data-view="available"] .available-hero-products {
    min-width: 0;
    min-height: 12.5rem;
  }

  body[data-view="available"] .available-shop-hero.has-featured-products .available-hero-product {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    transform: none;
  }
}

@media (max-width: 390px) {
  body[data-view="available"] .available-shop-hero,
  body[data-view="available"] .available-shop-hero.has-featured-products {
    min-height: 11.5rem;
  }

  body[data-view="available"] .available-shop-hero-copy {
    padding-left: 0.7rem;
    padding-right: 0.2rem;
  }

  body[data-view="available"] .available-hero-products {
    min-height: 11.5rem;
  }
}

body[data-view="available"] .available-popular {
  margin: 0.75rem 0 1rem;
  overflow: hidden;
}

body[data-view="available"] .available-popular-slides {
  display: grid;
  grid-auto-columns: 7rem;
  grid-auto-flow: column;
  gap: 0.7rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0.1rem 0.65rem;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  touch-action: pan-x pan-y pinch-zoom;
}

body[data-view="available"] .available-popular-slide {
  display: block;
  width: 7rem;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5ebe6;
  border-radius: 0.85rem;
  background: #f4f8f4;
  cursor: pointer;
  scroll-snap-align: start;
}

body[data-view="available"] .available-popular-slide:focus-visible {
  outline: 3px solid var(--green-action);
  outline-offset: 2px;
}

body[data-view="available"] .available-popular-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-view="available"] .available-categories {
  grid-template-columns: none;
  grid-auto-columns: 6.1rem;
  grid-auto-flow: column;
  gap: 0.55rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0.1rem 0.65rem;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  touch-action: pan-x pan-y pinch-zoom;
}

body[data-view="available"] .available-categories button {
  display: flex;
  min-width: 0;
  min-height: 5.2rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.4rem;
  overflow: visible;
  border: 1px solid #e2e9e3;
  border-radius: 0.85rem;
  background: #fff;
  color: #293b31;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
  scroll-snap-align: start;
}

body[data-view="available"] .available-categories button > span {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 1.7rem;
  place-items: center;
  color: #856144;
  font-size: 1.25rem;
  line-height: 1;
}

body[data-view="available"] .available-categories button.is-active {
  border-color: var(--green-action);
  background: var(--green-action);
  color: #fff;
}

body[data-view="available"] .available-categories button.is-active > span {
  color: #fff;
}

@media (max-width: 760px) {
  body[data-view="available"] .available-shop-hero,
  body[data-view="available"] .available-shop-hero.has-featured-products {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    min-height: 12.5rem;
  }

  body[data-view="available"] .available-shop-hero-copy {
    min-width: 0;
    padding: 0.85rem 0.25rem 0.85rem 0.9rem;
  }

  body[data-view="available"] .available-shop-hero h1 {
    max-width: none;
    font-size: clamp(1.55rem, 7.2vw, 2.1rem);
    line-height: 0.94;
  }

  body[data-view="available"] .available-shop-hero-copy > p:not(.available-shop-kicker) {
    max-width: none;
    margin-top: 0.45rem;
    font-size: clamp(0.68rem, 3.1vw, 0.82rem);
    line-height: 1.25;
  }

  body[data-view="available"] .available-hero-products {
    min-width: 0;
    min-height: 12.5rem;
  }

  body[data-view="available"] .available-hero-products:empty {
    display: none;
  }

  body[data-view="available"] .available-shop-hero.has-featured-products .available-hero-product {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    transform: none;
  }

  body[data-view="available"] .available-popular-slides {
    grid-auto-columns: 7.5rem;
    gap: 0.55rem;
  }

  body[data-view="available"] .available-popular-slide {
    width: 7.5rem;
    border-radius: 0.75rem;
  }

  body[data-view="available"] .available-categories {
    grid-auto-columns: 6.2rem;
    gap: 0.45rem;
  }

  body[data-view="available"] .available-categories button {
    min-height: 5rem;
    padding: 0.5rem 0.35rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 760px) {
  body[data-view="available"] .available-popular-slides {
    grid-auto-columns: 4.7rem;
    gap: 0.45rem;
  }

  body[data-view="available"] .available-popular-slide {
    width: 4.7rem;
    border-radius: 50%;
  }

  body[data-view="available"] .available-categories {
    grid-auto-columns: 4.55rem;
    gap: 0.4rem;
  }

  body[data-view="available"] .available-categories button {
    min-height: 4rem;
    gap: 0.25rem;
    padding: 0.35rem 0.2rem;
    border-radius: 0.7rem;
    font-size: 0.62rem;
  }

  body[data-view="available"] .available-categories button > span {
    width: 1.25rem;
    height: 1.25rem;
    flex-basis: 1.25rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 390px) {
  body[data-view="available"] .available-popular-slides {
    grid-auto-columns: 4.1rem;
  }

  body[data-view="available"] .available-popular-slide {
    width: 4.1rem;
    height: auto;
  }

  body[data-view="available"] .available-categories {
    grid-auto-columns: 4.2rem;
  }
}

body[data-view="available"] main.wrap {
  padding-top: 0.25rem;
}

body[data-view="available"] .available-shop-header {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

body[data-view="available"] .available-shop-hero {
  margin-top: 0.2rem;
}

body[data-view="available"] .available-shop-content > .status-line:empty {
  display: none;
}

body[data-view="available"] .available-mode-switch .available-mode-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: #d8b56b;
  background: linear-gradient(105deg, #fff8e7 0%, #fff 48%, #eff8f1 100%);
  box-shadow: 0 4px 14px rgb(112 77 18 / 12%), inset 0 0 0 1px rgb(255 255 255 / 75%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body[data-view="available"] .available-mode-switch .available-mode-cta::after {
  position: absolute;
  z-index: -1;
  inset: -30% auto -30% -45%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 85%), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-18deg);
  animation: preorder-cta-shine 4.8s ease-in-out infinite;
}

body[data-view="available"] .available-mode-switch .available-mode-cta > * {
  position: relative;
  z-index: 1;
}

body[data-view="available"] .available-mode-switch .available-mode-cta:hover,
body[data-view="available"] .available-mode-switch .available-mode-cta:focus-visible {
  transform: translateY(-2px);
  border-color: #c28c27;
  box-shadow: 0 7px 19px rgb(112 77 18 / 19%), inset 0 0 0 1px rgb(255 255 255 / 75%);
}

body[data-view="available"] .available-mode-prompt {
  color: #875a0b;
  letter-spacing: 0.02em;
}

@keyframes preorder-cta-shine {
  0%, 18% { left: -45%; }
  58%, 100% { left: 125%; }
}

@media (max-width: 760px) {
  body:not(.page-admin) .bottom-nav {
    border-radius: 0;
  }

  body:not(.page-admin) .bottom-nav .nav-link.is-current {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-view="available"] .available-mode-switch .available-mode-cta,
  body[data-view="available"] .available-mode-switch .available-mode-cta::after {
    animation: none;
    transition: none;
  }
}

body:not(.page-admin) .welcome-hero {
  box-sizing: border-box;
  width: min(100%, 68rem);
  min-height: 15rem;
  margin-inline: auto;
}

body:not(.page-admin) .welcome-hero .hero-art {
  min-height: 15rem;
}

body:not(.page-admin) .welcome-hero .hero-copy {
  padding-block: 1.1rem;
}

@media (max-width: 760px) {
  body:not(.page-admin) .welcome-hero {
    width: calc(100% - 1rem);
    min-height: 0;
  }

  body:not(.page-admin) .welcome-hero .hero-art {
    min-height: 7.5rem;
  }

  body:not(.page-admin) .welcome-hero .hero-copy {
    padding-block: 0.45rem;
  }

  body:not(.page-admin) .welcome-hero .hero-copy h2 {
    font-size: 19px;
    line-height: 1.08;
  }

  body:not(.page-admin) .welcome-hero .hero-lead {
    margin-top: 0.3rem;
    font-size: 10px;
    line-height: 1.25;
  }

  body:not(.page-admin) .welcome-hero .hero-highlights { display: none; }
  body:not(.page-admin) .hero-cta {
    left: 0.4rem;
    bottom: 0.4rem;
    min-height: 2.3rem;
    padding-inline: 0.75rem;
    font-size: 0.76rem;
  }
  body:not(.page-admin) .available-welcome-hero.has-default-available-banner .hero-copy h2 { max-width: none; }
}

@media (max-width: 480px) {
  body:not(.page-admin) .hero-slide-controls {
    top: 0.4rem;
    bottom: auto;
  }
}

body[data-view="available"] .available-search {
  width: 100%;
  min-height: 2.4rem;
  margin: 0.5rem 0 0.85rem;
  padding: 0.08rem 0.16rem;
}

body[data-view="available"] .available-search input {
  padding-block: 0.2rem;
  font-size: 13px;
}

body[data-view="available"] .available-search button {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
}

body[data-view="available"] .available-popular-slides {
  grid-auto-columns: 5.25rem;
  gap: 0.45rem;
}

body[data-view="available"] .available-popular-slide {
  display: grid;
  width: 5.25rem;
  aspect-ratio: auto;
  grid-template-rows: 3.65rem auto;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.15rem;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-view="available"] .available-popular-image {
  width: 3.65rem;
  height: 3.65rem;
  border-radius: 0.35rem;
  object-fit: cover;
}

body[data-view="available"] .available-popular-name {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  color: #26392f;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

body[data-view="available"] .available-categories {
  grid-auto-columns: max-content;
  gap: 0.4rem;
  padding-block: 0.1rem 0.45rem;
}

body[data-view="available"] .available-categories button {
  display: inline-flex;
  width: max-content;
  min-width: 0;
  min-height: 2.25rem;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 0.65rem;
  font-size: 0.68rem;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}

body[data-view="available"] .available-categories button > span {
  display: grid;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  place-items: center;
  font-size: 0.9rem;
}

.preorder-categories {
  grid-template-columns: none;
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  gap: 0.4rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.1rem 0.05rem 0.45rem;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  touch-action: pan-x pan-y pinch-zoom;
}

.preorder-categories button {
  display: inline-flex;
  flex: 0 0 auto;
  width: max-content;
  min-width: 0;
  min-height: 2.25rem;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.65rem;
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
  scroll-snap-align: start;
}

.preorder-categories button > span {
  display: grid;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  place-items: center;
  font-size: 0.9rem;
}

body[data-view="available"] .available-mode-switch {
  position: relative;
  width: 100%;
  max-width: 100%;
}

body[data-view="available"] .available-mode-switch .available-mode-cta {
  display: flex;
  width: 100%;
  min-height: 4.3rem;
  padding: 0.45rem 0.65rem 0.45rem 0.8rem;
}

body[data-view="available"] .available-mode-cta-main {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.6rem;
}

body[data-view="available"] .available-mode-copy {
  min-width: 0;
  flex: 1 1 auto;
}

body[data-view="available"] .available-mode-flag {
  flex: 0 0 1.8rem;
  font-size: 1.55rem;
  line-height: 1;
}

body[data-view="available"] .available-mode-switch-action {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 2.55rem;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.8rem 0.25rem 0.95rem;
  border: 1px solid rgb(8 116 71 / 20%);
  border-radius: 999px;
  background: var(--green-action);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

body[data-view="available"] .available-mode-switch-action .available-mode-arrow {
  color: inherit;
  font-size: 1.2rem;
}

@media (min-width: 761px) {
  body[data-view="available"] .available-mode-switch-action {
    min-width: 7.5rem;
    justify-content: center;
  }
}

.available-switch-tour {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(21rem, calc(100vw - 2rem));
  padding: 1rem 3rem 1rem 1rem;
  border: 1px solid #d9e5dc;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 12px 32px rgb(13 47 34 / 20%);
  color: #173d31;
  animation: available-switch-tour-in 220ms ease-out;
}

.available-switch-tour[hidden] { display: none; }
.available-switch-tour::before {
  position: absolute;
  top: -0.4rem;
  right: 1rem;
  width: 0.75rem;
  height: 0.75rem;
  border-top: 1px solid #d9e5dc;
  border-left: 1px solid #d9e5dc;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}
.available-switch-tour > strong { display: block; font-size: 0.92rem; }
.available-switch-tour p { margin: 0.35rem 0 0.75rem; color: #526159; font-size: 0.82rem; line-height: 1.4; }
.available-switch-tour-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #526159;
  font-size: 1.35rem;
  cursor: pointer;
}
.available-switch-tour-done {
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--green-action);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}
@keyframes available-switch-tour-in {
  from { opacity: 0; transform: translateY(0.45rem); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .available-switch-tour { animation: none; }
}

body[data-view="available"] .available-welcome-hero {
  margin-bottom: 0.45rem;
}

body[data-view="available"] .available-popular {
  margin: 0.2rem 0 0.3rem;
}

body[data-view="available"] .available-categories {
  margin-top: 0;
}

.available-featured {
  margin: 1rem 0 1.25rem;
}

.available-featured-heading {
  margin-bottom: 0.45rem;
}

.available-featured-heading p {
  margin: 0;
  color: #47705a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.available-featured-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.available-featured-card {
  min-width: 0;
  padding: 0 0 0.45rem;
  overflow: hidden;
  border: 1px solid #e3eae5;
  border-radius: 0.9rem;
  background: #fff;
  color: #1d3026;
  text-align: left;
  cursor: default;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.available-featured-card:hover {
  border-color: #9eb9a7;
  box-shadow: 0 0.35rem 1rem rgb(24 57 38 / 10%);
  transform: translateY(-2px);
}

.available-featured-card:focus-within {
  outline: 3px solid var(--green-action);
  outline-offset: 2px;
}

.available-featured-image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1 / 0.72;
  overflow: hidden;
  background: #f1f5f1;
}

.available-featured-image-button {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.available-featured-image-button:focus-visible,
.available-featured-details:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid var(--green-action);
  outline-offset: -3px;
}

.available-featured-details {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.available-featured-action {
  display: flex;
  width: calc(100% - 1rem);
  align-items: center;
  justify-content: space-between;
  margin: 0.35rem 0.5rem 0;
  line-height: 1;
}

.available-featured-order-count {
  overflow: hidden;
  color: #47705a;
  font-size: 0.66rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.available-featured-stars {
  width: 3.6rem;
  height: 0.72rem;
  flex: 0 1 3.6rem;
  fill: #d89a13;
}

.available-featured-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.2rem;
  padding: 0.16rem 0.38rem;
  border: 1px solid #cde5d4;
  border-radius: 999px;
  background: #eff8f1;
  color: #17613b;
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
}

.available-featured-label strong {
  display: grid;
  width: 0.9rem;
  height: 0.9rem;
  place-items: center;
  border-radius: 50%;
  background: #17613b;
  color: #fff;
  font-size: 0.58rem;
}

@media (max-width: 700px) {
  .available-featured-word {
    display: none;
  }
}

.available-featured-image,
.available-featured-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #47705a;
  font-size: 0.9rem;
  font-weight: 800;
  object-fit: cover;
}

.available-featured-name {
  display: block;
  margin-inline: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.4rem;
  color: #293a30;
  font-size: 0.78rem;
  font-weight: 700;
}

.available-admin-feature-note,
.available-admin-feature-count {
  margin: 0.3rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.available-admin-feature-count {
  margin-top: 0;
  font-weight: 700;
}

.available-product-card[hidden] {
  display: none !important;
}

@media (min-width: 1400px) {
  .available-featured-products {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .available-featured-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .available-featured {
    margin: 0.85rem 0 1rem;
  }

  .available-featured-products {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(7.5rem, 32%);
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.1rem 0.1rem 0.55rem;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .available-featured-card {
    scroll-snap-align: start;
  }

  .available-featured-name { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .available-featured-card {
    transition: none;
  }
}

.available-product-cover {
  position: relative;
}

.available-product-cover .pill {
  right: auto;
  left: 0.55rem;
}

.available-categories button > span svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.available-catalog-share {
  position: absolute;
  z-index: 2;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: none;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 50%;
  background: rgb(255 255 255 / 94%);
  color: #174a37;
  box-shadow: 0 3px 12px rgb(17 42 30 / 18%);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.available-catalog-share:hover {
  transform: translateY(-2px);
  background: var(--green-action);
  color: #fff;
}

.available-product-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.available-product-share-button {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 2.65rem;
  place-items: center;
  border: 1px solid #dbe6df;
  border-radius: 50%;
  background: #fff;
  color: #174a37;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.available-product-share-button:hover,
.available-product-share-button:focus-visible {
  border-color: var(--green-action);
  background: #f0f8f3;
  color: var(--green-action);
}

.available-product-share-button:focus-visible,
.available-catalog-share:focus-visible {
  outline: 2px solid var(--green-action);
  outline-offset: 2px;
}

.available-product-share-button svg,
.available-catalog-share svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.available-catalog-share svg {
  width: 1rem;
  height: 1rem;
}

.available-product-share-button[data-available-share="whatsapp"] {
  color: #25d366;
}

.available-product-share-button[data-available-share="whatsapp"]:hover,
.available-product-share-button[data-available-share="whatsapp"]:focus-visible {
  border-color: #25d366;
  background: #eafaf0;
  color: #128c4a;
}

.available-product-share-button.is-copied {
  border-color: var(--green-action);
  background: var(--green-action);
  color: #fff;
}

.available-product-share-status {
  min-width: 100%;
  color: #42614f;
  font-size: 0.78rem;
}

@media (min-width: 761px) {
  body[data-view="available"] .site-header .header-nav {
    gap: clamp(0.65rem, 1.6vw, 1.5rem);
  }

  body[data-view="available"] .site-header .header-nav .nav-link {
    min-width: 5.5rem;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.85rem;
    font-size: 0.76rem;
    line-height: 1.15;
    text-align: center;
    transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
  }

  body[data-view="available"] .site-header .header-nav .nav-link:hover {
    transform: translateY(-2px);
    background: rgb(255 255 255 / 10%);
  }

  body[data-view="available"] .site-header .header-nav .nav-link.is-current {
    background: #e8b339;
    color: #1c3328;
  }

  body[data-view="available"] .site-header .header-nav .nav-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  body[data-view="available"] .available-categories {
    grid-template-columns: none;
    grid-auto-columns: max-content;
    grid-auto-flow: column;
    gap: 0.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.2rem 0 0.55rem;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  body[data-view="available"] .available-categories button {
    display: inline-flex;
    width: max-content;
    min-width: 0;
    min-height: 2.65rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.8rem;
    font-size: 0.78rem;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
  }

  body[data-view="available"] .available-categories button > span {
    display: grid;
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 1.55rem;
    place-items: center;
    border-radius: 50%;
    background: #f5f0e8;
    color: #147448;
  }

  body[data-view="available"] .available-categories button > span svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }

  body[data-view="available"] .available-categories button.is-active > span {
    background: rgb(255 255 255 / 18%);
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .available-catalog-share,
  .available-product-share-button,
  body[data-view="available"] .site-header .header-nav .nav-link {
    transition: none;
  }
}

body:not(.page-admin) .customer-notification-card.notification-card {
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid #e1ebe4;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff 0%, #fbfdfb 100%);
  box-shadow: 0 5px 16px rgb(20 55 42 / 5%);
  font-family: inherit;
}
body:not(.page-admin) .customer-notification-card.notification-card.is-unread {
  border-color: #bbd9c8;
  background: linear-gradient(145deg, #f2faf5 0%, #fff 100%);
}
body:not(.page-admin) .customer-notification-card.notification-card:hover {
  border-color: #8ec1a7;
  background: #f7fbf8;
  box-shadow: 0 7px 20px rgb(20 55 42 / 9%);
}
body:not(.page-admin) .customer-notification-card .notification-card-indicator { display: none; }
body:not(.page-admin) .customer-notification-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid #dcebe1;
  border-radius: 13px;
  background: #edf7f0;
  color: #0c6048;
  font-size: 1.25rem;
  font-weight: 850;
}
body:not(.page-admin) .customer-notification-copy { gap: 0.4rem; }
body:not(.page-admin) .customer-notification-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  min-width: 0;
}
body:not(.page-admin) .customer-notification-heading .notification-card-title {
  min-width: 0;
  font-size: 0.96rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
body:not(.page-admin) .customer-notification-category {
  color: #708078;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
body:not(.page-admin) .customer-notification-card .notification-card-body {
  color: #43564c;
  font-size: 0.84rem;
  line-height: 1.5;
}
body:not(.page-admin) .customer-notification-amount-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.2rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e3eee7;
  border-radius: 10px;
  background: #f5faf6;
  color: #65756c;
  font-size: 0.74rem;
  font-weight: 700;
}
body:not(.page-admin) .customer-notification-amount {
  color: #145c43;
  font-size: 0.95rem;
  font-weight: 850;
  white-space: nowrap;
}
body:not(.page-admin) .customer-notification-card .notification-card-meta {
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 0.15rem;
}
body:not(.page-admin) .customer-notification-card .notification-card-time { font-size: 0.72rem; }
body:not(.page-admin) .customer-notification-card .customer-notification-action {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #08735a;
  font-size: 0.77rem;
  font-weight: 800;
}
body:not(.page-admin) .customer-notification-card.notification-card.is-compact {
  gap: 0.65rem;
  padding: 0.78rem;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgb(20 55 42 / 4%);
}
body:not(.page-admin) .customer-notification-card.notification-card.is-compact .customer-notification-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 11px;
  font-size: 1.08rem;
}
body:not(.page-admin) .customer-alerts-list .customer-notification-card .notification-card-body {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body:not(.page-admin) .customer-notification-card.notification-card.is-compact.is-expanded .notification-card-body {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
@media (max-width: 480px) {
  body:not(.page-admin) .customer-notification-card.notification-card { grid-template-columns: 2.35rem minmax(0, 1fr); gap: 0.65rem; padding: 0.75rem; }
  body:not(.page-admin) .customer-notification-icon { width: 2.35rem; height: 2.35rem; border-radius: 11px; font-size: 1.05rem; }
  body:not(.page-admin) .customer-notification-heading .notification-card-title { font-size: 0.88rem; }
  body:not(.page-admin) .customer-notification-card .notification-card-body { font-size: 0.78rem; }
  body:not(.page-admin) .customer-notification-card .notification-card-meta { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
}

body.customer-notifications-open .profile-detail-screen {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.customer-notifications-open .profile-detail-screen > .profile-detail-header {
  padding-bottom: 0;
  border-bottom: 0;
}
body.customer-notifications-open .customer-notifications-list { gap: 0; }
body.customer-notifications-open .customer-notifications-group-heading { margin-top: 0.8rem; }
body.customer-notifications-open .customer-notification-entry {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgb(101 118 110 / 18%);
}
body.customer-notifications-open .customer-notification-card.notification-card {
  padding: 0.85rem 0.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.customer-notifications-open .customer-notification-card.notification-card.is-unread {
  background: transparent;
}
body.customer-notifications-open .customer-notification-card.notification-card:hover {
  border: 0;
  background: rgb(255 255 255 / 28%);
  box-shadow: none;
}
body.customer-notifications-open .customer-notification-card.notification-card.is-selected {
  box-shadow: inset 3px 0 #08735a;
}
body.customer-notifications-open .customer-notification-delete {
  align-self: center;
  border-color: transparent;
  background: transparent;
}
body.customer-notifications-open .customer-notification-delete:hover {
  border-color: #d9aaa5;
  background: rgb(255 255 255 / 55%);
}

.product-category-manager { display: grid; gap: 0.9rem; margin: 1.25rem 0; padding: 1.1rem; border: 1px solid #e1e9e4; border-radius: 16px; background: linear-gradient(145deg, #fff, #f9fcfa); }
.product-category-manager-heading h3 { margin: 0; color: #173d31; font-size: 1.05rem; }
.product-category-manager-heading p { margin: 0.35rem 0 0; color: #64736a; font-size: 0.86rem; line-height: 1.5; }
.product-category-manager-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.product-category-manager-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 0.55rem; padding: 0.7rem; border: 1px solid #e8eee9; border-radius: 12px; background: #fff; }
.product-category-manager-name { display: grid; gap: 0.35rem; color: #66756d; font-size: 0.75rem; font-weight: 700; }
.product-category-manager-row input,
.product-category-create-form input { width: 100%; min-width: 0; min-height: 2.6rem; padding: 0.55rem 0.7rem; border: 1px solid #d9e3dc; border-radius: 9px; background: #fff; color: #173d31; font: inherit; }
.product-category-manager-row .btn { min-height: 2.6rem; padding: 0.5rem 0.75rem; white-space: nowrap; }
.product-category-manager-order { display: flex; gap: 0.25rem; }
.product-category-manager-order button { display: grid; width: 2.55rem; min-height: 2.6rem; place-items: center; border: 1px solid #d9e7de; border-radius: 9px; background: linear-gradient(145deg, #fff, #f1f8f3); color: #176b48; font: inherit; font-size: 1.15rem; font-weight: 800; cursor: pointer; }
.product-category-manager-order button:hover:not(:disabled) { border-color: #a8cdb5; background: #eaf6ee; }
.product-category-manager-order button:disabled { color: #a7b2ab; cursor: not-allowed; opacity: 0.6; }
.product-category-create-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.65rem; padding-top: 0.8rem; border-top: 1px solid #e8eee9; }
.product-category-create-form label { display: grid; gap: 0.35rem; color: #52655a; font-size: 0.8rem; font-weight: 700; }
.product-category-create-form .btn { min-height: 2.6rem; }
#product-category-manager-status:empty { display: none; }

.action-overflow-menu { position: relative; display: inline-flex; }
.action-overflow-menu > summary {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  list-style: none;
  border: 1px solid #dce6df;
  border-radius: 11px;
  background: #fff;
  color: #294b3a;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.action-overflow-menu > summary::-webkit-details-marker { display: none; }
.action-overflow-menu > summary:hover,
.action-overflow-menu[open] > summary { border-color: #9dcab0; background: #f2f8f4; }
.action-overflow-menu > summary:focus-visible { outline: 2px solid #08735a; outline-offset: 2px; }
.action-overflow-items {
  position: absolute;
  z-index: 15;
  top: calc(100% + 0.35rem);
  right: 0;
  display: grid;
  min-width: 11rem;
  gap: 0.2rem;
  padding: 0.4rem;
  border: 1px solid #e0e8e2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(20 55 42 / 14%);
}
.action-overflow-items > button {
  display: flex;
  width: 100%;
  min-height: 2.45rem;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #253b30;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.action-overflow-items > button:hover:not(:disabled) { background: #f1f7f3; }
.action-overflow-items > button:focus-visible { outline: 2px solid #08735a; outline-offset: -2px; }
.action-overflow-items > button:disabled { color: #8a958e; cursor: not-allowed; opacity: 0.65; }
.available-admin-action-menu > summary { width: 2.8rem; height: 2.8rem; }
.available-admin-product-actions { justify-content: flex-end; }
.available-admin-action-menu .action-overflow-items { min-width: 13.5rem; }
.my-order-quantity-stage[hidden] { display: none; }

@media (max-width: 640px) {
  .product-category-manager { padding: 0.85rem; }
  .product-category-manager-list { grid-template-columns: minmax(0, 1fr); }
  .product-category-create-form { grid-template-columns: minmax(0, 1fr); }
  .product-category-create-form .btn { width: 100%; }
  .action-overflow-menu > summary { width: 2.75rem; height: 2.75rem; }
}

.staff-notifications-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.75rem 0 1.15rem; }
.staff-notifications-tabs { display: flex; align-items: center; gap: 0.45rem; }
.staff-notifications-tabs button,
.staff-notifications-mark-all { min-height: 2.35rem; padding: 0.45rem 0.8rem; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #173d31; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.staff-notifications-tabs button { border-color: #dce4dd; background: #fff; }
.staff-notifications-tabs button.is-active { border-color: var(--header-dark); background: var(--header-dark); color: #fff; }
.staff-notifications-tabs button:focus-visible,
.staff-notifications-mark-all:focus-visible { outline: 2px solid #08735a; outline-offset: 2px; }
.staff-notifications-mark-all { color: var(--header-dark); }
.staff-notifications-mark-all:hover:not(:disabled) { background: #edf5ef; }
.staff-notifications-mark-all:disabled { color: #87928c; cursor: default; }
.staff-notifications-list { display: grid; gap: 1.2rem; }
.staff-notification-group { display: grid; gap: 0.55rem; min-width: 0; }
.staff-notification-group > h3 { margin: 0 0 0.1rem; padding: 0 0.2rem; color: #64736a; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.staff-notification-group-rows { display: grid; gap: 0.55rem; min-width: 0; }
.staff-notifications-list .staff-notification-entry { position: relative; display: block; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #dfe6df; border-radius: 14px; background: #fff; }
.staff-notifications-list .staff-notification-entry.is-unread { border-color: #c8dfd1; background: #f4faf6; }
.staff-notification-main { display: grid; grid-template-columns: 0.45rem 3.25rem minmax(0, 1fr) auto; align-items: center; gap: 0.65rem; width: 100%; min-height: 5.85rem; padding: 0.7rem 2.9rem 0.7rem 0.65rem; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
button.staff-notification-main { cursor: pointer; }
button.staff-notification-main:hover { background: rgb(237 245 239 / 60%); }
button.staff-notification-main:focus-visible { outline: 2px solid #08735a; outline-offset: -3px; }
.staff-notification-unread-dot { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: transparent; }
.staff-notification-entry.is-unread .staff-notification-unread-dot { background: var(--green); }
.staff-notification-thumb { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; overflow: hidden; border-radius: 11px; background: #edf4f0; color: var(--green-deep); font-size: 1.25rem; object-fit: cover; }
.staff-notification-entry:not(.is-unread) .staff-notification-thumb:not(img) { background: #edf1ef; color: var(--muted); }
.staff-notification-copy { display: grid; gap: 0.2rem; min-width: 0; }
.staff-notification-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 0.65rem; min-width: 0; }
.staff-notification-title { overflow: hidden; color: #172821; font-size: 0.98rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.staff-notification-amount { flex: none; color: #172821; font-size: 0.95rem; font-weight: 800; white-space: nowrap; }
.staff-notification-description { display: block; overflow: hidden; color: #68766f; font-size: 0.86rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.staff-notification-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.55rem; min-width: 0; color: #68766f; font-size: 0.75rem; }
.staff-notification-status { padding: 0.16rem 0.55rem; border-radius: 999px; background: #edf1ef; color: var(--muted); font-size: 0.7rem; font-weight: 800; line-height: 1.35; }
.staff-notification-status.is-paid { background: #e5f5ee; color: var(--green-deep); }
.staff-notification-reference { color: #68766f; font-variant-numeric: tabular-nums; }
.staff-notification-arrow { align-self: center; color: #59816c; font-size: 1.5rem; line-height: 1; }
.admin-shell #view-notifications > .panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.admin-shell #view-notifications .panel-head { align-items: center; margin-bottom: 0.8rem; }
.admin-shell #view-notifications .staff-notifications-menu { position: relative; display: inline-flex; }
.admin-shell #view-notifications .staff-notifications-menu > summary {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  list-style: none;
  border: 1px solid #dce6df;
  border-radius: 11px;
  background: #fff;
  color: #294b3a;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.admin-shell #view-notifications .staff-notifications-menu > summary::-webkit-details-marker { display: none; }
.admin-shell #view-notifications .staff-notifications-menu > summary:focus-visible,
.admin-shell #view-notifications .staff-notifications-menu-panel :focus-visible { outline: 2px solid #08735a; outline-offset: 2px; }
.admin-shell #view-notifications .staff-notifications-menu-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  right: 0;
  display: grid;
  min-width: 13rem;
  gap: 0.25rem;
  padding: 0.45rem;
  border: 1px solid #e0e8e2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(20 55 42 / 14%);
}
.admin-shell #view-notifications .staff-notifications-menu:not([open]) > .staff-notifications-menu-panel { display: none; }
.admin-shell #view-notifications .staff-notifications-menu-panel > button {
  min-height: 2.45rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #253b30;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.admin-shell #view-notifications .staff-notifications-menu-panel > button:hover { background: #f2f8f4; }
.admin-shell #view-notifications #admin-notifications-clear-read { color: #9a3d31; }
.admin-shell #view-notifications .staff-notifications-menu-panel > button:disabled { color: #87948d; cursor: not-allowed; }
.staff-notifications-controls { display: grid; gap: 0.65rem; min-width: 0; margin-bottom: 0.85rem; }
.staff-notifications-controls .staff-notifications-toolbar { margin: 0; }
.staff-notifications-tabs { display: flex; width: 100%; gap: 0.2rem; padding: 0.25rem; border-radius: 13px; background: #e7e9e2; }
.staff-notifications-tabs button {
  display: inline-flex;
  flex: 1 1 0;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #52635a;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.staff-notifications-tabs button span { display: grid; min-width: 1.25rem; height: 1.25rem; place-items: center; padding: 0 0.25rem; border-radius: 999px; background: rgb(20 84 58 / 11%); font-size: 0.7rem; }
.staff-notifications-tabs button.is-active { border-color: #e5e8e1; background: #fff; color: var(--header-dark); box-shadow: 0 1px 3px rgb(20 55 42 / 8%); }
.staff-notifications-tabs button:focus-visible,
.staff-notifications-categories button:focus-visible,
.staff-notifications-reset:focus-visible { outline: 2px solid #08735a; outline-offset: 2px; }
.staff-notifications-search { display: flex; align-items: center; gap: 0.45rem; min-width: 0; min-height: 2.25rem; padding: 0 0.65rem; border: 1px solid #dce6e0; border-radius: 9px; background: #fff; color: #65766d; }
.staff-notifications-search > span { font-size: 1.2rem; line-height: 1; }
.staff-notifications-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #263b31; font: inherit; font-size: 0.84rem; line-height: 1.2; }
.staff-notifications-search input:focus-visible { outline: 2px solid #08735a; outline-offset: 2px; }
.staff-notifications-categories { display: flex; flex-wrap: wrap; gap: 0.45rem; min-width: 0; }
.staff-notifications-categories button { min-height: 2.1rem; padding: 0.35rem 0.8rem; border: 1px solid #e0e8e2; border-radius: 999px; background: #fff; color: #294b3a; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.staff-notifications-categories button.is-active { border-color: var(--header-dark); background: var(--header-dark); color: #fff; }
.staff-notifications-categories button:hover { border-color: #9dcab0; background: #f3f8f5; }
.staff-notifications-categories button.is-active:hover { background: var(--header-dark); }
.staff-notifications-reset { margin-top: 0.65rem; padding: 0.35rem 0.6rem; border: 0; border-radius: 7px; background: #e7f4ed; color: #126344; font: inherit; font-size: 0.82rem; font-weight: 750; cursor: pointer; }
.admin-shell #view-notifications .staff-notifications-list { gap: 0.9rem; }
.admin-shell #view-notifications .staff-notification-group-rows { gap: 0; }
.admin-shell #view-notifications .staff-notifications-list .staff-notification-entry {
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgb(101 118 110 / 18%);
  border-radius: 0;
  background: transparent;
}
.admin-shell #view-notifications .staff-notifications-list .staff-notification-entry.is-unread { background: transparent; }
.admin-shell #view-notifications .staff-notification-main { min-height: 5rem; }
.admin-shell #view-notifications .staff-notification-main:hover { background: rgb(255 255 255 / 45%); }
.admin-shell #view-notifications .staff-notifications-empty { color: var(--muted); }
@media (max-width: 520px) {
  .staff-notifications-toolbar { align-items: stretch; flex-direction: column; }
  .staff-notification-main { grid-template-columns: 0.35rem 2.6rem minmax(0, 1fr) auto; gap: 0.5rem; min-height: 5.3rem; padding: 0.6rem 2.55rem 0.6rem 0.5rem; }
  .staff-notification-thumb { width: 2.6rem; height: 2.6rem; border-radius: 9px; font-size: 1.05rem; }
  .staff-notification-title { font-size: 0.9rem; }
  .staff-notification-amount { font-size: 0.82rem; }
  .staff-notification-description { font-size: 0.78rem; }
  .staff-notification-meta { gap: 0.3rem 0.4rem; font-size: 0.68rem; }
  .staff-notification-status { font-size: 0.65rem; }
  .staff-notifications-categories { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 4px; margin: -2px -2px -4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .staff-notifications-categories::-webkit-scrollbar { display: none; }
  .staff-notifications-categories button { flex: 0 0 auto; }
}

.alert-pop {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: var(--shadow);
}
.alert-pop .staff-notification-entry + .staff-notification-entry { margin-top: 6px; }
.alert-pop .staff-notification-entry { padding: 0; border: 0; background: transparent; }
.staff-notification-entry {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe6df;
  border-radius: 12px;
  background: #fff;
}
.staff-notification-entry.is-unread { border-color: #c8dfd1; background: #f4faf6; }
.staff-notifications-list .staff-notification-entry.is-unread { border-color: #c8dfd1; background: #f4faf6; }
.staff-notification-main {
  display: grid;
  grid-template-columns: 0.45rem 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.alert-pop button.staff-notification-main { display: grid; padding: 10px 12px; }
.staff-notifications-list .staff-notification-main { padding-right: 2.9rem; }
.staff-notification-copy,
.staff-notification-heading { min-width: 0; }
.staff-notification-copy { display: grid; gap: 0.18rem; }
.staff-notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.staff-notification-title {
  min-width: 0;
  overflow: hidden;
  color: #172821;
  font-size: 0.88rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-notification-amount { flex: 0 0 auto; font-size: 0.82rem; white-space: nowrap; }
.staff-notification-description {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #68766f;
  font-size: 0.76rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-notification-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; min-width: 0; }
.staff-notification-status { flex: 0 0 auto; padding: 0.12rem 0.45rem; border-radius: 999px; background: #edf1ef; color: #53615a; font-size: 0.64rem; font-weight: 800; line-height: 1.35; white-space: nowrap; }
.staff-notification-status.is-paid { background: #e5f5ee; color: var(--green-deep); }
.staff-notification-status.is-pending { background: #f6efe2; color: var(--amber); }
.staff-notification-status.is-rejected { background: #f7ecea; color: var(--danger); }
.staff-notification-time,
.staff-notification-reference { color: #68766f; font-size: 0.68rem; white-space: nowrap; }
.staff-notification-thumb { width: 2rem; height: 2rem; border-radius: 8px; font-size: 0.9rem; }
.staff-notification-thumb:not(img) { background: #edf4f0; color: var(--green-deep); }
.staff-notification-thumb svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.staff-notification-entry.is-unread .staff-notification-thumb:not(img) { background: #e5f5ee; color: var(--green-deep); }
.staff-notification-arrow { color: var(--green); font-size: 1.2rem; line-height: 1; }
.staff-notification-entry:hover { border-color: #b8d8c6; }
.staff-notification-entry.is-unread:hover { background: #edf7f1; }
.staff-notification-unread-dot { width: 0.4rem; height: 0.4rem; }
@media (max-width: 599px) {
  .alert-pop {
    top: max(calc(74px + env(safe-area-inset-top) + 6px), var(--alert-panel-top, 0px));
    right: 12px;
    left: 12px;
    width: auto;
    max-height: min(70vh, 520px);
  }
}
@media (max-width: 520px) {
  .staff-notification-main { grid-template-columns: 0.4rem 1.8rem minmax(0, 1fr) auto; gap: 0.45rem; min-height: 0; padding: 10px; }
  .alert-pop button.staff-notification-main { padding: 10px; }
  .staff-notifications-list .staff-notification-main { padding: 10px 2.55rem 10px 10px; }
  .staff-notification-thumb { width: 1.8rem; height: 1.8rem; }
  .staff-notification-title { font-size: 0.82rem; }
  .staff-notification-amount { font-size: 0.74rem; }
  .staff-notification-description { font-size: 0.72rem; }
  .staff-notification-meta { gap: 0.25rem 0.35rem; }
}

.customer-notification-card .notification-card-title,
.customer-notification-card .notification-card-body,
.customer-notification-card .customer-notification-amount,
.staff-notification-title,
.staff-notification-description,
.staff-notification-amount { font-family: var(--font-ui); }
.customer-notification-card .notification-card-title,
.staff-payment-alert-item .notification-card-title,
.staff-notification-title { color: #174c3b; font-weight: 500; }
.customer-notification-card .notification-card-body,
.staff-payment-alert-item .notification-card-body,
.staff-notification-description { color: #52635a; font-weight: 400; }
.customer-notification-card .customer-notification-amount,
.staff-notification-amount { color: #145c43; font-weight: 500; }
.customer-notification-card .customer-notification-category,
.staff-notification-status { font-weight: 500; }

.admin-shell #view-notifications > .panel > .panel-head h2,
.admin-shell #view-orders > .panel > .panel-head h2,
.admin-shell #view-invoices > .panel > .panel-head h2,
.admin-shell #view-batches > .panel > .panel-head h2,
.admin-shell #view-telegram > .panel > .panel-head h2,
.admin-shell #view-products > .panel > .panel-head h2,
.admin-shell #view-available > .panel > .panel-head h2,
.admin-shell #view-statistics > .panel > .panel-head h2,
.admin-shell #view-online > .panel > .panel-head h2,
.admin-shell #view-customers > .panel > .panel-head h2,
.admin-shell #view-promote > .panel > .panel-head h2,
.admin-shell #view-reports > .panel > .panel-head h2,
.admin-shell #view-settings > .panel > .panel-head h2 { font-size: 1.3rem; }
body:not(.page-admin) .section-heading h2 { font-size: 24px; }
body:not(.page-admin) .available-shop-page-header h2,
body:not(.page-admin) .available-cart-page-heading h2 { font-size: 1.35rem; }
body:not(.page-admin) .profile-detail-header h3 { font-size: 1.25rem; }
body:not(.page-admin) .invoice-section > h2 { font-size: 1.35rem; }

@media (max-width: 760px) {
  .admin-shell #view-notifications > .panel > .panel-head h2,
  .admin-shell #view-orders > .panel > .panel-head h2,
  .admin-shell #view-invoices > .panel > .panel-head h2,
  .admin-shell #view-batches > .panel > .panel-head h2,
  .admin-shell #view-telegram > .panel > .panel-head h2,
  .admin-shell #view-products > .panel > .panel-head h2,
  .admin-shell #view-available > .panel > .panel-head h2,
  .admin-shell #view-statistics > .panel > .panel-head h2,
  .admin-shell #view-online > .panel > .panel-head h2,
  .admin-shell #view-customers > .panel > .panel-head h2,
  .admin-shell #view-promote > .panel > .panel-head h2,
  .admin-shell #view-reports > .panel > .panel-head h2,
  .admin-shell #view-settings > .panel > .panel-head h2 { font-size: 1.2rem; }
  body:not(.page-admin) .section-heading h2 { font-size: 22px; }
  body:not(.page-admin) .available-shop-page-header h2,
  body:not(.page-admin) .available-cart-page-heading h2,
  body:not(.page-admin) .profile-detail-header h3,
  body:not(.page-admin) .invoice-section > h2 { font-size: 1.2rem; }
}

@media (max-width: 380px) {
  body.customer-profile-detail-open .profile-detail-header h3 { font-size: 1.15rem; }
}

/* Premium floating bottom tab bar with a centred "Go to" pill */
@media (max-width: 760px) {
  body:not(.page-admin) .bottom-nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 0.85rem;
    background: rgb(255 255 255 / 90%);
    box-shadow:
      0 22px 44px -16px rgb(14 38 27 / 32%),
      0 3px 10px rgb(14 38 27 / 8%),
      inset 0 1px 0 rgb(255 255 255 / 95%);
    backdrop-filter: blur(22px) saturate(1.6);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
  }
  body:not(.page-admin) .bottom-nav .nav-link,
  body[data-view] .available-bottom-nav .nav-link {
    position: relative;
    gap: 0.28rem;
    min-height: 3.75rem;
    padding: 0.4rem 0.15rem 0.35rem;
    border-radius: 0.6rem;
    color: #59665e;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 180ms ease, color 180ms ease, transform 140ms ease;
  }
  body:not(.page-admin) .bottom-nav .nav-link:active { transform: scale(0.95); }
  body:not(.page-admin) .bottom-nav .nav-link.is-current {
    border-radius: 0.6rem;
    background: linear-gradient(180deg, #eef6f1 0%, #e1eee6 100%);
    color: #0b5838;
    box-shadow: inset 0 0 0 1px rgb(11 88 56 / 9%), 0 1px 2px rgb(11 88 56 / 8%);
  }
  body:not(.page-admin) .bottom-nav .nav-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  body:not(.page-admin) .bottom-nav .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8.5h13l-.9 10.6a2 2 0 0 1-2 1.9H8.4a2 2 0 0 1-2-1.9z'/%3E%3Cpath d='M9 8.5V7a3 3 0 0 1 6 0v1.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8.5h13l-.9 10.6a2 2 0 0 1-2 1.9H8.4a2 2 0 0 1-2-1.9z'/%3E%3Cpath d='M9 8.5V7a3 3 0 0 1 6 0v1.5'/%3E%3C/svg%3E"); }
  body:not(.page-admin) .bottom-nav .nav-icon-box { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='5' rx='1.5'/%3E%3Cpath d='M5 9v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V9'/%3E%3Cpath d='M10 13h4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='5' rx='1.5'/%3E%3Cpath d='M5 9v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V9'/%3E%3Cpath d='M10 13h4'/%3E%3C/svg%3E"); }
  body:not(.page-admin) .bottom-nav .nav-icon-cart { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h1.6a1 1 0 0 1 1 .8L7.4 15a1.6 1.6 0 0 0 1.6 1.3h8.3a1.6 1.6 0 0 0 1.5-1.2L20.5 8H6.2'/%3E%3Ccircle cx='9.5' cy='20' r='1.2'/%3E%3Ccircle cx='17' cy='20' r='1.2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h1.6a1 1 0 0 1 1 .8L7.4 15a1.6 1.6 0 0 0 1.6 1.3h8.3a1.6 1.6 0 0 0 1.5-1.2L20.5 8H6.2'/%3E%3Ccircle cx='9.5' cy='20' r='1.2'/%3E%3Ccircle cx='17' cy='20' r='1.2'/%3E%3C/svg%3E"); }
  body:not(.page-admin) .bottom-nav .nav-icon-invoice { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
  body:not(.page-admin) .bottom-nav .nav-icon-person { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 20.5c1.2-3.6 4-5.5 7.5-5.5s6.3 1.9 7.5 5.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 20.5c1.2-3.6 4-5.5 7.5-5.5s6.3 1.9 7.5 5.5'/%3E%3C/svg%3E"); }
  body:not(.page-admin) .bottom-nav .bottom-menu-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-height: 3.75rem;
    padding: 0 0.1rem;
    background: transparent;
    color: #26332b;
    box-shadow: none;
  }
  body:not(.page-admin) .bottom-nav .bottom-menu-toggle:active { transform: none; }
  body:not(.page-admin) .bottom-nav .bottom-menu-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 0.3rem;
    width: 100%;
    height: 3.15rem;
    border: 1px solid rgb(20 40 30 / 6%);
    border-radius: 999px;
    background: linear-gradient(180deg, #f2f3f1 0%, #e6e8e5 100%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%), 0 1px 2px rgb(14 38 27 / 8%);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 140ms ease;
  }
  body:not(.page-admin) .bottom-nav .bottom-menu-toggle:active .bottom-menu-pill { transform: scale(0.95); }
  body:not(.page-admin) .bottom-nav .bottom-menu-pill-chevron {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    background: currentColor;
    opacity: 0.7;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 14.5l5-5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 14.5l5-5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 200ms ease;
  }
  body:not(.page-admin) .bottom-nav .bottom-menu-toggle[aria-expanded="true"] { color: #fff; }
  body:not(.page-admin) .bottom-nav .bottom-menu-toggle[aria-expanded="true"] .bottom-menu-pill {
    border-color: transparent;
    background: linear-gradient(180deg, #13704a 0%, #0b5838 100%);
    box-shadow: 0 8px 18px -6px rgb(11 88 56 / 55%), inset 0 1px 0 rgb(255 255 255 / 18%);
  }
  body:not(.page-admin) .bottom-nav .bottom-menu-toggle[aria-expanded="true"] .bottom-menu-pill-chevron { opacity: 1; transform: rotate(180deg); }
  body:not(.page-admin) .bottom-nav .bottom-menu-toggle:focus-visible { outline: none; }
  body:not(.page-admin) .bottom-nav .bottom-menu-toggle:focus-visible .bottom-menu-pill,
  body:not(.page-admin) .bottom-nav .nav-link:focus-visible { outline: 2px solid #0b5838; outline-offset: 2px; }
  body:not(.page-admin) .bottom-nav-menu {
    bottom: calc(100% + 0.9rem);
    min-width: 13.5rem;
    padding: 0.45rem;
    border: 1px solid rgb(226 233 228 / 90%);
    border-radius: 0.85rem;
    background: rgb(255 255 255 / 97%);
    box-shadow: 0 24px 48px -18px rgb(14 38 27 / 38%), 0 4px 12px rgb(14 38 27 / 8%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: bottom-menu-rise 180ms ease-out;
  }
  body:not(.page-admin) .bottom-nav-menu > a,
  body:not(.page-admin) .bottom-nav-menu > button {
    min-height: 3rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.85rem;
    font-size: 0.86rem;
    font-weight: 700;
  }
  body:not(.page-admin) .bottom-nav-menu .bottom-menu-item-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 0.65rem;
    background-color: #edf5ef;
    background-size: 1.1rem;
  }
  body:not(.page-admin) .available-bottom-count {
    top: 0.2rem;
    right: calc(50% - 1.35rem);
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border: 2px solid #fff;
    background: linear-gradient(180deg, #f0b43a 0%, #d68f0c 100%);
    box-shadow: 0 2px 6px rgb(214 143 12 / 40%);
    font-size: 0.62rem;
    line-height: 1;
  }
}

@keyframes bottom-menu-rise {
  from { opacity: 0; transform: translate(-50%, 6px) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.page-admin) .bottom-nav-menu { animation: none; }
  body:not(.page-admin) .bottom-nav .nav-link,
  body:not(.page-admin) .bottom-nav .bottom-menu-pill,
  body:not(.page-admin) .bottom-nav .bottom-menu-pill-chevron { transition: none; }
}

/* ---------------------------------------------------------------------------
   Admin responsive layout
   Desktop is unchanged. Tablets keep tables, scrolling inside their own box.
   Phones get a drawer above the top bar, stacked headers, compact stats and
   tables restyled as cards (cells are labelled by labelResponsiveTable in
   admin.js).
   ------------------------------------------------------------------------ */
.admin-shell .dash-table,
.admin-shell .table-scroll { max-width: 100%; overscroll-behavior-x: contain; }
.admin-shell .admin-main { overflow-x: clip; }

@media (max-width: 860px) {
  .admin-shell .admin-side {
    z-index: 60;
    width: min(84vw, 288px);
    flex-basis: auto;
    padding-top: calc(1.15rem + env(safe-area-inset-top));
    padding-bottom: calc(0.9rem + env(safe-area-inset-bottom));
  }
  .admin-shell .admin-side.is-open { box-shadow: 18px 0 40px rgb(8 24 18 / 28%); }
  .admin-shell .admin-side.is-open + .side-backdrop { z-index: 55; }
  .admin-shell .side-link { min-height: 2.75rem; }
  .admin-shell .admin-top { gap: 0.55rem; min-height: 64px; padding-top: 0.65rem; padding-bottom: 0.65rem; }
  .admin-shell .admin-search { min-width: 0; }
  .admin-shell .stat-row,
  .admin-shell .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablets: welcome and date cards share a row. */
@media (min-width: 641px) and (max-width: 1100px) {
  .admin-shell .dash-hero { grid-template-columns: minmax(0, 1fr) minmax(220px, auto); }
}

@media (max-width: 760px) {
  .admin-shell .admin-content { padding: 0.25rem 0.75rem calc(1.5rem + env(safe-area-inset-bottom)); }
  .admin-shell .admin-top { padding-left: 0.75rem; padding-right: 0.75rem; }
  .admin-shell .panel { padding: 0.95rem 0.9rem 0.8rem; border-radius: 14px; }

  /* Panel headers: title on its own line, controls full width beneath. */
  .admin-shell .panel-head { flex-wrap: wrap; row-gap: 0.6rem; }
  .admin-shell .panel-head > div:first-child { flex: 1 1 12rem; min-width: 0; }
  .admin-shell .panel-head .batch-sort,
  .admin-shell .tracker-tools .batch-sort { flex: 1 1 100%; min-height: 2.75rem; }
  .admin-shell .batch-sort select { flex: 1 1 auto; min-width: 0; min-height: 2.5rem; }
  .admin-shell .panel-head h2 { font-size: 1.08rem; }
  .admin-shell .panel-head.with-action { grid-template-columns: auto minmax(0, 1fr); row-gap: 0.6rem; }
  .admin-shell .panel-head.with-action > div:first-child { grid-column: 1 / -1; }
  .admin-shell .panel-head.with-action > .text-link { justify-self: end; }

  /* Dashboard */
  .admin-shell .dash-hero { gap: 0.6rem; }
  .admin-shell .welcome-card,
  .admin-shell .date-card { min-height: 0; padding: 0.85rem 0.95rem; border-radius: 14px; }
  .admin-shell .welcome-card h2 { font-size: 1.12rem; }
  .admin-shell .welcome-card p { font-size: 0.84rem; }
  .admin-shell .date-ico { width: 40px; height: 40px; }
  .admin-shell .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0.7rem 0; }
  .admin-shell .stat-card { flex-direction: column; gap: 0.5rem; min-width: 0; min-height: 0; padding: 0.8rem; border-radius: 14px; }
  .admin-shell .stat-ico { width: 34px; height: 34px; border-radius: 10px; }
  .admin-shell .stat-ico svg { width: 18px; height: 18px; }
  .admin-shell .stat-label { font-size: 0.76rem; }
  .admin-shell .stat-card strong { font-size: 1.4rem; overflow-wrap: anywhere; }
  .admin-shell .stat-trend { margin-top: 0.25rem; font-size: 0.7rem; line-height: 1.3; }
  .admin-shell .dash-grid { gap: 0.7rem; margin-top: 0.7rem; }
  .admin-shell .quick-grid { gap: 0.5rem; }

  /* Filter chips and view tabs scroll sideways inside their own strip. */
  .admin-shell .batch-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .admin-shell .batch-filters::-webkit-scrollbar { display: none; }
  .admin-shell .batch-filter { flex: 0 0 auto; min-height: 2.5rem; padding-inline: 0.8rem; }
  .admin-shell .admin-view-tabs { scrollbar-width: none; }
  .admin-shell .admin-view-tabs::-webkit-scrollbar { display: none; }
  .admin-shell .batch-bulk-toolbar .btn,
  .admin-shell .batch-selection-clear { min-height: 2.5rem; }

  /* Reports and statistics */
  .admin-shell .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .admin-shell .report-card { min-width: 0; padding: 0.75rem 0.8rem; }
  .admin-shell .report-card strong { font-size: 1.05rem; overflow-wrap: anywhere; }
  .admin-shell .admin-cutoff-group .actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
  }
  .admin-shell .admin-cutoff-group .actions input { width: 100%; min-width: 0; margin: 0; padding-inline: 0.7rem; font-size: 0.88rem; }
  .admin-shell .admin-cutoff-group .actions .btn { min-height: 2.75rem; margin: 0; padding-inline: 0.8rem; font-size: 0.84rem; }
  .admin-shell .admin-cutoff-group .actions > .btn:nth-of-type(n + 3) { grid-column: 1 / -1; width: 100%; }

  /* Settings */
  .admin-shell .product-category-manager-row { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-shell .product-category-manager-name { grid-column: 1 / -1; }
  .admin-shell .product-category-manager-row .btn { width: 100%; }
  .admin-shell .available-admin-active input[type="checkbox"] { width: 1.25rem; height: 1.25rem; min-height: 0; flex: 0 0 1.25rem; margin: 0; }

  /* Buttons stay comfortable to tap. */
  .admin-shell .view-btn,
  .admin-shell .open-pill { min-height: 2.5rem; }
  .admin-shell .create-btn { min-height: 2.6rem; }
}

@media (max-width: 480px) {
  .admin-shell .admin-user-copy { display: none; }
  .admin-shell .admin-top { gap: 0.45rem; }
  .admin-shell .admin-search { padding: 0 0.75rem; }
}

/* Tables become cards on phones. */
@media (max-width: 640px) {
  .admin-shell .quick-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-shell .dash-table,
  .admin-shell .table-scroll:has(> .admin-responsive-table) { overflow: visible; border: 0; }
  .admin-shell table.admin-responsive-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
    border: 0;
    background: transparent;
  }
  .admin-shell table.admin-responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .admin-shell table.admin-responsive-table tbody { display: grid; gap: 0.6rem; }
  .admin-shell table.admin-responsive-table tbody > tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.75rem;
    padding: 0.2rem 0.85rem 0.35rem;
    border: 1px solid #e6ece8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgb(16 40 29 / 5%);
  }
  .admin-shell table.admin-responsive-table tbody > tr > td {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: auto;
    min-width: 0;
    padding: 0.5rem 0;
    border: 0;
    border-top: 1px solid #f0f3f1;
    background: transparent !important;
    font-size: 0.84rem;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .admin-shell table.admin-responsive-table tbody > tr > td::before {
    flex: 0 0 auto;
    max-width: 48%;
    color: #78867e;
    content: attr(data-label);
    font-size: 0.74rem;
    font-weight: 700;
    text-align: left;
  }
  .admin-shell table.admin-responsive-table tbody > tr > td[data-label=""]::before { content: none; }
  .admin-shell table.admin-responsive-table tbody > tr > td.rt-index { display: none; }

  /* Card header: name on the left, status badge (or checkbox) on the right. */
  .admin-shell table.admin-responsive-table tbody > tr > td.rt-title {
    display: block;
    grid-column: 1;
    grid-row: 1;
    padding: 0.7rem 0 0.55rem;
    border-top: 0;
    font-size: 0.92rem;
    font-weight: 750;
    text-align: left;
  }
  .admin-shell table.admin-responsive-table tbody > tr > td.rt-title::before,
  .admin-shell table.admin-responsive-table tbody > tr > td.rt-status::before,
  .admin-shell table.admin-responsive-table tbody > tr > td.rt-select::before,
  .admin-shell table.admin-responsive-table tbody > tr > td.rt-actions::before,
  .admin-shell table.admin-responsive-table tbody > tr > td.rt-full::before { content: none; }
  .admin-shell table.admin-responsive-table tbody > tr > td.rt-status {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    border-top: 0;
    font-weight: 750;
  }
  .admin-shell table.admin-responsive-table tbody > tr > td.rt-select {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    border-top: 0;
  }
  .admin-shell table.admin-responsive-table tbody > tr > td.rt-select input { width: 1.25rem; height: 1.25rem; }
  .admin-shell table.admin-responsive-table tbody > tr:has(> td.rt-select) > td.rt-status { grid-column: 1 / -1; grid-row: auto; border-top: 1px solid #f0f3f1; justify-content: space-between; }
  .admin-shell table.admin-responsive-table tbody > tr:has(> td.rt-select) > td.rt-status::before { content: attr(data-label); }
  .admin-shell table.admin-responsive-table tbody > tr > td.rt-actions { justify-content: flex-end; padding-top: 0.6rem; }
  .admin-shell table.admin-responsive-table tbody > tr > td.rt-actions > .row-actions { flex-wrap: wrap; justify-content: flex-end; width: 100%; }
  .admin-shell table.admin-responsive-table tbody > tr > td.rt-full { display: block; text-align: left; }
  .admin-shell table.admin-responsive-table td.rt-title .product-cell { min-width: 0; max-width: 100%; text-align: left; }
  .admin-shell table.admin-responsive-table td.rt-title strong,
  .admin-shell table.admin-responsive-table td.rt-title .who-sub { white-space: normal; overflow: visible; text-overflow: clip; }
  .admin-shell table.admin-responsive-table td.rt-title .who-sub { display: block; margin-top: 0.2rem; font-weight: 500; }

  /* Dashboard batch preview (not converted yet): tighter cards. */
  .admin-shell #dash-batches table.admin-responsive-table tbody > tr > td:not(.rt-title) { padding-block: 0.32rem; }
  .admin-shell #dash-batches table.admin-responsive-table tbody > tr > td.rt-actions { padding-block: 0.4rem 0.2rem; }
  .admin-shell table.admin-responsive-table .more-btn { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }

  /* Keep the batch status badge clear of the dialog's close button. */
  .admin-shell .batch-dialog .admin-batch-summary { padding-right: 2.75rem; }
}

/* UI kit
   Shared admin components from public/js/ui-kit.js: item rows, the ⋮ menu,
   the details sheet (bottom sheet under 720px, side panel from 720px), the
   filter sheet, confirmations, the undo toast, and the compact table.
   Existing CSS variables only. No gradients, shadows beyond --shadow, or
   hover-only behaviour. */
.admin-shell { --ui-sticky-top: 64px; }
@media (min-width: 861px) {
  .admin-shell { --ui-sticky-top: 74px; }
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--green-deep);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.ui-btn:hover { background: var(--paper); }
.ui-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ui-btn-primary { border-color: var(--green); background: var(--green); color: #fff; }
.ui-btn-primary:hover { background: var(--green-deep); }
.ui-btn-danger { border-color: var(--danger); color: var(--danger); }
.ui-link { color: var(--green); font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }
.ui-btn:focus-visible,
.ui-link:focus-visible,
.ui-chip:focus-visible,
.ui-open:focus-visible,
.ui-menu-btn:focus-visible,
.ui-menu-item:focus-visible,
.ui-tab:focus-visible,
.ui-sheet-close:focus-visible,
.ui-copy:focus-visible,
.ui-toast-action:focus-visible,
.ui-filter-btn:focus-visible,
.ui-detail-toggle:focus-visible,
.ui-search input:focus-visible,
.ui-field select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Status: a word plus a colour, never colour alone. */
.ui-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 1.6rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--sheet);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.ui-badge.is-ok { color: var(--green); }
.ui-badge.is-warn { color: var(--amber-text); }
.ui-badge.is-bad { color: var(--danger); }
.ui-badge.is-neutral { color: var(--muted); }

/* List, sticky search and quick chips */
.ui-list { display: grid; gap: 0.35rem; }
.ui-controls {
  position: sticky;
  top: calc(var(--ui-sticky-top) + var(--ui-extra-sticky, 0px));
  z-index: 4;
  padding: 0.5rem 0 0.3rem;
  border-bottom: 1px solid var(--line);
  background: var(--sheet);
}
.ui-controls[hidden], .ui-toolbar[hidden], .ui-search[hidden], .ui-chips[hidden] { display: none; }
.ui-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.ui-controls .ui-chips { margin-top: 0.35rem; }
/* Wide screens: search, Filters and chips sit on one row. */
@media (min-width: 1024px) {
  .ui-controls { display: flex; align-items: center; gap: 0.75rem; padding: 0.4rem 0; }
  .ui-controls .ui-toolbar { flex: 1 1 auto; min-width: 0; }
  .ui-controls .ui-chips { flex: 0 0 auto; margin-top: 0; padding: 0; overflow: visible; }
}
.ui-search { flex: 1 1 13rem; min-width: 0; }
.ui-search input {
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.ui-filter-btn,
.ui-detail-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--green-deep);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.ui-count {
  min-width: 1.4rem;
  margin-left: 0.45rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.4rem;
  text-align: center;
}
.ui-list-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ui-list-head[hidden] { display: none; }
.ui-detail-toggle { display: none; }
.ui-detail-toggle[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
@media (min-width: 1024px) {
  .ui-detail-toggle:not([hidden]) { display: inline-flex; }
}
.ui-chips { display: flex; gap: 0.4rem; padding: 0.2rem 0; overflow-x: auto; scrollbar-width: none; }
.ui-chips::-webkit-scrollbar { display: none; }
.ui-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}
.ui-chip[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.ui-list-status { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.8rem; }
.ui-list-more { display: grid; justify-items: center; padding: 0.6rem 0 0.2rem; }
.ui-group-heading {
  margin: 0.9rem 0 0.1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Item rows (phones and tablets) */
.ui-rows { margin: 0; padding: 0; list-style: none; }
.ui-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.ui-row:last-child { border-bottom: 0; }
.ui-row-main {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  min-height: 56px;
  padding: 0.5rem 0.2rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ui-row-main .avatar-dot { flex: 0 0 auto; }
.ui-row-text { display: grid; flex: 1 1 auto; gap: 0.1rem; min-width: 0; }
.ui-row-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.2rem 0.5rem; min-width: 0; }
.ui-row-top .ui-row-title { flex: 1 1 5rem; }
.ui-row-title {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ui-row-amount { flex: 0 0 auto; font-size: 0.9rem; font-weight: 700; white-space: nowrap; }
.ui-row-mark { margin-right: 0.1rem; }
.ui-row-sub {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ui-row-action { flex: 0 0 auto; }
.ui-menu-btn {
  display: inline-grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.ui-menu-btn:hover,
.ui-menu-btn[aria-expanded="true"] { background: var(--paper); }

/* ⋮ actions menu */
.ui-menu {
  position: fixed;
  z-index: 80;
  min-width: 12rem;
  max-width: calc(100vw - 16px);
  padding: 0.3rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: var(--shadow);
}
.ui-menu-item {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}
.ui-menu-item:hover,
.ui-menu-item:focus-visible { background: var(--paper); }
.ui-menu-item.is-danger { border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; color: var(--danger); font-weight: 700; }
.ui-menu-item:disabled { color: var(--muted); cursor: not-allowed; }

/* Compact table (1024px and up) */
.ui-table-scroll { overflow-x: auto; }
.ui-table { width: 100%; border-collapse: collapse; }
.ui-table th {
  padding: 0.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}
.ui-table td { padding: 0.2rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.ui-tr { cursor: pointer; }
.ui-tr:hover td { background: var(--paper); }
.ui-group-row th { padding: 0.3rem 0.6rem; background: var(--paper); color: var(--ink); }
.ui-cell-open {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.ui-col-actions { width: 1%; text-align: right; white-space: nowrap; }
.ui-actions-cell { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.35rem; }
.ui-actions-cell .ui-row-action { white-space: nowrap; }

/* Details sheet (bottom sheet on phones, side panel from 720px) and filter sheet */
.ui-sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: none;
  max-height: 88vh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px 16px 0 0;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: var(--shadow);
}
@supports (height: 1dvh) {
  .ui-sheet { max-height: 88dvh; }
}
.ui-sheet[open] { display: flex; flex-direction: column; }
.ui-sheet::backdrop,
.ui-confirm::backdrop { background: rgb(10 25 19 / 48%); }
@media (min-width: 720px) {
  .ui-sheet {
    inset: 0 0 0 auto;
    width: min(420px, 100vw);
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}
body:has(dialog.ui-sheet[open]),
body:has(dialog.ui-confirm[open]) { overflow: hidden; }
.ui-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0.9rem 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}
.ui-sheet-titles { display: grid; gap: 0.4rem; min-width: 0; }
.ui-sheet-title { margin: 0; color: var(--green-deep); font-size: 1.12rem; line-height: 1.25; overflow-wrap: anywhere; }
.ui-sheet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ui-sheet-sub { color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }
.ui-sheet-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.ui-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.ui-tab {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.ui-tab[aria-selected="true"] { border-bottom-color: var(--green); color: var(--green-deep); }
.ui-sheet-body { flex: 1 1 auto; min-height: 0; padding: 0.4rem 1rem 1rem; overflow-y: auto; overscroll-behavior: contain; }
.ui-sheet-body:focus { outline: none; }
.ui-sheet-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.ui-sheet-foot .ui-btn { flex: 1 1 8rem; }
.ui-details { display: grid; margin: 0; }
.ui-detail {
  display: grid;
  grid-template-columns: minmax(5.5rem, 34%) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.ui-detail:last-child { border-bottom: 0; }
.ui-detail dt { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.ui-detail dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.ui-contact { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ui-shortid { display: inline-flex; align-items: center; gap: 0.5rem; }
.ui-shortid code { font: inherit; font-weight: 800; letter-spacing: 0.08em; }
.ui-copy {
  min-height: 36px;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sheet);
  color: var(--green-deep);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.ui-mini-list { margin: 0; padding: 0; list-style: none; }
.ui-mini-list li { display: grid; gap: 0.15rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.ui-mini-list li:last-child { border-bottom: 0; }
.ui-mini-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.ui-filter-form { display: grid; gap: 0.9rem; padding-top: 0.6rem; }
.ui-field { display: grid; gap: 0.3rem; }
.ui-field-label { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.ui-field select {
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

/* Confirmation dialog (also used for every money action) */
.ui-confirm {
  width: min(26rem, calc(100vw - 2rem));
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.ui-confirm-title { margin: 0 0 0.4rem; color: var(--green-deep); font-size: 1.1rem; }
.ui-confirm-message { margin: 0 0 0.5rem; color: var(--muted); }
.ui-confirm-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; margin-top: 0.9rem; }
.ui-confirm-actions .ui-btn { flex: 1 1 8rem; }

/* Undo toast */
.ui-toast-region {
  position: fixed;
  right: 0;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  left: 0;
  z-index: 90;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  pointer-events: none;
}
.ui-toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.25rem 0.4rem 0.25rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  pointer-events: auto;
}
.ui-toast-action {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
.ui-stack { display: grid; gap: 0.5rem; justify-items: start; }
.ui-nowrap { white-space: nowrap; }

/* UI kit: selection, notes, action rows and the payments section */
.ui-select { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.ui-select input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.ui-select input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ui-col-select { width: 44px; padding-right: 0; }
.ui-row-notes { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.2rem; }
.ui-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.ui-actions .ui-btn { flex: 1 1 8rem; }
.ui-payments {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber-text);
  border-radius: 10px;
  background: var(--sheet);
}
.ui-payments > h3 { margin: 0 0 0.25rem; color: var(--green-deep); font-size: 1rem; }
.ui-payments .help { margin: 0 0 0.5rem; }
.ui-mini-list li.is-alert-target { outline: 2px solid var(--green); outline-offset: 2px; }
/* On phones a wide action ("Verify payment") sits under the text; from 720px it stays beside it. */
@media (max-width: 719px) {
  .ui-row.has-stacked-action { flex-wrap: wrap; }
  .ui-row.has-stacked-action .ui-row-main { flex: 1 1 0; min-width: 0; }
  .ui-row.has-stacked-action .ui-menu-btn { order: 2; }
  .ui-row.has-stacked-action .ui-row-action { order: 3; flex: 1 1 100%; margin: 0 0 0.6rem; }
}
@media (min-width: 720px) {
  .ui-row.has-stacked-action .ui-row-action { flex: 0 0 auto; white-space: nowrap; }
}

/* Batches bulk bar: pinned under the top bar while anything is selected. */
.batch-bulk-actions { display: contents; }
.batch-select-page { min-height: 44px; }
.batch-select-page input { width: 20px; height: 20px; }
.batch-bulk-toolbar.has-selection {
  position: sticky;
  top: var(--ui-sticky-top);
  z-index: 6;
  background: var(--sheet);
}
@media (max-width: 719px) {
  .batch-bulk-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.4rem;
  }
  .batch-bulk-toolbar .batch-select-page { grid-column: 1 / 3; grid-row: 1; }
  .batch-bulk-toolbar .batch-selection-count { grid-column: 3; grid-row: 1; margin: 0; }
  .batch-bulk-toolbar #batch-delete-selected { grid-column: 1 / 3; grid-row: 2; }
  .batch-bulk-toolbar .batch-selection-clear { grid-column: 3; grid-row: 2; }
  .batch-bulk-toolbar .batch-bulk-date { grid-column: 1 / 3; grid-row: 3; }
  .batch-bulk-toolbar #batch-bulk-apply { grid-column: 3; grid-row: 3; }
  .batch-bulk-toolbar .batch-bulk-error { grid-column: 1 / -1; grid-row: 4; }
  .batch-bulk-toolbar .batch-bulk-error:empty { display: none; }
  .batch-bulk-toolbar .btn, .batch-bulk-toolbar .batch-selection-clear, .batch-bulk-date input { min-height: 44px; }
  .batch-bulk-toolbar .batch-bulk-date { font-size: 0.72rem; line-height: 1.2; }
  .batch-bulk-toolbar .batch-bulk-date input { flex: 1 1 7.5rem; min-width: 7.5rem; }
}
.ui-confirm-list { max-height: 11rem; margin: 0.4rem 0 0; padding: 0.4rem 0.4rem 0.4rem 1.4rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; font-size: 0.9rem; }
.ui-confirm-list li { padding: 0.1rem 0; overflow-wrap: anywhere; }

/* Collapsible groups with their own pages (Batches by cutoff date) */
.ui-cgroups { display: grid; gap: 0.6rem; }
.ui-cgroup { border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); overflow: hidden; }
.ui-cgroup-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.4rem 0.8rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.ui-cgroup-summary::-webkit-details-marker { display: none; }
.ui-cgroup-summary strong::before { content: "▸"; display: inline-block; width: 1.1rem; color: var(--green-deep); }
.ui-cgroup[open] > .ui-cgroup-summary strong::before { content: "▾"; }
.ui-cgroup[open] > .ui-cgroup-summary { border-bottom: 1px solid var(--line); }
.ui-cgroup-count { color: var(--muted); font-size: 0.82rem; }
.ui-cgroup .ui-rows { padding: 0 0.6rem; }
.ui-cgroup-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  padding: 0.4rem 0.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}
.ui-pagination { display: flex; gap: 0.3rem; }
.ui-page-btn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--green-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ui-page-btn.is-current { border-color: var(--green); background: var(--green); color: #fff; }
.ui-page-btn:disabled { opacity: 0.45; cursor: not-allowed; }
/* Payment chips moved onto the shared search row: a full row on phones, beside the search from 1024px. */
.ui-toolbar > .ui-chips { flex: 1 1 100%; margin-top: 0; padding: 0; }
@media (min-width: 1024px) {
  .ui-toolbar > .ui-chips { flex: 0 0 auto; }
}
/* Sticky search and the bulk bar need the panel not to clip (overflow: hidden stops position: sticky). */
.panel.batches-panel { overflow: visible; }

/* Swallows a stray second tap right after a confirmation closes. */
.ui-tap-shield { position: fixed; inset: 0; z-index: 2147483000; background: transparent; }

/* Notifications: ⋮ menu instead of the hover-only trash button */
.staff-notifications-list .staff-notification-entry { position: relative; }
.staff-notification-entry > .staff-notification-menu {
  position: absolute;
  top: 50%;
  right: 0.2rem;
  transform: translateY(-50%);
}
.staff-notifications-list .ui-list-more { display: grid; padding: 0.6rem 0 0.2rem; }
.staff-notifications-controls { position: sticky; top: var(--ui-sticky-top); z-index: 4; background: var(--sheet); }

/* Lists never push their card wider than the screen (their chips and search scroll inside). */
.ui-host, .ui-list, .ui-controls, .admin-referral-table-card { min-width: 0; max-width: 100%; }
.admin-referral-table-card > h4 { margin: 0.7rem 0 0.1rem; }

/* Admin-managed storefront content: brand logo, About/Contact/FAQ, checkout guidance */
.site-brand-logo, .app-boot-brand img { object-fit: contain; }
.store-info { margin: 1.5rem auto; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--sheet); color: var(--ink); }
.store-info h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.store-info-block + .store-info-block { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.store-info-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.store-info-contact { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.store-info-contact a { color: var(--green); font-weight: 600; }
.store-info-faq { margin: 0.4rem 0 0; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc; }
.store-info-faq summary { padding: 0.65rem 0.85rem; cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.store-info-faq p { margin: 0; padding: 0 0.85rem 0.75rem; white-space: pre-line; overflow-wrap: anywhere; }
.checkout-guidance { margin: 0.85rem 0; padding: 0.85rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; background: #f7fbf9; color: var(--ink); }
.checkout-guidance h4 { margin: 0 0 0.4rem; font-size: 0.95rem; }
.checkout-guidance dl { display: grid; gap: 0.5rem; margin: 0; }
.checkout-guidance dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.checkout-guidance dd { margin: 0.1rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
[data-layout-hidden] { display: none !important; }

/* Rules still used by the customer Settings screen and the Promote template picker */
.sf-check { display: flex; align-items: center; gap: 0.5rem; }
.sf-template-picker { display: grid; gap: 0.3rem; margin-bottom: 0.6rem; }
.sf-template-picker select { min-height: 2.55rem; padding: 0.45rem 0.65rem; border: 1px solid #cfddd5; border-radius: 8px; background: #fff; font: inherit; }

/* Preorder progress in My Orders */
.order-timeline { display: grid; gap: 0.35rem; margin: 0.75rem 0; padding: 0; list-style: none; }
.order-timeline-step { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0.65rem 0.4rem 1.6rem; border-radius: 8px; background: #f6f9f7; color: var(--muted); font-size: 0.88rem; position: relative; }
.order-timeline-step::before { content: ""; position: absolute; left: 0.6rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.3rem; border: 2px solid #b8c7bf; border-radius: 50%; background: #fff; }
.order-timeline-step small { font-size: 0.76rem; font-weight: 700; }
.order-timeline-step.is-done { background: #eaf6ef; color: var(--ink); }
.order-timeline-step.is-done::before { border-color: var(--green); background: var(--green); }
.order-timeline-step.is-current { background: #fff7e6; color: var(--ink); font-weight: 650; }
.order-timeline-step.is-current::before { border-color: var(--amber); }

/* Customer conveniences: skip link, offline banner, text size, saved items */
html[data-text-size="large"] { font-size: 112.5%; }
html[data-text-size="xlarge"] { font-size: 125%; }
.skip-link { position: absolute; left: 0.75rem; top: -4rem; z-index: 1000; padding: 0.6rem 0.9rem; border-radius: 8px; background: #fff; color: var(--green-deep); font-weight: 700; box-shadow: 0 4px 14px rgb(0 0 0 / 25%); }
.skip-link:focus { top: 0.75rem; }
#main-content:focus { outline: none; }
.offline-banner { position: sticky; top: 0; z-index: 900; margin: 0; padding: 0.55rem 1rem; background: #fff3cd; color: #5c4400; text-align: center; font-size: 0.9rem; font-weight: 650; border-bottom: 1px solid #e6cf85; }
.wish-heart { position: absolute; z-index: 3; left: 0.55rem; bottom: 0.55rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); color: #b3261e; font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgb(0 0 0 / 18%); }
.wish-heart:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.text-size-choices .btn.is-active, .text-size-choices .btn[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.app-setting-stacked { display: grid; gap: 0.6rem; }
.close-account { margin-top: 0.4rem; }
.close-account summary { cursor: pointer; font-weight: 650; color: var(--danger); }
.close-account-form { display: grid; gap: 0.45rem; max-width: 22rem; margin-top: 0.6rem; }
.close-account-form input { min-height: 2.5rem; padding: 0.4rem 0.6rem; border: 1px solid #cfddd5; border-radius: 8px; font: inherit; }
.remember-details { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0; font-size: 0.88rem; }
.available-stock-alert { display: grid; gap: 0.35rem; margin: 0.6rem 0; }


/* Icon views: a grid of pictures with names underneath */

/* List: compact single-line rows */

/* Details: columns with titles */

/* ===== Shopping History sheet: saved and recently viewed ===== */
.saved-sheet { width: min(100% - 1.5rem, 46rem); max-height: min(92vh, 54rem); padding: 0.6rem 1.35rem 1.5rem; overflow-y: auto; border: 0; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgb(10 30 22 / 35%); }
.saved-sheet::backdrop { background: rgb(12 32 24 / 55%); backdrop-filter: blur(3px); }
.saved-sheet[open] { animation: saved-sheet-in 220ms ease-out; }
@keyframes saved-sheet-in { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .saved-sheet[open] { animation: none; } }
@media (max-width: 40rem) {
  .saved-sheet { width: 100%; max-width: 100%; margin: auto 0 0; padding-inline: 1rem; border-radius: 26px 26px 0 0; }
}
.saved-sheet-handle { display: block; width: 3rem; height: 5px; margin: 0.15rem auto 0.8rem; border-radius: 999px; background: #d5dcd8; }
.saved-icon { flex: none; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.saved-sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.saved-top-actions { display: flex; align-items: center; gap: 0.5rem; }
.saved-view-wrap { position: relative; }
.saved-view-button { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.8rem; padding: 0.4rem 0.8rem; border: 1px solid #dfe6e2; border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; transition: background 120ms ease, border-color 120ms ease; }
.saved-view-button:hover { background: #f4f8f6; border-color: #c9d6cf; }
.saved-view-chevron { width: 1rem; height: 1rem; }
.saved-close { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 0; border-radius: 14px; background: #edf2ef; color: var(--ink); cursor: pointer; transition: background 120ms ease; }
.saved-close:hover { background: #e0e9e4; }
.saved-view-button:focus-visible, .saved-close:focus-visible, .saved-tab:focus-visible, .saved-btn:focus-visible, .saved-view-menu button:focus-visible { outline: 3px solid var(--green-action); outline-offset: 2px; }
.saved-view-menu { position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 30; min-width: 15.5rem; padding: 0.35rem; border: 1px solid #e3e9e6; border-radius: 16px; background: #fff; box-shadow: 0 18px 44px rgb(16 48 35 / 24%); }
.saved-view-menu[hidden] { display: none; }
.saved-view-menu button { display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 2.7rem; padding: 0.45rem 0.7rem; border: 0; border-radius: 11px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.saved-view-menu button:hover { background: #f1f6f3; }
.saved-view-menu button[aria-checked="true"] { background: #e8f4ed; font-weight: 600; }
.saved-view-item-label { flex: 1 1 auto; }
.saved-view-check { flex: none; width: 1.1rem; height: 1.1rem; color: var(--green-action); }
.saved-sheet-title { margin: 0; font-size: clamp(1.6rem, 5vw, 2rem); font-weight: 700; letter-spacing: -0.015em; }
.saved-sheet-sub { margin: 0.35rem 0 0; color: var(--muted); font-weight: 400; }
.saved-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; margin: 1.1rem 0 0.6rem; padding: 0.3rem; border-radius: 18px; background: #eef3f0; }
.saved-tab { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.1rem; padding: 0.5rem 0.7rem; border: 0; border-radius: 14px; background: transparent; color: #3d4f46; font: inherit; font-weight: 500; cursor: pointer; transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease; }
.saved-tab:hover { background: rgb(255 255 255 / 70%); }
.saved-tab[aria-selected="true"] { background: var(--green-action); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgb(8 90 60 / 24%); }
.saved-owner { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.82rem; }
.saved-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.1rem 0 0.9rem; padding-bottom: 0.7rem; border-bottom: 1px solid #edf1ee; }
.saved-section-head h3 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.saved-section-note { margin: 0; color: var(--muted); font-size: 0.92rem; font-weight: 400; }
.saved-section-count { padding: 0.15rem 0.65rem; border-radius: 999px; background: #eef4f0; color: #3d5a4b; font-size: 0.8rem; font-weight: 500; white-space: nowrap; }
.saved-empty { display: grid; justify-items: center; gap: 0.35rem; padding: 2rem 1rem; border: 1px dashed #cfdcd4; border-radius: 18px; background: #f8fbf9; text-align: center; }
.saved-empty-icon { width: 3.4rem; height: 3.4rem; padding: 0.85rem; border-radius: 50%; background: #e3f1e9; color: var(--green-action); }
.saved-empty strong { font-weight: 600; }
.saved-empty p { margin: 0; color: var(--muted); }

/* Rows */
.saved-storage-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.5rem 0; }
.saved-storage-row .saved-owner { margin: 0; }
.saved-clear-history { padding: 0.45rem 0.65rem; border: 0; border-radius: 9px; background: transparent; color: var(--green-action); font: inherit; font-size: 0.88rem; font-weight: 650; cursor: pointer; }
.saved-clear-history:hover { background: #eef6f1; }
.saved-items-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.saved-history-group { margin: 1rem 0 0.45rem; color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.saved-item { position: relative; display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) 2.25rem; align-items: center; gap: 0.65rem 0.8rem; padding: 0.65rem; border: 1px solid #e8eeea; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgb(16 48 35 / 4%); transition: box-shadow 160ms ease, transform 160ms ease; }
.saved-item:hover { box-shadow: 0 2px 4px rgb(16 48 35 / 5%), 0 14px 32px rgb(16 48 35 / 10%); }
.saved-item-thumb { grid-row: 1; width: 3.6rem; aspect-ratio: 1; overflow: hidden; border-radius: 13px; background: linear-gradient(145deg, #eef1ec, #dfe6df); box-shadow: inset 0 0 0 1px rgb(16 48 35 / 6%); }
.saved-item-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.saved-item-copy { display: grid; align-content: center; justify-items: start; gap: 0.18rem; min-width: 0; }
.saved-item-name, .saved-item-open { max-width: 100%; color: var(--ink); font-size: 0.96rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.saved-item-open { padding: 0; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.saved-item-open:hover { color: var(--green-action); text-decoration: underline; text-underline-offset: 2px; }
.saved-item-price { color: var(--ink); font-size: 0.91rem; font-weight: 750; }
.saved-item-status { align-self: start; margin-top: 0.08rem; letter-spacing: 0; text-transform: none; }
.saved-item-status.is-closed { background: #ececec; color: #6b7280; }
.saved-item-details { color: var(--muted); font-size: 0.77rem; line-height: 1.3; overflow-wrap: anywhere; }
.saved-item-menu-wrap { position: relative; grid-column: 3; grid-row: 1; align-self: center; }
.saved-item-menu-button { display: grid; place-items: center; width: 2.2rem; height: 2.5rem; border: 0; border-radius: 9px; background: transparent; color: var(--green-deep); font: inherit; font-size: 1.45rem; line-height: 1; cursor: pointer; }
.saved-item-menu-button:hover, .saved-item-menu-button[aria-expanded="true"] { background: #eef4f0; }
.saved-item-menu-button:focus-visible, .saved-item-menu button:focus-visible, .saved-clear-history:focus-visible { outline: 3px solid var(--green-action); outline-offset: 2px; }
.saved-item-menu { position: absolute; z-index: 20; top: calc(100% + 0.15rem); right: 0; width: max-content; min-width: 12rem; padding: 0.35rem; border: 1px solid #e3e9e6; border-radius: 13px; background: #fff; box-shadow: 0 12px 30px rgb(16 48 35 / 20%); }
.saved-item-menu[hidden] { display: none; }
.saved-item-menu button { display: flex; align-items: center; gap: 0.65rem; width: 100%; min-height: 2.6rem; padding: 0.5rem 0.65rem; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: 0.88rem; text-align: left; cursor: pointer; }
.saved-item-menu button:hover { background: #f1f6f3; }
.saved-item-menu button.is-danger { color: #a83b31; }
.saved-items-toast { position: sticky; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0.75rem -0.4rem 0; padding: 0.65rem 0.85rem; border-radius: 12px; background: var(--green-deep); color: #fff; box-shadow: 0 5px 18px rgb(16 48 35 / 18%); font-size: 0.88rem; }
.saved-items-toast[hidden] { display: none; }
.saved-items-toast button { padding: 0.35rem 0.55rem; border: 1px solid rgb(255 255 255 / 55%); border-radius: 8px; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.saved-clear-confirm { width: min(100% - 2rem, 25rem); padding: 1.25rem; border: 1px solid #e2e9e4; border-radius: 18px; background: var(--sheet); color: var(--ink); box-shadow: 0 20px 60px rgb(10 30 22 / 30%); }
.saved-clear-confirm::backdrop { background: rgb(12 32 24 / 55%); backdrop-filter: blur(2px); }
.saved-clear-confirm h2 { margin: 0; font-size: 1.15rem; }
.saved-clear-confirm p { color: var(--muted); }
.saved-clear-actions { display: flex; justify-content: flex-end; gap: 0.6rem; }

/* Whole card opens the product; keyboard focus and hover look like a selection */
.saved-item.is-openable { cursor: pointer; }
.saved-item.is-openable:hover { border-color: #cfe3d7; background: #f7fbf8; }
.saved-item:focus-within { border-color: var(--green-action); background: #f4faf6; box-shadow: 0 0 0 2px rgb(8 121 87 / 22%); }
.saved-item-open:hover { text-decoration: none; }
.saved-item-open:focus-visible { outline: none; }
.saved-item-menu-button svg { width: 1.25rem; height: 1.25rem; stroke-width: 2.6; }
.saved-item-menu button svg { flex: none; }
.saved-item-menu button:disabled { opacity: 0.42; cursor: not-allowed; }
.saved-item-menu button:disabled:hover { background: transparent; }
.saved-col, .saved-columns { display: none; }

/* ===== Views, modelled on the Windows folder View menu ===== */
/* Extra large / large / medium icons: pictures with the name underneath */
.saved-items-content[data-view="xlarge"] { --saved-tile: 14rem; }
.saved-items-content[data-view="large"] { --saved-tile: 9.5rem; }
.saved-items-content[data-view="medium"] { --saved-tile: 6.4rem; }
.saved-items-content:is([data-view="xlarge"], [data-view="large"], [data-view="medium"]) .saved-items-list { grid-template-columns: repeat(auto-fill, minmax(var(--saved-tile), 1fr)); gap: 0.9rem; }
.saved-items-content:is([data-view="xlarge"], [data-view="large"], [data-view="medium"]) .saved-item { grid-template-columns: 1fr; align-items: start; justify-items: center; gap: 0.5rem; padding: 0.6rem 0.6rem 0.8rem; text-align: center; border-radius: 16px; }
.saved-items-content:is([data-view="xlarge"], [data-view="large"], [data-view="medium"]) .saved-item-thumb { width: 100%; border-radius: 12px; }
.saved-items-content:is([data-view="xlarge"], [data-view="large"], [data-view="medium"]) .saved-item-copy { justify-items: center; }
.saved-items-content:is([data-view="xlarge"], [data-view="large"], [data-view="medium"]) .saved-item-menu-wrap { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2; grid-column: auto; }
.saved-items-content:is([data-view="xlarge"], [data-view="large"], [data-view="medium"]) .saved-item-menu-button { width: 2rem; height: 2rem; border-radius: 50%; background: rgb(255 255 255 / 90%); box-shadow: 0 2px 6px rgb(16 48 35 / 18%); }
.saved-items-content:is([data-view="xlarge"], [data-view="large"], [data-view="medium"]) .saved-item-details { display: none; }
.saved-items-content:is([data-view="medium"], [data-view="large"]) .saved-item-status { display: none; }
.saved-items-content[data-view="medium"] .saved-item-price { display: none; }
.saved-items-content[data-view="medium"] .saved-item-open, .saved-items-content[data-view="medium"] .saved-item-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.8rem; text-align: center; }
.saved-items-content:is([data-view="xlarge"], [data-view="large"]) .saved-item-open, .saved-items-content:is([data-view="xlarge"], [data-view="large"]) .saved-item-name { font-size: 0.98rem; text-align: center; }

/* Small icons: a compact icon beside the name, flowing across the width */
.saved-items-content[data-view="small"] .saved-items-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.15rem 0.6rem; }
.saved-items-content[data-view="small"] .saved-item { grid-template-columns: 1.9rem minmax(0, 1fr) 2rem; gap: 0.55rem; padding: 0.25rem 0.4rem; border-color: transparent; border-radius: 9px; background: transparent; box-shadow: none; }
.saved-items-content[data-view="small"] .saved-item-thumb { width: 1.9rem; border-radius: 6px; }
.saved-items-content[data-view="small"] .saved-item-open, .saved-items-content[data-view="small"] .saved-item-name { overflow: hidden; font-size: 0.88rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.saved-items-content[data-view="small"] :is(.saved-item-price, .saved-item-status, .saved-item-details) { display: none; }
.saved-items-content[data-view="small"] .saved-item-menu-button { width: 1.9rem; height: 1.9rem; }

/* List: names flow down the page in columns, like Windows */
.saved-items-content[data-view="list"] .saved-items-list { display: block; column-width: 16rem; column-gap: 1rem; }
.saved-items-content[data-view="list"] .saved-item { grid-template-columns: 2.6rem minmax(0, 1fr) 2rem; break-inside: avoid; margin-bottom: 0.2rem; padding: 0.3rem 0.45rem; border-color: transparent; border-radius: 10px; background: transparent; box-shadow: none; }
.saved-items-content[data-view="list"] .saved-item-thumb { width: 2.6rem; border-radius: 8px; }
.saved-items-content[data-view="list"] .saved-item-open, .saved-items-content[data-view="list"] .saved-item-name { overflow: hidden; font-size: 0.92rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.saved-items-content[data-view="list"] :is(.saved-item-price, .saved-item-status, .saved-item-details) { display: none; }

/* Details: a table. Click a column title to sort; click again to reverse. */
.saved-items-content[data-view="details"] { --saved-cols: 2.8rem minmax(0, 2.2fr) 6.5rem 6.5rem 6.5rem 6.5rem 2.2rem; }
.saved-items-content[data-view="details"] .saved-columns { display: grid; grid-template-columns: var(--saved-cols); align-items: center; gap: 0.6rem; margin: 0 0 0.3rem; padding: 0 0.65rem 0.4rem; border-bottom: 1px solid #e3eae6; }
.saved-items-content[data-view="details"] .saved-items-list { gap: 0.2rem; }
.saved-items-content[data-view="details"] .saved-item { grid-template-columns: var(--saved-cols); gap: 0.6rem; padding: 0.35rem 0.65rem; border-color: transparent; border-radius: 10px; box-shadow: none; }
.saved-items-content[data-view="details"] .saved-item-thumb { width: 2.8rem; border-radius: 8px; }
.saved-items-content[data-view="details"] .saved-item-copy { display: contents; }
.saved-items-content[data-view="details"] .saved-col { display: block; overflow: hidden; color: #4a5f55; font-size: 0.86rem; text-overflow: ellipsis; white-space: nowrap; }
.saved-items-content[data-view="details"] .saved-item-open, .saved-items-content[data-view="details"] .saved-item-name { overflow: hidden; font-size: 0.93rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.saved-items-content[data-view="details"] .saved-item-price { font-size: 0.9rem; font-weight: 500; }
.saved-items-content[data-view="details"] .saved-item-details { display: none; }
.saved-items-content[data-view="details"] .saved-item-status { justify-self: start; }
.saved-col-head { display: inline-flex; align-items: center; gap: 0.3rem; min-width: 0; padding: 0.25rem 0.1rem; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; text-align: left; cursor: pointer; }
.saved-col-head:hover { color: var(--ink); }
.saved-col-head:focus-visible { outline: 3px solid var(--green-action); outline-offset: 1px; }
.saved-col-head.is-sorted { color: var(--green-action); }
.saved-sort-arrow { width: 0.85rem; height: 0.85rem; opacity: 0; transition: transform 140ms ease, opacity 140ms ease; }
.saved-col-head.is-sorted .saved-sort-arrow { opacity: 1; }
.saved-col-head[data-dir="asc"] .saved-sort-arrow { transform: rotate(180deg); }

/* Tiles: a medium picture with the details beside it */
.saved-items-content[data-view="tiles"] .saved-items-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0.6rem; }
.saved-items-content[data-view="tiles"] .saved-item { grid-template-columns: 4.8rem minmax(0, 1fr) 2.2rem; gap: 0.8rem; padding: 0.6rem; }
.saved-items-content[data-view="tiles"] .saved-item-thumb { width: 4.8rem; }

@media (max-width: 40rem) {
  .saved-sheet { padding-right: 0.85rem; padding-left: 0.85rem; }
  .saved-items-content[data-view="details"] { --saved-cols: 2.8rem minmax(0, 1fr) 5.5rem 2rem; }
  .saved-items-content[data-view="details"] :is(.saved-col, .saved-item-status) { display: none; }
  .saved-items-content[data-view="details"] .saved-col-head[data-sort="kind"],
  .saved-items-content[data-view="details"] .saved-col-head[data-sort="status"],
  .saved-items-content[data-view="details"] .saved-col-head[data-sort="when"] { display: none; }
  .saved-items-content[data-view="xlarge"] { --saved-tile: 100%; }
}
.saved-items-content[data-view="details"] .saved-item-menu-wrap { grid-column: auto; grid-row: auto; justify-self: end; }
.saved-items-content[data-view="details"] .saved-item-thumb { grid-row: auto; }
.saved-items-content[data-view="details"] { --saved-cols: 2.8rem minmax(0, 2.2fr) 6.2rem 6.2rem 7.6rem 6.2rem 2.2rem; }
.saved-items-content[data-view="details"] .saved-item-status { align-self: center; margin-top: 0; white-space: nowrap; }
@media (max-width: 40rem) { .saved-items-content[data-view="details"] { --saved-cols: 2.8rem minmax(0, 1fr) 5.5rem 2rem; } }
a.side-link { text-decoration: none; }

/* Product location (Ghana Shop): where buyers can find the product. */
.product-location, .dialog-product-location { display: flex; align-items: center; gap: 0.3rem; margin: 0.1rem 0 0; color: var(--muted, #5b665f); font-size: 0.8rem; font-weight: 600; }
.product-location-pin { flex: none; width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#available-location-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
#available-location-label[hidden] { display: none; }
.available-admin-location { margin: 0.2rem 0 0; font-size: 0.85rem; font-weight: 600; }
