:root {
  color-scheme: light;
  --paper: #f4f7f6;
  --sheet: #ffffff;
  --ink: #172821;
  --muted: #65766e;
  --line: #dce7e1;
  --green: #087957;
  --green-deep: #073d31;
  --amber: #ac6810;
  --danger: #9d2c2c;
  --shadow: 0 12px 30px rgba(16, 48, 35, 0.07);
  --shadow-soft: 0 5px 18px rgba(16, 48, 35, 0.05);
}

* { 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: "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.45;
}

h1, h2, h3 {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  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: 999px;
  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 #087957; 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; }
}
.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; }
.pull-refresh-hint { width: min(100% - 1.4rem, 72rem); margin: 0.25rem auto; color: #738178; font-size: 0.66rem; line-height: 1.2; text-align: center; }
.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: "Segoe UI", sans-serif; 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: Georgia, serif; }
.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: 8px; 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: 999px;
  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: "Segoe UI", "Helvetica Neue", sans-serif; 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-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-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: Georgia, "Palatino Linotype", Palatino, serif; 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: Georgia, "Palatino Linotype", Palatino, serif; 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: flex; flex-direction: column; color: #f3c46f; text-decoration: none; line-height: 1; }
.brand-word { font-family: Georgia, "Palatino Linotype", Palatino, serif; font-size: 1.7rem; font-weight: 800; letter-spacing: 0.045em; }
.brand-tagline { margin-top: 0.2rem; color: #fff; font-size: 0.72rem; letter-spacing: 0.015em; }
.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: 19rem;
  margin: 1.3rem 0 2rem;
  overflow: hidden;
  border: 1px solid #eadcc8;
  border-radius: 22px;
  background: linear-gradient(115deg, #fffaf1 0%, #f5ead9 100%);
  box-shadow: var(--shadow-soft);
}
.hero-copy { position: relative; z-index: 1; align-self: center; padding: 2rem 1.2rem 2rem 2.2rem; }
.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.035em; }
.hero-copy > p:not(.hero-kicker) { max-width: 31rem; margin: 0.8rem 0 1.1rem; color: #53615b; font-size: 1.02rem; }
.hero-cta { min-height: 2.75rem; padding-inline: 1.15rem; text-decoration: none; }
.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: 19rem; 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; 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.7rem; bottom: 0.65rem; display: flex; align-items: center; gap: 0.45rem; padding: 0.25rem; border: 1px solid rgb(255 255 255 / 55%); border-radius: 999px; background: rgb(22 35 29 / 56%); backdrop-filter: blur(5px); }
.hero-slide-controls[hidden] { display: none; }
.hero-slide-controls > button { display: grid; width: 1.65rem; height: 1.65rem; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 20%); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.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: Georgia, "Palatino Linotype", Palatino, serif; 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; }
.hero-note { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; padding: 0.55rem 0.7rem; transform: rotate(-5deg); color: #18352a; font-family: Georgia, "Palatino Linotype", Palatino, serif; 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: Georgia, "Palatino Linotype", Palatino, serif; 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: "Segoe UI", "Helvetica Neue", sans-serif; 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, #087957, #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); }
.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: #0d6b4c; background: #f1f8f5; color: #0d6b4c; }
.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: #0d6b4c; background: #f1f8f5; color: #0d6b4c; transform: translateY(-1px); }
.share-icon-button:focus-visible { outline: 2px solid #0d6b4c; 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: #0d6b4c; }
.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: #087957; 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: #087957; 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: #0d6b4c; color: #0d6b4c; }
.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, #0d6b4c, #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: Georgia, "Palatino Linotype", Palatino, serif; 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: #087957;
  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: #087957; 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: #087957; 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: "Segoe UI", "Helvetica Neue", sans-serif;
  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(7rem, 9.8rem) minmax(0, 1fr); gap: 0.85rem; align-items: start; padding: 0.65rem; }
.dialog-product-media { position: relative; display: grid; grid-column: 1; grid-row: 1; align-content: start; gap: 0.45rem; min-width: 0; }
.dialog-product-image-gallery, .dialog-product-placeholder { width: 100%; height: 9.8rem; border-radius: 9px; }
.dialog-product-image-gallery { overflow: hidden; }
.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; object-fit: cover; }
.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; }
.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 #087957; 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-name { margin: 0; color: #172821; font-family: "Segoe UI", sans-serif; font-size: 1.2rem; font-weight: 750; line-height: 1.2; }
.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 { margin: 0.4rem 0 0; color: #738091; font-size: 0.86rem; }
.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: "Segoe UI", sans-serif; 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: "Segoe UI", sans-serif; 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-tab-list { display: flex; gap: 0.35rem; overflow-x: auto; margin-bottom: 0.25rem; border-bottom: 1px solid #dfe7e2; }
.batch-dialog .option-tab { flex: 0 0 auto; min-height: 2.5rem; padding: 0.45rem 0.75rem; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #596b61; font: inherit; font-size: 0.82rem; font-weight: 650; white-space: nowrap; cursor: pointer; }
.batch-dialog .option-tab[aria-selected="true"] { border-bottom-color: #087957; color: #075c40; }
.batch-dialog .option-tab-panel { padding-top: 0.25rem; }
.batch-dialog .option-tab-panel[hidden] { display: none; }
.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; }
.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: #087957; background: #087957; 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 #087957; border-radius: 3px; }
.card-icon::before { position: absolute; top: 0.18rem; width: 100%; border-top: 2px solid #087957; content: ""; }
.card-icon::after { position: absolute; right: 0.13rem; bottom: 0.12rem; width: 0.23rem; height: 0.13rem; border: 1px solid #087957; 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; }
.order-submit-copy strong { font-size: 0.88rem; }
.order-submit-copy small { color: #738091; font-size: 0.72rem; font-weight: 400; }
.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: "Segoe UI", sans-serif; 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, #0d6b4c); 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(7rem, 8rem) minmax(0, 1fr); }
  .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 { height: 8rem; }
  .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(7rem, 7.5rem) minmax(0, 1fr); gap: 0.6rem; padding: 0.5rem; }
  .dialog-product-image-gallery, .dialog-product-placeholder { height: 6.5rem; }
  .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; }
  .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. Type is the WhatsApp Web stack: Segoe UI at 15px, with 13px secondary text. */
body:not(.page-admin) {
  background: #f6f3ea;
  color: #1c1e1c;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, "Lucida Grande", Arial, Ubuntu, Cantarell, "Fira Sans", sans-serif;
  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) .brand-word,
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: "Segoe UI", "Helvetica Neue", Helvetica, "Lucida Grande", Arial, Ubuntu, Cantarell, "Fira Sans", sans-serif;
}
body:not(.page-admin) .wrap { width: min(100% - 2.4rem, 72rem); }
body:not(.page-admin) .site-header {
  padding: 0;
  background: #123f31;
  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 { gap: 0.15rem; color: #f2c14b; text-decoration: none; }
body:not(.page-admin) .brand-word {
  display: inline-flex;
  position: relative;
  width: max-content;
  padding-bottom: 0.16rem;
  color: #f8f6f0;
  font-family: "Arial Black", "Segoe UI", Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 1;
  text-transform: none;
}
body:not(.page-admin) .brand-word::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #f6b51f;
  content: "";
}
body:not(.page-admin) .brand-word-dart { color: #f6b51f; }
body:not(.page-admin) .brand-tagline { margin-top: 0.12rem; color: #fff; font-size: 12px; letter-spacing: 0; }
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: #123f31;
  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 #e4d3a8;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgb(70 52 27 / 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; }
body:not([data-view="available"]):not([data-view="available-cart"]):not([data-view="available-orders"]) #available-goods { 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"] .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"] .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"] .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"] #orders-section,
body[data-view="orders"] #customer-panel,
body[data-view="orders"] #customer-invoices,
body[data-view="invoices"] .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"] #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 .eyebrow { margin-bottom: 0.2rem; color: var(--green); }
.available-cart-page-heading { display: none; }
.available-cart-page-heading h2 { margin: 0; }
.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-cart-back { display: inline-block; margin-bottom: 0.45rem; color: var(--green-deep); font-weight: 700; text-decoration: 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-cart-link,
body[data-view="available-cart"] .available-orders-link { display: none; }
body[data-view="available-cart"] .available-cart-page-heading,
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-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,
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-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.available-product-card { min-width: 0; overflow: hidden; border: 1px solid #eee7da; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgb(40 32 16 / 6%); }
.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 #087957; outline-offset: -2px; }
.available-product-card .batch-count { min-height: 1rem; }
.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 { 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-pay,
.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,
.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-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 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-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-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-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-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-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 #123f31;
  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 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-alerts-popup-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; 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-header button { padding: 0.3rem 0.45rem; border: 0; border-radius: 6px; background: transparent; color: #08735a; font: inherit; font-size: 0.78rem; font-weight: 750; cursor: pointer; }
body:not(.page-admin) .customer-alerts-popup-header button:hover { background: #eaf5ef; }
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) {
  body:not(.page-admin) .available-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body:not(.page-admin) .available-catalog { grid-template-columns: 1fr; gap: 0.75rem; }
  body:not(.page-admin) .available-product-card {
    display: grid;
    grid-template-columns: 7.4rem minmax(0, 1fr);
    column-gap: 0.7rem;
    align-items: stretch;
    padding: 0.65rem;
  }
  body:not(.page-admin) .available-product-cover {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: auto;
    min-height: 8.6rem;
  }
  body:not(.page-admin) .available-product-card .product-details { grid-column: 2; padding: 0.1rem 0 0; }
  body:not(.page-admin) .available-product-card .batch-toggle { grid-column: 2; align-self: end; padding: 0.65rem 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-dialog-media { height: 6.5rem; }
}
.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 { margin-top: 1.1rem; }
.my-order-dialog-actions .btn { width: 100%; }
.my-order-dialog-actions .help { margin: 0; font-size: 0.88rem; }
.my-order-dialog-paid { margin: 0; padding: 0.7rem 0.85rem; border-radius: 12px; background: #e2f4ea; color: #16774a; font-weight: 700; text-align: center; }
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: "Segoe UI", "Helvetica Neue", sans-serif;
  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, #087957, #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, #087957, #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: #087957; 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-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.7rem; }
body:not(.page-admin) .profile-back-button { min-height: 2.5rem; padding-inline: 0.9rem; }
body:not(.page-admin) .profile-detail-header h3 { margin: 0; color: #173d31; font-size: 1rem; }
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) .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) .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) .customer-notifications-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(1rem, env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: #fffdf9;
  color: var(--ink);
}
body:not(.page-admin) .customer-notifications-dialog[open] { animation: customer-notifications-enter 0.28s cubic-bezier(0.2, 0.75, 0.25, 1); }
body:not(.page-admin) .customer-notifications-dialog::backdrop { background: rgb(10 28 22 / 38%); }
body:not(.page-admin) .customer-notifications-header { display: flex; align-items: center; gap: 0.85rem; max-width: 48rem; margin: 0 auto 1.2rem; padding-bottom: 0.9rem; border-bottom: 1px solid #e3eae6; }
body:not(.page-admin) .customer-notifications-back { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; padding: 0.45rem 0.7rem; border: 1px solid #d8e6de; border-radius: 999px; background: #fff; color: #07533f; font: inherit; font-weight: 700; cursor: pointer; }
body:not(.page-admin) .customer-notifications-back span { font-size: 1.25rem; line-height: 1; }
body:not(.page-admin) .customer-notifications-header h2 { margin: 0; color: #173d31; font-size: 1.25rem; }
body:not(.page-admin) .customer-notifications-header p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.82rem; }
body:not(.page-admin) .customer-notifications-list { display: grid; gap: 0.65rem; width: min(100%, 48rem); margin: 0 auto; }
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%; 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.25rem; min-width: 0; }
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 .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-unread { width: 0.55rem; height: 0.55rem; margin-top: 0.35rem; border-radius: 50%; background: #0a8a62; }
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-status { width: min(100%, 48rem); margin: 0 auto 0.6rem; color: #8b2e24; font-size: 0.88rem; }
@keyframes customer-notifications-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
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.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; }

.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: #123f31;
  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: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) .brand-word { font-size: clamp(1.15rem, 5.2vw, 1.25rem); }
  body:not(.page-admin) .brand-tagline { font-size: clamp(0.62rem, 2.8vw, 0.69rem); }
  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(4, minmax(0, 1fr));
    width: auto;
    max-width: 34rem;
    padding: 0.35rem;
    border: 1px solid rgb(226 233 228 / 90%);
    border-radius: 999px;
    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: 999px;
    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) .available-cart-page-heading h2 { font-size: 1.25rem; }
  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);
  }
}

.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: "Segoe UI", "Helvetica Neue", sans-serif;
  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 { margin: 0 0 0.8rem; font-size: 1.7rem; letter-spacing: -0.03em; }
.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-logo { display: block; 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, .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-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 { right: 0; top: calc(100% + 0.45rem); width: 260px; }
.alert-pop { max-height: min(70vh, 32rem); overflow-y: auto; }
.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; }
.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: #087957; background: #087957; 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 #087957; 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: #087957; }
.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: #087957; }
.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; }
.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: #087957; color: #fff; }
.batch-filter.is-current span { background: #fff; color: #087957; }
.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: #087957; 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: #087957; 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 #087957; 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: #087957; background: #087957; 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: #087957; 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: #087957; color: #087957; }
.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: #0d6b4c; 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: #0d6b4c; }
.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: #0d6b4c; }
.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: #0d6b4c; }
.viewers-trigger:focus-visible { outline: 2px solid #0d6b4c; 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-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: none; }

@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;
}
.product-pagination[hidden] { display: none; }
.product-pagination span { color: #3d4a43; font-size: 0.9rem; }
.product-pagination .btn:disabled { opacity: 0.45; cursor: default; }
.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, #123f31); font-weight: 700; text-decoration: none; }
.legal-header a:hover, .customer-legal-footer a:hover { text-decoration: underline; }
.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, #123f31); 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, #123f31); text-decoration: underline; }
.legal-document { min-width: 0; padding: clamp(1.1rem, 4vw, 2.5rem); color: #293630; line-height: 1.7; overflow-wrap: anywhere; }
.legal-document h1 { margin: 0 0 1rem; color: var(--green-deep, #123f31); 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, #123f31); 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, #123f31); 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: #087957; }
.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%; }
